Setting the focus on a particular SalesId

rashi.kaushikrashi.kaushik Member Posts: 52
edited 2006-03-27 in Dynamics AX
Hi All

I am customizing the SalesOrder form.

I have a button and a variable of the type SalesId which has been initialized with a particular value of SalesId.

Now wat i want is when i click that button the record with that SalesId gets highlighted i.e. the focus should be set on that SalesOrder


Any ideas??

Thanks in advance
Rashi

Comments

  • kgauravkgaurav Member Posts: 32
    Hi Rashi,

    You can use use dataSourceName_ds.findRecord(Record), it will put the focus on the spoecific record.

    Bye

    Kumar
  • rashi.kaushikrashi.kaushik Member Posts: 52
    Hi Kumar


    Thanks but i have already tried this and its working with this.
    Everytime i click the button the focus is on the last record.

    Thanks
    Rashi
  • kgauravkgaurav Member Posts: 32
    Hi Rashi,

    Please ensure that after you call this function the excute query is not getting called.
    Or may be some other system calls which are transfering the focus to the last record.

    bye

    Kumar
Sign In or Register to comment.