.WIDGET COUNT ROWS

This subroutine counts the number of selected rows in a table widget.


Usage:

      PASS         <count>                    FIELD            SHARE? Y
      PASS         <widget name>              FIELD            SHARE? N
      GOSUB    --- .WIDGET COUNT ROWS
      *        Check for errors
      IF       --- .WIDGET COUNT ROWS         NE

Description:

This subroutine counts the number of selected rows in a table widget. All parameters are required, the subroutine will cancel if any are missing.

<count> is the count of selected rows returned to you (Required). This must be PASSed with Share "Y" to return the value.

<widget name> is the name of the table widget (Required).

This is a quick way to determine how many rows the user has selected when they single or double click in a table widget.

Comments:

Read what other users have said about this page or add your own comments.


This is a nice way to ensure that multiple rows aren't selected when you only want to process one record. A nicer future enhancement would be a field in the Widget file to allow or disallow multiple selections (WIDGET MULT ROWS OK?).

-- AlKalter - 2013-06-05
 

-- JeanNeron - 2013-05-29

This topic: APPX > WebHome > APPX52BugFixes > 0LASubrWidgetCountRows
Topic revision: 05 Jun 2013, AlKalter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback