Hello tusar,
Wanted to ask some to your first question:
Have you incorporated the function keys logic in the backend SAP? If yes, please see if it works without the device-specific meta tags for the "as it is" generated template. In my case, it worked without having to do any specific function key handling in the template.
If the above does not work, then you can carry on with javascript code [link as given by Oisin] for the particular device.
In order to recognize the custom JavaScript/CSS files [which is not the default file as given in the parameter settings for the internet service] in another folder, you will need to give the correct path in the following code where higlighted to include its contents for the current html template:
if ( ~itsmobileCustomJsInclude != "" )`
<script type="text/javascript" language="javascript" src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name="foldername/myJavascript.js")`"></script>
` end;`
Note: The service name should be the one under which this file is created.
The RFID under ITSMOBILE Service gets recognized by the following default code:
<!-- rfid values ----------------------------->
if ( ~RfidEnabledFields != "" ) `
<script type="text/javascript" language="javascript" src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="rfid/rfbutton.js")`"></script>
<script type="text/javascript" language="Javascript">
var rfid_fields = new Object;
` repeat with i from 1 to ~RfidEnabledFields.dim
<!-- get field name and index -->
rfidField = ~RfidEnabledFields[i];
rfidFieldIdx = ~RfidEnabledFields[i].idx;
rfidFieldParams = ~RfidEnabledFields[i].params; `
rfid_fields["`rfidField`[`rfidFieldIdx`]"] = { `rfidFieldParams` };
` end;`
</script>
` end;
Please let me know.