Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

Show "operation in progress" screen on POS by code

Posted on by 32

Hello community,

I'm trying to implement a customization on D365 Commerce in order to integrate carts with a 3-rd party provider.

At the moment I managed to create a POS operation to deal with the whole flow that performs following steps:

1. Perform some checks (e.g. empty cart)

2. Ask user for order identifier (with a templated dialog)

3. Retrieve order information from 3rd party provider (through CRT)

4. Load products into cart

5. Move to cart view

And everything is currently working quite good.

My concern now is user interaction: while performing step 1 checks, the POS layout is displaying an "Operation in progress" screen, blocking further user interaction (great!). But during step 3 and 4 (which are actually longer than step 1) the POS layout is "free" and user could accidentally perform other operations.

Is there a way to block the POS layout and show the same "operation in progress" screen by code (something like "show waiting screen before step 3" and "hide waiting screen after step 4")? I've been looking into standard code in PosCore/PosFramework js files, but I'm not able to use them from my ts implementation.

Should I refactor the operation flow, maybe rearranging code in different places? Any suggestion?

  • Martina Profile Picture
    Martina 32 on at
    RE: Show "operation in progress" screen on POS by code

    I cannot use standard code because I don't know how to "call" it from my code (or "if" it is possible)

  • huijij Profile Picture
    huijij 19,811 on at
    RE: Show "operation in progress" screen on POS by code

    Hi Martina,

    You said you cannot use the standard code,did you get any error messages?

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans