Imagine I have the following scenario:
I have a DOM model that associates a specific channel (e.g., V Sport 2) to other tables, such as "Ott Info" (first table) and "Broadcast Details" (second table).
What I would like to do in the LCA (Low Code App) is to have an "Add" button that allows me to add a row to the table where I want to input information.
What I did was the following:
I created a panel and added a "form" by dragging the desired "object manager definition."
Additionally, I placed the option to "SAVE" and "CLOSE" at the top of the panel.
Then, on the "Add" button of my table, I added the following action, so that when the user clicks the button, the form opens.
When the user adds the desired settings to the form and clicks the "SAVE" button on the panel, I want to save it in the DOM.
To accomplish this, I require an automation script that links the data entered by the user on the screen to the selected channel (the first dropdown).
I'm not sure how to do this. I was trying to do the following:
When the user clicks on "SAVE" (panel button), I will create a new DomInstance with the data from the form. Then, I invoke a script called "AddLinkToChannelService", which requires two parameters:
The GUID of the selected channel (retrieved via dropdown) => this is OK
The GUID of the new DomInstance that I want to link ("FkLink").
How do I fill/know what this GUID is?
It is unfortunately not possible right now to feed the DOM instance ID of the DOM instance inside a form to another component. I agree that it would be very valuable that this is available and we'll talk about this internally.
The most flexible solution now would be to use an interactive automation script as suggested by Michiel, but this also has its disadvantages as well. (Effort, look & feel etc.)
A possible workaround could be that you introduce a separate table that would include all DOM instances that currently do not have a link. (Should be possible to retrieve these efficiently, but may require an ad-hoc data source)
You can then have a 'Link' button which allows you to link these to the selected channel via an automation script. It does introduce two additional clicks for the user, but you can give it a try to see whether the user experience is still acceptable.