How to make a create rule with create rule within it

Hello.

I’m trying to model the structure of a data entry form, similar to image below. I’m specifically struggling with how to represent the repeating “Products” section.

Great question! This type of form doesn’t really match the expected implementation patterns for Actions (i.e. queue up a bunch of “unsaved” data entry and then submit it all at once).

Instead, I’d implement this as a little Workshop app and a couple of separate actions and then you can embed that workshop app elsewhere as the data entry “form”.

In this case, just to specifically replicate what’s in the form you’re showing, I’d have an “Add Supplier” and an “Add Product to Supplier” action as well as a “Remove Product from Supplier” action.

The user would first enter and save supplier details, then proceed to add products.

A potentially subtle point here, and a reason for building these kind of data entry workflows as their own apps, rather than trying to cram all the configuration into a “form builder” and a single Action: How do you handle finding and choosing an existing Product or creating a new one? The user might need to filter and/or search; review a few details to confirm it’s a matching product; or maybe have the option to duplicate and edit an existing product.

I get that the question is a pretty simple: can I have a single Action form configured to create N (user defined amount) of individual objects; for that specific case you can set up your Action to have a “Table Layout” instead of the default form layout.

However to build a more complete data entry workflow, I’d definitely recommend building it out as it’s own encapsulated Workshop app - there’s even quite a nice reference example available from the AIP Examples app.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.