Hello,
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.
Regards,
Nice Johny
Hi Johny,
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).
Hello Saadulla,
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.
hi Kranthi,
I wrote this code in button click method
customerRec.Request=BaseEnumRequest::Close;
it is not showing any error, bt not changing the values.
Regards,
Nice Johny
U have to write the code in Button click method
Hi Johny,
Add one more line in Button Clicked Method
TableName_ds.research(true);
Hope it will work
Kranthi,
Yes it is working.
Thanks for your valuable Help.
Regards
Nice Johny
Hello,
What i have to do for setting this enum value as open while opening the form.?
Regards,
Nice Johny
kranthi
October 15, 2012, 8:28am
11
Why do you want to do this? you want to update all the record values?
Hi Johhny
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()
{
BaseEnumRequest enum;
;
super();
enum = ComboBoxName.selection(1);
}
////////////////
Hope it will work
Kranthi,
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’.
Regards
Nice Johny
kranthi
October 15, 2012, 9:10am
14
override the init method of the formDataSource and assing the value.
hi Kranthi,
Could you please elaborate how to assign value…
Regards,
NiceJohny
Hi Johhny,
Can u show me the output of 1st form and 2nd form and mention in 2nd form where u want to show the Enum…