on 11-15-2011 7:50 PM
SCM380
SAP MII - Manufacturing-
Integration and Intelligence -
Basics
Solution 17: Using Transactions on a Web
Page
Task:
Use the "Addition" transaction to complete the source text on the page shown
below, which displays the result in a message box. The iCommand required to call
the Xacute query is already implemented on the page, so you only have to enter
the JavaScript code for the calculation.
Number1 TextBox
Number2 TextBox
Calculate Button
Does any body have the code syntax for res_Calculator.irpt?
SCM380_Resources_EN/WEB/UNIT4/Lesson2/Exercise3/ folder in the
WEB tab
I seem to have lost the CD
Thank you,
Thank you very much I have my first MII Web Page up and running.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Follows the code.
JS.
function calculate() {
var commandQuery = document.Addition.getQueryObject();
commandQuery.setParam(1,document.getElementById("txt_Number1").value);
commandQuery.setParam(2,document.getElementById("txt_Number2").value);
document.Addition.executeCommand();
var result = document.Addition.getValueByName("result",1);
}
Applet
<applet name="Addition" width="1" height="1" code="iCommand" codebase="/XMII/Classes" archive="illum8.zip" mayscript style="visibility:hidden;">
<param name="QueryTemplate" value="SCM380_EN/UNIT4/Lesson2/Exercise2/xac_Addition" />
</applet>
Danilo Santos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for you reply,
Please could you also give me the rest of the html code.
My code somehow is not working.
below is my code
<BODY>
<p>
<applet name="Addition" width="1" height="1" code="iCommand" codebase="/XMII/Classes" archive="illum8.zip" mayscript style="visibility:hidden;">
<param name="QueryTemplate" value="TestProject/xac_Addition" />
</applet>
</p>
<form name="frmMain" action id="frmMain">
<table border="1" width="600" id="table1" >
<tr>
<td colspan="2"> Details</td>
</tr>
<tr>
<td >
<input type="text" name="txt_Number1" id="txt_Number1" style="width:90px;" value="" /> </td>
</tr>
<tr>
<td >
<input type="text" name="txt_Number2" id="txt_Number2" style="width:90px;" value="" /> </td>
</tr>
<tr>
<td >
<input type="submit" value="Calculate" name="Result" /> </td>
</tr>
</table>
</form>
</BODY>
Thanks,
How do I check my Java Console. Do you think the code looks fine?
I tried this it works fine
http://<Server name:port>/XMII/WSDLGen/TestProject/Addition
Please could you be more specific.
In the code I would need to call the Calcule javascript function somewhere right? Where
Thanks for your help.
Hi,
For check your java console view the link:
http://www.holomatix.com/knowledgebase/frequently-asked-questions/how-do-i-display-my-java-console?/
change the code:
<form name="frmMain" action id="frmMain">
For
<form name="frmMain" id="frmMain" on submit="return false;">
-
<input type="submit" value="Calculate" name="Result" />
For
<input type="button" value="Calculate" name="Result" on click="calculate()" />
For more details about html view the link http://www.w3schools.com/html/
Hope this help.
Danilo Santos
Edited by: Danilo Santos on Nov 16, 2011 4:26 PM
Edited by: Danilo Santos on Nov 16, 2011 4:28 PM
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.