Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Listpart doesn't refresh on clicking Company name on role center page

(0) ShareShare
ReportReport
Posted on by 305

Hi

I have a listpart control on my role center page. In its OnOpenPage trigger, I have written the logic for populating data into the list (into its source table) dynamically which includes filter for the user logged in. The issue I am facing is that when I refresh my browser, trigger works but when I click on Company name, the filter or the trigger doesn't work somehow. The latest data refreshed by another remote user is displayed, which totally violates the filter logic.

Basically the filtering is done for the Job Table > "Project Manager" field using an if statement as below:

   if (JobTable."Project Manager" = UserIdthen begin
      <Data logic>
   end;
Please suggest what could be wrong.
Thanks
Khudeja
  • Suggested answer
    Olister Rumao Profile Picture
    3,959 on at
    RE: Listpart doesn't refresh on clicking Company name on role center page

    Hi Khudeja,

    If you do find a trigger for when the company ne is triggered,

    You can probably force session to restart

    community.dynamics.com/.../993502

    If this doesn't help then you can add an Action on the list part page and on action recompute your data.

    Simply to say whatever is your data in list part, put it inside a global function on the Rolecenter Page and trigger function on the action.

    Another way would be call the subpage function through the trigger on the current page. CurrPage.ListPartPageName.RefreshFunction()

    Refer

    www.1clickfactory.com/.../

  • Suggested answer
    Suresh Kulla Profile Picture
    47,787 on at
    RE: Listpart doesn't refresh on clicking Company name on role center page

    Are you trying to change the company or just click the company name in the browser? I don't think that will trigger any action if you just click the company name, you need to refresh the page.

    If possible attach the screenshot

  • khudeja Profile Picture
    305 on at
    RE: Listpart doesn't refresh on clicking Company name on role center page

    Hi Olister,

    Thank you for responding.

    However could you please explain about this. I did not get where to create the action on: the listpart page or the role center page?

    And what code to write in the action?

    Regards

    Khudeja

  • Suggested answer
    Olister Rumao Profile Picture
    3,959 on at
    RE: Listpart doesn't refresh on clicking Company name on role center page

    I have observed this issue.

    I simply created an action ListPart page which will refresh all the calculations on the Dashboard using CurrPage.Update();

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 Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
YUN ZHU Profile Picture

YUN ZHU 594 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 463

#3
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 391

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans