Skip to content
Permalink
Browse files

GetProperty returns EntityToken for SystemTreeNodeBinding

  • Loading branch information
neexite committed Nov 28, 2019
1 parent 44ba5ae commit d93cb5a08c54dd39f0eb4bb05ccff70e09f776b9
@@ -601,16 +601,9 @@ TreeSelectorDialogPageBinding.prototype._updateDisplayAndResult = function (tree
var prop = this._selectionResult;

selections.each ( function ( binding ) {
if (prop == "EntityToken" && binding.node) {

result.add(
binding.node.getEntityToken()
);
} else {
result.add(
binding.getProperty(prop)
);
}
result.add(
binding.getProperty(prop)
);
value += binding.getLabel ();
if ( selections.hasNext ()) {
value += "; ";
@@ -633,6 +633,19 @@ SystemTreeNodeBinding.prototype.selectToken = function (entityToken) {
this.setHandle(this.node.getHandle());
}

/**
* Get bound element attribute or EnityToken.
* @overloads {Binding#getProperty}
*/
SystemTreeNodeBinding.prototype.getProperty = function ( attname ) {

if(attname == 'EntityToken' && this.node && this.node.getEntityToken()) {
return this.node.getEntityToken();
}

return SystemTreeNodeBinding.superclass.getProperty.call ( this, attname );
}

/**
* SystemTreeNodeBinding factory. Notice that we supply a {@link SystemNode} as argument here!
* @param {SystemNode} node

0 comments on commit d93cb5a

Please sign in to comment.
You can’t perform that action at this time.