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

  • 0
    Certified Lead Developer

    You store the entered value into three different variables. What is the reason for this?

    Then you can simplify your code a lot:

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

    Then, which variable do you update in that drop down and which variable do you store to the database? In that dropdown, you have to make sure to modify the variable that you store to DB.