Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Automatically change gridline to next one

(0) ShareShare
ReportReport
Posted on by 50

I am working on Sales order picking list. I create customize form for barcode scanning.

 6683.q1.jpg

Screenshot shows my customized form for barcode scanning on picking list level.

My question is that how can I automatically change the gridline when barcode scan.

I use temp table for populate the data in form after the scanning user submit grid data into regular table.

So what's the best practice I use to change line to next one automatically after barcode scan.

Thanks in advance.

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Automatically change gridline to next one

    If you are on the last record and try to move on to the next record, it will open a new line.

    In Debug, examine the structure and pay attention to the position you are in. The record you want to select and the positions of the record you are on may not be resolved with pos + 1.

  • ovais rabbani Profile Picture
    50 on at
    RE: Automatically change gridline to next one

    I use that code on textchange method of grid column but its create new row on grid. But I want to change line on existing populated data. picture attach on my question.

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Automatically change gridline to next one

    I have never used it this way, but technically, we can change the selected record by providing position information.
    You can say something like, If the barcode is full, switch to next (active, in modifield, or maybe a method like write).
    It is necessary to think about it a little more and try a little bit, but it is technically possible.

    int position;
    ;
    position= MyTable_ds.getPosition();
    MyTable_ds.setPosition(position   1);

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,161 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,942 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans