1. John Sestak
  2. PowerBuilder
  3. Tuesday, 17 January 2023 18:35 PM UTC

What is the best method multi-select in dropdown DWs be accommodated for users.  This is an important issue for our reporting.  It does not appear to be a native PB functionality for DDDWs.

Mickey Hillel Accepted Answer Pending Moderation
  1. Tuesday, 24 January 2023 11:47 AM UTC
  2. PowerBuilder
  3. # 1

Hi Chris.

Could you elaborate on the "drop" event (pbm_dwndropdown ? ), and how you cancel the dddw ? 

TIA

Mickey

Comment
  1. Mickey Hillel
  2. Tuesday, 24 January 2023 20:34 PM UTC
Thanks Rene & Chris for your suggestions. :-)
  1. Helpful
  1. Mickey Hillel
  2. Tuesday, 24 January 2023 20:59 PM UTC
I couldn't get the pbm_dwndropdown to trigger at all, but pbm_command with notificationcode = 256 seems to do the trick.
  1. Helpful
  1. René Ullrich
  2. Wednesday, 25 January 2023 06:51 AM UTC
I have no problem with pbm_dwndropdown. Check that you con't have two different events with this event id.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 18 January 2023 04:28 AM UTC
  2. PowerBuilder
  3. # 2

Hi John;

  FWIW: What I do on the "Drop" event of the DDDW is to intercept that user defined event, cancel the DDDW & instead, open a response dialogue. In that dialogue, I use a Tabular "List" DW where the App user can select more than one row. When the Response dialogue closes, I pass the multi-selection values back to the calling DWO / Window for processing.  Food for thought.  HTH

Regards ... Chris

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 17 January 2023 18:53 PM UTC
  2. PowerBuilder
  3. # 3

You have to simulate the functionality, as the DW is not designed to do this. I found this example by doing a web search:

   https://programmingmethodsit.com/knowledge-base/multiple-select-option-for-the-datawindow-dropdown-in-powerbuilder/

Best regards, John

Comment
  1. Linda Butler
  2. Wednesday, 18 September 2024 15:50 PM UTC
The above example 'multi-select-option-for-datawindow-dropdown....' works fine for datawindows that just have columns with DDDWs with multi-selection. I could not get this to work on a datawindow that just has other columns besides a dddw that needs mulit-selection. The 'Return 2' in itemchanged event prevented data in other columns to be accepted. I tried isolating when to return 2 on only when this event was triggered from ue_command. If I return 0, the multiselection in the dddw did not work. Has anyone used this on datawindows that have more than just the 'multiselection' dddw(s)?
  1. Helpful
  1. René Ullrich
  2. Thursday, 19 September 2024 04:31 AM UTC
You can easy limit the return 2 in itemchanged event to columns you want. For example:

if dwo.name = "mycolumn" then

...

end if
  1. Helpful
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.