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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Problem in Cue Stack

(0) ShareShare
ReportReport
Posted on by 2,390

I am writing a code to assign records count of a table to a Variable.I assigned that variable to the source expression of a cue Page.But cue stack is not increasing or decreasing with the value of Variable. Cue stack working fine with flow field but how to use it with a Variable.

*This post is locked for comments

I have the same question (0)
  • Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    why do you want to do it with variable?

    Where did you write code?

  • NavTech Profile Picture
    2,390 on at

    I am to count the records by making a relation from some other table and putting some conditions that is possible only through writing code . I am writing code on Onaftergetrecord Trigger of page .Code is running fine as record counts are comming correct.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,247 Super User 2025 Season 2 on at

    Does the count is not refreshing or it is always zero?

  • NavTech Profile Picture
    2,390 on at

    Count is refreshing fine.

  • Verified answer
    Suresh Kulla Profile Picture
    50,247 Super User 2025 Season 2 on at

    I just tested this scenario on Order Processor Role Center by adding an variable as expression for SO Process activities page, i used Open Orders as an example. My count is displaying properly.  I added my call in three different triggers of SO Processor activities pages

    OnOpenPage, OnAfterGetRecord and OnAfterGetCurrRecord and my call is like this

    Openorders := GetOpenOrdersCount; where OpenOrders is an variable and GetOpenOrders is function to return the value.

    Did you add your call in all the above three functions?

  • mmv Profile Picture
    11,471 on at

    Hi,

    Does the above solution work for you?

    Best Regards,

    MMV

  • NavTech Profile Picture
    2,390 on at

    I had added count variable on OnAfterGetRecord only and value was coming correct so i didnt need to add on OnOpenPage and OnAfterGetCurrRecord .But after adding same code on OnOpenPage and OnAfterGetCurrRecord Cue Stack list updating properly. Thanks for help.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans