I am having an issue with using the Dialog component to both edit and insert values into a grid.
I have a grid called gridContacts.
I have a dialog called dialogContact.
In the dialog called dialogContact, I have added the ExecuteServerSideAction with Action Scripting to save the data. I have selected the option "Edit Record Just Submitted". (Image 1)
I have placed a button on the grid row to "edit" the contact using the contact dialog. I use the Action Javascript command "Open Dialog for Current..." with the mode "EditExistingRecord". Everything works fine with the dialog in this edit mode. The dialog shows the current record and when you click submit, it saves the changes and updates the grid. (Image 2)
Now, on the same grid, I have placed an Action Button that uses the Action Javascript "Open Dialog For Current...". (Image 3)
When I click the submit button after I have added the new information, the dialog window stays open. It has inserted the record properly into the database.
I have noticed that the following javascript error is occuring during the save process for a "New Record"
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.2; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Media Center PC 5.0; SLCC1; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; Tablet PC 2.0; .NET4.0C; .NET4.0E)
Timestamp: Tue, 17 Jan 2012 02:47:55 UTC
Message: Expected ')'
Line: 186
Char: 49
Code: 0
URI: http://localhost:8080/LivePreview/ja...a5-23253851.js
I have a grid called gridContacts.
I have a dialog called dialogContact.
In the dialog called dialogContact, I have added the ExecuteServerSideAction with Action Scripting to save the data. I have selected the option "Edit Record Just Submitted". (Image 1)
I have placed a button on the grid row to "edit" the contact using the contact dialog. I use the Action Javascript command "Open Dialog for Current..." with the mode "EditExistingRecord". Everything works fine with the dialog in this edit mode. The dialog shows the current record and when you click submit, it saves the changes and updates the grid. (Image 2)
Now, on the same grid, I have placed an Action Button that uses the Action Javascript "Open Dialog For Current...". (Image 3)
When I click the submit button after I have added the new information, the dialog window stays open. It has inserted the record properly into the database.
I have noticed that the following javascript error is occuring during the save process for a "New Record"
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.2; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Media Center PC 5.0; SLCC1; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; Tablet PC 2.0; .NET4.0C; .NET4.0E)
Timestamp: Tue, 17 Jan 2012 02:47:55 UTC
Message: Expected ')'
Line: 186
Char: 49
Code: 0
URI: http://localhost:8080/LivePreview/ja...a5-23253851.js
Comment