Widget To Append To List Type In Action Flow
32
Views
5
Comments
Out of scope
Service Studio

Hi,


I am new and I am being currently trained for the new ODC studio.  While working with the ODC Data Grid and more so with the dropdown Column I notice something and asked the ODC AI and looked in documentation and found this...

  • Build a list of dropdown options for a Data Grid DropdownColumn (type DropdownOption2.List).
  • Populate it in the Aggregate’s On After Fetch client action.
  • Include a synthetic first option like “Select genre” (so users can leave the value empty), then add one option per record returned by GetGenres.

Normally the flow looks like:

  1. Start with an empty list (TmpOptions)
  2. Create a DropdownOption2 record for “Select genre”
  3. Append/Add it to TmpOptions
  4. Loop genres, create DropdownOption2 for each, append/add
  5. Assign GenreOptions = TmpOptions
  6. Bind DropdownOptionList = GenreOptions

Why you couldn’t finish it:

  • In your ODC environment, the client action toolbox did not expose any list-manipulation nodes/functions (like ListAppend/Add/Insert/Clear).
  • Without an “append/add” capability, you can’t programmatically build a DropdownOption2.List row-by-row in that action.
  • That specifically blocks the “prepend a default option” pattern, because you have no way to insert one extra item ahead of the real data.

What that means in practice:

  • You can still bind the dropdown to a list that already exists (for example, an aggregate result mapped into dropdown options, if the component supports that mapping).
  • But you cannot “manufacture” a new list with an extra first item inside the action unless list add/append is available.

So I think it would be helpful to bring that tool and probably many others to the over to ODC to improve the work flow to match what was able to be done it seems in OS11 and if not then this should be created so that I can be done in a no code way.


Thanks

Tim

Don't believe everything Mentor says.

Of course the list functions also exist in ODC, but you need to go through the basic training to know how to look for them.  


So wait in the new ODC Studio there some setting hiding the append widget?  I mean programmatically i am sure there is one but the way it spoke off make its like I can drag something into the flow and use it.

the list operations are just normal client and/or server actions from the system library

See documentation about using public elements

See basic training about using actions in a flow (don't have a link for that, I'm sure you'd come across it in the first hours of beginner training)

See documentation about list operations (this is O11, don't think similar page exists for ODC, so how you add dependencies is very different in ODC)

Dorine

Also, a tip :

needing help doesn't work well by posting in the ideas section, you will find more succes in the forum.

Changed the status to
Out of scope

not an idea but a need for help