I have a grid with the following code in the �onInitialValueCalculate� server-side event:
dim loadnum as n = dbmax("[PathAlias.ADB_Path]\dispatch_board.dbf","Clientid",e.rv.session.__protected__clientid,"Client_Load_Number")
e.newValues.Client_Load_Number = increment_value(loadnum)
Works like a champ�In a grid component!
I would now like to convert this grid into a dialog2 component.
When I right click on the grid name in the component list and choose �create dialog component from this grid component�, assign a new file name and let it rip, I get a script error and it shuts down the whole Alpha 5 v11 program.
So, I took the above code and copied and pasted it into the �onDialogInitialize� server -side event in a new dialog2 component. I know these are two different events but onInitialValueCalculate is not offered as a server side event on a dialog. It doesn�t shut the program down but when I run the dialog component on a live a5w page, I get the following error message:
Error executing onDialogExecute event: Error executing event 'onDialogInitialize ': command: dim loadnum as n = dbmax("[PathAlias.ADB_Path]\dispatch_board.dbf","Clientid",e. Property not found e.argument subelement not found.
I need the highest record in the Client_load_number field filtered by �clientid� (This is the session id).
Then, I am trying to increment (add 1) to the Client_load_number field in the dispatch_board.dbf table, based on the highest (last) record in the Client_load_number field.
Any help here would definitely be appreciated!
dim loadnum as n = dbmax("[PathAlias.ADB_Path]\dispatch_board.dbf","Clientid",e.rv.session.__protected__clientid,"Client_Load_Number")
e.newValues.Client_Load_Number = increment_value(loadnum)
Works like a champ�In a grid component!
I would now like to convert this grid into a dialog2 component.
When I right click on the grid name in the component list and choose �create dialog component from this grid component�, assign a new file name and let it rip, I get a script error and it shuts down the whole Alpha 5 v11 program.
So, I took the above code and copied and pasted it into the �onDialogInitialize� server -side event in a new dialog2 component. I know these are two different events but onInitialValueCalculate is not offered as a server side event on a dialog. It doesn�t shut the program down but when I run the dialog component on a live a5w page, I get the following error message:
Error executing onDialogExecute event: Error executing event 'onDialogInitialize ': command: dim loadnum as n = dbmax("[PathAlias.ADB_Path]\dispatch_board.dbf","Clientid",e. Property not found e.argument subelement not found.
I need the highest record in the Client_load_number field filtered by �clientid� (This is the session id).
Then, I am trying to increment (add 1) to the Client_load_number field in the dispatch_board.dbf table, based on the highest (last) record in the Client_load_number field.
Any help here would definitely be appreciated!
Comment