Hello everyone,
I have an API with me which is extracting the PDF file which we are giving to it and in return, it is generating a response in the JSON format which contains an entire information regarding a screen which has to be constructed by using that response.
Now, how can I use that JSON output to build a screen from it?
hello
Here is a URL related to your query. It seems to provide the correct answer. I hope this helps.
https://www.outsystems.com/forums/discussion/43382/json-reponse-in-a-table-in-ui/
Regards
Nikhil kumar vijay
Hi ashtastic22 ,
Consume the API and use can use the output structure of the API at your screen level.
and also could you pls share the response of the API in Json format?
Thanks
Hi ashtastic22,
What you are asking is not possible. OutSystems screens can only be designed manually, and only design-time. It is not possible to create screens on the fly, nor does Service Studio allow some input to create screens (which makes sense, there is no standardized JSON screen format describer).
Hi @ashtastic22,
As far as I know you can use OCR to extract character from a document If Yes then You can take prebuild json format maximum time it will give you values in form of list with KEY and VALUE pair which you can directly show in a list, apart lists there may be a complex structure that you need to bind in expression on your screen,
May be you are using any dot net library to read file content which then you need to return its data in form of KEY and VALUES,
for example
[o]=>"yourName"
[1]=>"otherDetail"
or [Name]=>"YourName"
[Age]=>23
so in above example you will have maximum keys in the list so you can create a JSON for your Response (List of KEY value attributes).
above are the Possible solutions to show data on Screen dynamicaly extracted from a document.
Thanks,Sanjay kushwah