Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Can someone guide me how can I do a pop up menu before call a standard class?

(0) ShareShare
ReportReport
Posted on by 253
Dear All,
 
I would like to request your guidelines for me. I would like to do a pop-up menu before calling a standard class on [Form: SalesTable] but I have 2 obstacles.
1. how do I call a standard function in my class?
2. how do I refer an id for my SQL to query a number of my tax types?
 
this is a step that I do:
1. I prepare sample data that I like to test
(Before pressing confirm sales order I want popup windows to tell users /please keep in mind that this sale Order had x type of Tax Invoice/)
 
2.I trackback and I found /Confirm sales order/ is a Button menu and for this menu call action menu /SalesFormLetter_Confirmation/
 
3. I extend class /SalesFormLetter_Confirmation/ and change object to call to /MOT_SalesOrderTaxAlert/
 
4. I dev my code for /MOT_SalesOrderTaxAlert/ and I try to call standard class /SalesFormLetter/ to process in a next step but I got an error message it is a /abstract/
 
5.Now output when I build/run it can show only this message but for the core objective I can't do please help.
 
Best regards,
Thanakorn.
 
  • Chomchanok Profile Picture
    Chomchanok 253 on at
    Can someone guide me how can I do a pop up menu before call a standard class?
    Dear Martin,
     
    Thank you for your comment,For step that I "extended the menu item." because this is a standard program if I'm not extended I can't edit anything. 
    For my wording 3. I extend class /SalesFormLetter_Confirmation/ and change object to call to /MOT_SalesOrderTaxAlert/ <- I type wrong I extend a "Action Menu".
     
    Anyway My requirement I want to do popup before process in a next step. that's all.
     
    For your explanation, My apology that with limitation of my knowledge I don't understand. 
    Do you have a link who have a same case with me and Can share?
     
    Best regard,
    Thanakorn
  • Martin Dráb Profile Picture
    Martin Dráb 231,321 Most Valuable Professional on at
    Can someone guide me how can I do a pop up menu before call a standard class?
    You said you extended the class, but your screenshot shows that you actually extended the menu item. Do you realize that the menu item is used at other places, such us from the main menu, where it isn't called for any particular sales order? Your dialog mentioning "this sales order" doesn't make sense there, therefore I consider your design wrong. I think you should either put the logic just to the individual form, or use logic that checks whether it's called for a single record.
     
    Unfortunately you didn't show us the piece of code where the error comes from, but it seems that you're doing something else than the standard menu item. The Object property of SalesFormLetter_Confirmation menu items is set to SalesFormLetter, which means that it calls main() method of SalesFormLetter class (SalesFormLetter::main()). You just need to pass _args there.
     
     

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

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,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans