Options

Disabling manual entry in a lookup field.

prashobkumarprashobkumar Member Posts: 6
edited 2011-02-04 in Dynamics AX
Hello,

I have a lookup field in a grid.I want to disable the field such that user cannot manually enter anything.all the values can be selected only thorough the lookup.

How can i achieve this?

Thanks

Comments

  • Options
    vijay_gvijay_g Member Posts: 884
    make this field uneditable and do with onlookup and validate value from onlookup trigger.
  • Options
    prashobkumarprashobkumar Member Posts: 6
    if you make the string edit field un editable the lookup field will not show up.

    there should be some other way out.
  • Options
    vijay_gvijay_g Member Posts: 884
    what are you doing exactly?
    do this....
    set editable property to false.try it on form..
    onlookup trigger of table
    IF FORM.RUNMODAL(0,Item) = ACTION::LookupOK THEN
       VALIDATE("Item No.",Item."No.");
    
  • Options
    ssinglassingla Member Posts: 2,973
    vijay_g wrote:
    what are you doing exactly?
    do this....
    set editable property to false.try it on form..
    onlookup trigger of table
    IF FORM.RUNMODAL(0,Item) = ACTION::LookupOK THEN
       VALIDATE("Item No.",Item."No.");
    
    Have you realized you are replying in AX forum and not NAV. AX properties and coding is different from NAV.
    CA Sandeep Singla
    http://ssdynamics.co.in
  • Options
    vijay_gvijay_g Member Posts: 884
    really sorry...... :(
    prashobkumar please ignore this.
Sign In or Register to comment.