1. Sivaprakash BKR
  2. PowerBuilder
  3. Friday, 25 October 2019 06:49 AM UTC

Hello,

Pb 2017 R3, Postgresql 11, Windows 10

Got a drop down datawindow with 4 columns.   This dddw should list all 4 columns, in both display columns and data columns fields, while binding it with a datawindow field. 

But it displays only the already selected columns only, instead of all 4 columns, while trying to edit the datawindow.  By some more clicks randomly, we get back all four columns.   We couldn't pinpoint how those 4 columns gets displayed.  We couldn't remember having this issue earlier.  Remember some Windows 10 update happened recently, not tested in Windows 7.

Anyone faced this issue ?

Happiness Always
BKR Sivaprakash

 

Accepted Answer
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 31 October 2019 09:19 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Sivaprakash,

The answer I got on the "bug" site is that this is an earlier reported bug which has been fixed in pb2019.

Cheers

Comment
  1. Sivaprakash BKR
  2. Friday, 1 November 2019 04:43 AM UTC
So, we have live it with that bug till we move to 2019... hmmm...
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 1 November 2019 08:26 AM UTC
This what they said on the bug site:

Hi Miguel,



I appreciate your attention to this issue.

Generally, for PB 2017 R3’s bugs, we will fix it into PB 2017 R3 MR only if it is serious/important.

As for the bug you mentioned, we don’t have a plan to fix it to PB 2017 R3 as there is a workaround there.

Appreciate your understanding.



I will now close this ticket. If you have other problems, please feel free to open a new ticket.



Regards,

Ken
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 30 October 2019 07:56 AM UTC
  2. PowerBuilder
  3. # 1

Dear Sivaprakash BKR,

 

I've reported this as bug 3557. I thought I'd save you the trouble of explaining everything again.

Regards.

Comment
  1. Sivaprakash BKR
  2. Wednesday, 30 October 2019 08:11 AM UTC
Thanks Miguel Leeuwe.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 30 October 2019 07:49 AM UTC
  2. PowerBuilder
  3. # 2

At first I could not reproduce the problem because I migrated to PB2019 R2 beta.

The problem only seems to exist in PB2017 R3.

I'll report this as a bug to Appeon.

I've attached your problem case with the problem narrowed down, leaving only the dw with the problem column.

If you:

1) click on the "suppliername" column which has a dddw in the edit style.

2) click on the properties "Edit" tabpage

3) scroll down to where the dddw display and data columns are, you'll only see 1 column listed

4) without changing from the tabpage "Edit", click on the other column,

5) click back on "suppliername" and voila! ... There are the other columns.

 

In pb2019 (R2 beta) this little problem doesn't seem to exist and I've compared the datawindows, absolutely nothing has changed due to migration. It's a difference in PB itself.

(see the attached case)

Attachments (1)
Comment
  1. Sivaprakash BKR
  2. Wednesday, 30 October 2019 08:16 AM UTC
Checked. Thanks.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 30 October 2019 06:22 AM UTC
  2. PowerBuilder
  3. # 3

I've been able to reproduce your problem, at first I couldn't ... so give me a moment to see what made it possible to reproduce the problem...

 

Comment
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Wednesday, 30 October 2019 05:49 AM UTC
  2. PowerBuilder
  3. # 4

Hello,

PB 2017 R3

Here is attached those two dws (drop down datawindow and entry datawindow) in the attached zip file.  You could just unzip and open the project.   ( all files are zipped and attached as rar file ).

dw_entry_purchase_header                  is the dw to check.

Check the edit properties of the field suppliername.

And also the edit properties of the field supplierbranchfk.

Both uses the same drop down datawindow, both showing different set of columns.

  1. If we first check the edit properties of supplierbranchfk, then move to suppliername, NO issues. everything is ok.
  2. If we first check the edit properties of suppliername, it lists only one column.
  3. Once all columns are displayed, this issue re-appears only when we re-open the datawindow again after closing it.

Happiness Always
BKR Sivaprakash

 

 

Attachments (1)
Comment
  1. Sivaprakash BKR
  2. Wednesday, 30 October 2019 06:00 AM UTC
