Function SET178D Sub-Type
********** COMMENT(=======================================================);
********** COMMENT(Process ........: SET_178);
********** COMMENT(Function .......: SET178D);
********** COMMENT(Created on .....: 18/05/00 at 14:43:32);
********** COMMENT(Description ....: Generate a page for each sub-type);
********** COMMENT(Version.........: 1);
********** COMMENT();
********** COMMENT(Full Description: The purpose of this function is to);
********** COMMENT(generate one page per sub-type with links to every);
********** COMMENT(relevant product.);
********** COMMENT();
********** COMMENT(Disclaimer: The following material is supplied as an);
********** COMMENT(example only. No warranty is expressed or implied.);
********** COMMENT();
********** COMMENT(Receives: Device Type (#S_178DVTP));
********** COMMENT( Sub-Type (#S_178SBTP));
********** COMMENT();
********** COMMENT(=======================================================);
********** COMMENT(Function control options);
FUNCTION OPTIONS(*DIRECT *WEBEVENT);
********** COMMENT();
********** COMMENT(<RDML ONCONDITION> field.);
********** COMMENT(Group and field definitions);
********** COMMENT();
GROUP_BY NAME(#S_GRPPANL) FIELDS((#S_178FDES *HIDDEN)(#S_178DVTP *HIDDEN)(#S_178SBTP *HIDDEN));
DEF_LIST NAME(#S_LST178D) FIELDS((#S_178PRD *HIDDEN)(#S_178PDES *HIDDEN)(#S_178BRND *HIDDEN)(#S_178PRCE)(#S_178PIMG *HIDDEN)(#S_178PTEC)(#S_178PPG *INPUT));
********** COMMENT();
********** COMMENT();
********** COMMENT(Mainline);
********** COMMENT();
GROUP_BY NAME(#S_GRPSUB) FIELDS((#S_178DVTP)(#S_178SBTP)(#S_178SBPG));
FETCH FIELDS(#S_GRPSUB) FROM_FILE(SETSUB) WITH_KEY(#S_178DVTP #S_178SBTP);
********** COMMENT();
USE BUILTIN(TCONCAT) WITH_ARGS(#S_IFSPATH '/') TO_GET(#S_IFSPATH);
USE BUILTIN(WEB_STATIC_PAGE) WITH_ARGS(#S_178SBPG '*NO' #S_IFSPATH);
********** COMMENT();
********** COMMENT();
********** COMMENT(Build a list of all the products for this sub-type);
CLR_LIST NAMED(#S_LST178D);
SELECT FIELDS(#S_LST178D) FROM_FILE(SETPRDL2) WITH_KEY(#S_178DVTP #S_178SBTP);
ADD_ENTRY TO_LIST(#S_LST178D);
ENDSELECT;
********** COMMENT();
********** COMMENT();
REQUEST FIELDS(#S_GRPPANL) BROWSELIST(#S_LST178D) EXIT_KEY(*NO) MENU_KEY(*NO) PROMPT_KEY(*NO);
********** COMMENT(=======================================================);
********** COMMENT(Process ........: SET_178);
********** COMMENT(Function .......: SET178D);
********** COMMENT(Created on .....: 18/05/00 at 14:43:32);
********** COMMENT(Description ....: Generate a page for each sub-type);
********** COMMENT(Version.........: 1);
********** COMMENT();
********** COMMENT(Full Description: The purpose of this function is to);
********** COMMENT(generate one page per sub-type with links to every);
********** COMMENT(relevant product.);
********** COMMENT();
********** COMMENT(Disclaimer: The following material is supplied as an);
********** COMMENT(example only. No warranty is expressed or implied.);
********** COMMENT();
********** COMMENT(Receives: Device Type (#S_178DVTP));
********** COMMENT( Sub-Type (#S_178SBTP));
********** COMMENT();
********** COMMENT(=======================================================);
********** COMMENT(Function control options);
FUNCTION OPTIONS(*DIRECT *WEBEVENT);
********** COMMENT();
********** COMMENT(<RDML ONCONDITION> field.);
********** COMMENT(Group and field definitions);
********** COMMENT();
GROUP_BY NAME(#S_GRPPANL) FIELDS((#S_178FDES *HIDDEN)(#S_178DVTP *HIDDEN)(#S_178SBTP *HIDDEN));
DEF_LIST NAME(#S_LST178D) FIELDS((#S_178PRD *HIDDEN)(#S_178PDES *HIDDEN)(#S_178BRND *HIDDEN)(#S_178PRCE)(#S_178PIMG *HIDDEN)(#S_178PTEC)(#S_178PPG *INPUT));
********** COMMENT();
********** COMMENT();
********** COMMENT(Mainline);
********** COMMENT();
GROUP_BY NAME(#S_GRPSUB) FIELDS((#S_178DVTP)(#S_178SBTP)(#S_178SBPG));
FETCH FIELDS(#S_GRPSUB) FROM_FILE(SETSUB) WITH_KEY(#S_178DVTP #S_178SBTP);
********** COMMENT();
USE BUILTIN(TCONCAT) WITH_ARGS(#S_IFSPATH '/') TO_GET(#S_IFSPATH);
USE BUILTIN(WEB_STATIC_PAGE) WITH_ARGS(#S_178SBPG '*NO' #S_IFSPATH);
********** COMMENT();
********** COMMENT();
********** COMMENT(Build a list of all the products for this sub-type);
CLR_LIST NAMED(#S_LST178D);
SELECT FIELDS(#S_LST178D) FROM_FILE(SETPRDL2) WITH_KEY(#S_178DVTP #S_178SBTP);
ADD_ENTRY TO_LIST(#S_LST178D);
ENDSELECT;
********** COMMENT();
********** COMMENT();
REQUEST FIELDS(#S_GRPPANL) BROWSELIST(#S_LST178D) EXIT_KEY(*NO) MENU_KEY(*NO) PROMPT_KEY(*NO);