Schultz’s PowerBuilder Notes

Working with PFC INI Files


Reading from the User INI file

// get list of CSR emp ids from INI file and select these
ls_usr_ini = gnv_app.of_GetUserIniFile( )
ls_csr_string = ProfileString(ls_usr_ini, "CSR", "EMP_ID", "")

Continue reading

Advertisements

July 10, 2008 Posted by | 3. PFC, Application Services | , , , | Leave a comment

PFC Utility Services


Often overlooked, the PFC has several handy utility services which can make your programming life easier.
Utility Services include the following:

Continue reading

July 10, 2008 Posted by | 3. PFC, Utility Services | | Leave a comment

PFC DataWindow Service Questions


I get the error “DataWindow is not Updateable” but I am trying to save a different datawindow.

If you have a datawindow which you will not want to update, such as a external source datawindow containing a DDDW, you need to call the function of_SetUpdateable(False) in the dw control’s constructor event

this.of_SetUpdateable ( False )

Continue reading

July 10, 2008 Posted by | 3. PFC, Datawindow Services | , , , , | Leave a comment

PFC Datawindow RMB Pop-up Menu


How do I disable the RMB menu

this.ib_rmbmenu = False

Continue reading

July 10, 2008 Posted by | 3. PFC, Datawindow Services | , , , | 1 Comment

PFC DataWindow Printing


Print Dialog Window

If you call pfc_print on the datastore or datawindow, the user will be prompted with the Print dialog. Note, a datastore must have a parent window assigned for the print dialog. To bypass the Print dialog, call pfc_printimmediate.

July 10, 2008 Posted by | 3. PFC, Datawindow Services | , , | Leave a comment

PFC DataWindow Verification Service


The Verification service object, n_cst_dwsrv_verification, lets you enable and disable default Datawindow processing for required fields and rules. This service eases the task of handling interdependent fields within a DataWindow.

Continue reading

July 10, 2008 Posted by | 3. PFC, Datawindow Services | , , | Leave a comment

PFC DataWindow Sort Service


The sort service provides enhanced datawindow sorting capabilities, including an
end -user interface. It includes the following features:

Continue reading

July 10, 2008 Posted by | 3. PFC, Datawindow Services | , , , , , , , | 1 Comment