There is free code available from TopWiz Programming which does this.
https://topwizprogramming.com/freecode_osversion.html
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
Assuming you are using a current version, take a look at the sample / demo applications you install with PowerBuilder. There should be an example there.
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
12.1 was put out by Sybase which was acquired by SAP back in 2011(?). Current development of PowerBuilder is done by Appeon Corp. You may wish to post this on the Appeon Community board. Go to Appeon.com.
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
You need to set up and expression in each of the columns you want to protect in the datawindow definition.
Something like this in the 'Protect' property
IF (checkboxcolumnname[0] = 1, 0, 1)
The above example assumes the 'data' portion of the checkbox column is 1 for checked and 0 for...
Have you run a trace against the database to see what SQL your application is sending for the select?
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
Go to www.appeon.com and look at the latest version (2019). They have some tutorials and such and you can download a trial version. You can then experiment with migrating your ancient code to the latest version.
Best of luck.
Matt
"Nature forges everything on the anvil of time"...
Try deleting the pb.ini file in your Appdata folder then start PB.
Try reinstalling PB.
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
You can use the associated variable list of the ClassDefinition object of either the Application object or the current object. Loop through the list looking for the class name of the window then trigger the close event.
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
You should be able to connect as in the past. You won't be able to use any of the newer features in SQL Server but you probably already knew that.
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
From the PowerBuilder help file on 'FileOpen PowerScript Function':
File not found
If PowerBuilder does not find the file, it creates a new file, giving it the specified name,
if the fileaccess argument is set to Write!. If the argument is not set to Write!, FileOpen returns -1.
The default...
I am confused. How are you building the SQL statement you send to the SyntaxFromSQL method? Also, what is the presentation string?
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
You need to build the filename as a string.
With your example it would be something like:
String ls, ls_value
ls = 'xyzsh-'
ls_value = dw_whatever.getitemstring(row, 'studentID')
If IsNull(ls_value) or ls_value = '' THEN
// cant use it - do something else
ELSE
ls = ls + ls_value
// now...
You have to do this 'manually' either by appending each child row with its parent (into a string for example) or by having a third datawindow/datastore (which has all the fields you wish to use) into which you copy the data from the parent/child datawindows and then save/extract from it.
Matt...
Here are some things to consider:
1) move button so it's not in same area as datawindow
2) make button invisible (set visible property to false)
3) check for code which makes button visible during program execution
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
Use the Classname() method. It may be useful to use the window.title property as well.
Matt
"Nature forges everything on the anvil of time"
www.anvil-of-time.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.