Kbase P121260: How to access a SDO field from a viewer
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/15/2007 |
|
Status: Unverified
GOAL:
How to access SDO field from a viewer
GOAL:
How to get field values from a SDO
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
Windows
FIX:
The ADM2 model isolate the visualization from the Data Access and Business Logic. So, in order to access logic and methods application developer should:
1 - access the
handle of the desired source.
2- Call the desired method to get the field value.
In this case, to get a field value from a viewer (browser, viewer), use the code below:
/* gets the handle*/
DEF VAR hsource AS HANDLE.
{get DataSource hSource}.
/* gets the desired fields */
DEF VAR cColumns AS CHAR.
cColumns = entry(2,DYNAMIC-FUNCTION ("colValues":U IN hSource,
"Address"), CHR(1)) NO-ERROR.
MESSAGE cColumns.