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,
Database-Driven Selection Properties
-
- 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:
- 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
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.
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.
- 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
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
http://www.profoundlogic.com/docs/displ ... urity+Mode
- 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
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.
-
- 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
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,
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,
- 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
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.
-
- 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
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.
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.
Who is online
Users browsing this forum: Ahrefs [Bot] and 11 guests