Hi together,
I want to generate a count of input fields with this code
<%
DATA:
lv_num_prods TYPE string,
lv_count TYPE string.
DO 5 TIMES.
lv_count = lv_count + 1.
CONCATENATE '//PRODUCTS/PROD_NO_' lv_count INTO lv_field_value.
CONDENSE lv_field_value NO-GAPS.
%>
<thtmlb:inputField id = "products.prod_no_<%= lv_count %>"
value = "<%= lv_field_value %>"
tooltip = "Eingabe der Produktnummer Position <%= lv_count %>."
disabled = "FALSE"
width = "90%"
encode = "X"
submitOnEnter = "X" />
<%
ENDDO.
%>
The "lv_field_value" contains e.g. '//PRODUCTS/PROD_NO_1' in the first iteration. The context node "products" and attribute "prod_no_1" exists.
-> PROBLEM: The input field will not be bound to the attribute
If I use the following code instead, it will be bound! So where is the difference???
<thtmlb:inputField id = "products.prod_no_<%= lv_count %>"
value = "//PRODUCTS/PROD_NO_1"
[...] />
Thanks for your help!!!