Function SET184X

LANSA

Function SET184X

********** COMMENT(=======================================================);
********** COMMENT(Process ........: SET_184);
********** COMMENT(Function .......: SET184X);
********** COMMENT(Created on .....: 26/07/00 at 14:43:32);
********** COMMENT(Description ....: More than one input capable);
********** COMMENT( browselist in a page);
********** COMMENT(Version.........: 1);
********** COMMENT();
********** COMMENT(Full Description: The purpose of this function is to);
********** COMMENT(show how to display multiple input capable browselists);
********** COMMENT(on a page);
********** COMMENT();
********** COMMENT(Disclaimer: The following material is supplied as an);
********** COMMENT(example only. No warranty is expressed or implied.);
********** COMMENT();
********** COMMENT();
********** COMMENT(Receives: nothing);
********** COMMENT();
********** COMMENT(=======================================================);
********** COMMENT(Function control options);
FUNCTION OPTIONS(*DIRECT *WEBEVENT);
********** COMMENT();
********** COMMENT(Group and field definitions);
********** COMMENT();
GROUP_BY NAME(#S_GRPPANL) FIELDS((#S_184FDES *INPUT *NOID)(#STDRENTRY *HIDDEN)(#S_FUNDES *HIDDEN));
********** COMMENT((Field #S_184FDES has a component S_184FDES which);
********** COMMENT(merges in a component with the same name as the);
********** COMMENT(function (in this case component SET184X)));
DEF_LIST NAME(#S_184X1FV) FIELDS((#S_184CDE)(#S_184DES)(#S_184QTY)(#S_184UNIT)(#S_184UPRC)(#S_184TPRC));
DEF_LIST NAME(#S_184X2FV) FIELDS((#S_184CDE)(#S_184DES)(#S_184QTY)(#S_184UNIT)(#S_184UPRC)(#S_184TPRC));
********** COMMENT();
DEF_LIST NAME(#S_WRKFVC) FIELDS((#S_184CDE)(#S_184DES)(#S_184QTY)(#S_184UNIT)(#S_184UPRC)(#S_184TPRC)(#S_184IMG)) TYPE(*WORKING) ENTRYS(0000500);
********** COMMENT();
********** COMMENT(Mainline);
********** COMMENT();
CHANGE FIELD(#S_FUNDES) TO(*FUNCTION_DESC);
********** COMMENT();
CASE OF_FIELD(#STDRENTRY);
WHEN VALUE_IS('= *BLANKS');
********** COMMENT(first time in - build browselists);
********** COMMENT();
CHANGE FIELD(#STDRENTRY) TO(Y);
********** COMMENT();
CLR_LIST NAMED(#S_184X1FV);
CLR_LIST NAMED(#S_184X2FV);
********** COMMENT(Function SET184Y populates list #S_WRKFVC with data);
CALL PROCESS(*DIRECT) FUNCTION(SET184Y) PASS_LST(#S_WRKFVC );
********** COMMENT();
********** COMMENT(Build both browselists in input mode);
SET_MODE TO(*CHANGE);
SELECTLIST NAMED(#S_WRKFVC);
ADD_ENTRY TO_LIST(#S_184X1FV);
ADD_ENTRY TO_LIST(#S_184X2FV);
ENDSELECT;
********** COMMENT(and continue on to display the browselists);
********** COMMENT();
WHEN VALUE_IS('= Y');
********** COMMENT(redisplay the browselists with any changes the user);
********** COMMENT(entered);
ENDCASE;
********** COMMENT();
REQUEST FIELDS(#S_GRPPANL) EXIT_KEY(*NO) MENU_KEY(*NO) PROMPT_KEY(*NO);
********** COMMENT((Field #S_184FDES has a component S_184FDES which);
********** COMMENT(merges in a component with the same name as the);
********** COMMENT(function (in this case component SET184X)));
********** COMMENT();
IF COND('1 *EQ 2');
********** COMMENT(These two browselists are displayed via component);
********** COMMENT(SET184X);
********** COMMENT();
REQUEST BROWSELIST(#S_184X1FV) EXIT_KEY(*NO) MENU_KEY(*NO) PROMPT_KEY(*NO);
REQUEST BROWSELIST(#S_184X2FV) EXIT_KEY(*NO) MENU_KEY(*NO) PROMPT_KEY(*NO);
ENDIF;
********** COMMENT();