Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Based on my original post about iterating through a list; how can I see what is being used in a tRest component?
Original Post: https://community.qlik.com/t5/Design-and-Development/How-do-I-iterate-through-a-list/m-p/2509973
I can pass "url" to the tRest component and save 3 files each based on the "genre" from the loop.
genre = ((String)globalMap.get("genre"))
url = ((String)globalMap.get("url"))
But I am getting an error saying the url not valid. The url that I am trying to pass in is valid and verified. In the URL column in the tRest object, here are 2 values that both fail; the 2nd makes the most sense to me.
1) "https://api.nytimes.com/svc/books/v3/lists/current/" + ((String)globalMap.get("genre")) + ".json?api-key=<--secret access key-->"
2) ((String)globalMap.get("url"))
How can I see what is being passed into and out of the tRest object? I feel that, at this point, I need to troubleshoot the url that is being rendered.
For debugging, you can use a tJava instead of tRest to print the value of the two string that contains context variable, and see if it outputs the expected URL.
For debugging, you can use a tJava instead of tRest to print the value of the two string that contains context variable, and see if it outputs the expected URL.
Thanks, I wound up using a tMsgBox.