1. Rins Francis
  2. PowerBuilder
  3. Monday, 9 March 2020 08:27 AM UTC

dear team,

 

please help me to resolve the issue

plz go thru the script

 

long ll_row 

DataWindow ldw_print

ldw_print= create DataWindow

ldw_print.dataobject = 'dw_test'

ll_row = ldw_print.insertrow(0)

 

this is the script ; ll_row gives me the value -1 

the dw_test is freeform datawindow which is created externally... (means no need to retrieve from db)

 

i am stuck on this plz help me to resolve

i am using Appeon PowerBuilder Standard Edition,Version 2017 R3 Build 1915

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Monday, 9 March 2020 08:36 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Rins,

You can't create a datawindow (control) that way. You may only use it as a control.

Use a datastore instead.

long ll_row 

DataStore lds_print

lds_print= create DataStore

lds_print.dataobject = 'dw_test'

ll_row = lds_print.insertrow(0)

Comment
There are no comments made yet.
Rins Francis Accepted Answer Pending Moderation
  1. Monday, 9 March 2020 09:00 AM UTC
  2. PowerBuilder
  3. # 1

Thank you René Ullrich, now the issue solved....

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.