BringToTop – PB Docs 2018
BringToTop property for PowerScript controls Applies to Windows and controls Description For windows, this property specifies whether PowerBuilder moves the window to the top of the front-to-back order. For windows, this property can be set only in scripts. For controls, this property specifies whether PowerBuilder moves the control to the top of the front-to-back order…
PBDOM_DOCTYPE Class – PB Docs 2018
PBDOM_DOCTYPE Class Contents PBDOM_DOCTYPE About this chapter This chapter describes the PBDOM_DOCTYPE class. Document get from Powerbuilder help Thank you for watching.
C0312 Compiler Error – PB Docs 2018
C0312 Compiler Error Message text An object reference is required for a nonstatic field, method, or property. Explanation To access a nonstatic variable in a .NET class in a conditional compilation clause, an instance of the class must be created. This example uses a simple public class Department that is in the .NET assembly PBInterop.dll….
Managing templates – PB Docs 2018
Managing templates Contents Creating and saving templates Selecting the template to use From the pop-up menu for the default XHTML export template (with no items selected), you can create multiple templates and save them by name with the DataWindow object open in the painter. You also can edit existing templates associated with the current DataWindow…
Syntax 1: for Pipeline objects – PB Docs 2018
Syntax 1: for Pipeline objects Description Stops the execution of a pipeline object. Applies to Pipeline objects Syntax
|
1 |
pipelineobject.Cancel ( ) |
Argument Description pipelineobject The name of a pipeline user object that contains the pipeline object to be executed Return value Integer. Returns 1 if it succeeds and -1 if an error occurs. Usage Call this function…
Number – PB Docs 2018
Number DataWindow expression function Description Converts a string to a number. Syntax
|
1 |
Number ( string ) |
Argument Description string The string you want returned as a number Return value A numeric datatype. Returns the contents of string as a number. If string is not a valid number, Number returns 0. Examples This expression converts the string 24 to a number:…
More examples in the DataWindow painter and in code – PB Docs 2018
More examples in the DataWindow painter and in code These examples illustrate the difference between the format for a DataWindow expression specified in the DataWindow painter versus in code. Border property The expression applied to the Border property of the salary_plus_benefits column displays a border around salaries over $60,000:
|
1 |
If(salary_plus_benefits > 60000, 1, 0) |
This statement changes the expression…
Properties for DataWindow controls – PB Docs 2018
Properties for DataWindow controls You can set properties of a DataWindow control in the window or user object painter or in code. DataWindow property Datatype Description Border Boolean Specifies whether the control has a border. Values are: True — Control has a border. False — Control does not have a border. BorderStyle BorderStyle (enumerated) Specifies…
Standard DataWindow JSON – PB Docs 2018
Standard DataWindow JSON A standard-format DataWindow JSON is an object that contains elements representing the various aspects of a DataWindow.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
{ "identity": "70c86603-983b-4bd9-adbc-259436e43cbd", "version":1.0, "platform":"PowerBuilder", "mapping-method": 0, "dataobject":{"name":"d_example", "meta-columns": [COLUMN-META1, COLUMN-META2…], "primary-rows": [DW-STANDARD-ROW1, DW-STANDARD-ROW2…], "filter-rows": [DW-STANDARD-ROW1, DW-STANDARD-ROW2…], "delete-rows": [DW-STANDARD-ROW1, DW-STANDARD-ROW2…], "dwchilds":{"department_id": [SIMPLE-ROW1,SIMPLE-ROW2…], "category_id": [SIMPLE-ROW1,SIMPLE-ROW2…] … } } } |
Elements Description identity A string identifying the format. Should keep unchanged. version An integer specifying the format version. Currently it is 1.0. platform A string specifying the platform where JSON string is generated. Values…
Deploying and Running a .NET Web Service Project – PB Docs 2018
Deploying and Running a .NET Web Service Project After you create a .NET Web Service project, you can deploy it from the Project painter or from a context menu on the project object in the System Tree. When you deploy directly to an IIS server, PowerBuilder creates an application directory under the IIS virtual root…