57
Views
8
Comments
How To Insert Data In Database
Question

Hy All,

I want to know how can we insert data in database,when we have used local variable in input variable,i am not using entity variable.is there any possiblity to do this.

i am attaching my file.

thankyou in  advance

Login.oml

mvp_badge
MVP
Rank: #71

Hi Rohan,

You would need to assign those local variables to the GetEmployeeDetails.List.Current.EmployeeDetails just before the CreateOrUpdateEmployeeDetails action like this:

Rank: #4291

hy nordin,

but in your case it is updating the data

Rank: #89

Hi Rohan,

Yes you can .as Nordin said -

i have updated your oml find this code 

hope this will help you.


Regards

Rahul Sahu

Login.oml

Rank: #4291

Thank you Rahul it helped

last thing i want is for editing the data when editing the data always first record is comming

Rank: #89

Hi Rohan,

Take Entity identifire input parameter in EditUser screen and get data by this identifire and fromAdminDashbord screen pass input paramter for this.

like below image-


Hope this will help you.

Regards
Rahul Sahu

Login.oml

Rank: #4291

thanks rahul it works

Rank: #89

Good, 

Glad to help you


Regrads

Rahul Sahu