on 12-13-2014 12:31 PM
Hi All,
Whenever input field binded directly to an attribute it works absolutely fine , but whenever I try to bind with contexts node->attribute and context nodes cardinality 0:1 it gives dump at run time.
Can anyone please suggest.
Regards,
Sourya Prakash.
Hi Prakash,
Input fields created on view directly, expects always an instance of bound attributes should be available i.e. atleast one instance should be available always.
A node with cardinality 1...1, means that atleast one instance is always available and hence with this type of node input fields work fine.
But if you have input field inside table/ alv, you can bind it to the nodes with cardinality 0..n, because on every new row, it adds an instance of context node. So, it works fine as well.
Whenever you bind property "value" of input field to an attribute directly, it works because it is inside root context node CONTEXT and its having cardinality 1...1
Hope it helps you in understanding the concept.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The cardinality 0..1 suggests that the input field can have no value or 1 value at runtime, but in case if that input field attribute is used somewhere which is null at the first time, it will throw dump.
To avoid the situation change the cardinality to 1:1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.