web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

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

How to keep selected line on datasource using temporary table ?

(2) ShareShare
ReportReport
Posted on by 229
Hi all,

Is there a way to keep selected line on grid if i use a datasource made with temporary table ?

On regular datasources we could use datasource method like ds.research(true) or maybe use positionToRecord.

In my case it's not working, maybe because of selectionChanged method used on the same form grid.

Could someone enlight me please ?

Regards.
Categories:
I have the same question (0)
  • Waed Ayyad Profile Picture
    8,823 Super User 2025 Season 2 on at
    How to keep selected line on datasource using temporary table ?

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified. 

    Thanks,

    Waed Ayyad

  • Waed Ayyad Profile Picture
    8,823 Super User 2025 Season 2 on at
    How to keep selected line on datasource using temporary table ?

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified

    Thanks,

    Waed Ayyad

  • Suggested answer
    Waed Ayyad Profile Picture
    8,823 Super User 2025 Season 2 on at
    How to keep selected line on datasource using temporary table ?
    Hi,
     
    Do you have more than one DataSource on the form?
     
    Try this code:
     
    formDS.reread();
    formDs.rereadreferenceDataSource();
    formDS.research(true);
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

     
     
  • Awaxx Profile Picture
    229 on at
    How to keep selected line on datasource using temporary table ?
    Hi Arnaud,

    Thank you to let me explain deeply my issue.

    Like i said i got a form grid using a datasource made by temporary table.

    There i have to select only a row or multiple rows and use a radio button with many values that i use to update a specific field, when i select a line and click on this radio button to update the field, the selection go up on the first row but i need to keep the last line selected.

    I usually use datasource method research(true) to keep the line i selected but there i tried it but didnt get the result expected like explained just before.

    Should i explain more ?
  • André Arnaud de Calavon Profile Picture
    297,200 Super User 2025 Season 2 on at
    How to keep selected line on datasource using temporary table ?
    Hi Awaxx,
     
    Can you explain your question please? What is going where you need to retain a selected line? Are you refreshing the table with e.g. updated data? What you do mean by "not working"?
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans