# Web Development Toolkit

## Examples

| ### HTML Query form <form name="form1" method="POST" action="<EWDT:edb valueName="SCRIPT_NAME"></EWDT:edb>"> <EWDT:edbft fieldName="T_MASTER_DAT.PART_ID"></EWDT:edbft> <input name="T_MASTER_DAT.PART_ID" type="text" value=""> <input name="usx" type="hidden" value="iwf_exi_edt"> <input name="param" type="hidden" value="F"> <input name="tpl" type="hidden" value="WWW-ART-SLI.jsp"> </form> In which the user-exit iwf_exi_edt finishes the mask-edit state for the active mask and executes the fetch action – described in the param-attribute – passed.
| ### HTML Result list <table> <tr> <th><EWDT:edbft fieldName="T_MASTER_DAT.PART_ID"></EWDT:edbft></th> <th><EWDT:edbft fieldName="T_MASTER_DAT.PART_NAME"></EWDT:edbft></th> </tr> <EWDT:edbrepeat> <tr> <td> <a id="<EWDT:edb valueName='rowid'></EWDT:edb>" href="<EWDT:edb valueName='usx' usx='xedb_iwf_frm_ent' params='EDB-ARTICLE EDB-ART-CFR @>' template='WWW- ART-SFR.jsp'></EWDT:edb> &rowid=<EWDT:edb valueName='rowid'></EWDT:edb>"> <EWDT:edb valueName='fld_val' fieldName='T_MASTER_DAT.PART_ID'></EWDT:edb> </a> </td> <td> <EWDT:edb valueName='fld_val' fieldName='T_MASTER_DAT.PART_NAME'> </EWDT:edb> </td> </tr> </EWDT:edbrepeat> </table> The list shows a table of hits from the database. It also allows the navigation to a form representation of a single record.
| ### HTML Result form <EWDT:edbft fieldName="T_MASTER_DAT.PART_ID"></EWDT:edbft> <EWDT:edb valueName='fld_val' fieldName='T_MASTER_DAT.PART_ID'></EWDT:edb> … <EWDT:edbsm subMaskName='EDB-ART-STR-RLI-C' template='/web_root/templates/WWW-ART-STR-RLI.jsp'></EWDT:edbsm> The result form will retrieve the record data again and may display any sub-mask that is defined in the repository.
| ### FileServer <a id="<EWDT:edb valueName='rowid'></EWDT:edb>" target="<EWDT:edb valueName='ewdtFrameName'></EWDT:edb>" href="<EWDT:edb valueName='usx' usx='xfile_cko_res' params='/ROC' template='fmsOp.jsp'></EWDT:edb>&rowid=<EWDT:edb valueName='rowid'></EWDT:edb>"> <EWDT:edb valueName='fld_val' fieldName='T_FILE_DAT.ORG_NAME'></EWDT:edb></a> Note: to be able to use the download features you will need to have your vault web-enabled. See the Agile e6 Online Documentation for more information.
| ### Customize Login
| When customizing the login, it is a good idea to create a new WPS application via the administrator page, which defaults to http://host:8017
| When creating a new WPS application, you need to provide a name. It will create a WPS directory in the /epclt/ directory. Any changes you need to make to this WPS application should be made in that WPS application directory.
| Add property to webplm.properties file: axalant.web.loginPage=/customLoginPage.jsp
| Copy the file loginPage.jsp to customLoginPage.jsp
| Modify the custom LoginPage.jsp. When modifying the HTML, take care with the <INPUT> fields "j_application", "j_username", "j_password", "j_host", and "j_port". It is important that the “name” attributes are not changed. The "j_application", "j_username", "j_password" are usually filled in by the user, while the "j_host", and "j_port" fields are hidden and are filled in automatically. The “j_uid” and “j_ticket” <INPUT> fields are used with single sign-on and are not required.
| To change the login splash screen, copy the file loginSplash.jsp to customLoginSplash.jsp
| Modify the customLoginSplash.jsp.
| In customLoginPage.jsp, find the line below session.setAttribute("loginSplash", "/loginSplash.jsp"); and change it to: session.setAttribute("loginSplash", "/customLoginSplash.jsp");

###