You can do this in two ways.
(1) Change the AutoDeclaration property of the stringEdit control to yes then set the value of the control as follows:
komp1.text('It Works');
(2)Delcare a variable to point to the control in the ClassDeclaration section as follows:
FormStrinControl My_komp1;
Override the init method of the form and after the call to the function super() type in the following code:
My_komp1 = element.design().control(control::komp1);
this will allow you to set the value of the text in the control by setting the value of the text of the variable My_komp1 as follows:
My_komp1.text('It works');
Varden Morris
J. Wray & Nephew Ltd. - Group I.S.
Phone: (876) - 923 - 6141 Ext. 2400, 2412
Fax: (876) - 923 - 5372
Cell: (876) - 3833566
Email: [EMAIL PROTECTED]
affekatz <[EMAIL PROTECTED]> wrote:
I need to assign a value to a StringEdit in a method under the form.
The name of the StringEdit is "StringEdit:Komp1" but i dosn't work to
do this StringEdit:komp1 = a; in a method "under" the StringEdit
Thanks in adv.
Sharing the knowledge on Axapta.
Do you Yahoo!?
Meet the all-new My Yahoo! – Try it today!
Sharing the knowledge on Axapta.
Yahoo! Groups Sponsor |
Get unlimited calls to U.S./Canada |
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.