Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Solution to raise the amount of products( quotedetails or quoteproducts) in Quote entity via modal

(0) ShareShare
ReportReport
Posted on by 450

I want to add a button in the ribbon of Quote,
When The user click on that, A modal display, with two fields.
One is quote product categories that exist in that quote, that means it searches in the quote product of quote and find all the categories exists in that specific quote and then display them in  a combo box.
Another field is a textbox, which is percentage.
Something like over.JPG
The end-user clicks on the ribbon button, the modal appears, he/she gives a number to the percentage and select one of the categories; when presses apply button, it find and return all  amounts of the quote products in that quote that matches the user selected category, compute some amount based on quote total amount and the returned amounts and  and insert that computed number into a field in each quote product named overed_amount.
How can I handle this? JS or Plugin?
I prefer to this via JS rather than writing plugin, But can I pass parameters between this HTML or JS file to CRM Form/Forms?
And does anybody have any sample? like this? any suggestion?
I googled and most of Plugin are about writing simple plugin based on existing code.
Can I display modal via plugin?

*This post is locked for comments

  • Albert_ Profile Picture
    Albert_ 450 on at
    RE: Solution to raise the amount of products( quotedetails or quoteproducts) in Quote entity via modal

    Do you have any sample of this work?

    Creating HTML is simple, As you said the most important part is to query the quote details and quote information from that that custom web resource, and modify them ( some compute ) and again insert them into their fields.

    In my opinion, I want to write  a js file with in the form web resource, and then call that function with my own parameters(the percentage and category )from the custom web resource,Is it possible? or the way you said, query and modify fields value from custom html?

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Solution to raise the amount of products( quotedetails or quoteproducts) in Quote entity via modal

    Opening a pop is a client side thing so plugin will not help here. You need to use javascript. However, it is not that simple with JS either, you need to create html web resource to accept the values, display the categories, and then use JS/ WEB API to retrieved the required details based on the inputs and display it in a HTML table or something.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans