Archi Forum

Archi Plug-ins => Other Plug-ins => Topic started by: audreykoz on May 03, 2019, 20:15:06 PM

Title: Form Plugin Question
Post by: audreykoz on May 03, 2019, 20:15:06 PM
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!
Title: Re: Form Plugin Question
Post by: Hervé on May 03, 2019, 20:47:40 PM
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é
Title: Re: Form Plugin Question
Post by: audreykoz on May 03, 2019, 20:49:51 PM
Will do! Thank you