GeorgeVarelas
Posts: 0
Joined: Sun May 15, 2016 3:56 pm

Update record in db from inputfield

Hi,
Im trying to find a way to update a record. I have a list (mobilelistitem) that shows records from a datasource (called list_service) and that works fine.
Now under the list, i have added a input field and a button. My idea is to click on an item in the list, show the value in the input field, edit value and then press the button to save/update record. Is there any tutorial to achive that?
I have created a storage variable and at the mobilelistitem_25 i have added on click -mapping mobilelistitem_25 text - storagevariable text. and on click mapping storagevariable text - mobiletextinput_38 text, but when i press on an item in list, inputfield text is not changing. I think i also have to add under the input another label to keep the id for updating the record in db but i think the steps to do that are the same as the delete record in the tutorial that im using.

Thank you
George Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Update record in db from inputfield

Hello,

Please check if there are any errors in the browser console. You can learn here: https://devcenter.appery.io/documenta... how to open the console.

GeorgeVarelas
Posts: 0
Joined: Sun May 15, 2016 3:56 pm

Update record in db from inputfield

Hi,
There where no errors. I have managed to solve problem by adding "bind to component" to listitem-click-set storage variable. Mapping does not work.

Return to “Issues”