on 06-03-2013 1:27 PM
Hi Experts,
My requirement is to add a new field in the login page. The field that to be added is Passcode field, so I need the type of field as password. How can I add my new field in the Logon Page and how to validate this field. This validation should be done with respect to database table i.e., ztable.
I have imported WAR file, but in the logonPage.jsp I found the the SAP is using its own tags. Now how can I create the tags as SAP?
Please open your logonPage.jsp under Project-->WebContent-->logonPage.jsp and add the following code snippet:
Somewhere in the table or table row as per your needs add to jsp.
<table id="tblFrmUI" >
PIN: <input type="text" name="pin" value="Mickey"><br>
</table>
Also , you have to import the RFC and pass the captured pin number via session bean context to your ztable.
Thanks
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satish,
Refer to the following document,
http://scn.sap.com/docs/DOC-27909
instead of adding text, you need to add additional field as per your requirement.
Hope it helps.
Regards
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you know how to use SAP tags you can go with that or else create your own input field and write a JavaScript code to validate that inputfield onblur event.
Before all these you have find the event that triggers on the Logon submit button because you have to validate the passcode field on sumbit action.
So what i found was document.forms[0].onsubmit=function() called on submit so write your javascript code of validate inside this for your input filed.
Use script debugger to see the entire flow of JavaScript events and check..
May be this will help...
Reagrds,
Srinivasan V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.