How To Insert Data In Database

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

Hi Rohan,

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

hy nordin,

but in your case it is updating the data

Hi Rohan,

Yes you can .as Nordin said -

i have updated your oml find this code 

hope this will help you.


Regards

Rahul Sahu

rohan goyal wrote:

hy nordin,

but in your case it is updating the data

Hi Rohan,

If you want to only insert the data, you can change the CreateOrUpdateEmployeeDetails into CreateEmployeeDetails action.

Hope this helps.

Regards,

Nordin

Thank you Rahul it helped

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

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

thanks rahul it works

Good, 

Glad to help you


Regrads

Rahul Sahu