Hi,
I have been trying a number of ways to get my parent grid to refresh with data entered in a dialog after the submit button is clicked.
This video shows that once the Submit button on the Dialog is clicked the row in the grid automatically refreshes.
http://www.ajaxvideotutorials.com/V1...BackToGrid.swf
I have a grid with a button that Opens a Dialog, the Dialog populates with any data that has already been populated in the table, once any data is entered in the Dialog I have a submit button that writes the data back to the Grid, this works well but the Grid isn't refreshing like the video shows.
My Grid Name is FT_Flight_Schedule_Stats
The JS OnClick code for the Submit Button on the Dialog is:
I've read a number of other posts on similar topics but can't find anything that has helped.
Cheers
I have been trying a number of ways to get my parent grid to refresh with data entered in a dialog after the submit button is clicked.
This video shows that once the Submit button on the Dialog is clicked the row in the grid automatically refreshes.
http://www.ajaxvideotutorials.com/V1...BackToGrid.swf
I have a grid with a button that Opens a Dialog, the Dialog populates with any data that has already been populated in the table, once any data is entered in the Dialog I have a submit button that writes the data back to the Grid, this works well but the Grid isn't refreshing like the video shows.
My Grid Name is FT_Flight_Schedule_Stats
The JS OnClick code for the Submit Button on the Dialog is:
Code:
var parentGrid = window['__callingGridAlias']; var parentRow = window['__callingGridRow']; if(typeof parentGrid != 'undefined' && typeof parentRow != 'undefined') { var val = {dialog.object}.getValue('OnGround'); window[parentGrid + '_GridObj'].setValue('G','OnGround',parentRow,val); var val = {dialog.object}.getValue('OnChocks'); window[parentGrid + '_GridObj'].setValue('G','OnChocks',parentRow,val); var val = {dialog.object}.getValue('Doors_Open'); window[parentGrid + '_GridObj'].setValue('G','DoorsOpen',parentRow,val); var val = {dialog.object}.getValue('First_Pax_Off'); window[parentGrid + '_GridObj'].setValue('G','FirstPaxOff',parentRow,val); var val = {dialog.object}.getValue('Last_Pax_Off'); window[parentGrid + '_GridObj'].setValue('G','LastPaxOff',parentRow,val); var val = {dialog.object}.getValue('First_Bag_Off'); window[parentGrid + '_GridObj'].setValue('G','FirstArrBag',parentRow,val); var val = {dialog.object}.getValue('Last_Bag_Off'); window[parentGrid + '_GridObj'].setValue('G','LastArrBag',parentRow,val); var val = {dialog.object}.getValue('Boarding_Clear'); window[parentGrid + '_GridObj'].setValue('G','BoardingClosed',parentRow,val); var val = {dialog.object}.getValue('First_Pax_On'); window[parentGrid + '_GridObj'].setValue('G','FirstPaxOn',parentRow,val); var val = {dialog.object}.getValue('Last_Pax_On'); window[parentGrid + '_GridObj'].setValue('G','LastPaxOn',parentRow,val); var val = {dialog.object}.getValue('Doors_closed'); window[parentGrid + '_GridObj'].setValue('G','DoorsClosed',parentRow,val); var val = {dialog.object}.getValue('Beacon_Light'); window[parentGrid + '_GridObj'].setValue('G','BeaconLight',parentRow,val); var val = {dialog.object}.getValue('Off_Chocks'); window[parentGrid + '_GridObj'].setValue('G','OffChocks',parentRow,val); var val = {dialog.object}.getValue('No_Of_Pax'); window[parentGrid + '_GridObj'].setValue('G','NoOfPax',parentRow,val); var val = {dialog.object}.getValue('No_OF_Bags'); window[parentGrid + '_GridObj'].setValue('G','NoOfBags',parentRow,val); var val = {dialog.object}.getValue('No_Of_SSR'); window[parentGrid + '_GridObj'].setValue('G','NoOfSSR',parentRow,val); var val = {dialog.object}.getValue('Freight_KG'); window[parentGrid + '_GridObj'].setValue('G','FreightKG',parentRow,val); var val = {dialog.object}.getValue('Delay_Codes'); window[parentGrid + '_GridObj'].setValue('G','DelayCodes',parentRow,val); var val = {dialog.object}.getValue('Delay_Notes'); window[parentGrid + '_GridObj'].setValue('G','DelayNotes',parentRow,val); var cw = A5.windows.getFromElement(this); cw.hide(); }
I've read a number of other posts on similar topics but can't find anything that has helped.
Cheers
Comment