Form Plugin Question

Started by audreykoz, May 03, 2019, 20:15:06 PM

Previous topic - Next topic

audreykoz

Hi,
There's a table in the "Analysis" tab of an element that allows you to access all the relationships that are connected to an element. Is there any way to access this table via the form plugin? I would like to be able to see all the relationships that are connected to all the elements in a folder that I run a form on.
Thanks!

Hervé

Hi Audrey,

Unfortunately, I did not implement this use case as I did not need it.

But It can be easily added.

I can create a viariable ${selected:xxx} that refers to the Archi concept that has been selected for the form. In that case, it will be possible to add the followin filter to the table:
"filter": {
   "tests": [
      { "attribute": "${class}", "operation": "matches", "value": ".*Relationship"  },
      { "attribute": "${source:id}", "operation": "equals", "value": "${selected:id}" },
      { "attribute": "${target:id}", "operation": "equals", "value": "${selected:id}" }
   ],
   "genre": "AND"
}


Please do not hesitate to create a case on my plugin's github page, and I'll develop it for you :-)

Best regards
Hervé

audreykoz