CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Get control value to use in a listbox select clause.

Print topic Send  topic

Author Message
saseow

Posts: 744
Posted: 06/26/2013, 9:02 AM

I have an editable grid and in one column I have a hidden field and in another a listbox.
I want to modify the listbox where clause which depends on the value in the hidden field.
The problem is that in the BeforeBuildSelect of the listbox the hidden field does not contain a value at that stage.

Any bright ideas on how I should get the hidden field value in time to use it in the listbox event?

I have thought of getting all the possible values for the hidden field BeforeSelect of the grid using the same order clause of the grid, putting them into a session var array and then in the listbox BeforeBuildSelect get the first value in the array to use in the where clause and then removing it from the array so that the first value is always the one I need for that row.
This just seems such s shlep and I am hoping there is a better way.
View profile  Send private message
headhunter


Posts: 130
Posted: 07/03/2013, 8:14 PM

Tried to get the values from the datasource?

$Component->ds->f("your_hidden_field");

Regards,

Bart
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.