Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Commerce forum / How to wait the initia...
Commerce forum
Answered

How to wait the initialization until the retail server return response

Posted on by 392

Hi All,

Hope all are doing well.

I am trying to fetch records from oracle data base, for this i have written a custom CRT and retail server. Inside this CRT, I am executing a web API.

I am able to fetch and show data in the front end but it initialize the whole page first and after 5 secs it is showing the value.

Is there any way to wait initialization until the value get from retail server?

  • Verified answer
    Oksana Kovaliova Profile Picture
    Oksana Kovaliova 3,586 on at
    RE: How to wait the initialization until the retail server return response

    Hi,

    You need to implement 'isBusy' indicator, while data is loading - then it will be clear for user, that something is loaded.

    Or are you trying to postpone POS from showing 'Customer details' page at all, while data is not loaded?

  • Pankaj_93 Profile Picture
    Pankaj_93 392 on at
    RE: How to wait the initialization until the retail server return response

    No, It is not showing the time out issue... When I go back and come again it is showing the correct value sometimes but not every time. By debugging in typescript, I found that it was getting response asynchronously. I have written a code if response.data.result is not equal 0 then set it's actual value else set as 0. Debugging is done in Dev server.

  • Xusheng Profile Picture
    Xusheng on at
    RE: How to wait the initialization until the retail server return response

    Have you get the time out issue on the UAT ENV? Have you rebuild the index for these tables which RTS call will used? How long it need to run the SQL query at DB directly?

  • Pankaj_93 Profile Picture
    Pankaj_93 392 on at
    RE: How to wait the initialization until the retail server return response

    I believe, it is taking almost 4-5 secs. Basically we are calling a web API, which is filtering data from the Oracle Data base. After deployment in the UAT, it is not working as expected. It is taking more than 5 mins or some times it is not showing the data also.

  • Xusheng Profile Picture
    Xusheng on at
    RE: How to wait the initialization until the retail server return response

    How long it is need to call the RTS? By my understand, it need a few seconds to call RTS to get the customer available limit amount.

  • Pankaj_93 Profile Picture
    Pankaj_93 392 on at
    RE: How to wait the initialization until the retail server return response

    Hi Steven,

    Yes, This is not RTS. I have extended the RTS in the POS. I am using CustomerDetails Page. I am trying to show the "Available credit limit balance" for the customer.

  • Xusheng Profile Picture
    Xusheng on at
    RE: How to wait the initialization until the retail server return response

    This is not for RTS, right? Which page you used?

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,914 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,549 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans