You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Difference between do save() and do save now() functions in peoplecode

7 replies [Last post]
Guest's picture
Guest

Hi all,

Can any one explain me the diffrence between do save and do save now functions in people code with example.

Thanks in advance
neetha

simrose's picture
User offline. Last seen 4 years 51 weeks ago. Offline
Joined: 08/01/2008
Posts: 33
Re: Difference between do save() and do save now() functions ...

Think you have written Peoplecode at an event

PC Stmt 1
PC Stmt 2
PC Stmt 3
Dosave() / Dovenow()
PC Stmt 4
PC Stmt 5
PC Stmt 6

In case of Dosave() PC Stmt 1 to PC Stmt 6 will execute then save processing will trigger

And in cas eof DosaveNow() PC Stmt 1 to PC Stmt 3 will execute then save processing will trigger and rest PC Stmt 4 to PC Stmt 6 will execute after save

--
Simrose

Guest's picture
Guest (not verified)
Re: Difference between do save() and do save now() functions ...

Thank you very much for clarifying on this with example.

Guest's picture
Guest (not verified)
Re: Difference between do save() and do save now() functions ...

Thans for clarifying on this with example,it is very clear now

latsayya's picture
latsayya (not verified)
Re: Difference between do save() and do save now() functions ...

Thank you so much for givng clarity with example

kum's picture
kum (not verified)
Re: Difference between do save() and do save now() functions ...

Do savenow()-->save the current field/component immediately..

Example: in the main page having some fields
1. emplid
2. emplname
3. deptid
4.jobcode
...etc

ur enter first field value as 001 and immedate tabout of that field, 001 value saved in database. when ur writing dosavenow() function in field edit event. ok

do save()---> save the current component..just like clicking on save button...
Example:
enter all field values in the page finally click on save button, that time only those values saved in database..
ok

Guest's picture
Guest (not verified)
Re: Difference between do save() and do save now() functions ...

is it posible??
It's not working kum

please let me know the reason..

Thanks and Regards,
naveen

Guest's picture
Guest
Re: Difference between do save() and do save now() functions ...

This is very clear. Thanks.