hi Lennart,
  
  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


Askeryd Thomas <[EMAIL PROTECTED]> wrote:  It might mean that you should not type in a label. That will not make it invisible but rather give a blank option.
You could use a display method to only show tha values you want but store the value in another field where u have the enum. Maybe there is some better way. Check around in options.
Thomas.

________________________________

Från: [email protected] genom daniel lim
Skickat: må 2006-02-13 09:55
Till: [email protected]
Ämne: Re: [development-axapta] making enum element invisible


hi chandra,
  
  what u mean by leave the level blank?
  
  daniel

avnish chandra <[EMAIL PROTECTED]> wrote:
  H!!
leave the level blank...

Regards
Avnish

On 2/11/06, daniellim_yh <[EMAIL PROTECTED]> wrote:
>
>  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
>
>
>
>
>
>
>
>  SPONSORED LINKS
>   Computer part<http://groups.yahoo.com/gads?t=ms&k=Computer+part&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yLpvcLTIDJ5FTkRJGsO11w>  Programming
> languages<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=cuhEClK4dU4wapXFmKisbQ>  Microsoft
> axapta<http://groups.yahoo.com/gads?t=ms&k=Microsoft+axapta&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yfeG_U6QaLfPOZZIud02Fg>   Support
> exchange<http://groups.yahoo.com/gads?t=ms&k=Support+exchange&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=hy8yRGMzrmxdphyITTUeqA>
>  ------------------------------
> YAHOO! GROUPS LINKS
>
>
>    -  Visit your group "development-axapta<http://groups.yahoo.com/group/development-axapta>"
>    on the web.
>
>    -  To unsubscribe from this group, send an email to:
>     [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>
>    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>    Service <http://docs.yahoo.com/info/terms/>.
>
>
>  ------------------------------
>




"Victory goes to the player who makes the next-to- last mistake."


[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.

   
---------------------------------
 



           
---------------------------------

What are the most popular cars? Find out at Yahoo! Autos

[Non-text portions of this message have been removed]







SPONSORED LINKS
Computer part <http://groups.yahoo.com/gads?t=ms&k=Computer+part&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yLpvcLTIDJ5FTkRJGsO11w>        Programming languages <http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=cuhEClK4dU4wapXFmKisbQ>        Microsoft axapta <http://groups.yahoo.com/gads?t=ms&k=Microsoft+axapta&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yfeG_U6QaLfPOZZIud02Fg>       
Support exchange <http://groups.yahoo.com/gads?t=ms&k=Support+exchange&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=hy8yRGMzrmxdphyITTUeqA>       

________________________________

YAHOO! GROUPS LINKS


     
*      Visit your group "development-axapta <http://groups.yahoo.com/group/development-axapta> " on the web.
       
*      To unsubscribe from this group, send an email to:
      [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
       
*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .


________________________________




[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.

   
---------------------------------
 



           
---------------------------------
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




Reply via email to