Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 1, 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: Key not in dictionary
Joern Engmann
Posts: 27
 
Key not in dictionaryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Mar 10 4:49 AM
Hi,

I've a custom smart part and a button on it. When I click the Button I'want to open a dialog via DialogService. The dialog is a custom smart part too. both views are added in the portal as custom smart part.
When I run it (click on the button). I get the following message (translated from german):

The used key wasn't found in dictionary.

What does this message mean? What I've to do to solve the problem?

Joern
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Key not in dictionaryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Mar 10 9:37 AM
HI Joern,

Without the code of either it is very difficult.

You will get this error message if you try to access a dialogparameter by name/ordinal that is not being passed to the dialog service from the calling page. But could also be a few other things....basically whenever you try to access a property or item in a collection that is not there.

The code for both or at least one of your smartparts will be essential to post here...

Thanks,
Nick
[Reply][Quote]
Joern Engmann
Posts: 27
 
Re: Key not in dictionaryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Mar 10 10:08 AM
Sorry for my waste of your time.
I've found the problem using the debugger ;o). It was an undefined Dialogservice parameter.

thanks

Joern
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Key not in dictionaryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Mar 10 5:11 AM
No problem

Just in case it helps anyone else...

When checking for the existence of a DialogParameter do not use if(DialogService.DialogParameters["PARAMNAME"] != null) etc. - this will still blow up at runtime if PARAMNAME does not exist. Instead use the ContainsKey method:

if(DialogService.DialogParameters.ContainsKey("PARAMNAME"))
{
//Work with key...
}

Thanks,

Nick
[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): 7/1/2025 12:48:18 AM