lookupTextbox

mohasinmohasin Member Posts: 16
Hi,
I want to add textbox which provide LOV/drill down/dropdown of values,values that are comming from column of paticular table from databse .

please reply me ,its urgent

Comments

  • udayrmerudayrmer Member Posts: 171
    surely you can do it

    write below code on Onlookup, OnDrilldown of the textbox,

    Rec.SETRANGE(x,1)
    Rec.SETRANGE(y,2)//apply appropriate filters you need

    IF FORM.RUNMODAL(0,Rec) = ACTION::LookupOK THEN
    Var := Rec.z

    x,y,z are some field of that record.

    set properties of the textbox, Lookup = yes, drilldown = yes
    Uday Mer | MS Dynamics NAV Techno-Functional Consultant
  • mohasinmohasin Member Posts: 16
    udayrmer wrote:
    surely you can do it

    write below code on Onlookup, OnDrilldown of the textbox,

    Rec.SETRANGE(x,1)
    Rec.SETRANGE(y,2)//apply appropriate filters you need

    IF FORM.RUNMODAL(0,Rec) = ACTION::LookupOK THEN
    Var := Rec.z

    x,y,z are some field of that record.

    set properties of the textbox, Lookup = yes, drilldown = yes


    where i will get Onlookup, OnDrilldown
    what the var here
    please give me clean example with complete explanation
    i am unable to understand above example
  • udayrmerudayrmer Member Posts: 171
    On textbox, Press F9 you will get OnLookup, OnDrilldown,

    Var is source expression of that textbox
    Uday Mer | MS Dynamics NAV Techno-Functional Consultant
Sign In or Register to comment.