CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 [RESOLVED] Dynamic Grid

Print topic Send  topic

Author Message
buzz


Posts: 11
Posted: 07/30/2009, 1:41 PM

I am currently have the following problem.

I have a table called contact_list that holds the following fields:
ID
First_Name
Last_Name
Email
List:One
List:Two

The user can add a field that would result in a new column, in theroy they could add a number of colums. What I need to do is have a grid that finds the List:xxx columns and then links to an editable grid that will allow for a checkbox for the user to indicate if this is to be used in this list. I just need to find out how to have the datasource of the checkbox to change depending on the list the user picks.

I have tried an SQL statement that uses the following:
select *, `{listname}` as lname from contact

This shows in the Query Builder as working but for some reason I cannot get the
grid to allow the checkbox on there to show is a person has been checked.

Please help

Vince
View profile  Send private message
buzz


Posts: 11
Posted: 07/30/2009, 2:00 PM

Fixed it....

All I had to do was the following

add a Parameter to the Custom Update called listname and get the url value for this and then enter this "SQL UPDATE contact SET `{listname}`='{CheckBox1}' WHERE ID = {ID}"
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.