1. Jim O'Hara
  2. PowerBuilder
  3. Thursday, 6 May 2021 12:37 PM UTC

I think that i have a dwshare issue. We are sharing 6 child datawindows with the parent and the users are getting an error on one column in only one of the child datawindows that is being shared with the parent. The code for this is

ls_pmdc = GetItemString( 1, 'pmdc')

i think the issue is that with this one datawindow the column 'pmdc' is spelled as 'pdmc'.

When I test the most recent build, i am not getting any kind of an error message, but the users are getting an error message like 'uo_dw_workrequest.of_setDefault() invalid column at line 31'.

Could the misspelling in that one column cause this issue? When you do a share do all columns in all datawindows have to be spelled the same as in the parent?

 

Thanks

Jim

 

 

 

 

 

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 6 May 2021 16:47 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jim;

  For a DWO "ShareData" to work 100% ...

  1. Same number of columns
  2. Must have the the columns in the same order in the SQL statement

HTH

Regards ... Chris

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 6 May 2021 12:43 PM UTC
  2. PowerBuilder
  3. # 2

Hi Jim,

No, ShareData doesn't change the datawindow properties (e.g. column names). It only shares the datawindow buffer - means the data.

If you call a method for a child dw you have to use the column name of this child.

If you want to be more flexible you can use GetItemxxx using the column number.

HTH,

René

 

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.