I'm using a form for edit some records. Each time When Edit link is clicked i'm loading one record data into form, changing the values and updating, its worked fine for the first time.
When i load another record data into form and update it, the present record is updating and the previous record is also updating with the new data.
If i update 3 rows after that when updated the 4th row, 4th row and previous 3 are updating with new data entered for 4th row.
I think form is submitting multiple times,
I used form reset property each time loading the values, but its not worked.
How to do this Please help me
Are you holding your formpanel into a Ext.Window component ? Check if the window is actually closed or hidden. Try putting closeAction: 'close' in your window config.
Related
I am running into one issue. Any help would be appreciated.
I am using PostgreSQL as back end.
The issue is: User opens one screen in two tabs and press update button within a second.
Example - table fields - id - is_posted
I have a flag on the table which I am setting it to true - is_posted = true and after setting this flag to true I have a trigger which inserts few records in other tables. If is_posted = true then I am not allowing the user to update that record again.
If a user clicks 'Update' button in one tab and after 1 - 2 seconds clicks 'Update' button on other tab then I get updated value and easily throw validation message that "Record already updated".
But if a user follows the same process but within milliseconds, then I do not get the updated data and record get updated twice. And it is creating multiple records in other tables which is leading to create bad data.
Kindly suggest.
Thanks,
I have a html form which contains a pair of project/hours fields(the project being a select field and hours an input field) that i need to validate in my form.There are about 5 of those pairs. I want the user to be notified of an incorrect submission when one of the following happens: there is no project select and hours filled in any pair;when a project is select but hours aren't defined for that project and vice-versa.
How would I go about validating my fields in a pair?
Assuming a button is clicked by the user when the user thinks he is finished, you can check the selects and inputs with Jquery. If something is not ok, then tell the user and prevent the button from doing anything else.
When I use DataTable in client-side mode (on an existing table), only the displayed rows are inserted in the DOM (I use the paginator). This is annoying as my table displays a form, so the hidden rows aren't sent when I submit the form.
Is it possible to only hide the rows and not remove them from DOM ?
I didn't test it yet but the documentation says there is an API, from which we can get the whole form content and even modify the form - even rows that aren't displayed - so that answers my question.
I am working with a wizard-generated Tabular Form column that needs to display an icon which launches a Javascript function and pass the row value into the function when clicked. The function launches a popUp2 window which sets the values of other fields on that row. So the row number is crucial, but it is always 0 for newly-created rows (in APEX 4.0.0.00.46). I managed to solve that problem by storing the rowNum of new rows into my Updated By column during AddRow.
What I have now is an Updated By column ("Lookup" Heading) which stores the row number of new rows, has onClick="javascript:usePopup(this);" in the Element Attributes which launches the popUp window function, and then gets any values under 2 digits wiped before submit. This fills the correct fields and submits to the table with no problem.
I can't keep using the Updated By column for this function, though. There are currently reports running on this table, so I can't add a new column to the table. I need a dummy column to display the icon, temporarily store the Row Number of newly created rows, and not mess up the MRU. It is f08, so the value of f08_0005 needs to be 0005. I tried making a null column with
select
"FUEL_USAGE_DETAIL_ID", ...
"EXPENSE_TO_PROJECT",
"EXPENSE_TO_TASK",
NULL Lookup,
"UPDATED_BY",
"PROVIDER"
from "#OWNER#"."FUEL_USAGE_DETAIL"
but that can't submit. I get the Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "01A949FAF0B3A91914ECACCDC9BBA9E6", item checksum = "B6ADF86455B14EF691B2AFB314926A0D".
Please help me create a null column to display this icon, store the row number of all the rows (including the brand new rows), and not mess up the MRU. If you need pictures of what I have and what I need, see my other thread: https://community.oracle.com/thread/3649771 Thank you!
Fractal65,
Do not add any null column in tabular form.
just go to>>Edit tabular form attribute make following change
you will get it position as f02_000X (x-rownum)
now uou can use this rownum value in javascript or anything.
Hope this helps.
I had a similar error with my last project. Do you have a none displayed row selector? Please try to delete it to see if it will work.
I have developed a small application in which I have a row repeater where I will display the recently created records.
Suppose I have some 150 records in a row repeater.
Now the problem is I scroll down to see the 100th record in the row repeater
and after viewing the 100th record I will go back by clicking on back button.
Now if I again click on the row repeater the page is not displaying from the starting record by default its showing from the 100th record means I again need to scroll up to view the 0th record.
How can I overcome this issue?
You can
ensure that the RowRepeater (or it's surrounding view) is destroyed on back and recreated on enter (only way known to me to handle your requirement with UI5)
use jQuery.scrollTop() on re-entering the view with your row repeater
var oRR = sap.ui.getCore().byId("myRowRepeater");
jQuery(".sapUiRrPage", oRR.getDomRef()).scrollTop();