How we get back all columns.

1. Click any other columns, except the column(s) which have dddw. (eg. vouchertype)

2. Right Click Properites. Click on any edit properties. Need NOT do anything.

3. Now Right click the column which we want to check ( here suppliername)

4. Click Properites. even though the properties panel is open, we click here again.

5. Now Click Width of DropDown(%) column with mouse.

6. Then Tab to next column, using keyboard. Again Tab, Again Tab. Now the focus will be in Display Column.

7. Press F4 Key to list. It lists all columns.

  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 29 October 2019 13:27 PM UTC
  2. PowerBuilder
  3. # 5

Ok, no.3 is clear now. :)
Can you export your datawindows and attach them?

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 29 October 2019 09:13 AM UTC
  2. PowerBuilder
  3. # 6

Hi, maybe I know what's going wrong here, so please check on the following.

You say "

(Contd.)

3. Most of the datawindow creations are done, by coping from old datawindow and making changes in source editor. Only the first few datawindows are created from scratch.
  1. Sivaprakash BKR
  2.  
  3. Tuesday, 29 October 2019

"

In my experience, lots of times when you copy stuff from one datawindow to another, the internal id's of the datawindow get mixed up.

Edit the source of the datawindow which fails and make sure the id=?? number corresponds with the order of appearance of your column in this section.

For example, if your edit the source code and it looks like this, the column= order of appearance, has to correspond with the id=//. After "table(" there's a list of "column=". The first corresponds to id=1, the second to id=2, etc.:

