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.
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- How can Multi-select in DDDWs be done?
- John Sestak
- PowerBuilder
- Tuesday, 17 January 2023 18:35 PM UTC
- Tuesday, 24 January 2023 11:47 AM UTC
- PowerBuilder
- # 1
Hi Chris.
Could you elaborate on the "drop" event (pbm_dwndropdown ? ), and how you cancel the dddw ?
TIA
Mickey
Comment
Load more comments
- Mickey Hillel
- Tuesday, 24 January 2023 20:34 PM UTC
Thanks Rene & Chris for your suggestions. :-)
-
Helpful Loading... Helpful 0
- Mickey Hillel
- 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.
-
Helpful Loading... Helpful 0
- René Ullrich
- 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.
-
Helpful Loading... Helpful 0
There are no comments made yet.
- Wednesday, 18 January 2023 04:28 AM UTC
- PowerBuilder
- # 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.
- Tuesday, 17 January 2023 18:53 PM UTC
- PowerBuilder
- # 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:
Best regards, John
Comment
- Linda Butler
- 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)?
-
Helpful Loading... Helpful 0
- René Ullrich
- 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
if dwo.name = "mycolumn" then
...
end if
-
Helpful Loading... Helpful 0
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.
However, you are not allowed to reply to this question.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »