Hi, John

If of_UpdateChecks()'s rc = 0, that means that there are no updates pending
(nothing has been changed by the user for that DW)...  Therefore, no
save/update is done (because no save/update is necessary).

An rc = -3 meant that there was some field(s) that did not pass validation
tests...  either from AcceptText()'s or pfc_validation's.  No update
happens until everything passes validation.  You should not need to change
any code to change the rc to 0.  Instead, you should find out why some
field(s) is not passing validation.

When there is an rc = 1, that means data has changed and there are no
validation errors.  That is when a save/update is then done (automatically
in the PFC code).

 1 = Updates are pending and there are no validation errors
 0 = No updates pending
-1 = AcceptText Error
-2 = UpdatesPending Error
-3 = Validation error

For more info, search for of_UpdateChecks at
http://www.pfccheatsheet.com/pfcwmstr.htm
http://www.pfccheatsheet.com/pfcwmst2.htm

The default is ib_updateable = TRUE, so that is not necessary.

Having a u_tabpg on a u_tab (etc) should not cause any problems.  That is
the correct way to do it - http://www.pfcguide.com/faq/faq_tab.asp

Have fun,
~Sharon
--
Sharon Weinstrom Buntz      | mailto:[EMAIL PROTECTED]
Cheat Sheet for PFC/PB Help | http://www.pfccheatsheet.com/


> "John D. Cruz" wrote:
> 
> Hi Sharon,
> 
>     it's me again, I already resolved my problem in saving my datawindow
> in a tab page ( descendant of u_tabpg ) ( using pfc_save event ). first,
> i got a return value of -3 w/c means theres a validation error in
> of_updatechecks function in pfc_save event and this return value was
> change to 0 w/c means there are no pending updates in my datawindow. I
> already set the variable ib_updateable to TRUE or of_setupdateable ( true
> ) but still, my datawindow is not saved.
>     Is my tab page ( descendant of u_tabpg ) & tab control ( descendant
> of u_tab ) have anything to do w/ my problem? need your help.
> 
> Thanks a lot,
> john
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]

Reply via email to