Value not save in database

Certified Senior Developer

Hi

I am using below code but my value is not saved in the database. Please suggest.

a!paragraphField(
label: "operations",
showCharacterCount: true(),
value: local!cashNotesval,
saveInto: {
ri!comments,
a!save(local!cashNotesval,ri!comments),
a!save(ri!comments,save!value),
a!save(
ri!Transaction.comment_txt,
ri!comments
),
},

I am saving local value into rule input but it is not passing in database. Basically this local!cashNotesvals is autopopulated when on selecting dropdown value.
But this value is not save in database. 

If i am typing manually in this paragraph field then value is saved.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Point to remember:
    The data will not be saved because it is a pre-populated value generated using variables based on the dropdown selection. As a result, this value will not be saved into ruleInput. If you wish to save the value of local!cashNotesvals into ruleInput, you should configure this in the submit button's saveInto property or in other editable or user-interaction fields by using a!save and ensure that a null check is performed. If the value is null, save the auto-populated value from the dropdown; if not, save the manually entered value.

Reply
  • 0
    Certified Associate Developer

    Point to remember:
    The data will not be saved because it is a pre-populated value generated using variables based on the dropdown selection. As a result, this value will not be saved into ruleInput. If you wish to save the value of local!cashNotesvals into ruleInput, you should configure this in the submit button's saveInto property or in other editable or user-interaction fields by using a!save and ensure that a null check is performed. If the value is null, save the auto-populated value from the dropdown; if not, save the manually entered value.

Children
No Data