Skip to main content



      Home
Home » Eclipse Projects » Sirius » Problem deleting an reation edge(What to enter in Element Expression)
Problem deleting an reation edge [message #1790218] Thu, 07 June 2018 04:21 Go to next message
Eclipse UserFriend
Hi,

if you want to delete an relation edge, you create an delete element in section Tools.

create an Change context element under Begin.
Write var:element in Browse Expression
Add the Operation Unset and write in Feature Name the name of the reference.

in the example basicfamily, thats quite it and it works, because you only have one father and one mother. The Element Expression is left empty.


Imaging you had multiple fathers and mothers,

what do you write in the Element Expression to unset the particular father/mother

I thought aql:elementView.target would be the solution, but its not ? :/
Re: Problem deleting an reation edge [message #1790244 is a reply to message #1790218] Thu, 07 June 2018 07:12 Go to previous messageGo to next message
Eclipse UserFriend
okey, I got it myself, it is:

aql:elementView.targetNode.target

It was a little tricky, because the last part, the '.target' is not suggested when you hit strg + space
Re: Problem deleting an reation edge [message #1836511 is a reply to message #1790244] Wed, 06 January 2021 08:05 Go to previous message
Eclipse UserFriend
I have the same problem.

The solution didn't work for me, because I don't have access to "aql:elementView.targetNode.target"
I can do "aql:elementView.target", but this also didn't work. Any idea why?

Update: it turns out this is the correct solution, if the validation fails you need to cast it to the appropriate type(which is the reason that auto-complete doesn't work), as mentioned in the documentation.

[Updated on: Mon, 18 January 2021 23:28] by Moderator

Previous Topic:Font scaling performance issue
Next Topic:Edge Creation Depending on Feature of class
Goto Forum:
  


Current Time: Fri Jul 04 12:33:04 EDT 2025

Powered by FUDForum. Page generated in 0.04368 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top