cancel
Showing results for 
Search instead for 
Did you mean: 

binding UI element in a table

Former Member
0 Kudos

Hi

I have a table UI based on a context mapped to Adaptive RFC Model.

I would like to add another column with buttons and to be able to manipulate their 'enable' property based on values in the table.

I created new context node with attribute value of type Boolean and bind the button's property to it. This context node is filled before the table is displayed.

Well, this doesn't work.

Does anyone have better idea???

Thanks, Nachshon.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Valery

Thanks for the prompt replay.

I tried your suggestion but it is impossible to add a value attribute (nor model attribute) to the model node, I get:

"Adding attributes is currently not supported if the node or the model class (for context model nodes) has a dictionary structure binding."

Or did I misunderstood???

Nachshon

uwe_reeder
Explorer
0 Kudos

The idea is good, but there is a problem with nodes from Adaptive RFC. Such nodes have a structure binding and nodes with structure binding cannot have further attributes.

You could add a non-singleton child node with cardinality 1..1 instead and add your attribute there.

Regards,

Uwe

Former Member
0 Kudos

Hi Uwe

Thanks for the advice, it solved the problem (points are on the way).

A good tutorial for this is :

"Binding Tables to the Controller Context of a View"

Nachshon

Answers (1)

Answers (1)

Former Member
0 Kudos

Just use plain regular (non-model) attributes in model node. If their value depends on other attributes set calculated flag to true and fill in code in "calculate" function.

Hope this helps,

VS