Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, June 30, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Open an unbound Dialog
Joern Engmann
Posts: 27
 
Open an unbound DialogYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Mike LaSpina
Posts: 116
 
Re: Open an unbound DialogYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
}



[Reply][Quote]
Joern Engmann
Posts: 27
 
Re: Open an unbound DialogYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Feb 10 1:49 AM
Thanks a lot.
That solves my problem.

Jörn
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/30/2025 10:41:57 PM