you're using many controllers on your form. Better to declare each
controller in class declaration, and assign it in init.
Ex:
FormButtonControl buttonTest;
buttonTest = element.control(control::NameOfControl);
Regards,
Morten Aasheim
Peritus AS
-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of
Mallikarjun Gudidevuni
Sent: 15. mai 2006 12:20
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: Re: [Axapta-Knowledge-Village] Please answer me...
hi,
For any control, if u want to use in X++, u need to set the
AutoDeclaration property to "yes".
1. say the textfields are txt1 and txt2 and the button is button1
the code is like this
if(txt1.text() && txt2.text())
button1.enable(true);
else
button1.enable(false);
Dipankar Paul <[EMAIL PROTECTED]> wrote:
Hi all,
I need your help for these queries,i have a table
and a form with some control button in it.Now i want to access these
button using X++ code..
Eg,
1) Suppose there are two text fields and a button.If i enter some text
in the those fields then only the button should get activated.
2) Suppose, there are two tabs(Not two tab pages) in the single form
i.e Login form for student & administrator ,when the student text area
is selected the administrator text area should be deactiveted & vise
versa.
Student Admin
Name:: Name::
Reg No:: Password::
| ok | | ok |
Please,help me out how to define and declare a class and access the
controls on the form .As i am very new to this field,your reply with
some sample code will highly be appreciated.
Thank & Regards
Dipankar,
Bangalore,India
+919886267931.
[Non-text portions of this message have been removed]
Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.
SPONSORED LINKS
Business finance course Business to business finance Small
business finance Business finance consultant Business finance
magazine Business finance schools
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "Axapta-Knowledge-Village" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low
rates.
[Non-text portions of this message have been removed]
Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.
Yahoo! Groups Links
Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.
SPONSORED LINKS
Business finance course | Business to business finance | Small business finance |
Business finance consultant | Business finance magazine | Business finance schools |
YAHOO! GROUPS LINKS
- Visit your group "Axapta-Knowledge-Village" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.