6/30/2025 10:30:24 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
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!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Open an unbound Dialog
Posted: 11 Feb 10 8:49 AM
|
Hi,
I try to open an unbound Dialog. While opening the box I want to pass some Information to the dialog. Can someone help me to do that?
thanks
Joern |
|
|
|
Re: Open an unbound Dialog
Posted: 11 Feb 10 3:00 PM
|
Before the call to ShowDialog(), you want to add parameters. For example:
DialogService.DialogParameters.Clear(); DialogService.DialogParameters.Add("MyParameter", MyVariable.ToString()); DialogService.SetSpecs(0, 0, 400, 400, "MyDialog", "My Dialog", true); DialogService.ShowDialog();
Now, in the load action of the dialog, retrieve the parameters:
object o = null; DialogService.DialogParameters.TryGetValue("MyParameter", out o); if (o != null) { String myVariable = o.ToString(); }
Note that the call to TryGetValue will return true if the parameter is found, and false if it is not. You can change behavior based on weather a parameter is present:
object o = null; if (DialogService.DialogParameters.TryGetValue("MyParameter", out o)) { // Parameter is present, do something } else { // Parameter not present - do something else }
|
|
|
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|