Datawindow Retreive With Large In Clause
Our DBMS limits the number of Items in an “IN Clause” to 255. If you attempt to retrieve with an array of a larger size, the retrieve fails. One method of dealing with this constraint is to create a temp table, populate this with your retrieval arguments, and then have your datastore join to the temp table during the retrieve. Another way is to use a function similar to this: Continue reading
Making DW Radio Buttons and Check Boxes look disabled
An effective GUI quickly communicates to the users how they can interact with the current window. For most datawindow edit styles, PowerBuilder supplies its developers with the means to visually show if it is available to accept user input. Unfortunately, if you are working with an older version of PB, how to show a disabled check box or a radio button is a puzzle. Here is how I deal with this issue.
Setting the RowStatus
If you have worked with PowerBuilder for a while, you have learned that setting the status of a row is not always a straight forward procedure. I have created a handy utility which will simplify this process.
Continue reading
The Ol’ Hidden Items in the Dddw Problem Part II
We all eventually need to build a datawindow where the contents of a drop down list is dependent on the value of another column.
Filtering the available selections in the dddw for the current row is straight forward, just add the necessary filtering script in the RowFocusChanged and ItemChanged events. (See DDDW Contents Based on the Value of Another Column for more information regarding this. ) But if you have a tabular view, problems may soon become apparent with dependent columns in some rows displaying code values instead of descriptions.
Update Status Flags
ItemStatus actually holds two pieces of information at once:
- New/Not New
- Modified/Not Modified
ItemChanged Event
Return codes
Return Code |
Action |
0 |
Accept the data value |
1 |
Reject the data value |
2 |
Reject the data value but let the focus change |
-
Archives
- August 2009 (2)
- May 2009 (1)
- March 2009 (1)
- January 2009 (2)
- December 2008 (1)
- November 2008 (2)
- September 2008 (1)
- August 2008 (1)
- July 2008 (24)
- June 2008 (22)
- May 2008 (69)
- April 2008 (25)
-
Categories
-
RSS
Entries RSS
Comments RSS