Input data from two fields but map them to a single attribute [Urgent]

Input data from two fields but map them to a single attribute [Urgent]

  

Hi! Please reply asap!

I have a form in which I have six input fields as follows:


| Platform Name: ____A_____ | Runtime: _________     | Downtime: __________ |

| Platform Name: ____B_____ | Runtime: _________     | Downtime: __________ |


the database is as
| Platform Name | Runtime | Downtime |

______________________________

|       A                | 2 hrs      | 2 hrs        |

______________________________
|       B                |  3 hrs     |   4 hrs      |

______________________________

How can we update two records in the same database on one form submit?

Hi Aditya,


You should have something common between them in order to update all records that have the same common ID.

Or maybe you can use a select2 component to select all the needed to update records then you have to make the logic (foreach) function to update all the selected records. 

Hope that helps,
Cheers, 

Mohamed AlMokadem 

Hi Aditya,


As you much be entering the values all a time and then click the button to update or add events 

Now in the Action of add/Update you need to pass the Unique id of both the table in the action as a input parameter and then using the id's you can use the actions of updating the tables in the same action.

Pass two ids to the two add/update actions in the event .

kirit kumar wrote:

Hi Aditya,


As you much be entering the values all a time and then click the button to update or add events 

Now in the Action of add/Update you need to pass the Unique id of both the table in the action as a input parameter and then using the id's you can use the actions of updating the tables in the same action.

Pass two ids to the two add/update actions in the event .

We are using only one table