Embedded parameters in URL Path not populating

I am using dataslots to dynamically update the URL for our HTTP API request.
The “URL Path” in the Web Service panel is defined as this:
dashboard?prov_id=$slot('ds_prov_id')&user_id=$slot('ds_user_id')
This works perfectly in ReactStudio and I see a dozen rows of data updating nicely in the the DataSheet panel.
But when I export to a web browser (“Open in Web Browser”) the data is not populating.
When I dig through Developer Tools in Chrome in the Network panel, I see that the URL is:
dashboard?prov_id=$slot(%27ds_prov_id%27)&user_id=$slot(%27ds_user_id%27)
and that the Query String is:


Which suggests that the embedded parameters are not being populated properly.
Here is the panel in the Datasheet window in React Studio:
Untitled%203
Its worth noting that I tried to put the Query parameters in the Query box (as shown below) but now I get an “Error Loading data from API” error:
Untitled%204
So, how should this be done?
Thanks.

Hi,

It should be working just like you’ve set in the URL path. Maybe the refresh function is not called in some cases…

Are you setting the Data slot values from the App’s UI (e.g. with a button click)? I can see this kind of behaviour when there is no value set for Data slots (or if using data slot’s default value).

Yes, I’m using some static dataslots while I am still testing. These will eventually be connected to the login-gate which will populate these values. That would explain why it works in RS but not in Chrome. Thanks.

The problem really was that data slots were not “injected” properly to URL path on app initialize. This is now fixed on our QA-version. Update will be out soon.

1 Like