Author Topic: Form Plugin Question  (Read 182 times)

audreykoz

  • Member
  • **
  • Posts: 21
Form Plugin Question
« 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!

Hervé

  • Hero Member
  • *****
  • Posts: 488
Re: Form Plugin Question
« Reply #1 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:
Code: [Select]
"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

  • Member
  • **
  • Posts: 21
Re: Form Plugin Question
« Reply #2 on: May 03, 2019, 20:49:51 PM »
Will do! Thank you