[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Need Uppercase Update functionality from PB

Posted on 2000-04-13
5
Medium Priority
?
812 Views
Last Modified: 2008-02-20
I have a PowerBuilder application that I need to run against a Sybase ASE 12 database which is configured to be case sensitive and requires all SQL to be uppercase.  I converted all of the datawindow retrieve and embedded SQL to uppercase and it all works, but the datawindow updates did not work.  I exported the datawindows and changed all of the update DB names to uppercase but it still is working for the updates.
Does anyone have any ideas of anything that I could try??
0
Comment
Question by:cwilliams122399
5 Comments
 
LVL 2

Expert Comment

by:jkotek
ID: 2712361
There are two points I would try:

1) try to re-select updatable table in update properties of datawindow object

2) check sqlsyntax argument in SQLPreview for what is send to ASE.
0
 
LVL 9

Expert Comment

by:david_levine
ID: 2714274
Or run your app with /PBDEBUG and it will output a debug file with all the code and sql sent to the database.

You saud all SQL needs to be uppercase. You shouldn't have to worry about the case of the SQL syntax. You meant the column names? Or do you mean you want to keep the data in all upper case?

David
0
 
LVL 1

Expert Comment

by:runebj
ID: 2725669
Quick and simple...

Follow jkotek's advice, but add this code (can be done in a DW control ancestor if you like) to the SQLPreview event:

SetSQLPreview( Upper( SQLSyntax ) )
Return 0

This makes all SQL uppercase before it is sent to the DB.

Good luck
Runebj
0
 

Expert Comment

by:shabbirab
ID: 2770528
Any modifications in a PB DataWindow (even if it is changing the case of the source) requires to re-specify the Update on the DataWindow. Did you do this ? If yes, what is the message that you are getting when you run the PB Application ?

Shabbir
0
 

Accepted Solution

by:
russ_hensel earned 700 total points
ID: 2847549
In the dw syntax there is a statement like  update="plant" ( in this case from a pbselect, or graphics mode ) it tells pb the name of the table to update.  That is what needs to be in upper case.
You can get at this without running thru the syntax of the dw ( not the sql )
by using the dw property


Datawindow.Table.UpdateTable      
as in

ls_table =  dw_1.Object.DataWindow.Table.UpdateTable      

which you might follow with

dw_1.Object.DataWindow.Table.UpdateTable      = Upper( ls_table )

if you want to do a fix at runtime. ( prehaps just after you setTransObject )

Opening the painter and reseting the update table ( against a db with the proper capitilization ) should also fix up the dw.

I would not capatalize all the syntax, if you are not using bind variables it could cause problems.

Russ
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

LinkedIn blogging is great for networking, building up an audience, and expanding your influence as well. However, if you want to achieve these results, you need to work really hard to make your post worth liking and sharing. Here are 4 tips that ca…
Last month Marc Laliberte, WatchGuard’s Senior Threat Analyst, contributed reviewed the three major email authentication anti-phishing technology standards: SPF, DKIM, and DMARC. Learn more in part 2 of the series originally posted in Cyber Defense …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question