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 -> General/Other

 Assigning field names from database?

Print topic Send  topic

Author Message
Don_S

Posts: 50
Posted: 05/31/2005, 1:00 PM

Ok, here is what I need to do. Normally when you set up a new record you have a table with two columns, lefthand column is your field name, righthand column in your textbox or whatever for data input. What I need is to have the lefthand column show data from an other table. Example:
Table A:
Name1
Name2
Name3

Table B:
Input1
Input2
Onput3

Record builder based off Table B:

Field Name Field
Name1 Input1
Name2 Input2
Name3 Input3

I hope that is sort of clear... Anyways when I tried to put labels in the column all I got were blank spaces when viewed.
Anyone have a solution?

Thanks,
Don
View profile  Send private message
Nicole

Posts: 586
Posted: 06/01/2005, 4:43 AM

Don,
As data source for your record form use a table which you want to update. To use data from other table as field names you can put Labels and create Before Show event for a form where look up necessary values from the second table and assign those values to Label controls.
Help article would be useful in completing it
http://docs.codecharge.com/studio/html/index.html?http:...BValue.html?toc
http://docs.codecharge.com/studio/html/ProgrammingTechn...Values.html?toc

_________________
Regards,
Nicole
View profile  Send private message
Don_S

Posts: 50
Posted: 06/01/2005, 8:49 AM

Hi Nicole,
Should I put to the lookup in the Before Show of the page or the form. I tried entering the code below into the Before Show of the page but I am getting a syntax error...
Function Page_BeforeShow() 'Page_BeforeShow @1-653D685B

'Custom Code @77-73254650
' -------------------------
Page.Cust1.Value = CCDLookUp(Cust1,tbl_Custom,Cust_ID= & DBConnection1.ToSQL(CCGetParam(Cust_ID,0),ccsInteger), DBConnection1)
' -------------------------
'End Custom Code

End Function 'Close Page_BeforeShow @1-54C34B28

Where did I go wrong?
Thanks for all your help,
Don
P.S. I see you answering a lot of posts here at the Forum. I don't know what a lot of users would do without your help. It's people like you that make forums like this work so well. Thank you!
View profile  Send private message
Nicole

Posts: 586
Posted: 06/02/2005, 3:08 AM

Don,
Put the code to Before Show event of a form.
Also parameter name in CCGetParam() function should be surrounded with double quotes
CCGetParam("Cust_ID", 0)
http://docs.codecharge.com/studio/html/Components/Funct...tParam.html?toc

_________________
Regards,
Nicole
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.