Access to Data from Javascript

I have a propertie call it "country" in my "Data View" and I need access its value from javascript code to use in a IF sentence.
I try thinks such as "xfa.node.getAttribute("country")" but doens't work.
How can I access it?
Thanks.

You can try like this:-
if(country.rawValue == "IN")
   xfa.host.messageBox ("You selected India");  // This will display a pop-up
else
   xfa.host.messageBox ("You selected some other country");
Chintan

Similar Messages

  • Passing data from JAVASCRIPT to SAP database

    Hi Experts,
    Is it possible to connect or access RFC function module through JAVASCRIPT? I want to send data from JAVASCRIPT to SAP database table.
    Is it possible to pass data from JAVASCRIPT to SAP database table?
    Thanks in advance.
    Regards,
    Arindam Samanta.

    OData services can be one option to achieve this.
    Another possibility can be use of Generic REST enablement with SAP NetWeaver Gateway.
    If you are not considering Gateway at all, then  A JSON adapter like the one mentioned in JSON Adapter for ABAP Function Modules can be handy.

  • Unable to access the data from Data Management Gateway: Query timeout expired

    Hi,
    Since 2-3 days the data refresh is failing on our PowerBI site. I checked below:
    1. The gateway is in running status.
    2. Data source is also in ready status and test connection worked fine too.
    3. Below is the error in System Health -
    Failed to refresh the data source. An internal service error has occurred. Retry the operation at a later time. If the problem persists, contact Microsoft support for further assistance.        
    Error code: 4025
    4. Below is the error in Event Viewer.
    Unable to access the data from Data Management Gateway: Query timeout expired. Please check 1) whether the data source is available 2) whether the gateway on-premises service is running using Windows Event Logs.
    5. This is the correlational id for latest refresh failure
    is
    f9030dd8-af4c-4225-8674-50ce85a770d0
    6.
    Refresh History error is –
    Errors in the high-level relational engine. The following exception occurred while the managed IDataReader interface was being used: The operation has timed out. Errors in the high-level relational engine. The following exception occurred while the
    managed IDataReader interface was being used: Query timeout expired. 
    Any idea what could have went wrong suddenly, everything was working fine from last 1 month.
    Thanks,
    Richa

    Never mind, figured out there was a lock on SQL table which caused all the problems. Once I released the lock it PowerPivot refresh started working fine.
    Thanks.

  • How can I access xml document from javascript whithin a JSP page

    how can I access xml document from javascript whithin a JSP page?
    I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this.
    Thanks in advance!

    The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
    It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation.

  • Accessing XML data from a different class

    Hi all,
    I have an xml class that loads xml data, I need to access the data from another class. I have imported the xml classinto the new class and created a new instance of it. However when I try to access the xml data it is coming back as null. I understand this is almost certainly because when it is called the xml data hasn't completed it's load. How can I get round this?
    xml class:
    package {
        import flash.xml.*;
        import flash.events.*;
        import flash.net.*
        import flash.display.*
        public class xml extends MovieClip
            public var xmlRequest:URLRequest;
            public var xmlLoader:URLLoader;
            public var xmlImages:XML;
            public function xml()
                xmlRequest = new URLRequest("images.xml");
                xmlLoader = new URLLoader(xmlRequest)
                xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
                xmlLoader.load(xmlRequest);
            private function xmlLoaded(event:Event):void
                trace(xmlLoader.data);
                xmlImages = new XML(xmlLoader.data);
    Thanks in advance

    One of the ways:
    package {
         import flash.xml.*;
        import flash.events.*;
        import flash.net.*
        import flash.display.*
        public class XMLLoader extends EventDispatcher
              public var xmlRequest:URLRequest;
              public var xmlLoader:URLLoader;
              public var xmlImages:XML;
              public function XMLLoader()
              public function loadXML(url:String):void {
                   xmlLoader = new URLLoader()
                   xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
                   xmlLoader.load(new URLRequest(url));
              private function xmlLoaded(event:Event):void
                   trace(xmlLoader.data);
                   xmlImages = new XML(xmlLoader.data);
                   dispatchEvent(event);
    Usage:
    var xmlLoader:XMLLoader = new XMLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, onXMLLoad);
    xmlLoader.loadXML("images.xml"):
    function onXMLLoad(e:Event):void{
         trace(xmlLoader.xmlImages);

  • BAPI name to access employee data from systems like CSS, ISP GTP etc

    Hi All,
    Could you please suggest which BAPIs we need to use to access employee data from systems like CSS, ISP GTP etc
    Regards,
    Poonam
    Moderator message: Welcome to SCN!
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on May 20, 2011 2:09 PM

    Hi All,
    Could you please suggest which BAPIs we need to use to access employee data from systems like CSS, ISP GTP etc
    Regards,
    Poonam
    Moderator message: Welcome to SCN!
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on May 20, 2011 2:09 PM

  • Transport data from Javascript file to BSP application

    Hi,
            How can we transport data from Javascript file that is stored in MIME repository to the BSP application that uses this Javascript?
    To elaborate :
    I  have a  BSP application which calls few functions from a Javascript file that is stored in the MIME repository. Now, i need to pass one of the values that is obtained dynamically in the Javascript function to the BSP application inorder to store it in DB.. How can I do this?
    Thanks,
    Vasuki

    Hi,
    you must only identify in which variable the javascript function stores the values. So you can enrich
    your bsp application with such a function. Then you must transfer the value to a hidden input field.
    This field content can be requested via  request->get_form_field( 'name_of_the_field' ).
    On the other side, check out, if ther is a getter function in this library.
    Use firwefox with firbug plugin an set breakpoint in the javascript function to get an overview about the dom modcel.
    Best regards, Stefan

  • Access SAP data from xMII 12.1 without RFC or JCO

    Hi All,
    Is it possible to access/get data from SAP in xMII without RFC/ JCO call?
    Let me know if there is other option available..
    Regards,
    Sachin

    Sachin,
    As far my knowledge goes the primarily used forms of achieving MII to ERP connectivity,
    1) MII -- ERP (via RFC, IDOC's, BAPI's)
    2) MII -- PI(XI) -- ERP
    3) MII -- ESR -- ERP (Web-services)
    But, I completely concur with Mike on this, you do not need to create any function modules unless you have no other choice.
    Check this link for List of Bapi's available and their description
    [BAPI List|http://www.sapbapi.com/bapi-list/]
    If none of the BAPI's really meets your requirement then you can go for "RFC_READ_TABLE" this RFC accepts the SAP table name and desired column names. (in a way you will be accessing the SAP DB you are looking for...)
    Yet, if none of the above options suffices your requirement only then you go for writing a custom Function module.
    [Writing Function Module|http://abaplovers.blogspot.com/2008/02/creating-function-module-in-sap-abap.html]
    Good Luck!!
    Regards,
    Adarsh

  • Accessing External Data from SharePoint 2010

    I want to access external data from my SharePoint site.
    I'm told that I need to follow these two articles.
    http://msdn.microsoft.com/en-us/library/ff953161.aspx
    http://msdn.microsoft.com/en-us/library/ff625800.aspx
    I followed the first article but I get this error when I open the external list in my SharePoint site:
    "Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator."
    I don't know how to write a custom code
    BTW I have installed PowerPivot on my SharePoint server.
    Can someone please help me? I need to do this very quickly.

    Hi,
    Can you please elaborate whether the data you are getting is from excel file or from database.
    1. If you are populating it from excel , then you can use the Excel service, Power pivot etc mechanism.
    2. If you are getting it from SQL database then you can use BCS service application and use the OOTB external list and content type to display the same in your home page.
    Links of artcles are given below.
    http://www.concurrency.com/blog/accessing-external-data-using-business-connectivity-services-in-sharepoint-2010/
    http://msdn.microsoft.com/en-us/library/ff677562(v=office.14).aspx
    Hope this will help.
    Thanks and Regards, -- Santanu Kumar Choudhury ----- SharePoint 2007/10/13 Developer

  • Access vector data from AI or EPS

    Hi!
    Does anyone know if we can access vector data from AI or EPS files, to be used with an effect plugin? Shachar may be?
    I've looked at Streams and DynamicStreams, but couldn't find anything...
    Thanx,
    François

    again, i find myself the bearer of bad news...
    AE deson't offer any in-depth access of the format parsers. you can only ask AE to fetch you a rendered image via it's parsers. (i.e. IO and FBIO plug-ins)
    but since you can find the path to the origin file using AE's suites, you can parse it yourself. (NOT going to be easy)
    from what i gathered, Ghostscript is the API to go with.
    http://www.ghostscript.com/doc/current/API.htm
    has been discussed here:
    http://forums.adobe.com/message/4246544?tstart=0
    it's just one of these days where i'm not too helpful... :-(

  • Catalog Browser for iPhone (Accessing BI data from iPhone)

    Hi All,
       There is a prototype from innovative centre called "Catalog Browser for iPhone" which is used for accessing BI data from iPhone. Do anyone have any idea if this is ever productized for sale by SAP??
       Is there any other approach for accessing BI data from iPhone? Any help will be highly appreciable.
    Thanks,
    Raja Sekhar K

    Hello Damondhar,
    I agree with Mr. Villalba, you should use the information brodcaster to broadcast precalucated views or workbooks to Knowledge Management in the portal. This can be done by events, e.g monthly. Your external users will then have accees to the directory in which the reports are saved (through KM iviews).
    Have you read on help.sap.com,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/index.htm -> SAP Netweaver by Key Capability -> Information Integration -> Information integration .. -> Business Intelligence -> BI Suite: Business Explorer ->  Integration of BI Content in Portal
    And
    BEx Web Application or Query As Document or Link in KM, http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/7efa40dd14f06fe10000000a1550b0/content.htm
    Best regards,
    Jørgen Ruud

  • Regarding Native SQL to access Oracle Data from SAP

    Dear Gurus,
    This query is regarding Native SQL.
    Our database is Oracle and the client's database is also Oracle.
    To access the data directly from the client's database(Oracle), can I use Native SQL commands?
    Is there any disadvantage to use Native SQL?
    If Native SQL can be used, can any one send me the code to access the data from Oracle?
    Points will be rewarded.
    Thanks & Regards,
    Neeraj K.

    The problem is always data integrity. Doing things this way you are bypassing any business logic. So for example if you are connecting to a SAP Oracle database. SAP will not support your SAP system as you are doing direct updates to the database. I would suppose that this would be the same for any other product using the Oracle database. If you are only reading data from the database then it should be fine. I would however always using API's to access/update data.
    Regards

  • Problem with accessing Signed Applet from javascript method

    Hi,
    I am facing the following problem while accessing Signed Applet from javascript method.
    java.security.AccessControlException: access denied (java.io.FilePermission c:/temp.txt read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at FileTest.testPerm(FileTest.java:19)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    I am using jdk1.5 for my development...
    Can anyone help to resolve this security issue. Urgent...
    Thanks in advance.

    Hey thanks. I wasn't able to get it to work with that sample but I did find this very similar code that does allow javascript to call JFileChooser in an applets public method.
    java.security.AccessController.doPrivileged(
    new java.security.PrivilegedAction()
    public Object run(){                           
    //do your special code here
    return null; //return whatever you want
    It seems a bit tempermental in that if you don't select a file quickly, it will hang the browser....no perfect solution but I'm going in the right direction.
    Thanks,
    Scott

  • I have the iPad 2 and having difficulties accessing my data from my Dropbox app

    I have the iPad 2 and having difficulties accessing my data from my Dropbox app to forward to another source,tried every setting nothing works can any one assist please?

    You need to explain exactly what you are trying to do.
    Tap on a document, photo, file or whatever in the DropBox app and then tap the square with the arrow that points upward in order to send the item to another app or to email it.

  • Access report row data from javascript

    -- I have a report. Something like this.
    Select id, name, htmldb_item.checkbox(1, '#ROWNUM#')
    from test;
    -- I can get the rownum via javascript.
    var ml = document.wwv_flow;
    var i;
    for(i = 0; i < ml.elements.length; i++){
    alert("name = " + ml.elements.name);
    alert("value = " + ml.elements[i].value);
    -- I would like to access the other items I selected in the report from javascript. ie. id and name.
    -- So knowing the rownum how do i get those values for a given row?
    Thanks
    Jon

    hi jfortney,
    i have one problem in oa framework, ie i need to get the row number by javascript but could not do . my way is
    document.getElementById('tableid').rows.length.. but there is no id for that table when i c the view source. so please suggest me some idea as to how to get the row number of a table in oa framework page.
    thanks in advance...
    prabhakaran.p

Maybe you are looking for

  • Accounting entry not posted but MBEW table shows total stock and value

    Hi My R/3 version 4.7 I have a material which is stockable and valuated of material type ERSA(Spare parts) This material was created in may 2007 and material ledger activated,i dont see master records in accounting view  in material price analysis ta

  • TS4436 Problem with camera effects.. Browsed my gallery all my photo effects gone ?

    Hey !! Just noticed before uploading pictures that all my effects I'd applied on camera shots have returned to natural or no effect when I browsed the gallery , when you click edit however the picture is with the effect I started with and you cannot

  • Error 4261 when burning a CD with 7.0.1

    Each time I try to burn a cd with 7.0.1 I get error 4261 and the burning is canceled, below is my cd diagnostic, can someone help please, thank you in advance, Microsoft Windows XP Home Edition Service Pack 2 (Build 2600) Dell Inc. Dimension 4700 iTu

  • How to install Adobe InDesign from Shared Drive ?

    I was given a volume licensed DVD and was instructed to remotely install the software on another user's PC. I tried copying the setup file to the shared drive but was unable to install the software (serial key invalid) numerous times. Experienced no

  • Sequences incorrect after exporting and importing a scheme

    Hi all, Can anyone tell me why when we export a scheme and import it again, all our sequences are not correct anymore? Everything else is exactly the same, just the sequences aren't correct anymore. The last export was done in Oracle 10 and the impor