Handling PBDOM exceptions – PB Docs 100
Handling PBDOM exceptions PBDOM defines an exception class, PBDOM_EXCEPTION, derived from the standard PowerBuilder Exception class. The standard Text property of the Exception class can be used to obtain more detail on the nature of the exception being thrown. The class extends the PowerBuilder Exception class with one method, GetExceptionCode, that returns the unique code…
Microsoft files – PB Docs 125
Microsoft files Visual C++ runtime, Active Template, and GDI+ libraries When you deploy the core PowerBuilder runtime files, you must ensure that the msvcr71.dll, msvcp71.dll, msvcr100.dll, and msvcp100.dll Microsoft Visual C++ runtime libraries and the Microsoft .NET Active Template Library (ATL) module, atl71.dll, are present on the user’s computer or server. The PowerBuilder runtime files…
Painter summary – PB Docs 125
Painter summary The PowerBuilder painters are: Painter What you do Application painter Specify application-level properties and scripts. Database painter Maintain databases, control user access to databases, manipulate data in databases, and create tables. DataWindow painter Build intelligent objects called DataWindow objects that present information from the database. Data Pipeline painter Transfer data from one data…
MidA – PB Docs 126
MidA DataWindow expression function Description Obtains a specified number of bytes from a specified position in a string. Syntax
|
1 |
<span>MidA</span> ( <span>string</span>, <span>start</span> {, <span>length</span> } ) |
Argument Description string The string from which you want characters returned. start A long specifying the position of the first byte you want returned (the position of the first byte of the string is 1)….
SetHttpOnly – PB Docs 150
SoapPBCookie: SetHttpOnly method Description Determines whether a cookie can be accessed by page scripts or other active content. Syntax
|
1 |
<span>acookie</span>.SetHttpOnly ( boolean <span>httpOnly</span> ) |
Argument Description acookie The name of an instance of the SoapPBCookie object httpOnly Set to true if you want to restrict cookie to HTTP access only. Set to false if you want page scripts or…
Web DataWindow on EAServer – PB Docs 90
Web DataWindow on EAServer You can run the Web DataWindow server component on EAServer using PowerDynamo as the dynamic page server. The component transaction server and the page server can run on the same or on different computers. Files required on the transaction server Two types of files are required on the transaction server: The…
Delivering your application to end users – PB Docs 100
Delivering your application to end users When you deliver the executable version of your application to users, you need to install all of the various files and programs in the right places, such as on their computers or on the network. Automating the deployment process If you want to automate the deployment process, you might…
Inserting items at the root level – PB Docs 125
Inserting items at the root level The very first item you insert does not have any sibling for specifying a relative position, so you cannot use the InsertItem function—you must use InsertItemFirst or InsertItemLast. For an item inserted at the root level, you specify 0 as its parent. This sample code is in a user…
SetToday – PB Docs 125
SetToday PowerScript function Description Sets the value that is used by the calendar as today’s date. Controls DatePicker, MonthCalendar controls Syntax
|
1 |
<span>controlname</span>.<span>SetToday </span>( <span>d</span><span></span> ) |
Argument Description controlname The name of the control for which you want to set the Today date d The date you want to specify as the Today date Return Values Integer. Returns 0…
Database Painter – PB Docs 126
Database Painter You can connect to the OData service and work with it in the Database painter. The Database painter supports these features: Define an OData datasource with the database profile painter. Connect to an OData datasource in the Objects view. Add tables to the Object Layout view with drag-and-drop or the context menu. Display…