powerbuilder-pfc

pfc_Validation event coding example

Could you give me an example of the way I should code into the pfc_Validation event? This is an event that I have never used. For example here is something I have coded in the ue_itemchanged event. if dwo.name = 'theme' then This.Setitem(row,"theme",wf_clean_up_text(data)) end if if dwo.name = 'Comments' then This.Setitem(ro...

powerbuilder: pfc_save problem

Hi, I have a user object which is using pfc services. Now, during update, I have written my validation code in the pfc_validation() function, and when validation does not succeed, I am returning -3 from that function. But still I am getting an error message saying - "A database error has occured.....", which means the update process is n...

Migrating from Powerbuilder 6.5 to 10.5

Hi, We have an application that is built using PFC. I am facing a strange problem. When I define a workspace and open only the PFC librares, I can migrate and do a full Build. However, when I include this in my application library, it will not build, and gives me an error stating C0001: Illegal datatype s_printsetupattrib. This error ...

Is there any powerbuilder function which is equivalent to PHP's "explode" function

I think the title itself is pretty self-explanatory. Is there any function in powerbuilder which is equivalent to PHP's "explode" function? For PHP's "explode", see the following link : PHP explode ...

Powerbuilder PFC : Where to start learning

Ok, I am an absolute beginner in powerbuilder. Currently I am working in a company where powerbuilder is being used to develop an application. This application heavily uses PFC. Now I had no prior powerbuilder training when I joined this company, but I learned a few things while working in this application, e.g., datawindow, powerscript...

Powerbuilder: what to code in the pfc_retrieve() event when using FILTER style linkage

Hi, I have two master-detail datawindow which are linked through pfc's linkage service. Now I have read in the documentation that when using FILTER style retrieval code must be placed inside the detail window's pfc_retrieve event. What code/function call should I place there so that when the master windows's retrieval has been finished...

Powerbuilder: is it a good idea to call accepttext method

The question says it all. I want to know if it a good idea to manually call the accepttext() or pfc_accepttext to force powerbuilder to accept the values in the datawindow fields. The reason behind this question is that I have a datawindow in a popup window which contains some fields. When the user enters values in that fields and pres...