Database-Driven Selection Properties

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
alexamores
Profound User
Posts: 20
Joined: Thu Dec 15, 2011 3:05 pm
First Name: alex
Last Name: amores
Company Name: summit consulting
City: lakeland
State / Province: Florida
Zip / Postal Code: 33802-0988
Country: United States
Contact:

Database-Driven Selection Properties

Post by alexamores »

Our version is 4.6.4 and I don't know if we have the security enhanced mode. How do I know if we have it?

But here is my question. Why can't I see the "choices parameter value" property?

Thank you,
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: Database-Driven Selection Properties

Post by Alex »

When you select a widget with choices, such as a dropdown, and the enhanced security mode is turned on, you should see the "choices parameter value" property there. If the enhanced security mode is not turned on, you will not see this property.

That would be one way to tell if enhanced security mode is turned on. The other way would be to check in your HTTP configuration file.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Database-Driven Selection Properties

Post by David »

The enhanced security mode is the default starting with version 4.5.0. In the version you are using, you have to explicitly turn it off by adding an environment variable to your HTTP configuration file. As documented here:

http://www.profoundlogic.com/docs/displ ... urity+Mode
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Database-Driven Selection Properties

Post by David »

Not that I would recommend to turn it off -- what I meant to say, really, was that the environment variable mentioned in the document is the only way to turn it off in the version you are using. So if that's not in there, then you are using the recommended enhanced mode.
alexamores
Profound User
Posts: 20
Joined: Thu Dec 15, 2011 3:05 pm
First Name: alex
Last Name: amores
Company Name: summit consulting
City: lakeland
State / Province: Florida
Zip / Postal Code: 33802-0988
Country: United States
Contact:

Re: Database-Driven Selection Properties

Post by alexamores »

I did see on the configuration file that the enhanced security mode is disabled. So even though we have the latest version, we can still use script on "choices selection criteria" property to get a dynamic selection drop down values? Example:

script: "DIVCOMPANY = " + get("company");

where:

DIVCOMPANY = field name in the database file
get = js command
company = widget id name where the selected record will be based on.

Assumption:

The first selection widget will contain the company number and the name is "company".
The second selection widget will contain selection of division name within that company number only.

What is else is missing on this set-up in order to make it to work?

Thank you,
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: Database-Driven Selection Properties

Post by Alex »

Is the company widget rendered before the division selection widget? In the Elements tab, the company widget should be listed before the division widget. Otherwise, the get() API might not find the company because it hasn't rendered yet.
alexamores
Profound User
Posts: 20
Joined: Thu Dec 15, 2011 3:05 pm
First Name: alex
Last Name: amores
Company Name: summit consulting
City: lakeland
State / Province: Florida
Zip / Postal Code: 33802-0988
Country: United States
Contact:

Re: Database-Driven Selection Properties

Post by alexamores »

Hi Alex,

Yes it is on the correct order. I added an event to 'applyProperty' onchange on the company widget. I saw this on the forum. But still I can't make it work.
Both of them are textbox widget. But when I forced a value on the division widget's "choices selection criteria" js, it return values. This tells me that either the get command is not getting the correct value or there is an sql error.

Thank you.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests