1. Mohan Gawade
  2. PowerBuilder
  3. Wednesday, 16 March 2022 13:50 PM UTC

I have 4 DropDownDatawindow (dddw) in a screen, all retrieved and shared using ShareData () in a single/same datawindow object . Out of 4 the 3 DropDownDatawindow works as expected but for the account datawindow the data are not getting display. But if I click and choose data from rest of the datawindow then if i select the account datawindow the data are visible but its not allowing to select anything from the list , as soon as we hover the mouse pointer to select it disappears.

Please refer video at https://youtu.be/iJXsJNtBu-c for your better understanding.

Mohan Gawade Accepted Answer Pending Moderation
  1. Monday, 21 March 2022 17:17 PM UTC
  2. PowerBuilder
  3. # 1

Thanks All, My issue got resolved now.

I've declared Datastore as instance instead of local and its working as expected.

Earlier it had been declared as locally and it was working as expected in PB08 but after migration into PB2019 R3 it was not working .

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 17 March 2022 15:22 PM UTC
  2. PowerBuilder
  3. # 2

The code in the wf_populate_account_type script concerns me. In this script, the following actions are performed:

  1. local DataStore in created.
  2. A data object is assigned to the DataStore.
  3. A Transaction object is assigned to the DataStore.
  4. The DataStore.Retrieve() method is called.
  5. If any rows are returned to the DataStore, ShareData is called; The local DataStore is the primary data source and the DataWindowChild is the secondary.
  6. The script ends, which destroys all local variables in the script, including and especially the DataStore.

The Help documentation on ShareData is pretty clear (I'm including an annotated partial screen capture below):

To me, this would appear to explain why the Account Number child DW is empty. The remaining wonky behavior may be due to this... I cannot say with any certainty.

HTH, John

Comment
There are no comments made yet.
Mohan Gawade Accepted Answer Pending Moderation
  1. Thursday, 17 March 2022 10:57 AM UTC
  2. PowerBuilder
  3. # 3

Hi All,

Please find the attached "Prt Scr for account_type_dddw.PDF" file showing screenshots of the code to populate these 4 DDDWs.

 

Attachments (1)
Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 16 March 2022 18:19 PM UTC
  2. PowerBuilder
  3. # 4

Hi Mohan;

   I would suggest using those same DWO's and then creating a small Test Case PB App that reflects this issue.Then attach this test case to this thread. Also, you could create a support ticket for Appeon's tech support to review the test case if you think that this is a genuine bug.

Note: If you post issues like this, please give us detailed information about your PB environment.

Regards ... Chris

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 16 March 2022 16:16 PM UTC
  2. PowerBuilder
  3. # 5

Hi, Mohan -

Difficult to say with any certainty without seeing code, but from the YouTube clip you made available it appears as if the DataWindowChild (DWC) for the Account column may be getting invalidated. Does the window perform a GetChild on the account column to obtain a reference to child DW? Is there any manipulation of DWC properties being performed in the code? If so, this typically causes the reference to the child DW to become invalid.

Regards, John

Comment
  1. Olan Knight
  2. Thursday, 17 March 2022 14:50 PM UTC
Re-using the same variable for the datawindowchild could be the root cause of this.

Please be sure if you have 4 dddws that all exist at the same time that you have 4 different variables to hold the datawindowchild values.
  1. Helpful
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Wednesday, 16 March 2022 15:43 PM UTC
  2. PowerBuilder
  3. # 6

Mohan -

   Please show us your code to populate these 4 DDDWs.

   Some  thoughts:

1.  If the values are independent of each other why are you using a shared DW behind the scenes?

2. When populating the dddw, have you inserted a row into the host dw (the dw that holds the dddw)?

3. Have you retrieved the data?

4. Have you determined the pointer to the datawindowchild, checked the rowcount > 0, then scrolled t orow 1?



Later -

Olan

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.