Hi Forum,
I have a table and the first column having Edit/Save buttons. When I click edit button rest of the table columns will display input fields and when I save it I want to save the input fields values and I will display the label rather than input fields. I have tried with creating client action with every individual input fields onchange and it does not make sense. Could you please help me on this.
Thanks
Shanmuka Reddy
Hi @Shanmuka Reddy ,
I have done the same in the .oml file, please check the attached for reference.
Demo URL : https://vyadav.outsystemscloud.com/Test/Products
I have added below screen shot for your reference.
Hi Vipin,
Thanks its working.
Hello,
When you click save you need to call your entity create / createOrUpdate action and assign values of these inputs to this action along with Id of record.
Hi @Shanmuka Reddy
If I understand your issue correctly, you can add a new boolean attribute to your data source structure, like IsEditing.
For the fields you want to make editable, use an If statement:
This way, you toggle between edit mode and view mode based on the value of IsEditing.
Hope this answers to your problem.
AC
Hello @Shanmuka Reddy ,
Bind your your input field with Data Source current Entity Attribute. on Edit pass Current Identifier to client action & filter Data Source using that identifier. You will have changes value there. Then save it with CreateOrUpdate action.
Hi Shanmuka Reddy ,
I see you’re trying to save data from an input field into the database when a button is clicked. I’ve done something similar, so hopefully, my approach can help you!