The value is stored as a string. If the property value is a yes or no value, value can be either a string whose value is "yes" or "no" or a boolean value true or false. The value is stored as "yes" or "no" strings. If the property value can be an expression, then value can be a string that takes the form:.
Defaultvalue is any value that is allowed for property. DataWindowexpression is an expression that can include names of controls in the DataWindow and DataWindow expression functions.
The datatype of the expression is Any, but actual data is a string. For more information about the expression's datatype, see Datatypes of DataWindow property expressions in PowerBuilder. In this statement, the boolean value false is stored as the string "no":. When you test the value of a property in a relational expression, you must compare your test value to the stored values.
For ReadOnly, stored values are yes or no, not boolean true or false:. Valid values for the Visible property are 0 and 1. You can set the property to numbers, yes and no, or true and false.
Therefore, these three statements are equivalent:. This example tests whether the X property contains a constant which can be converted to a number or a DataWindow expression.
This script sets the X property to a DataWindow expression. The expression causes IDs with values less than 10 to be indented:. The reported value is "yes", not true:. This example checks whether the id column is set up as a spin control. If so, it sets the spin range to 0 through In PowerBuilder, DataWindow property expressions use additional Object keywords to refer to nested objects.
Nested objects include composite or related nested reports and child DataWindows associated with DropDownDataWindow columns. Related nested and composite reports can include their own nested objects.
You can extend the dot notation to refer to any level of nesting. The Object keyword indicates that subsequent elements refer to the DataWindow object within dwcontrol. About nested reports. A nested report can be one of a group of reports in the Composite presentation style or a nested report included in a base report, which is associated with a specific row. When nestedcontrolname is a nested report in a base report, the number of the row the report is associated with.
If the report is in a band other than the detail band, it is still associated with a row see Usage below. The name of a control within the nested DataWindow object. If dwcontrolname is a column with the DropDownDataWindow style, a Report control, or an OLE Object control, you can specify an additional Object keyword and dwcontrolname to refer to properties of controls within the nested DataWindow object.
The datatype of the expression is Any, but the actual data is a string. A nested report within a base report is usually in the detail band, and each instance of the report is associated with a row. The property expression must include a row number to identify which report to access. If the nested report is in a band other than detail, there may be only one or a few instances of the report, but it is still associated with a row.
The expression must include a row number that has an instance of the report. The following table lists the band and the row that is associated with the report:. The first row on the page. On screen, this is the first row visible in the DataWindow body. The last row on the page. On screen, this is the last row visible in the DataWindow body.
The first row of the group where n is the group number. The last row of the group where n is the group number. This expression gets the validation expression for the column:.
This example turns on grid lines for the category axis of that graph. The example sets an instance variable to a default value of "not found". This means there is a separate report with its own properties in each row. The script checks whether the employee belongs to management the value in the rank column in the base report is M.
Another statement sets the salary column's Mode property so the color change will be visible:. Although the graph is not related to a particular row, you still need to provide the row number associated with the summary band when you refer to its properties. This statement turns on autoscaling for the values axis:. If a column has a DropDownDataWindow edit style, there are properties that affect the column's appearance. Close this window and log in. Join Us Close. Join Tek-Tips Forums! Join Us!
By joining you are opting in to receive e-mail. Promoting, selling, recruiting, coursework and thesis posting is forbidden. Students Click Here. Join the SmartBear Connect Today. Docs Academy. Accessing dropdowns within Powerbuilder DataWindow control. Not applicable. I am currently in the process of automating a legacy Powerbuilder application. I donot see a SelectedItem value nor am able to get a list of all the child ListItems.
Is there a solution for this? I have attached a screenshot of the Object browser window to show what I mean. Thanks in advance. Syed Hasan. Is there anybody who is testing PowerBuilder apps? Have you faced a similar task? Whether or not a list would be better than the DDDW depends upon a number of factors. Is the DDDW list dynamic depending upon some other input by the user?
Is the list of items in the DDDW small and easily replaced by a list? How much other code would need to be refactored if the DDDW was replaced with a list? Subscribe via RSS. Toggle Submenu Categories Recent Tags. View Replies 2. Hi, We have a legacy application. Evaluate count of numeric columns does not work. Responses 2. Likes Latest Oldest.
0コメント