Installing the sample applications – PB Docs 105
Installing the sample applications To install the samples from the CD, select the Custom setup type in the PowerBuilder installation program and select Code Examples from the list of components. To install the Code Examples application, select Example Application. To install the Web DataWindow PBL, select Web DataWindow. Both samples are installed in the Code…
Targets – PB Docs 125
Targets This section describes new features for the PowerBuilder .NET IDE only. WCF Services A new PowerBuilder target builds applications using the Microsoft WCF model Support for CVUOs in .NET Assemblies The .NET Assembly target exposes custom visual user objects. Support for Split Assemblies in WPF Targets The WPF Target provides the means to generate…
Trim – PB Docs 125
Trim PowerScript function Description Removes leading and trailing spaces from a string. Syntax
|
1 |
<span>Trim</span> ( <span>string</span> <span></span>{, <span>removeallspaces</span> } ) |
Argument Description string The string you want returned with leading and trailing spaces deleted removeallspaces A boolean indicating that all types of spaces should be deleted Return Values String. Returns a copy of string with all leading and trailing spaces deleted…
Instantiating the component – PB Docs 126
Instantiating the component You can instantiate a Web DataWindow component in the following manner:
|
1 |
<%@ page contentType="text/html; charset=UTF-8" %> |
|
1 |
<%@ page import="org.omg.CORBA.ORB" %> |
|
1 |
<%@ page import="org.omg.CosNaming.NamingContext" %> |
|
1 |
<%@ page import=          "org.omg.CosNaming.NamingContextHelper" %> |
|
1 |
<%@ page import="org.omg.CosNaming.NameComponent" %><%@ page import="DataWindow.*" %> |
|
1 |
|
1 |
String dwGenerator = "DataWindow/HTMLGenerator126"; |
|
1 |
HTMLGenerator126 dwGen = null; |
|
1 |
|
1 |
java.util.Properties props =new java.util.Properties(); |
|
1 |
props.put("org.omg.CORBA.ORBClass",<br>   "com.sybase.CORBA.ORB"); |
|
1 |
props.put("com.sybase.CORBA.NameServiceURL",    "iiop://testmachine:2000"); |
|
1 |
ORB orb = ORB.init((String[])null, props); |
|
1 |
try { |
|
1 |
  NamingContext cntx = NamingContextHelper.narrow       (orb.resolve_initial_references("NameService")); |
|
1 |
      NameComponent[] name = {new        NameComponent(dwGenerator,"")}; |
|
1 |
      SessionManager.Factory factory =        SessionManager.FactoryHelper.narrow<br>         (cntx.resolve(name)); |
|
1 |
  dwGen =         HTMLGenerator126Helper.narrow(factory.create<br>          ("jagadmin","")); |
|
1 |
} catch(org.omg.CORBA.ORBPackage.InvalidName ie) { |
|
1 |
out.print("Error: " + ie.getMessage()); |
|
1 |
} catch (org.omg.CosNaming.NamingContextPackage.NotFound ne) { |
|
1 |
out.print("Error: " + ne.getMessage()); |
|
1 |
} catch  |
|
1 |
(org.omg.CosNaming.NamingContextPackage.CannotProceed     ce) { |
|
1 |
out.print("Error: " + ce.getMessage()); |
|
1 |
} catch  |
|
1 |
(org.omg.CosNaming.NamingContextPackage.InvalidName     ie1) { |
|
1 |
out.print("Error: " + ie1.getMessage()); } |
Document get from Powerbuilder help Thank you for watching.
LineColor – PB Docs 150
LineColor property for PowerScript controls Controls Line, Oval, Rectangle, RoundRectangle controls Description The line color is the color for the border and the lines in the control’s fill pattern. Usage In a painter To change the line color: Select a color from the Line Color drop-down list on the General page of the control’s property…