on 04-02-2015 11:05 AM
Hello everyone,
seems to be a simple case but does not work in my environment:
1. In an LDM, I set up an Extended Attribute for an Entity Attribute as Computed: Read/Write (Get+Set methods)
2. I want to compute it conditionally, i.e. if (some_condition=TRUE) then Extended Attribute should get some computed value X else it should simply get the value put manually on the Entity Attribute Form
3. Conditional computing works, but unfortunately I am not able to update it manually - I tried all the possible combinations of implementing Get and Set methods, but with no success. It seems I am not able to get the value from the Form and set it to this Computed Read/Write Extended Attribute, is it feasible at all? Putting aside the conditional computing, simple getter and setter for a Computed Read/Write Extended Attribute should in my opinion look like this, shouldn't it?
Function %Get%(obj)
%Get% = obj.GetExtendedAttribute("ExtAttr")
End Function
Sub %Set%(obj, value)
obj.SetExtendedAttribute "ExtAttr", value
End Sub
Thanks in advance and best regards,
Jacek
Hi,
You need two attribute. First will be the stored value of your attribute, second will be the computed one (a computed attribute does not store anything, it is computed).
The computed Get function will read value from stored attribute, the Set function will set the stored attribute.
Then, you can add any computation you want.
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.