SAP Knowledge Base Article - Preview

2382148 - SetFullState() and SetText() applied to datastore, AcceptText() fails - SAP PB .NET 12.6

Symptom

In PowerBuilder .NET 12.6, once SetFullState() and SetText() applied to datastore, AcceptText() will fail with -1

For example,
//Create datastore
ds = create DataStore
ds.DataObject = "d_grid"

//Create copy of datastore
dsx = create DataStore

ll_ret = ds.GetFullState(blb_data)
ll_ret = dsx.SetFullState(blb_data)

//Original datastore works
// retval = 1 - Success
ll_ret = ds.InsertRow(0)
ii_ret = ds.SetColumn("dec_value")
ii_ret = ds.SetText("4")
retval = ds.AcceptText()


// Copied datastore does not work
// retval = -1 - Failed
ll_ret = dsx.InsertRow(0)
ii_ret = dsx.SetColumn("dec_value")
ii_ret = dsx.SetText("4")
retval = dsx.AcceptText() <-- returns -1

 


Read more...

Environment

  • SAP PowerBuilder .NET 12.6

Product

SAP PowerBuilder 12.6

Keywords

pb,powerbuilder,.net,setfullstate,settext,datastore,accepttext,ds , KBA , BC-SYB-PB , Powerbuilder , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.