Consultor Eletrônico



Kbase P55932: How to programatically change a dynaselect value ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/24/2003
Status: Unverified

GOAL:

How to programatically change a dynaselect value ?

FACT(s) (Environment):

Progress 9.1x

FIX:

Use setDataValue in h_dynselect.
The following example assigns state to MA for newly created customer records.
The state field is a smart data field and is referenced in the Smart Data Viewer as h_dynselect.
PROCEDURE addRecord:
/*------------------------------------------------------------------------------
Purpose: Super Override
Parameters:
Notes:
------------------------------------------------------------------------------*/

/* Code placed here will execute PRIOR to standard behavior. */

RUN SUPER.

/* Code placed here will execute AFTER standard behavior. */
/* for new customers make the default state MA */
DYNAMIC-FUNCTION( 'setDataValue':U IN h_dynselect, INPUT "MA" ).

END PROCEDURE.