Normally the number of sh:parameters for ModifyActions is fixed. If you are on 8.0 (onwards), you can however use Wizard-based Actions. See
https://archive.topquadrant.com/doc/latest/scripting/actions.html#batch-actions These would allow you to ask the user for the number of groups on the first wizard page and then, on the second page, present a dynamic list of arguments. I am not sure though if that approach would then allow you to query those arguments with regular JS variables on the final step. For that you MAY need to wait for 8.1 where the paramsObject is supported. 8.1 may be available in a few weeks. A completely different approach would be to have a single large text field as input field, with some domain-specific language of your choice where you parse in the script for the value pairs. If users are geeky enough, this could even be rdf:JSON. HTH Holger > On 11 Jul 2024, at 5:36 PM, Marie Valadez <mevalade...@gmail.com> wrote: > > Hello! > > I am working in TopBraid EDG 7.8. I have a Modify Action group where I would > like the option of having multiple optional parameters (attribute and map). > > ex:ExampleModifyAction > sh:parameter ex:ExampleModifyAction-attribute ; > sh:parameter ex:ExampleModifyAction-map. > > Is there a way for the user to add multiple attributes and maps without > having to create a new parameter for each (example below)? > > Would prefer not to have to do this: > > ex:ExampleModifyAction > sh:parameter ex:ExampleModifyAction-attribute1 ; > sh:parameter ex:ExampleModifyAction-map1; > sh:parameter ex:ExampleModifyAction-attribute2 ; > sh:parameter ex:ExampleModifyAction-map2 ; > sh:parameter ex:ExampleModifyAction-attribute3 ; > sh:parameter ex:ExampleModifyAction-map3. > > So instead of having to add all the optional parameters like above, the user > could select multiples within the popup itself. I see a "+" button, but this > only seems to allow the user to create a new Attribute itself and not a new > mapping in the Modify Action. Is there possibly a property I can add to the > parameter that declares it as repeatable or something? > > Thanks for any help! > > Marie > > > > -- > The topics of this mailing list include TopBraid EDG and related technologies > such as SHACL. > To post to this group, send email to topbraid-users@googlegroups.com > --- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to topbraid-users+unsubscr...@googlegroups.com > <mailto:topbraid-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/d324408d-e3c5-41dd-809a-c2f393d72c45n%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/d324408d-e3c5-41dd-809a-c2f393d72c45n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- The topics of this mailing list include TopBraid EDG and related technologies such as SHACL. To post to this group, send email to topbraid-users@googlegroups.com --- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/BA2FE5BA-A1B8-4E10-8B94-8A71253977EA%40topquadrant.com.