
07-21-2009 05:10 PM
Hi,
Is there anyway to call a popup from a popup in SLX web? How about in the activity dialogs? Is this possible functionality?
Thanks
~ Henry
07-22-2009 01:57 AM
No. As of now it is not available. Sage has added it as a feature request. Don't know about timelines for implementation of the feature request.
Sandeep Gaykhe
07-22-2009 11:27 AM
You can do this, although it requires a one or more dialog parameters in order to get it done. Also, you can only have 1 popup at a time, so your intial dialog will close. You will have to re-open when you close your subsequent popup. Here's what I've done in the past:
In the first dialog, add a parameter to tell the dialog where you were - this is sort of a state variable.
DialogService.DialogParameters.Clear();
DialogService.DialogParameters.Add("item_id", <Item you want to retrieve when you come back>);
You will inspect this parameter in the onload event to retrieve your data:
object oItemID;
DialogService.DialogParameters.TryGetValue("item_i
if (oItemID != null)
{
String sItem = oItemID.ToString();
// Retrieve data based on the sItem value
}
In the 2nd dialog,override your OnClosing event (you could do this in the 'OK' and 'Cancel' button event handlers if you want to stay in a quickform) to call the first dialog:
protected override void OnClosing()
{
base.OnClosing();
DialogService.SetSpecs(0, 0, 400, 600, "FirstDialog");
DialogService.ShowDialog();
}
Note that you will also have to set the dialog parameter from the smartpart that calls the first dialog as well.
07-23-2009 10:13 PM
Hi Mike,
Thanks for the workaround. Will test it.
Still I think we should have multiple pop up windows functionality. This is because workaround suggested by you might call complex programming logic in case pop up windows are being used some other area also. This is must in cases where customer is upgrading from 6.2 / 7.2 LAN to 7.5 Web.
Thanks and regards
Sandeep
08-02-2009 03:27 PM
John Perona
Director, SalesLogix EngineeringSage SalesLogix
![]()