Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Record is not rejected by reject record .

Posted on by 323

Hi Experts.
I was trying to reject the record if customer number is not AARONFIT0001,but the scrolling window still populates with all customer number.

Can someone point out what i have done wrong?

Startup script

l_result = Trigger_RegisterFocus(window Customer_Lookup_Scroll of form Customer_Lookup,  TRIGGER_FOCUS_FILL, TRIGGER_AFTER_ORIGINAL, script FILTER_Data_set);
if l_result <> SY_NOERR then
warning "Focus trigger registration failed.";
end if;

Trigger processing Procedure

{FILTER_Data_set}

if 'Customer Number' of table RM_Customer_MSTR <> "AARONFIT0001" then
reject record;
end if;

*This post is locked for comments

  • HasibRahman Profile Picture
    HasibRahman 323 on at
    RE: Record is not rejected by reject record .

    Thanks Manjunath, the reference you provided was helpful.

  • Verified answer
    Manjunath Vemula Profile Picture
    Manjunath Vemula 1,195 on at
    RE: Record is not rejected by reject record .

    I don't think you can filter the data in Customer lookup screen this way. You can try this way suggested by David in the link below:

    blogs.msdn.microsoft.com/.../dex-filtering-a-third-party-lookup

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans