Using XML or Java Scripting

Hello all
i am new to obi ee and i wanna know how can we use the codes of xml and java scripting in it and i am sitting on the client system...Do i need to change some files on server???
thanks in advance,
pankaj

You mean like in this thread? Re: Creating a Popup Box / List of Values on a Dashboard
What's the idea behind it?
Why this and not a prompt?
Input mask for write-back?
Cheers,
C.

Similar Messages

  • Jaxa xml tutorials, does anyone have some tutorial for using xml in java??

    jaxa xml tutorials, does anyone have some tutorial for using xml in java??
    can be dom,sax,jaxp whatever....
    i try to find in google but din't find any complete one....

    dapim wrote:
    jaxa xml tutorials, does anyone have some tutorial for using xml in java??
    can be dom,sax,jaxp whatever....
    i try to find in google but din't find any complete one....I would imagine anyone here would just produce the same set of hits that you did, so why waste our time doing it only to direct you to the same one(s) you already found and rejected.

  • How to use xml in java

    hi,
    can anybody tell me in what scenarios we can use xml in java,jsp and servlets.
    give some information and help on this..
    regards,
    javafan

    define scenarios. You can use XML in java at any time you want.
    - check out SAX http://java.sun.com/xml/tutorial_intro.html
    - check out Xerces 2 http://xml.apache.org/xerces2-j/

  • How to use HTML and Java Script files in Portal

    Hi,
    I am trying to access a web application using iViews. My application contains JSP,HTML,Servlets,JS(java script), image files. I am using JSPDynPro to access the JSP files and I am putting servlets in the private/lib folder of the PORTAL-INF dir of Portal project. Now my problem is almost all the JSP files uses the HTML files, JS files and image files. Where can put these files in the portal project dir structure to give access to the JSP files when i am creating a iView for the JSPDynPro componenets in the irj.
    thanks,
    Ashok

    Hi,
    JSPDynpage is the controller, one JSPDynpage can call more than one jsp file according to the coding. Through the JSPDynpage's setJspName() function only you can display a jsp page.
    EX:
    public void doProcessBeforeOutput() throws PageException {
      this.setJspName("logon.jsp");
    if you put the JSPDynpage in the src.core then the JSPDynpage can be accessed only by this application.
    if you put the JSPDynpage in the src.api then other applications can access this component.
    You can put the jsp pages in the pagelet folder.
    xml file
    =========
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="jspdynpage name">
          <component-config>
            <property name="ClassName" value="package name.jspdynpagename"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    REWARD USEFUL ANSWERS

  • Using Vector in Java script

    I got this vector class from some website for implementation of vector in java script
    function Vector(inc) {
         if (inc == 0) {
              inc = 100;
         /* Properties */
         this.data = new Array(inc);
         this.increment = inc;
         this.size = 0;
         /* Methods */
         this.getCapacity = getCapacity;
         this.getSize = getSize;
         this.isEmpty = isEmpty;
         this.getLastElement = getLastElement;
         this.getFirstElement = getFirstElement;
         this.getElementAt = getElementAt;
         this.addElement = addElement;
         this.insertElementAt = insertElementAt;
         this.removeElementAt = removeElementAt;
         this.removeAllElements = removeAllElements;
         this.indexOf = indexOf;
         this.contains = contains
         this.resize = resize;
         this.toString = toString;
         this.sort = sort;
         this.trimToSize = trimToSize;
         this.clone = clone;
         this.overwriteElementAt;
    // getCapacity() -- returns the number of elements the vector can hold
    function getCapacity() {
         return this.data.length;
    // getSize() -- returns the current size of the vector
    function getSize() {
         return this.size;
    // isEmpty() -- checks to see if the Vector has any elements
    function isEmpty() {
         return this.getSize() == 0;
    // getLastElement() -- returns the last element
    function getLastElement() {
         if (this.data[this.getSize() - 1] != null) {
              return this.data[this.getSize() - 1];
    // getFirstElement() -- returns the first element
    function getFirstElement() {
         if (this.data[0] != null) {
              return this.data[0];
    // getElementAt() -- returns an element at a specified index
    function getElementAt(i) {
         try {
              return this.data;
         catch (e) {
              return "Exception " + e + " occured when accessing " + i;     
    // addElement() -- adds a element at the end of the Vector
    function addElement(obj) {
         if(this.getSize() == this.data.length) {
              this.resize();
         this.data[this.size++] = obj;
    // insertElementAt() -- inserts an element at a given position
    function insertElementAt(obj, index) {
         try {
              if (this.size == this.capacity) {
                   this.resize();
              for (var i=this.getSize(); i > index; i--) {
                   this.data[i] = this.data[i-1];
              this.data[index] = obj;
              this.size++;
         catch (e) {
              return "Invalid index " + i;
    // removeElementAt() -- removes an element at a specific index
    function removeElementAt(index) {
         try {
              var element = this.data[index];
              for(var i=index; i<(this.getSize()-1); i++) {
                   this.data[i] = this.data[i+1];
              this.data[getSize()-1] = null;
              this.size--;
              return element;
         catch(e) {
              return "Invalid index " + index;
    // removeAllElements() -- removes all elements in the Vector
    function removeAllElements() {
         this.size = 0;
         for (var i=0; i<this.data.length; i++) {
              this.data[i] = null;
    // indexOf() -- returns the index of a searched element
    function indexOf(obj) {
         for (var i=0; i<this.getSize(); i++) {
              if (this.data[i] == obj) {
                   return i;
         return -1;
    // contains() -- returns true if the element is in the Vector, otherwise false
    function contains(obj) {
         for (var i=0; i<this.getSize(); i++) {
              if (this.data[i] == obj) {
                   return true;
         return false;
    // resize() -- increases the size of the Vector
    function resize() {
         newData = new Array(this.data.length + this.increment);
         for     (var i=0; i< this.data.length; i++) {
              newData[i] = this.data[i];
         this.data = newData;
    // trimToSize() -- trims the vector down to it's size
    function trimToSize() {
         var temp = new Array(this.getSize());
         for (var i = 0; i < this.getSize(); i++) {
              temp[i] = this.data[i];
         this.size = temp.length - 1;
         this.data = temp;
    // sort() - sorts the collection based on a field name - f
    function sort(f) {
         var i, j;
         var currentValue;
         var currentObj;
         var compareObj;
         var compareValue;
         for(i=1; i<this.getSize();i++) {
              currentObj = this.data[i];
              currentValue = currentObj[f];
              j= i-1;
              compareObj = this.data[j];
              compareValue = compareObj[f];
              while(j >=0 && compareValue > currentValue) {
                   this.data[j+1] = this.data[j];
                   j--;
                   if (j >=0) {
                        compareObj = this.data[j];
                        compareValue = compareObj[f];
              this.data[j+1] = currentObj;
    // clone() -- copies the contents of a Vector to another Vector returning the new Vector.
    function clone() {
         var newVector = new Vector(this.size);
         for (var i=0; i<this.size; i++) {
              newVector.addElement(this.data[i]);
         return newVector;
    // toString() -- returns a string rep. of the Vector
    function toString() {
         var str = "Vector Object properties:\n" +
         "Increment: " + this.increment + "\n" +
         "Size: " + this.size + "\n" +
         "Elements:\n";
         for (var i=0; i<getSize(); i++) {
              for (var prop in this.data[i]) {
                   var obj = this.data[i];
                   str += "\tObject." + prop + " = " + obj[prop] + "\n";
         return str;     
    // overwriteElementAt() - overwrites the element with an object at the specific index.
    function overwriteElementAt(obj, index) {
         this.data[index] = obj;
    Now I have written this code .This code is written using API'sfunction getOptions(ctx)
    var options="";
    var subroles = ctx.getAdminRole().getAttributeMultiValue("CUSTOM10");
    var v = new Vector(subroles);
    options = v.getElementAt(0);
    Now suppose the function getAttributeMultivalue is returning RoleA,RoleB
    Now i want RoleA to be stored in getElementAt(0) and RoleB in getElementAt(1)
    But with the above code i am getting RoleA,RoleB in getElementAt(0)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    abhishek20 wrote:
    well the question is also about Vector class of JavaNo it is not you doofus. It is about JavaScript. Your question has fuck all to do with Java.
    so I thought to post it here.That was a mistake.
    any ways if you don't know java script or anything about vector class then you should not reply.I know about JavaScript.
    I know about Vectors.
    I will not tell you anything about JavaScript here.
    I wouldn't tell you anything useful anyway because I have taken a personal dislike to you.
    >
    No need to make me understand what is the purpose of this forum.Really? Because you don't seem to get it. At all.
    next time take care before you reply.Next time engage your tiny pea brain in some sort of logical thought before posting.

  • Search informatio​ns about using XML to create scripts (automate tests)

    Hello,
    I search some (A LOT OF...) informations  about using XML in Labview. I know that Labview use a specific schema for XML, but I search examples or tutorials.
    My aim is to control a VI with a script in XML, I would know if I can generate "while loop", modified attributes etc... with my XML file?
    Bye

    Hi leo,
    first for all others: this is related to this thread!
    Then:
    Your script should be handled by LabView in an interpreter-style. So you read in the script and parse the commands. For each command that is supported you have to provide the functionality in a state-machine like handling routine.
    I would stay away from the before mentioned "LabView scripting", atleast for production-type programs as LV-Scripting is not supported by NI (and not easy to handle...)!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • What can I use to view java script in my browser for iPhone

    I can't view JavaScript , what do I use instead. Java's web site says that apple has there own version but I can't find it.

    JavaScript works just fine in iOS.
    Java does not.
    They are not the same thing.

  • I'd like to load images using XML and Java - hints??

    I have a XML files that are created on a timed basis....they describe a photo and point to a dir where the photo is stored...like...
    <image>
    <user>bill</user>
    <img>photo.jpg</img>
    <img_dir>'/tmp/photos'</img_dir>
    </image>
    I'd like to write a Java program that parses the XML and loads the images, data into Oracle.
    Suggestions on Oracle tools, downloads that will help me accomplish this???
    Thanks!

    I pass a URL and then when I parse the XML I download the file from the URL.
    A.

  • Validating Checkboxs in a form using java script.

    Hi i am trying to validate a jsp page that contains check-boxs using the following java script, however it doesnt seem to work! Any help on this matter would be most appreciated.
    <SCRIPT language="javaScript">
    function validate()
    if (document.myform.pkey.value=="")
    alert("Please Select a Questionnaire to delete!!");
         return false;
    </SCRIPT>

    Hi,
    You have to check whether user has selected the check box or not.
    When there are multiple check boxes with same name, it will create any array else normal single check box.
    Ajay.

  • Acrobat standard 9.0 error while enabling commets option using Java script object

    I'm using the below java script code in my VB 6.0 application for enabling commets options in the PDF file
    Dim oJSO As Object
    Set oJSO = mPDDoc.GetJSObject
    oJSO.Collab.showAnnotToolsWhenNoCollab = True
    It is working fine till Acrobat 8.0. Now I'm trying with Acrobat 9.0 standard edition, it is throwing scripting error 'An unhandled Win32 exception occured in Acrobat.exe[308].
    Can anyone suggest the way to enable 'comment' options in Acrobat Standard 9.0 using Java Script Object?
    Thanks

    I get much the same problem with VB6, Acrobat 9 Pro and WinXP SP3. When I single step the line:
    oJSO.Collab.showAnnotToolsWhenNoCollab = True
    in debug I go to the error handler for my Sub. Inspecting the VB Err object has Number = -2147417851 and Description = "Automation error
    The server threw an exception." I get a Microsoft crash notice about Acrobat a short while later.
    I've experimented with the JavaScript debugger in Acrobat and you can execute Collab.showAnnotToolsWhenNoCollab = True and reference the value of Collab.showAnnotToolsWhenNoCollab in the console. The problem appears only when accessing Acrobat Javascript through the Interapplication Communication API.
    If anyone can help it would be appreciated. I tried Adobe's Acrobat support and they were no help at all.

  • Peformance using XML

    Hi all,
    I want to know any comparision between the performance
    using XML and java.
    Currently im communicating with RMI protocol between the server and client, its agreed that its slow. We do have bulk transactions and the entire system runs slow a little.
    If we make these transactions with XML as the middleware and using IBM parser at the front end will it increase the performance?
    Any useful suggestions/links regarding that will be appreciated.
    Thanks,
    ananth
    ( [email protected] )

    Hi Rothrock, thanks for your reply...
    Flash Version: 8, but the swf was published to be 7+
    compatible.
    The font is Meta Normal, it is embedded, and it does include
    the character.
    I am retrieving the xml by using this script in the html
    page:
    <script type="text/javascript">
    // <![CDATA[
    var fo = new FlashObject("/templates/flash/index.swf" +
    cKiller, "ad-flash", "710", "351", "7", "#FFFFFF");
    fo.addVariable("xmlURL", "/flash_content/products.xml");
    fo.write("ad");
    // ]]>
    </script>
    I am creating the XML using Macromedia Homesite, with the
    encoding declaration <?xml version="1.0" encoding="UTF-8" ?>
    The XML is being read fine, only the special characters don't
    show up... so it will cut off the word, or just have an empty space
    where the character should be.
    I am not sure how to specifiy Extended Latin charset in the
    document... could you tell me how to do that?
    Thanks

  • Java Script Errors when clicking on several opened documents

    All of a sudden I started having problems shutting down
    Dreamweaver MX 6.1
    Later , when I open two or more documents I get an error when
    I click on the document in the background.
    A series of dialog boxes come after eachother and say the
    following:
    1. While executing Browse_back enabled in toolbars.xml, a
    java script error occurred
    2. While executing Browse_back enabled in toolbars.xml, a
    java script error occurred
    3. While executing Browse_forwrad enabled in toolbars.xml, a
    java script error occurred
    4. While executing Browse_stop enabled in toolbars.xml, a
    java script error occurred
    5. While executing get current value in AddressURL.htm
    enabled in toolbars.xml, a java script error occurred
    I have uninstalled and reinstalled the program several times
    and it did not help. I have also installed Dreamweaver MX 6.1
    updaters with no change.

    You can try this simple fix -
    Quit DW.
    Find this folder -
    C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration\WinFileCache-*.dat
    (these folders are normally hidden - you may have to use
    Explorer > Tools >
    Folder Options to unhide them)
    or on Mac -
    Library/Application Support/Macromedia/Dreamweaver
    8/Configuration/MacFileCache-*.dat
    and delete it.
    Restart DW. Works better?
    Troubleshooting JavaScript errors in Dreamweaver
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19105#dat
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "anabelapinto" <[email protected]> wrote in
    message
    news:emh6hq$ke5$[email protected]..
    > All of a sudden I started having problems shutting down
    Dreamweaver MX 6.1
    > Later , when I open two or more documents I get an error
    when I click on
    > the
    > document in the background.
    >
    > A series of dialog boxes come after eachother and say
    the following:
    >
    > 1. While executing Browse_back enabled in toolbars.xml,
    a java script
    > error
    > occurred
    >
    > 2. While executing Browse_back enabled in toolbars.xml,
    a java script
    > error
    > occurred
    >
    > 3. While executing Browse_forwrad enabled in
    toolbars.xml, a java script
    > error
    > occurred
    >
    > 4. While executing Browse_stop enabled in toolbars.xml,
    a java script
    > error
    > occurred
    >
    > 5. While executing get current value in AddressURL.htm
    enabled in
    > toolbars.xml, a java script error occurred
    >
    > I have uninstalled and reinstalled the program several
    times and it did
    > not
    > help. I have also installed Dreamweaver MX 6.1 updaters
    with no change.
    >
    >

  • I need to write a Java script to make my Art board bigger by 1 (one) inch on the Width and Length, Regardless of the Content?

    Hi,
    I am currently using "Visible bounds" (java script)to add 1 inch to the width and to the Length of my Art board, but when i make a clipping mask it actually reads the hidden content from the Clipping mask and makes conforms my art board to that particular shape. Am using Adobe illustrator cs6 Here is My Code:
    var myDocs = app.documents;
    var i = 0;
    for (i = myDocs.length-1 ; i >= 0; i--)
        var doc = myDocs[i];
        app.activeDocument= doc;
        var myVisibleBounds = doc.visibleBounds; //Rect, which is an array;
        myVisibleBounds[0] -= 36;
        myVisibleBounds[1] += 36;
        myVisibleBounds[2] += 36;
        myVisibleBounds[3] -= 36;
        doc.artboards[0].artboardRect = myVisibleBounds;
    All i Want is to add 1 inch to my width and length and this does it but if i have a clipping mask it will pick up the bounding box i guess? and it will conform it to the shape... any help please... Try my code and you will see that it does add 1 inch but now make you artboard lest say 12" x 12" and make a shape bigger than the art board and you will see how it adds 1 inch to the art board based on that shape...  now if you make a clipping mask to fit that shape in the 12" x 12" art board you will still get 1 inch bigger than the shape thats being clipped ... 

    yes, visible bounds is reading the non-visible masked objects too.
    you're going to have to do it the hard way, loop through all your objects to get your bounds manually, and while you're at it, test for clipping masks and use the masking path instead.

  • Problems with character displaying from XML to Java

    Hi to all!
    I am making a flash chat program which basically takes english and chinese
    and talk to java using XML and java server distribute this message to all users,
    While simply using java as a distributor of the data was fine, but when I try to
    keep records of the chat into the mysql database, I realized that all the
    chinese characters are displayed in random characters.
    After some thought, I realized that flash using ASCII number representation
    for each chinese word imay be different from the Java ASCII number representation, therefore, when Java sends
    these ASCII characters to the mysql database, the words is no longer the words I wanted.
    I am using a brute force, which on the flash side, I took the ASCII code of each chinese character that I
    typed and use break and send them to java and recoded in java with java's Chinese character
    and send to the mysql database, well, it works(I tried) but I need to type up at least 3000 characters!!!!!!!!
    this is insane!
    I am also wonder if the problem comes because Java encode Chinese in unicode, so
    it does not recognize the ASCII, and therefore, the result is for sure weird.
    If so, what do I need to do in order to convert ASCII into Unicode????
    sincerely,
    Suansworks

    hello.
    flash have some problems by utf but it seems that your problem is with mysql database because if you want to put utf in mysqk database you need to get latest version that is beta or alpha. please it using with other database that supports utf.

  • Linking to external java script

    Is there a way to link a button in a swf to a java script. I'm trying to use the "lightbox" java script so that when a user clicks on an image in the swf, a larger image appears on top of the page. Here is what the link looks like in html:
    <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
    Can anyone tell me how to code this in Flash?
    Thanks!

    you can use the externalinterface class in flash to call js functions in the embedding html but, i don't see any js in the code you posted.
    addendum.  you'll need to check the javascript files that use that lightbox method.

Maybe you are looking for