Hello WD dynamic programming expert,
I want to display elements under one Node simultaneously using InputField.
Do you know how to do this?
I assigned the InputField to Context-Attribute.
I thought I can bind Context-Attribute with index, but it couldn't.
(I tried to bind like "Orders.OrderNumber[1]")
================================================================
My Context Structure is like this:
<Root>
<Orders> (cardinality 0..n)
OrderNumber
<Items>
ItemNumber
ItemText
And I want to display like this;
----
+
.OrderNumber..[ 1001].
.Item1.[ mat1].[ NoteBook ].
----
......................
.Item3......................
|......................----
|....................................................
----
+
.OrderNumber..[ 1002].
.Item1.[ mat5].[ PC ].......
----
......................
.Item3......................
|......................----
|....................................................
----
+
.OrderNumber..[ 1003].
.Item1.[ mat5].[ PC ].......
----
......................
.Item3......................
|......................----
|....................................................
.....(iterating)
**Please display with non-propotional fonts
====================================================================
My View Structure is
<RootUIElementContainer>
<Group> -
dynamically added element
<InputField> OrderNumber is binded Orders.OrderNumber
<Table>
<InputField> ItemNumber is binded Orders.Items.ItemNumber
<InputField> ItemText is binded Orders.Items.ItemText
</Table>
Hi Hideyuki,
Is there any reason, why you do not want to use a table for this structure?
Regarding your question:
You can not bind an InputField against a specific node element, you can only bind it against the one you chose via leadSelection.
So, you have two possibilities: you can either use a table ui element for that, which is THE ui element for displaying orders, if you want to see all at once please check out Table.visibleRowCount = -1.
Or you need to change your complete context structure. If you create one InputField for each context attribute, it should work.
We would recommend the table, anyhow!
Hope that helps!
Karin
Hi Hideyuki,
it's easier than you thought, use node.index instead of node.[index] so in your case "Orders.OrderNumber.1". The path is resolved in a trial and error procedure, each path part which doesn't throw a number format exception if converted to an int is used as an element index. But i'm not quite sure if this works for binding also. Have a try! By the way (like Karin already said), does this really make sense?
Hope that helps.
Regards
Stefan
Add a comment