Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

PB.Net 12.5.2 Dynamically Created Updateable DW

$
0
0

performed the usual

 

ds_obj = create datastore

ds_obj.create(sqlca.syntaxfromsql("select keycol,col1,col2 from tab1","style(type=grid)",ls_err1),ls_err2)

 

Then created the ds_obj.modify string to identify key col, make everything updateable, keyinplace,updatewhere, etc

 

ds_obj.Modify returns an empty string.  A describe("datawindow.syntax")  returns a string that I can see no difference from an actually created DW that is exported.

 

Add rows to the ds_obj and since I want it to actually perform updates to existing rows ...

ds_obj.setitemstatus(row,0,primary!,datamodified!)

 

Now, when the time comes

ds_obj.settransobject(sqlca)

ds_obj.update()

 

The update returns 1, but produces no update statements in a trace file.  SQLPreview event is not triggered.  sqlca.sqlcode =0.  UpdateEnd event claims "X" number of rows were updated.

 

 

Took liberties in shortening some descriptive steps to get to the point.  can get into greater detail when I'm back at the office to clarify anything.

 

Any thoughts to why this is not working?

 

Thanks


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>