I have created a form for Customer table. It has one enum field of values(none,open,close).
By default it has to come open and clicking on a button,the enum value has to change to close.
What code i have to write.
If anybody knows the solution, please help me to do this.
Pls elaborate your Question…
I’m not understanding this "By default it has to come open and clicking on a button,the enum value has to change to close."
custTable.FieldName = EnumName::Close in the button click method ( hoping that you have a field in the custTable).
What i am looking for is that, while loading the form the enum value has to come as ‘open’. Then on clicking a button in that form it has to change to ‘Close’.
What is the code i have to write.
I wrote this code in button click method
it is not showing any error, bt not changing the values.
U have to write the code in Button click method
Add one more line in Button Clicked Method
Hope it will work
Yes it is working.
Thanks for your valuable Help.
What i have to do for setting this enum value as open while opening the form.?
Why do you want to do this? you want to update all the record values?
Wrtie the code in Form Init Override method
For example if you have added one ComboBox Elemet for particular EumType. Make AutoDeclearation Yes.
Then Wrrite the following Code in Form init Override Method
public void init()
enum = ComboBoxName.selection(1);
Hope it will work
I"ll explain. My requirement is that in a form i have to list all customers, selecting a customer will have to show details of that particular customer in another form .in the second form by default the enum value has to come as ‘open’. and if we click a button in this form has to change the enum value as ‘close’.
override the init method of the formDataSource and assing the value.
Could you please elaborate how to assign value…
Can u show me the output of 1st form and 2nd form and mention in 2nd form where u want to show the Enum…