CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 add fields dynamicaly

Print topic Send  topic

Author Message
Si Cranmer
Posted: 09/13/2003, 11:52 AM

Sorry but I cannot work out how to add fields dynamicaly.

What am I trying to achieve? I have a company form and if a new company rec is being created extra login & pwd fields need entering which then get written to 2 seperate files.

In CC you can just use the beforeShow fields and add extra fields but then in CC2 the class functions table->field->GetValue() etc will fail.

cheers

Simon
Si Cranmer
Posted: 09/14/2003, 11:37 PM

woo hoo dont you just love it when you solve it yourself...

FYI,

1 add a label
2 in BeforeShow event, on the condition you need (ie were in Insert mode) change the label to accept HTML and SetValue the label with HTML code for new fields.
3 in OnValidate/Insert etc events, GetValue method would always fail. You have to use GetParam to view the data from dynamicly created fields.

HTH

Si.

   


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

Web Database

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.