Hi, I would like to create textFields dynamically based on the value

Hi,

I would like to create textFields dynamically based on the value of a count variable.

I wrote the following apply function for doing that, but so far it is not working. I think it is a minor problem with my apply function. Can anybody help:

apply(
a!textField(label:" Technical Officer "& _ & "Hours to complete PSA:", value:ri!hours, saveInto: ri!hours), makeRange(local!technicalOfficersCount))

Basically i want to create however many textfields as are there in the local variable technicalOfficerCount. Any ideas would be deeply appreciated....

OriginalPostID-104744

OriginalPostID-104744

  Discussion posts and replies are publicly visible

Parents
  • Create a rule that uses the SAIL textField component and has the label, value and saveInto fields as rule inputs. Then you can do something like:
    apply(
    rule!yourPrefix_textField(
    merge(
    repeat(length(local!technicalOfficersCount),"Your Label Text"),
    repeat(length(local!technicalOfficersCount),ri!hours),
    repeat(length(local!technicalOfficersCount),ri!hours)
    )
    )
Reply
  • Create a rule that uses the SAIL textField component and has the label, value and saveInto fields as rule inputs. Then you can do something like:
    apply(
    rule!yourPrefix_textField(
    merge(
    repeat(length(local!technicalOfficersCount),"Your Label Text"),
    repeat(length(local!technicalOfficersCount),ri!hours),
    repeat(length(local!technicalOfficersCount),ri!hours)
    )
    )
Children
No Data