I want display the current value form BoldListHandle (= blhProjects) in the first
level of a BoldTreeView.
In the root BoldGenericListPart, I use the event OnGetElement to evaluate an expression
(EvaluateAndSubscribeToExpression) with an expression like this
'PrjProjects.allInstances->select(boldID=curPrj.boldID)' and use
a variable (in a VariableList)
[TBoldHandleBasedExternalVariable.Create('curPrj', blrCurrentPrj, False)];
blrCurrentPrj(type =TBoldReferenceHandle) contains the current element of the same list (blhProjects).
The reason to use this (OnGetElement) event is just to have the possibility to use
a external variable.
Work good, except that there is no refresh if the current element
of the list change.
On which element it is needed to add a subscribption in the OnGetElement method
to have a refresh of the first level (all the others follow)of the tree
when the current value from the blhProjects change.
Some ideas ??? Maybe a better solution to achieve the same result
Thanks a lot
Eddy
I guess 'PrjProjects.allInstances->select(boldID=curPrj.boldID)' is the same
as 'curPrj' except for the first one has type collection (PrjProjects), and
the second PrjProjects. If you programmatically ensure setting
ReferenceHandle Element, all should function OK without OnGetElement,
provided you have properly configured the OCLs for the tree nodes. No
additional subscriptions are required.
/Efim
"EPO" <eNo.SpamT...@winSVP.be> schrieb im Newsbeitrag
news:478e0b4c$2...@newsgroups.borland.com...
> I guess 'PrjProjects.allInstances->select boldID=curPrj.boldID)' is the same
> as 'curPrj' except for the first one has type collection (PrjProjects), and the second PrjProjects.
Yes, correct.
> If you programmatically ensure setting referenceHandle Element, all should function OK
> without OnGetElement, provided you have properly configured the OCLs for the tree nodes.
> No additional subscriptions are required.
Yes, I agree except that the BoldGenericListPart has no property to define
an external variable (curPrj) . :-((
Thanks,
Eddy
Solution found! I have used a TBoldExpressionHandle with the OCL expression (containing the variable externe).
With it, I have a list with one BoldElement and in the expression of TBoldGenericListPart (of the first level),
I set only "self".
And it works perfectly.
Thanks to set me on the way :-)
Eddy
Brussels
/Efim
"EPO" <eNo.SpamT...@winSVP.be> schrieb im Newsbeitrag
news:478f822f$1...@newsgroups.borland.com...