Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:21 Go to next message
Andreas Buchner is currently offline Andreas BuchnerFriend
Messages: 47
Registered: August 2017
Member
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 11:12 Go to previous messageGo to next message
Andreas Buchner is currently offline Andreas BuchnerFriend
Messages: 47
Registered: August 2017
Member
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 13:05 Go to previous message
mike hill is currently offline mike hillFriend
Messages: 13
Registered: December 2020
Junior Member
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: Tue, 19 January 2021 04:28]

Report message to a moderator

Previous Topic:Font scaling performance issue
Next Topic:Trigger 'Arrange All'
Goto Forum:
  


Current Time: Wed Mar 03 20:18:32 GMT 2021

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

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

Back to the top