68
Views
6
Comments
Solved
save data from input in form to database
Question
Application Type
Reactive

i want to save data from input, using "submit button", but I'm still confused how to use it, i need a help to solved it, i also attached the oml file to make it clear, thank you

form.oml
2022-05-01 03-47-53
Jun Mun Chan
Solution

Hi,

1. In your CS or Core module, create a server action call 'CreateTaxInvoice' or whatever name you see fits.

2. In that server action, 

3. Of course, this is the most basic, as usually will be doing quite a few checks and validation before calling the server action

2024-07-05 03-48-32
Marhta

thankyou so much.. i mark it as a solution

UserImage.jpg
Md Mansur
Solution

Hi

write the logic to submit button

In Save Server Action :

1.First Call CreateOrUpdate Invoice Details CRUD Operation with Below  Properties




2. Than assign Invoice Details Id To Sorce Variable 

3 Again  Call CreateOrUpdateTaxInvoice CRUD Operation with Below  Properties 

Note: you want to create a dropdown so Create a other entities or table (Either Static or Dynamic )

  

Thanks

Md Mansur

2024-07-05 03-48-32
Marhta

thankyou so much.. i mark it as a solution

2022-05-01 03-47-53
Jun Mun Chan
Solution

Hi,

1. In your CS or Core module, create a server action call 'CreateTaxInvoice' or whatever name you see fits.

2. In that server action, 

3. Of course, this is the most basic, as usually will be doing quite a few checks and validation before calling the server action

2024-07-05 03-48-32
Marhta

thankyou so much.. i mark it as a solution

UserImage.jpg
Md Mansur
Solution

Hi

write the logic to submit button

In Save Server Action :

1.First Call CreateOrUpdate Invoice Details CRUD Operation with Below  Properties




2. Than assign Invoice Details Id To Sorce Variable 

3 Again  Call CreateOrUpdateTaxInvoice CRUD Operation with Below  Properties 

Note: you want to create a dropdown so Create a other entities or table (Either Static or Dynamic )

  

Thanks

Md Mansur

2024-07-05 03-48-32
Marhta

thankyou so much.. i mark it as a solution

2023-07-03 07-28-30
Pramesh Sharma

Hi Marhta ,
there is two way of doing this 
1. you can use local variable to temporarily hold the value you desired to store and then drag the CreateOrUpdate Entity action then map all the local variable accordingly. and hit the save Screen Action on the UI .
2. or you can just use an aggregate on the screen to fetch the data from the database and select the entity in which you want to store the information and then map the UI input fields with the aggregates variable and then use the same entity action to store the information to the database.

2024-07-05 03-48-32
Marhta

thankyou so much...

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.