i have an apply function that whose rule gets 3 parameters. The apply looks like

i have an apply function that whose rule gets 3 parameters. The apply looks like this:

a!applyComponents(function:rule!DCMIFS_CustomTextField,
array:merge(local!technicalOfficers,ri!hours, ri!hours))

local!technicalOfficers gets 3 values of type text from a query rule.
ri!hours is of type integer and multiple.

the problem is whatever I type into the text boxes that gets created dynamically based on the count of local!technnicalOfficers gets disappeared if I hit the mouse outside of the textbox.Feels like there is some problem with the value and saveInto fields of this apply function. Can anybody suggest any solution to this? For your convenience I am attaching the whole code below:...

performanceMetricsTotal.yml

OriginalPostID-104984

OriginalPostID-104984

  Discussion posts and replies are publicly visible

Parents
  • Did you try your first line, without the indexing and the merging (as I mentioned in the other thread). Something like the following. This is just to try and get the typed in values to save at all.

    a!applyComponents(function:rule!DCMIFS_CustomTextField(label:_, value:ri!hours, saveInto:ri!hours),
    array: local!technicalOfficers)

    If this works, then the next step is to save into the correct part of the ri!hours array, you should handle that logic inside of the rule!DCMIFS_CustomTextField() rule.
Reply
  • Did you try your first line, without the indexing and the merging (as I mentioned in the other thread). Something like the following. This is just to try and get the typed in values to save at all.

    a!applyComponents(function:rule!DCMIFS_CustomTextField(label:_, value:ri!hours, saveInto:ri!hours),
    array: local!technicalOfficers)

    If this works, then the next step is to save into the correct part of the ri!hours array, you should handle that logic inside of the rule!DCMIFS_CustomTextField() rule.
Children
No Data