The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Cant open dialog a second time
Posted: 06 Apr 10 9:35 AM
|
I have an issue whereby I open a dialog, do some action and then close it. After I have done this I can't reopen the dialog.
The button events don't fire the second time.
Any one seen this? |
|
|
|
Re: Cant open dialog a second time
Posted: 07 Apr 10 6:52 AM
|
Yes we've had this issue on 7.5.2 where if we cancel the dialog we subsequent clicks on the button to launch it again do nothing until a full post back (which doesn't make sense for a cancel operation). Since we refresh after a save on the dialog if the user makes a change the post back allows the user to make iterative calls.
I have this on my list to get resolved but I haven't had a chance to get to it yet.
Regards,
James Sutton |
|
|
|
Re: Cant open dialog a second time
Posted: 07 Apr 10 7:06 AM
|
Its a pain because if the user doesn't make a change they can't reopen the dialog.
i have narrowed the issue down to one particular dialog so am going through debuggin this to see if I can figure it out. I will post my findings! |
|
|
|
Re: Cant open dialog a second time
Posted: 07 Apr 10 7:07 AM
|
Its a pain because if the user doesn't make a change they can't reopen the dialog.
i have narrowed the issue down to one particular dialog so am going through debuggin this to see if I can figure it out. I will post my findings! |
|
|
|
Re: Cant open dialog a second time
Posted: 19 Apr 10 7:28 AM
|
You cannot open/close/reopen dialogs. The best you will get is a blank dialog at the end of event. Interestingly it appears to work twice but the third time it just gives a blank dialog and everything screws.
You could however write some clever code on your calling page (say Contact Details). You can write in a OnDialogClosing (not the exact method name but you should be able to find it as an override-able method) method code to check which form just closed. You could then use DialogParameters on closing the form which the code on the calling form (Con Details) can check and perform the necessary, e.g. open the original dialog, or open a different dialog. Quite complicated to do something relatively simple I agree, but that the way it is at the moment in the DialogWorkSpace.
An easy example to follow is on the InsertContact.ascx. You will see a couple of lines like this:
if (DialogService.SmartPartMappedID == "ContactSearchForDuplicates") { if (DialogService.DialogParameters.ContainsKey("JumpID"))
This is saying, was the dialog that just closed called "ContactSearchForDuplicates"? If so, did that dialog set a particular dialogparameter? If so act accordingly....i.e. open another quickform or whatever.
Make sense?
Cheers, Nick |
|
|
|
Re: Cant open dialog a second time
Posted: 19 Apr 10 7:31 AM
|
Hang on I completely misunderstood the problem.
Yes there must a be a problem with your dialog - I have never seen this before! What is the dialog doing? |
|
|
|