Use
You can insert source code patterns for HTMLBusiness functions to an HTML template simply. You can use wizards to create more complex elements, such as frames or buttons that trigger events.
Procedure
Inserting a Pattern
To insert a pattern for an HTMLBusiness function:
The system inserts the source code needed to call the HTMLBusiness function you have chosen at the correct position in the HTML template. Note that the function’s optional parameters are commented out.
Example: Inserted pattern for a non-editable field.
`SAP_TemplateNonEditableField("id" <!--,fieldLabel=""--> <!--,fieldLabelWidth=""--> <!--,type="SAP_WEBGUI"--> <!--,value=""--> <!--,size=""--> <!--,inspectionText=""--> <!--,width=""--> <!--,paddingTop=0-->)` |
Using Wizards
To start a wizard:
The system inserts this source code for the HTMLBusiness functions or other functions (JavaScript functions) into the HTML template.
In the below example, the generated code when using the pushbutton wizard is given.
<script language="JavaScript"> function myName_onClick() { document.myName_form.elements['~event'].value = 'myEvent'; document.myName_form.submit(); } </script>
<form name="myName_form" action=" `wgateURL()` "method="post"> <input type="hidden" name="~event" value=""> `SAP_TemplateUpstateButton("myName_BUTTON" <!--,type="SAP_WEBGUI"--> <!--,buttonLabel=""--> ,onclick="myName_onClick()" <!--,quickinfo=""--> <!--,disableOnClick=""--> <!--,enableDownState=""--> <!--,state="enabled"-->)` </form> |