Paul,
Using the Enhanced DB Grid, when the "Multiselect" option is checked,
the selected rows can be captured in a comma separated values for the
specified field/column.
Here is how ...
Use the GETPROPERTY ComponentID 'SELECTEDVALUES[NNN]' 'VarName' to
capture selected values.
The "NNN" inside the brace can be the column name or the zero-based
grid column index, to work with the multiselect option.
To selected multiple rows, press Ctrl+Click or Shift+Click. Use
Ctrl+Click to select random rows. Use Shift+Click to select a
contiguous block of rows.
-- Example 01:
-- Capturing selected values based on column name
GETPROPERTY GridCtrl 'SELECTEDVALUES[FieldName]' 'vCSVValues'
RETURN
-- Example 02:
-- Capturing selected values based on zero-based grid column index
GETPROPERTY GridCtrl 'SELECTEDVALUES[0]' 'vCSVValues'
RETURN
Based on RRBYW19 sample database, see attached screen shot for
your viewing pleasure.
-- Example 03:
-- Show Selected Values
SET VAR vCSVValues NOTES = NULL
GETPROPERTY DBGrid_Customers 'SELECTEDVALUES[CustID]' 'vCSVValues'
CLS
PAUSE 2 USING .vCSVValues CAPTION 'Selected Values' ICON WINDOWS +
BUTTON 'Press any key to continue ...' +
OPTION BACK_COLOR WHITE +
|MESSAGE_FONT_NAME Tahoma +
|MESSAGE_FONT_COLOR NAVY +
|MESSAGE_FONT_SIZE 11
RETURN
That's all there is to it!
Have fun.
Very Best R:egards,
Razzak
At 08:08 AM 12/20/2017, Paul C. Buckley wrote:
Good morning,
Sorry, I need to repost this but I haven't received any feedback and
I'm still trying to get this working. Thanks in advance.
I'm using the latest release or R:BASE Extreme Enterprise and trying
to use multi-select in a Enhanced DB Grid. Under DB Grid Options I
have checked Multiselect and I am able to select multiple rows. I
can't find the variable that stores those selections? I've tried
'GETPROPERTY gridID 'SELECTEDVALUES[columnname]' 'vmultiselect' '
but the variable vmultiselect is null.
Any blues clues would be greatly appreciated.
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.