Hi again, John
How do you know that the rc = 0? Do you have some code in there to show
you rc's? or are you running in debug mode? It is entirely possible that
your extra code to see what is going on may be causing the problem.
So, your DW does not save (thinking that there is nothing to save) when you
select menu option File/Save. Correct?
Do you get any validation or error messages?
Are you using the default behavior of your File/Save menuitem? i.e.
of_SendMessage ("pfc_save") in the menu?
Is there any "save"-related code overridden in your window/tab/tabpg/dw?
Are there any other DW's on your window? If so, are they saving?
Are your other windows saving okay?
Have you just converted to say 7.0? What version of PB and PFC are you
using?
Have fun,
~Sharon
--
Sharon Weinstrom Buntz | mailto:[EMAIL PROTECTED]
Cheat Sheet for PFC/PB Help | http://www.pfccheatsheet.com/
"John D. Cruz" wrote:
>
> I inserted a new row on my datawindow and type something in the field. so,
> it means the status of my datawindow is New! or NewModified! but still i got
> a return code of 0
> w/c means there are no updates pending in my datawindow.
>
> still having fun,
> john
>
> -----Original Message-----
> From: Sharon Buntz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 01, 2000 4:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: PFC Save Event
>
> 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]