Skip to main content
Known Participant
Feb 3, 2022 1:47 PM UTC
Question

saveInto is not working ?

Hi ,

saveInto is not working for the below code

a!paragraphField(
label: "Comment",
value: ri!comments,
instructions: "(" & 255 - len(ri!comments) & ")",
saveInto: a!save(ri!comments, save!value),
refreshAfter: "KEYPRESS",
validations: rule!PDR_validateTextOnSize(enteredText: ri!comments, size: 255),
required: true(),
readOnly: false()
)

when I write anything in paragraph field the value is not save.

9 replies

peter.lewis
Employee
Feb 3, 2022 1:54 PM UTC

Hmm it seems to work fine for me. What is your data type for ri!comments? Also what is your validation doing? (I removed the validation when I tested it)

Known Participant
Feb 3, 2022 2:07 PM UTC

"text" is the datatype for ri!commens and validation is used here to check the length 

stewart.burchell
Employee
Feb 3, 2022 1:55 PM UTC

Works for me:

(obvs I had to comment out your validation rule as I don't have access to it but this shouldn't have any effect on how it works)

Known Participant
Feb 3, 2022 2:12 PM UTC

But for me it is not working, i have done the same thing which you have mentioned

stewart.burchell
Employee
Feb 3, 2022 2:21 PM UTC

One possibility occurs to me. Does this code work natively in your Interface Designer but not work when your testing it in a User Interface as part of a Process model?