Function SET175E Select the to-port
********** COMMENT(=======================================================);
********** COMMENT(Process ........: SET_175);
********** COMMENT(Function .......: SET175E);
********** COMMENT(Created on .....: 18/05/00 at 14:43:32);
********** COMMENT(Description ....: Generate a page for each first port);
********** COMMENT(Version.........: 1);
********** COMMENT();
********** COMMENT(Full Description: The purpose of this function is to);
********** COMMENT(generate one page per first port with links to every);
********** COMMENT(valid second port.);
********** COMMENT();
********** COMMENT(Disclaimer: The following material is supplied as an);
********** COMMENT(example only. No warranty is expressed or implied.);
********** COMMENT();
********** COMMENT(Receives: Service (#S_175SRV));
********** COMMENT( Page name (#S_175IDP1));
********** COMMENT( First port(#S_175PRT));
********** COMMENT(=======================================================);
********** COMMENT(Function control options);
FUNCTION OPTIONS(*DIRECT *WEBEVENT);
********** COMMENT();
********** COMMENT(<RDML ONCONDITION> field.);
********** COMMENT(Group and field definitions);
********** COMMENT();
********** COMMENT(NAME(#PANELDATA) FIELDS((#S_175E *INPUT *NOID) (#S_175S);
********** COMMENT(RV *HIDDEN) (#S_175PRT *HIDDEN)));
GROUP_BY NAME(#PANELDATA) FIELDS((#S_175MENU *HIDDEN)(#S_175PRT *HIDDEN)(#S_175FDES *HIDDEN)(#S_175SRV *HIDDEN));
DEF_LIST NAME(#S_LST175E) FIELDS((#S_175PRT2 *HIDDEN)(#S_175IDPP *INPUT));
DEF_LIST NAME(#S_LSTPORT) FIELDS((#S_175PRT2)(#S_175IDPP)(#S_175SEQ)) TYPE(*WORKING);
********** COMMENT();
********** COMMENT();
********** COMMENT(Mainline);
USE BUILTIN(TCONCAT) WITH_ARGS(#S_IFSPATH '/') TO_GET(#S_IFSPATH);
USE BUILTIN(WEB_STATIC_PAGE) WITH_ARGS(#S_175IDP1 '*NO' #S_IFSPATH);
********** COMMENT();
********** COMMENT();
********** COMMENT(Build a list of all the valid discharge ports for a);
********** COMMENT(service and load port);
CLR_LIST NAMED(#S_LSTPORT);
SELECT FIELDS((#S_175PRT1)(#S_175PRT2)(#S_175IDPP)) FROM_FILE(SETPTP) WITH_KEY(#S_175SRV #S_175PRT);
FETCH FIELDS(#S_175SEQ) FROM_FILE(SETPT1) WITH_KEY(#S_175SRV #S_175PRT2);
ADD_ENTRY TO_LIST(#S_LSTPORT);
ENDSELECT;
********** COMMENT();
********** COMMENT(Sort the list in the correct order);
SORT_LIST NAMED(#S_LSTPORT) BY_FIELDS((#S_175SEQ));
********** COMMENT(Map the list into the browselist);
CLR_LIST NAMED(#S_LST175E);
SELECTLIST NAMED(#S_LSTPORT);
ADD_ENTRY TO_LIST(#S_LST175E);
ENDSELECT;
********** COMMENT();
REQUEST FIELDS(#PANELDATA) BROWSELIST(#S_LST175E) EXIT_KEY(*NO) MENU_KEY(*NO) PROMPT_KEY(*NO);
********** COMMENT(=======================================================);
********** COMMENT(Process ........: SET_175);
********** COMMENT(Function .......: SET175E);
********** COMMENT(Created on .....: 18/05/00 at 14:43:32);
********** COMMENT(Description ....: Generate a page for each first port);
********** COMMENT(Version.........: 1);
********** COMMENT();
********** COMMENT(Full Description: The purpose of this function is to);
********** COMMENT(generate one page per first port with links to every);
********** COMMENT(valid second port.);
********** COMMENT();
********** COMMENT(Disclaimer: The following material is supplied as an);
********** COMMENT(example only. No warranty is expressed or implied.);
********** COMMENT();
********** COMMENT(Receives: Service (#S_175SRV));
********** COMMENT( Page name (#S_175IDP1));
********** COMMENT( First port(#S_175PRT));
********** COMMENT(=======================================================);
********** COMMENT(Function control options);
FUNCTION OPTIONS(*DIRECT *WEBEVENT);
********** COMMENT();
********** COMMENT(<RDML ONCONDITION> field.);
********** COMMENT(Group and field definitions);
********** COMMENT();
********** COMMENT(NAME(#PANELDATA) FIELDS((#S_175E *INPUT *NOID) (#S_175S);
********** COMMENT(RV *HIDDEN) (#S_175PRT *HIDDEN)));
GROUP_BY NAME(#PANELDATA) FIELDS((#S_175MENU *HIDDEN)(#S_175PRT *HIDDEN)(#S_175FDES *HIDDEN)(#S_175SRV *HIDDEN));
DEF_LIST NAME(#S_LST175E) FIELDS((#S_175PRT2 *HIDDEN)(#S_175IDPP *INPUT));
DEF_LIST NAME(#S_LSTPORT) FIELDS((#S_175PRT2)(#S_175IDPP)(#S_175SEQ)) TYPE(*WORKING);
********** COMMENT();
********** COMMENT();
********** COMMENT(Mainline);
USE BUILTIN(TCONCAT) WITH_ARGS(#S_IFSPATH '/') TO_GET(#S_IFSPATH);
USE BUILTIN(WEB_STATIC_PAGE) WITH_ARGS(#S_175IDP1 '*NO' #S_IFSPATH);
********** COMMENT();
********** COMMENT();
********** COMMENT(Build a list of all the valid discharge ports for a);
********** COMMENT(service and load port);
CLR_LIST NAMED(#S_LSTPORT);
SELECT FIELDS((#S_175PRT1)(#S_175PRT2)(#S_175IDPP)) FROM_FILE(SETPTP) WITH_KEY(#S_175SRV #S_175PRT);
FETCH FIELDS(#S_175SEQ) FROM_FILE(SETPT1) WITH_KEY(#S_175SRV #S_175PRT2);
ADD_ENTRY TO_LIST(#S_LSTPORT);
ENDSELECT;
********** COMMENT();
********** COMMENT(Sort the list in the correct order);
SORT_LIST NAMED(#S_LSTPORT) BY_FIELDS((#S_175SEQ));
********** COMMENT(Map the list into the browselist);
CLR_LIST NAMED(#S_LST175E);
SELECTLIST NAMED(#S_LSTPORT);
ADD_ENTRY TO_LIST(#S_LST175E);
ENDSELECT;
********** COMMENT();
REQUEST FIELDS(#PANELDATA) BROWSELIST(#S_LST175E) EXIT_KEY(*NO) MENU_KEY(*NO) PROMPT_KEY(*NO);