I have a field in a Dialog2 component that gets the name of the current logged in User when the dialog is initially opened. I�m using the following code in the OnDialogInitialize Server-Side Events:
e.control.User_ID = session.ulink
When the dialog is submitted, the User ID is saved to the SQL table. However, once the User clicks the New Record button within the same Window/TabbedUI pane, the event won't fire since the dialog wasn't closed and reopened. I do not want my client to have to close and reopen the dialog for each new record they enter in order to capture the User ID.
My question is - What event can I enter in the OnDialogExecute Server-Side to reset the field with the User�s ID again for the new record? I�ve tried entering the same code above, but the dialog doesn�t recognize it. I've been fiddling around with some of the other items in the default prototype examples, but I�m still too new to Alpha5 to have a good grasp of using arguments or JavaScript, and haven't had any success. I did manage to find a work-around using "e.control.User_ID = session.ulink" in the DialogValidate event, but it requires another button on the dialog page that the User has to click to Validate the new record before submitting. While it's not the end of the world, it's inelegant to say the least and requires two extra button-clicks to get it to work properly - essentially the same amount of clicks to close and then reopen the dialog, which I'd like to avoid.
With the Grid component, this process was explained in some videos with the AfterInsertRecord and AfterUpdateRecord functions. Has anyone run into anything similar that works for the Dialog2 component, or is there something I'm overlooking? If so, I�d sincerely appreciate a point in the right direction.
Regards,
Melissa
e.control.User_ID = session.ulink
When the dialog is submitted, the User ID is saved to the SQL table. However, once the User clicks the New Record button within the same Window/TabbedUI pane, the event won't fire since the dialog wasn't closed and reopened. I do not want my client to have to close and reopen the dialog for each new record they enter in order to capture the User ID.
My question is - What event can I enter in the OnDialogExecute Server-Side to reset the field with the User�s ID again for the new record? I�ve tried entering the same code above, but the dialog doesn�t recognize it. I've been fiddling around with some of the other items in the default prototype examples, but I�m still too new to Alpha5 to have a good grasp of using arguments or JavaScript, and haven't had any success. I did manage to find a work-around using "e.control.User_ID = session.ulink" in the DialogValidate event, but it requires another button on the dialog page that the User has to click to Validate the new record before submitting. While it's not the end of the world, it's inelegant to say the least and requires two extra button-clicks to get it to work properly - essentially the same amount of clicks to close and then reopen the dialog, which I'd like to avoid.
With the Grid component, this process was explained in some videos with the AfterInsertRecord and AfterUpdateRecord functions. Has anyone run into anything similar that works for the Dialog2 component, or is there something I'm overlooking? If so, I�d sincerely appreciate a point in the right direction.
Regards,
Melissa
Comment