cancel
Showing results for 
Search instead for 
Did you mean: 

Connect Button to Xacute-Query

Former Member
0 Kudos

Hey MII-Guys,

in my html in MII I created a button with this coding:

<input type="button" name="Button1" value="testbutton">

now I want a connection to a Xacute-Query by pressing this button.

How can I do this?

I tried to write a SelectionEvent:

<param NAME="SelectionEvent" Value = "onClickButton">

to execute a JS-function.

What exactly do I have to write in this function, to call a specific Xacute-Query?

function onClickButton(){

}

Does anybody know?

I'd be very thankful for some help.

Thx a lot!

Martin

Edited by: MartinSch on Aug 23, 2010 9:59 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Just add one applet for xecute query in your html code as iCommand.

<applet name="App" codebase="/XMII/Classes" code="iCommand" archive="illum8.zip" width="0" height="0" mayscript>

<param name="QueryTemplate" value="Query Path">

</applet>

Then inside your function you can write follwing code.

document.App(applet name of query).executeCommand();

Regards,

Manoj Bilthare

Former Member
0 Kudos

Hey Guys,

thanks for your quick response and help!

@Manoj

I could solve it with your description.

I call the function by onclick action on Button and then execute iCommand and Xacute Query.

Thx a lot!

Martin

Answers (2)

Answers (2)

Former Member
0 Kudos

Martin,

In addition to reviewing the help, be aware of the script assistant that is available. For MII 12.1 and newer, the script assistant is built into the workbench. For older versions, there is a stand alone script assistant. The script assistant helped me when I started out and it reduced the typos I had.

Regards,

Kevin

Former Member
0 Kudos

Martin,

you may find the SAP MII Help useful: [Web Page Scripting|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm] which gives an example for this. The link leads to MII 12.1 help, but the example also works for other MII versions.

Michael