table(column=(type=decimal(0) update=yes updatewhereclause=yes name=message_id ...
column=(type=char(8) update=yes updatewhereclause=yes name=to_user_id ...
column=(type=char(8) update=yes updatewhereclause=yes name=from_user_id ...
column=(type=char(1000) update=yes updatewhereclause=yes name=message_summary ...
column=(type=char(32765) update=yes updatewhereclause=yes name=message_detail ...
column=(type=datetime update=yes updatewhereclause=yes name=date_raised ...
column=(type=char(1) update=yes updatewhereclause=yes name=read dbname="cs_user_messages.read" ) ...
column=(type=char(80) updatewhereclause=yes name=from_user_name dbname="cc_user.user_name" ) ...
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"cs_user_messages~" ) TABLE(NAME=~"cc_user~" ) ...

column(band=detail id=1 alignment="1" tabsequence=10 border="0" ... name=message_id
column(band=detail id=4 alignment="0" tabsequence=40 border="0" ... name=message_summary
column(band=detail id=5 alignment="0" tabsequence=50 border="0" ... name=message_detail
column(band=detail id=6 alignment="0" tabsequence=60 border="0" ... name=....
column(band=detail id=7 alignment="0" tabsequence=70 border="0" ... name=....
column(band=detail id=8 alignment="0" tabsequence=80 border="0" ... name=

You don't see a "column(.... id=2..." nor "column(...id=3)" in this sample, because those columns are not shown on my datawindow.

Personally I NEVER copy columns from one datawindow to another, or at least not without afterwards checking on all the column id's in the edited source code.

HIH

Comment
  1. Sivaprakash BKR
  2. Tuesday, 29 October 2019 13:21 PM UTC
I admit that we used to copy individual columns also from one datawindow to another , though occasionally. We faced some issues at run time, while displaying data. On those times, we remove that column and again re-select it. That solves this issue.
  1. Helpful
  1. Sivaprakash BKR
  2. Tuesday, 29 October 2019 13:24 PM UTC
My point 1. The same drop down datawindow, that's been added for the next column works fine.
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 29 October 2019 13:27 PM UTC
Ok, no.3 is clear now. :)

Can you export your datawindows and attach them?
  1. Helpful
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Tuesday, 29 October 2019 06:48 AM UTC
  2. PowerBuilder
  3. # 7

I'll try with images.  

1.  Drop Down Datawindow with 4 columns.

2.  Now using this dddw in another dw (dw_entry_purchase_header), for field Supplier.  In the Edit Properties, DataWindow column is set with ddw_account_name_sub_branch_province and Display Column billbranchname is being selected.    When I click the Display Column, it should list all 4 columns from the dddw.   Here it list only the (already) selected column, billbranchname in display column drop down list and accountsubname in data column drop down list.

 

This could be viewed in the below image.  Display Column displaying only one column , instead of all the 4 columns.

The Data column also displaying one one column instead of all the four columns.

Hope this explains the issue better.

 

Comment
  1. Sivaprakash BKR
  2. Tuesday, 29 October 2019 07:01 AM UTC
Update(s).

1. The same drop down datawindow is used for (next) another column of the same datawindow with NO issues. It works perfectly right.



2. This issue is there in Win 7 also. Think NO OS related issue. Attached images are taken from Win 7 installed machine.

  1. Helpful
  1. Sivaprakash BKR
  2. Tuesday, 29 October 2019 07:37 AM UTC
(Contd.)

3. Most of the datawindow creations are done, by coping from old datawindow and making changes in source editor. Only the first few datawindows are created from scratch.
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 29 October 2019 08:59 AM UTC
There you go, that's what's probably causing your problem. See my reply.
  1. Helpful
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Monday, 28 October 2019 18:58 PM UTC
  2. PowerBuilder
  3. # 8

A dddw only has one column listed in the DISPLAY field and only one column available in the DATA field on the EDIT tabpage of the DW Painter.

What I have done when I need multiple columns is to create a new computed column with whatever I need displayed. There is still one ONE column in the displayed set of columns that is the key column; i.e. the one connected to the DATA. When the user selects a row, the key value is used.


Or maybe I don't understand the issue....  :/

 

Later -

Olan

Comment
  1. Miguel Leeuwe
  2. Monday, 28 October 2019 21:03 PM UTC
HI Olan, yes you're right. I was going to say the same thing, but what made me ask for a sample to replicate the issue, was that it's said to show columns when you start clicking around randomly. I'm pretty sure we could solve the mystery that way.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 28 October 2019 12:07 PM UTC
  2. PowerBuilder
  3. # 9

Can you make a small sample application which reproduces the problem?

You can set some fixed data in the data properties of the dddw, so you don't have to make us create tables and insert data.

What do you mean with modification of particularly "display column" and "data column"?

Comment
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Monday, 28 October 2019 10:38 AM UTC
  2. PowerBuilder
  3. # 10

Sorry for not describing things clearly.

I've a drop down datawindow (ddw_select_customer) with 4 columns, customername, customercode, customertype, customerarea.

I try to use this drop down datawindow in a data window (dw_customer) for a field customercode.  Now I set the following things in Edit Properties.

Style Type :   DropDownDW
DataWindow : ddw_select_customer
Display column : customername        [ Instead of all 4 columns, it shows only customername ]
Data Column: customercode             [ Instead of all 4 columns, it shows only customercode ]

Till now no issues.  Issues arises when I go for modification of the above data, particularly Display Column and Data Column.    These two columns got a combo box (drop down data window ?) which should list all the 4 columns from the selected drop down data window (ddw_select_customer).   

While setting those properties for the first time, no issues.  When I go there for re-checking, I could see only one column in the display Column and data column properties.

But by clicking some points, randomly, all 4 columns becomes visible.  Couldn't understand why this is happening suddenly.  

Got about 50 datawindows, built from scratch in 2017 R3.  Checked with around 10 datawindows all having this issue.  By making 2 or 3 clicks randomly in the datawindow, we could get all required fields in dddw.   So far no runtime issues.

Happiness Always
BKR Sivaprakash

 

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 25 October 2019 15:20 PM UTC
  2. PowerBuilder
  3. # 11

If not a lot of work, I would suggest to rebuild the dddw from scratch, save yourself some time.

No, have never seen this myself.

HTH

Comment
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Friday, 25 October 2019 14:36 PM UTC
  2. PowerBuilder
  3. # 12

Hi

I must admit that I do not fully understand your description of the problem. Are you saying that data columns are not displaying but random clicks makes them become visible?

If so I guess at this being a graphics driver problem and that windows is not displaying the DW correctly.

Apart from that I have not got a clue.

Regards

David

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.