Progress
ADM 2 Reference


columnHTMLName (html-map.p)

Finds the HTML field name of a column.

Parameters:

INPUT pcColumn AS CHARACTER

Column name

Returns: CHARACTER

Notes: None

Examples:

/* Loop through datasource columns. */ 
DO iFld = 1 TO NUM-ENTRIES(cColumns): 
    ASSIGN 
       cColName   = ENTRY(iFld,cColumns). 
     IF DYNAMIC-FUNCTION(’columnReadOnly’:U IN hDataSource, cColName) 
     THEN NEXT. 
     /* Build CHR(1)-separated list of column and HTML names. */ 
     ASSIGN 
      cHTMLName  = DYNAMIC-FUNCTION(’columnHTMLName’:U  
                      IN TARGET-PROCEDURE,cColName) 
      cColString = cColString 
                     + (IF cColString = "":U THEN "":U ELSE CHR(1)) 
                     + cColName + CHR(1) + get-field(cHTMLName). 
END. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095