Hi
I'm trying to feed a DOM instance to a form in Low-Code apps using the URL feed as described here: https://docs.dataminer.services/user-guide/Advanced_Modules/Dashboards_and_Low_Code_Apps/Low_Code_Apps/Specifying_data_input_in_URL.html
My unencoded JSON input is:
{"version":1,"components":[{"cid":1,"select":{"object manager instances":["334ea9a5-e3d2-4c60-82d9-373fcb9b70ae"]}]}}
Edit: Also tried the following which was not working either
{"version":1,"feed":[{"object manager instances":["334ea9a5-e3d2-4c60-82d9-373fcb9b70ae"]}]}
I've used (https://onlinejsontools.com/url-encode-json) to encode this to:
%7B%22version%22%3A1%2C%22components%22%3A%5B%7B%22cid%22%3A1%2C%22select%22%3A%7B%22object%20manager%20instances%22%3A%5B%22334ea9a5-e3d2-4c60-82d9-373fcb9b70ae%22%5D%7D%5D%7D%7D
And used this together with my DMS URL, application ID (4191d1ff-2c63-4d38-85b6-e0510a64e486) and page name (URL%20feed) to create this link:
https://slc-h67-g02.skyline.local/app/4191d1ff-2c63-4d38-85b6-e0510a64e486/URL%20feed?data=%7B%22version%22%3A1%2C%22components%22%3A%5B%7B%22cid%22%3A1%2C%22select%22%3A%7B%22object%20manager%20instances%22%3A%5B%22334ea9a5-e3d2-4c60-82d9-373fcb9b70ae%22%5D%7D%5D%7D%7D
However, the form is not showing any DOM instance when navigating to this URL.
Am I doing something wrong? Thanks in advance for looking into this.
Kind regards
Jonas
Hi,
It's currently not possible to directly feed a component directly through the url. This functionality is currently limited to the dashboards webapp through an url like /dashboard/#/db/mydashboards.dmadb?data={version:1,"feed": {"object manager instances":["module_id/instance_id"]}}.
A current workaround in LCA would be to have an intermediate feed between the URL and the form component, as preselecting values in feeds from the URL does work in LCA. So your solution would look something like this:
Where you can preselect a value in the dropdown through: ?data={"version":1,"feed":null,"components":[{"cid":dropdown_id,"select":{"object manager instances":["module_id/instance_id"]}}],"feedAndSelect":{}}