Kbase P16393: How To Get The Number Of Tabs On A SmartFolder
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  02/08/2010 |
|
Status: Verified
GOAL:
How To Get The Number Of Tabs On A SmartFolder
SYMPTOM(s):
Progress 9.x
OpenEdge 10.x
FACT(s) (Environment):
Windows
FIX:
For ADM1 the following code will give you the number of tabs on a SmartFolder:
DEFINE VARIABLE intNumPages AS INTEGER NO-UNDO.
RUN request-attribute IN adm-broker-hdl (INPUT THIS-PROCEDURE, INPUT "PAGE-SOURCE", INPUT "FOLDER-LABELS").
IF RETURN-VALUE <> ? THEN
ASSIGN intNumPages = NUM-ENTRIES(RETURN-VALUE,"|").
For ADM2 the following code will give you the number of tabs on a SmartFolder:
DEFINE VARIABLE iNTNumPages AS INTEGER NO-UNDO.
ASSIGN intNumPages = NUM-ENTRIES(DYNAMIC-FUNCTION('getFolderLabels':U IN h_folder),'|').