Scripting in xMII

hi,
Any one tell me about scripting in xMII.
i have plast database with two tables like order(columns-order level,orderid,name of the order),product(productlevel,orderid,defactives).please tell me how i would be use this tables at Scripting

Hi Murali,
I do not know what a plast database is but here is the general knowledge about scripting in xMII.
The source or destination datasource should first be defined as datasource in xMII. This data source can then be accessed using the query templates(QT) and this data can be visualised in the front end using various types of display template(DT). Any complex query can be created in the QT. But in order to keep it simpler, it is recommended that you use business logic transaction to create complex queries.
The scripting(javascripting or VB scripting) can be used in order to change the parameters of the query and display template in runtime. All the properties of  QT and DT have corresponding parameters and these parameters can be set at runtime using scripting.
Is this what you were expecting in aswer?
regards
Deepak

Similar Messages

  • Scripting SAP XMII (Various Applets : Methods)

    Hi All,
    Am new to SAP XMII , i have just started to design Query / Display Template and create some Transactions.
    Now after calling it into Display template for example : i Grid / Graph
    How i need to get the methods in scripts
    getBrowserObject.getSelectedItem();
    How each Display has it's methods ??
    am confused , is it XMII standards ??
    Kindly give a place where i can find relevant methods for using those applets
    rgds
    srini

    Srini,
    Go thrtough the below link for the methods for webscripting:
    http://help.sap.com/saphelp_xmii120/helpdata/en/44/423faf81ce2152e10000000a114a6b/content.htm
    http://help.sap.com/saphelp_xmii120/helpdata/en/44/3e7cab08035dace10000000a11466f/content.htm
    http://help.sap.com/saphelp_xmii120/helpdata/en/index.htm
    These are MII methods needed while calling iGrids,iCharts,iBrowser and also use eventing methods in below link:
    http://help.sap.com/saphelp_xmii120/helpdata/en/44/442fdcc33e4a8fe10000000a1553f6/content.htm
    -Suresh

  • Error while loading JS libraries for UI5 and I5 Grid together

    Hello Experts,
    I am trying to load JavaScript libaries for UI5 (OpenUI5 SDK) and I5 Grid (from bootstrap.js).
    My requirement is to create UI5 as well as I5 Chart/Grid components in the IRPT pages.
    Development environment is MII 14.0 sp04 .
    I have added a JS link for my UI5 library as follows, in my IRPT page.
      <script src="/XMII/CM/DCMS_Master/UI5Library-1.22.8/resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m, sap.ui.table, sap.ui.commons"
      data-sap-ui-theme="sap_bluecrystal">
      <script>
       sap.ui.localResources("/XMII/CM/DCMS_Master/UI5Library-1.22.8/resources");
      </script>
    Afer this Include, I have loaded the I5 component JS library like this:
    <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"></SCRIPT>
    However, I get an error on the console as follows   
    Failed to load resource: the server responded with a status of 404 (Not Found)                                            
    <MII Server Host>:50000/XMII/CM/DCMS_Master/UI5Library-1.22.8/resources/JSONListBinding.js
    Uncaught Error: found in negative cache: 'sap/ui/model/json/JSONModel.js' from /XMII/CM/DCMS_Master/UI5Library-1.22.8/resources/sap/ui/core/library-preload.json/sap/ui/model/json/JSONModel.js: Error: failed to load 'JSONListBinding.js' from /XMII/CM/DCMS_Master/UI5Library-1.22.8/resources/JSONListBinding.js: 404 - Not Found                                    sap-ui-core.js:80
    Uncaught Error: "Element sap.ui.commons.layout.MatrixLayout#matrix4" is not valid for aggregation "content" of ManagedObject sap.ui.core.UIArea#headerSelection                                                                                                                         sap-ui-core.js:134
    Does that mean that I5 JS libs and UI5 libs cannot be imported together?
    Any help will be appreciated.
    Best,
    Arihant Kothari

    Hi Arihant,
    The i5component JS library internally loads the SAP UI5 library that you are trying to load explicitly. If you intend to use both MII i5 components and SAP UI5 components together then you can just use the following:
    <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"></SCRIPT>
    And for sure you would have deployed SAP UI5 library on your MII server right.. ? In that case you load the UI5 library with the following script tag:
    <script src="/sapui5/resources/sap-ui-core.js" id="sap-ui-bootstrap"data-sap-ui-libs="sap.m, sap.ui.table, sap.ui.commons" data-sap-ui-theme="sap_bluecrystal">
    <script>
    In case you choose to use only SAP UI5 components/controls then you can use only the above script tag so that the MII i5 components don't get loaded.
    To check if SAP UI5 is deployed on your server you can try to access the following link:
    http|s://<host>:<port>//sapui5/resources/sap-ui-core.js
    And to check the SAP UI5 version you can type the following in browser console: sap.ui.version
    Hope this helps!
    Thanks and Best Regards,
    Ria

  • Java Script Assistant in xMII 12.0

    Hi All,
    Kindly help me to find out the "Java Script Assistance in xMII 12.0" version.
    Thanks
    Rajesh Sivaprakasam.
    Edited by: Rajesh Sivaprakasam on Nov 27, 2008 12:05 PM

    Helo Rajesh,
    the Productivity Wizards are available under SDN->Downloads->for Manufacturing->xMII 12.0 Sample Projects and Tools.
    Link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/e0171f05-98c6-2a10-f5a0-8f2ec79d10a4
    Regards
    Pedro

  • 11.5 SR4 xMii Installation

    Greetings:
    I have tried setting up 11.5 xMii on Windows XP Professional. Have installed 11.5 SR1, 2, 3 & 4 patches - in that order.
    After installation I am facing the following issue:
    - the session variables in irpt files are not being interpreted / parsed by the Report Servlet. If I pass any variable such as , it is not getting parsed.
    - Question : am I missing a step in installation? Fyi, I am using JDK 1.4.2_13. Is there any configuration change to ServletExec webapps?
    Thanks in advance,
    Prasanna.

    Prasanna,
    Installing all of the patches is not necessary, for a new install just the base 11.5 SR01 install (which includes ServletExec) followed by the latest SP (which is now SP05).
    I assume you took care of the virtual scripts directory:  http://help.sap.com/saphelp_xmii115/helpdata/en/Getting_Started/InstallationGuide.htm#System_Installation_Requirements
    You will get very limited results if you are not logged in (meaning localhost or when it goes right to the personalization screen and shows you 'Localhost Administrator' as the user).
    Have you looked at /Lighthammer/PropertyAccessServlet?Mode=List to see what's in your session (real or default localhost one) ?
    The JDK version should be fine, is this the only issue you're encountering?
    Have you looked at the General logs?
    Regards,
    Jeremy

  • XMII and Multiple Thin Clients

    Hi,
    I am thinking of deploying multiple thin clients, each accessing a single xMII instance and am posting a general "broad" question.  Although probably not an "xMII" related thread, but any others using xMII content on thin client(s)?
    Any issues or pointers or suggestions or "not to do's" with content / java script / applets / performance / refresh?
    Thanks all,  Rgds Kevin.
    Edited by: Kevin Hibbins on Apr 28, 2008 10:58 AM

    A thin client is essentially a Web Browser, right? Or are you looking @ something else as well?
    Just to add , this is from the MII help - "The following section provides a visual overview of the various applets provided with SAP xMII.  By combining and linking these building blocks, incredibly powerful decision support applications that bridge a variety of disparate data sources can be quickly created and deployed on thin client platforms such as Web browser, personal digital assistants (PDAs), or other Web-aware mobile devices and internet appliances".
    Help me understand if you have anything specific in mind when you say 'thin clients'.

  • Read Text file using Java Script

    Hi,
    I am trying to read a text file using Java Script within the webroot of MII as .HTML file. I have provided the path as below but where I am not able to open the file. Any clue to provide the relative path or any changes required on the below path ?
    var FileOpener = new ActiveXObject("Scripting.FileSystemObject");
    var FilePointer = FileOpener.OpenTextFile("E:\\usr\\sap\\MID\\J00\\j2ee\\cluster\\apps\\sap.com\\xapps~xmii~ear\\servlet_jsp\\XMII\\root\\CM\\OCTAL\\TestTV\\Test.txt", 1, true);
    FileContents = FilePointer.ReadAll(); // we can use FilePointer.ReadAll() to read all the lines
    The Error Log shows as :
    Path not found
    Regards,
    Mohamed

    Hi Mohamed,
    I tried above code after importing JQuery Library through script Tag. It worked for me . Pls check.
    Note : You can place Jquery1.xx.xx.js file in the same folder where you saved this IRPT/HTML file.
    <HTML>
    <HEAD>
        <TITLE>Your Title Here</TITLE>
        <SCRIPT type="text/javascript" src="jquery-1.9.1.js"></SCRIPT>
        <script language="javascript">
    function Read()
    $.get( "http://ldcimfb.wdf.sap.corp:50100/XMII/CM/Regression_15.0/CrossTab.txt", function( data ) {
      $(".result").html(data);
      alert(data);
    // The file content is available in this variable "data"
    </script>
    </HEAD>
    <BODY onLoad="Read()">
    </BODY>
    </HTML>

  • HTTP 404- File not found error xMII 11.5 SR3 install on Win XP Prof

    Hello Everyone,
    I have tried installing xMII 11.5sr03 on Windows XP Professional 2002 sr2.
    The installation of IIS5.1 along with scripts virtual directory was successful.
    And so was the installation on xMII.
    However when i open the SAP xMII Menu (http://localhost/Lighthammer/Menu.jsp )
    or Security menu (http://localhost/LHSecurity/admin/). It shows the HTTP 404- File not found error.
    IIS help and localhost homepage http://localhost/localstart.asp is working fine.
    The License has also been copied to the Lighthammer license directory.
    Can anybody tell me where/how to look for a solution ?
    Warm Regards,
    Amol

    Hi Ryan,
    Its a fresh install and as mentioned in the guide i started with sr01 ,sr02 and
    sr03. Since these were the only 3 files available for download from service marketplace for xMII 11.5.
    I don't think there is a base 11.5 install available after which i go about installing the sr01 ,02 and 03 respectively.
    Please let me know if there is any and where to get it from...
    Thanks for your suggestions.
    Warm Regards,
    Amol

  • Invalid Session in xMII

    Hi All,
    I am not able to pass session variable across pages / windows.
    According to the xMII Documentation, I made a web page and tried to set a property using
    iGrid.setProperty("PropName", "value");
    but there is an error shown in java script console as 'Invalid Session'
    Can you please tell me how to do it in any other way (passing variables across pages)
    Thanks,
    Piyush

    The easiest method is to use *.irpt pages which are xMII specifc server side renderings which allow you to pass parameters through the URL to other popups or other pages for that "dynamic interaction"
    Please reference the xMII help at: <a href="http://help.sap.com/content/documentation/xapps/docu_xapps_mii.htm">xMII Help</a>
    For the specific answer on how to use .irpt pages please follow this link: <a href="http://help.sap.com/saphelp_xmii115/helpdata/en/Localization/Localization_Editor.htm">.irpt Page Usage</a>
    For future references please also use the xMII Wiki which is currently expanding with a lot of helpful information.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/xmii/main">xmii Wiki</a>
    Note: Please assign points if this answer was helpful. Thank You!

  • Executing a transaction from IRPT file using VBscript in XMII

    Hi Everyone,
                        This is prasad .I want to execute a transcation from irpt file using  vbscript in XMII .Can any one help me on this will be helpful to me.
    Thanks,
    Prasad.

    Ram,
    JavaScript  is the main scripting language for MII pages, not VBscript. Even if you are using MII 12.0, you can view the MII Best Practices guide for more information on using JavaScript with MII. The link is [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f43a39-be98-2910-9d9c-a59785f44e41].
    Regards,
    Kevin

  • How to run an Oracle Script File

    Hi,
    Please anybody tell me how to run an Oracle script file (*.sql file) from Query template.
    In SQL*Plus we run a script file as @Script_file_name.sql
    how do we do it in Query Template.

    Dave,
    Please only post your question in one thread at a time....
    [SAP xMII synchronus commincation|SAP xMII synchronus commincation]
    Sam

  • XMII Wizard

    Hi All,
    When accessing xMII Wizard from MS FrontPage, how can I change the Web Server? Right now, it asks me for my User Name and Password without asking for the Web Server I want to use. However, when I open the xMII Wizard seperately it first asks me for a Web Server Name (the default being 'localhost') and then the Illuminator Credentials. Please help.
    Regards,
    V M.
    Edited by: V M on Jun 30, 2008 10:19 PM

    Read a little closer....http://help.sap.com/saphelp_xmii115/helpdata/en/Getting_Started/Quick_Start_Guide/SamplePage.htm
    1.  Within the file menu of Microsoft FrontPage select File...Open Site
    2.  In the dialog box that appears enter your server path in the Site Name field (such as:  http://servername or if your IIS is running on something other than port 80 you will need to use the format http://servername:port)
    3.  If FrontPage Server Extensions have been setup properly on the server you should then be able to provide user credentials for the webroot and see the structure on the left.
    Notice that the blue application title bar now shows something like:  "Microsoft FrontPage - http://servername" which is actually parsed by the plug-in tools to know where to route your http requests to the MII server for query/display template information, etc.  If the application title bar has a mapped drive path or UNC share it will default to localhost, which is why you must open a web site from within the editor.
    In standalone mode the wizard prompts you for the server and instead of embedding the text directly into the editor, the Create HTML or Save Script buttons just put the text into the Windows Clipboard, allowing you to Ctrl-V or Paste the text into anywhere.
    Regards,
    Jeremy

  • Scheduling Project Export in XMII V12

    Hi XMII experts,
    to keep track of our project modifications, we would like to periodically export each XMII project of our Developpement server .
    Do you know if it is easily possible in XMII V12 with a Unix script or a BLS scheduling???
    Many Thanks
    Regards
    Jean-Louis

    Hi Jean,
    Unfortunately you do not have option scripting  but the easiest way is to do with project import / export option given in MII12.0 . Just export the project from the source system and import in target. This is very quick and just create one zip file.
    Hope this will help.
    Vinod

  • Pass variable into xMII applet???

    Is it possible to pass a javascript variable into the xMII applet?

    I guess what I asking is could I place a variable that I created in the head of the html file and then call for it in the applet.
    The variable is called in the Applet name below.
    For Example:
    <html>
    <head>
    <script>
            var TEST = alert("")
    </script>
    </head>
    <body>
    <tr>
    <td>
                                       <applet name="TEST" codebase="/Illuminator/Classes" code="iGrid" archive="illum8.zip" width="775" height="350" mayscript>
                                       <param name="DisplayTemplate" value="/Production/gridQA_Moistures">
                                       <param name="QueryTemplate" value="/Production/qryQA_Moistures">
                                       <param name="UpdateEvent" value="Grid_Updated">
                                       <param name="Param.1" value="%">
                                       <param name="Param.2" value="%">
                                       <param name="Param.3" value="%">
                                       <param name="Param.4" value="%">
                                       </applet>
    </td>
    </tr>
    </body>
    </html>

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

Maybe you are looking for

  • MSI X79 GD65 8d DVD problem

    For some reason the DVD drive does not work with the MSI, but it works with my other computers. The DVD drive is detected by Windows 7, but it will not read any DVD/CD.

  • WL 7.x, JDK 1.4, SSL

    Hello, Given that: (1) WL will not be certified for use with JDK 1.4 until the Olympic release (otherwise known as version 8.1, hopefully available sometime early this summer if we're lucky?). (2) Our application requires JDK 1.4 functionality (prefe

  • How to create a FAT32 partition that is primary instead of logical with disc utility?

    I am trying to create a partition on an external drive, so I can use it as a hard drive for my XBOX 360. I already have data on the drive, and there is more data than I can back up. I have tried using disc utility to partition it and I use the MS-DOS

  • How to join two tables in a cursor

    i have a cursor that selects data from one table, i want it to select data from one other table also.. how i can do that.. is there any alternate way to do that if yes then suggest .. waiting for ur reply....

  • Scanario testing

    Hi all,          just i finished my scanario. but how to test the my scanario. what r the tools needs to text that. plz give answer very breifly.