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.
|
|
|
|