Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Tuesday, July 1, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
7/1/2025 2:31:35 AM
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Key not in dictionary
Joern Engmann
Posts: 27
Key not in dictionary
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
Re: Key not in dictionary
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 dictionary
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
Re: Key not in dictionary
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
|
page cache (param): 7/1/2025 3:05:17 AM