Hi All
Please take a look at videos in D57 in particular this part : Generating the Javascript to populate the Dialog
Rather than populating the dialog as Selwyn does in these to videos in the onDialogInitialize I am doing an ajax call back when the user selects a user from a list.
I need to populate the dialog based on the selected user which is selected from a list so it can be one of many and indeed the user could select one of many selected users in the session so in other words the dialog has to be dynamic.
All my javascript being created by the a5DialogHelper_JS_PopulateDialog looks correct and the javascript I am sending back to the dialog is
I have tried both with an without the last line here A5 does not return any javascript error
My problem is that I have a switch button that in one of my repeating section rows should change from Off to On and a email button list that should show yes but neither is showing the change.
I have checked the java script that is being sent back and it appears correct they are _d['ISAVAL:2'] = 'On'; and _d['EMAIL:2'] = 'Yes';
Can anybody see anything wrong with what I am doing? indeed can I do this from a ajax call back?
Thanks
Andy
Please take a look at videos in D57 in particular this part : Generating the Javascript to populate the Dialog
Rather than populating the dialog as Selwyn does in these to videos in the onDialogInitialize I am doing an ajax call back when the user selects a user from a list.
I need to populate the dialog based on the selected user which is selected from a list so it can be one of many and indeed the user could select one of many selected users in the session so in other words the dialog has to be dynamic.
All my javascript being created by the a5DialogHelper_JS_PopulateDialog looks correct and the javascript I am sending back to the dialog is
Code:
DIM js as c = "" js = js + pr.setRepeatingSections + crlf() js = js + "var _d = {};" + crlf() js = js + pr.populateControls + crlf() js = js + "{dialog.object}.populate(_d);" js = js + "{Dialog.object}.refreshClientSideComputations();"
My problem is that I have a switch button that in one of my repeating section rows should change from Off to On and a email button list that should show yes but neither is showing the change.
I have checked the java script that is being sent back and it appears correct they are _d['ISAVAL:2'] = 'On'; and _d['EMAIL:2'] = 'Yes';
Can anybody see anything wrong with what I am doing? indeed can I do this from a ajax call back?
Thanks
Andy