Show TOC

.nameLocate this document in the navigation structure

Use

You use the .name attribute together with the .value attribute to construct valid field names.

The .name attribute outputs the name and index of a field.

Example

To create an input tag for the multiple value field vbcom-kunde, you could write:

`repeat with i from 1 to vbcom-kunde.dim`

<input

type=text

name="vbcom-kunde[`i`]"

value="`vbcom-kunde[i]`">

`end`

This results in the following output:

<input type=text name="vbcom-kunde[1]" value="4711">

<input type=text name="vbcom-kunde[2]" value="8523">

<input type=text name="vbcom-kunde[3]" value="1234">

The sequence of back quotes and quotes can be confusing. Instead, you can use the .name and .value attributes to write:

`repeat with i from 0 to vbcom-kunde.dim`

<input

type=text

name="`vbcom-kunde[i].name`"

value="`vbcom-kunde[I].value`">

`end`

The output is identical to above:

<input type=text name="vbcom-kunde[1]" value="4711">

<input type=text name="vbcom-kunde[2]" value="8523">

<input type=text name="vbcom-kunde[3]" value="1234">