i use something like this:
in combox:enter:
public void enter()
{
super();
//EnumABC has element A, B,C
this.delete(enum2str(EnumABC::B));
}
in combobox:modified:
public boolean modified()
{
EnumABC _EnumABC;
boolean ret;
ret = super();
_EnumABC = str2enum(_EnumABC, this.getEditText());
info(strfmt('%1',str2enum(_EnumABC,this.getEditText())));
info(strfmt('this is %1',_EnumABC));
return ret;
}
in this example, i remove element B, at clicked method, it return correct value for A and C as well.
any problem with this code?is this recommended? pls advice and thx.
daniel
Vikas Garg <[EMAIL PROTECTED]> wrote: Hi Daniel,
Override "enter method" of the control that is mapped with enum type
object... write code after super method as follows:
this.delete(enum2str(enum::element));
here element is the one that u don't want user to see while selection of
enum type...
I hope this will solve your problem..
Regards
Vikas Garg
(Technical Consultant)
EuroInfo Systems Pvt. Ltd.
Sector 2, Noida.
Direct No - +91-9911213322
Office No - +91-120-2520414 ext. 213
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of daniellim_yh
Sent: Saturday, February 11, 2006 6:29 AM
To: [email protected]
Subject: [development-axapta] making enum element invisible
hi all,
how we can make enum element invisible?for example for usage in form?
if i have an enum of element A,B and C, but in form i only would like
to display A and B for user selection, can i make C invisible inside
the form?
thx in advance.
daniel
Yahoo! Groups Links
SPONSORED LINKS
Computer part Programming languages Microsoft axapta Support exchange
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "development-axapta" 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! Mail
Use Photomail to share photos without annoying attachments.
[Non-text portions of this message have been removed]
SPONSORED LINKS
| Computer part | Programming languages | Microsoft axapta |
| Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" 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.

