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 GP (Archived)

Dexterity Calculated Field In Scrolling Window

(0) ShareShare
ReportReport
Posted on by

 I'm trying to create a window using Dexterity to more conveniently pull together garnishment data.  I created a simple window with a scrolling window to pull all garnishments for a given employee.  It works great however the table that shows garnishment data only keeps the original amount and the amount paid not the remaining balance. I'm trying to create a field in the scrolling window that will calculate remaining balance.  I wrote the script to fill the window and it compiles, but the remaining balance field won't calculate.  Currently I have tried putting the script in both the Pre and Post window script section with no luck.  Any thoughts? Is this even possible?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Tim W Profile Picture
    2,925 on at

    You have to put it in the fill script of the scrolling window and though you are setting the value of a field in the scrolling window you need to use the table values as the source for the calculation.

    ** Scrolling window fill script**

    set 'Remaining Balance' of window <your scrolling window> of form <your form holding the window> to 'Original Amount Field' of table <your table> - 'Amount Paid Field' of table <your table>;

  • Community Member Profile Picture
    on at

    Thank you very much.  I was missing the set part.  It worked with that.

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    Hi

    Tim is correct.

    You can use the set x to y syntax or x = y syntax. It does not make a difference.

    The issue is that the Fill script runs before the window fields are populated so you must work with the table fields.

    David

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 GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans