Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How to customize GP scrolling window of (APPLY SALES DOCUMENT)

(0) ShareShare
ReportReport
Posted on by 323

My Target: What I am trying to achieve is to fill the scrolling window with two customer details. 

but the line fill of scrolling window rejects the additional details and display only default customer detail.

How to tackle the rejection of my hardcoded customer detail?

sample4web.png

Trigger registered.
l_result = Trigger_RegisterFocus(anonymous('Next Button - Window Area' of window RM_Apply_Document of form RM_Cash_Apply), TRIGGER_FOCUS_CHANGE, TRIGGER_AFTER_ORIGINAL, script fillthescroll);

Trigger processing Procedure   (script fillthescroll)

'Customer Number' of table RM_OPEN_TEMP="AARONFIT0001";
'Document Number' of table RM_OPEN_TEMP="STDINV2222";
'RM Document Type-All' of table RM_OPEN_TEMP=1;
'Email Type' of table RM_OPEN_TEMP=0;
'Currency ID' of table RM_OPEN_TEMP="Z-US$";

save table RM_OPEN_TEMP;

*This post is locked for comments

  • Verified answer
    Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: How to customize GP scrolling window of (APPLY SALES DOCUMENT)

    You can only accomplish this by triggering against the Fill script of the scrolling window:

    { Startup Script }

    local integer l_result;

    l_result = Trigger_RegisterFocus(anonymous(window RM_Applied_Document_Scroll of form RM_Cash_Apply), TRIGGER_FOCUS_FILL, TRIGGER_AFTER_ORIGINAL, script FillTheScroll);

    if l_result <> SY_NOERR then

     warning "Focus trigger registration failed";

    end if;

    {FillTheScroll Script}

    'Customer Number' of table YourTable = 'Customer Number' from table RM_OPEN_TEMP of form RM_Cash_Apply;

    get table YourTable;

    'Customer Detail 1' of window RM_Applied_Document_Scroll of form RM_Cash_Apply = 'Customer Detail 1' of table YourTable;

    'Customer Detail 2' of window RM_Applied_Document_Scroll of form RM_Cash_Apply = 'Customer Detail 2' of table YourTable;

    If you want to save changes to the Customer Detail fields you added, then you will need to trigger on the LINE CHG script of the scrolling window.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans