AIR 3.4: Access Object reference from different sandbox

I have an application that loads a local HTML-Page which contains an iFrame displaying a remote website:
<iframe id="iframe" width="100%" height="100%" style="margin:0;padding:0;" frameBorder="0" documentRoot="app:/www/" sandboxRoot="http://remoteserver.com/mypage" allowCrossDomainXHR="allowCrossDomainXHR" ondominitialize="engageBridge()" > <p>Your browser does not support iFrames. Learning object cannot be loaded.<p> </iframe>
The Website in the iframe should be able to access a JS-Variable in the local HTML. Is this possible?
I read the articles about Cross-Scripting between sandboxes and parent-child-bridges, but as far as I understood it this is only for simple objects, which are stringified and then parsed again. What I need is a direct links from the remote website to the Javascript in the local page!

Hi Pete,
To package your app with a provisioning profile (enabled with Apple Push Notifications Services) you don't have to provide the application identifier and keychain-access-groups in the entitlements .Just the following entitlements will work :
<Entitlements>
            <![CDATA[
                       <key>aps-environment</key>
                       <string>development</string>
            ]]>
</Entitlements>
instead you've to provide the app-id in the <id> tag of the app-xml like just another AIR-iOS app(I know that Flash Builder changes the app-id to "app-name.debug" but you can change it while packaging and one strong reason to recommend this way is that for the testing I have uploaded a test app at app-store to validate these entitlements and Apple has approved it.) in following way:
<id>com.kiwiworks.cnn</key> //Remove the Bundle Seed ID from here.
If you've any questions then please feel free to ask.
-Nimisha

Similar Messages

  • How do I get an activeX object reference from a LabVIEW ActiveXContainer ref?

    How do I get an activeX object reference from a LabVIEW ActiveXContainer ref?
    I'm trying to control an ActiveX object (a Web Browser) from another VI and need to get the object reference programmatically. I can get the LabVIEW ActiveXContainer reference, but am lost on how to get the reference for the object _inside_ the container.

    Hi Lee,
    The reference to the container is actually also accessing the object inside the container. Use the Property Node and Invoke Node to access properties and launch methods for the object. I've attached a small example that passes the reference to a SubVI and invokes a method inside the SubVI.
    - Philip Courtois, Thinkbot Solutions
    Attachments:
    WebContainer.zip ‏21 KB

  • How to get caller object reference from a method

    Hi,
    I am working a already existing Java Swing project, now I got a problem, in a method I need to get the caller object reference otherwise, I can't succeed this operation. So please tell me a way how to get the caller object reference from a method. that method would be static or regular method anything will do for me.
    Edited by: navaneeth.j on Jan 29, 2010 11:20 PM

    navaneeth.j wrote:
    Actually my doubt is, I have a method "addition" method, which is using by many classes so my requirement is in the addition method I want to write a code snippet which will identify and get the the caller object. Actually I tried Reflection.getcallerclass but there I am getting "CLASS" object not the actual object reference, but I want object reference.
    Actually we have a huge project which is writen plain JAVA, so in this project the authors written the Database connection package for single database transaction. so now we are using this project source code for JSF application in this web application the DB package has serve based on the dynamic db connection parameters, so if we want to change this package fully means need to solve the dependency problem in hundreds of classes, so my point is if I can access the caller object in the DB package when ever it gets called by any class from any where of the project. So actually I liked Reflection.getcallerclass, the way of implementation perfectly works for me but it is not giving caller object reference, if something gives the caller object then I can get the DB connection parameters then there is no need to pass the parameters in the hierarchy.You can add a parameter (of type Object) to your addition() method
    and everywhere you call the addition() method also pass this (which from the POW of the addition() method will be a reference to the calling class instance).
    There may be alternative solutions
    but none that require less effort.

  • Line Chart: It is possible to get the object reference from a flash chart

    Hi Folks,
    hope you feel well ...
    I wan't to get the Object Reference from a Chart Flash Object using javascript in the HTML Header of a Apex Page.
    It's long time ago with Oracle/Java and so my skills are really shity :-)
    The Functionbody works, but the following error occurs: chart.refresh is not a function
    It is necessary to CAST it ? with the Class AnyChart.js ?
    After 5 hours i give up ^^ is this kind of object handling possible ? THX4HELP@ll
    Apex Page HTML Header
    <script type="text/javascript">
    function hideSID2()
    var chart = document.getElementById("*c7067437546726610*");
    chart.refresh();
    </script>
    HTML File at runtime:
    <div class="rc-body"><div class="rc-body-r"><div class="rc-content-main"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    width="1400"
    height="600"
    id="c7067437546726610"
    align="top"> ...

    If you are using adobe Flex Builder to develop SWF, please be sure using ExternalInterface class to expose the refresh() method.
    then you can should be able to call this method in Javascript.

  • Pass object reference from TestStand to C#

    Hi,
    I have created a GUI in .NET which i invoke in TestStand (through a custom step type). User can enter a object reference teststand variable in the UI input expression box. So i need to get the object value in that variable and use it to call some .net functions. To get the values from expression box of UI and put in TestStand step variable i use:
             PropertyObject.SetValInterface("Step.TestStationObj", 0, tsexprTestStationObj.DisplayText.Trim()); To check the value in the step variable if i do:
             MessageBox.Show("TestStation obj after setting:",PropertyObject.GetValInterface("Step.TestStationObj",0).ToString());
    But i do not get any value. Guess it is null. Is this a correct way? My intension is to get the value corresponding to a teststand object reference and pass it to C#. The C# UI control is of type NationalInstruments.TestStand.Interop.UI.Ax.AxExpressionEdit

    Thanks Andy.
    I still get the error when i am trying to pass the object created from C# to Teststand. I have explained what i am trying to do. Kindly requesting your assitance on this issue.
    I have 2 classes in C# (code given below), I am trying to pass the object of "Counter" (c1) class from the "Mainfrm" to teststand. In teststand(counter.seq), I am trying to access the function "GetCount() and SetCount()". I have attached the snapshot of the error that i get from teststand.
    Class Counter
        private int count;
        public int GetCount ()
           return (count);
        public void SetCount(int _count)
           count = _count;
    Class Mainfrm : Form
        public Counter c1;
            private void Mainfrm (object sender, EventArgs e)
                InitializeComponent();
                axApplicationMgr1.Start();
                mEngine = axApplicationMgr1.GetEngine();
                currentFile = axApplicationMgr1.OpenSequenceFile(@"Counter.seq");
                pobj = mEngine.NewPropertyObject(NationalInstruments.TestStand.Interop.API.PropertyValueTypes.PropValType_Container, false, "", 0);
                pobj.NewSubProperty("Parameters.ObjRef1", NationalInstruments.TestStand.Interop.API.PropertyValueTypes.PropValType_Reference, false, "", 0);
                pobj.SetValInterface("Parameters.ObjRef1", 0, (object)c1);
                mExecution = mEngine.NewExecution(currentFile, "MainSequence", null, false, 0, pobj, null, null);
    Attachments:
    ErrorFromTestStand.JPG ‏28 KB

  • Accessing a variable from different application instance in fmis

    Hello everyone i like to know how to declare a global variable in FMS, so that i can access it from different application instance of a same application.
    Thank.

    Hi,
    In such a use case you can use persistent shared object to keep track of all connected users and the instances they are connected to. then when a user connects in application.xml you can check whether that user name and password is valid for a instance. This doc should help you get this achieved http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d3 7a-7fff.html
    Thanks,
    Abhishek

  • How to access Excel files from different locations?

    Hello,
    I have successfully tested the Excel sample on WLS 7, and trying to run it on
    the WLS 8.1.
    Anyways, the common question for both is, how to access an excel files from different
    locations (e.g. c:\path\1.xls, \\domain1\finance\fin.xls, \\domain1\marketing\customer.xls,
    \\domain2\accounts\vouchers.xls)?
    From example i can see that it picks from a specific path under repository.
    Thanks
    Ashok Gupta

    The custom function sets the MS-Excel default directory to System.getProperty("user.dir")+"/excel"
    (the domain directory), then opens the filename passed as a parameter. I assume
    that if you pass in the fully specified path for the excel file ( like d:\MyDir\data\test.xls),
    that it would open that file.
    - Mike
    "Ashok Gupta" <[email protected]> wrote:
    >
    Hello,
    I have successfully tested the Excel sample on WLS 7, and trying to run
    it on
    the WLS 8.1.
    Anyways, the common question for both is, how to access an excel files
    from different
    locations (e.g. c:\path\1.xls, \\domain1\finance\fin.xls, \\domain1\marketing\customer.xls,
    \\domain2\accounts\vouchers.xls)?
    From example i can see that it picks from a specific path under repository.
    Thanks
    Ashok Gupta

  • Find memory leakage when passing Object Reference from Teststand to vi

    I am using Teststand to call labview vi, and pass ThisContext of sequence to vi as object reference, but if I just loop this step and I can find the memory using keep increasing, how can I avoid the memory leakage inside the vi.
    see my vi, it is to post message to UI.
    Solved!
    Go to Solution.

    You should be using a close reference node to close the references you get as a result of an invoke. In the code below you should be closing the references you get from the following:
    AsPropertyObject
    Thread
    Close those two references once you are done with them.
    Also make sure you turned off result collection in your sequence or you will be using up memory continually for the step results.
    Hope this helps,
    -Doug

  • Re:Can't able to access shared folders from different VLANs in SG300 series switches

    Hi All,
    I supplied 3 numbers of SG300 series switches for the sole reason to have inter-vlan routing. I created 4 VLANs in the switches and made one switch as Layer 3 switch and other 2 as Layer 2 switch. Inter-Vlan routing is working fine. I am able to ping PCs from different VLANs. But I am not to access shared folders. Customer has installed Window 2003 server installed and it is in VLAN 1. There are some folders created in this server and it is very important for users to have access to the folders.Also, I am not able to access shared folders in other VLANs. I have created a case with Cisco small business and I got a reply saying that the switches will not support shared folder feature, which I think is not real. I am getting a very time to implement this solution in the network. I have a Sonicwall firewall after Core switch which is connected to ISP.
    ISP<----->Sonicwall FW<----->Core Switch<------>Layer 2 switch<------>Layer 2 switch
    Kindly help me out to resolve this issue.
    Regards,
    Prashant K

    Hi Prashant,
    I think you're running into a Windows firewall issue. SMB file sharing, by default I believe, is only allowed on your local subnet. Please try disabling windows firewall on the computer hosting the shared folder, then see if you can access the shared file.
    Best,
    David
    PS: It looks like this post got published twice. You can delete the other one using the task bar on the right.
    Please remember to rate helpful resonses and identify correct answers.

  • Grant access to users from different Domains

    Hi,
    Recently my company was merged with another. All users from my company are setup in our Domain (DomainA). Sharepoint is able to see the users in this domain and grant access to the users as well. When the merger happened, we created a Group (Test - Sharepoint)
    in our AD to add groups from other companie's domain:DomainB, totally different Forest. There is a two way trust setup between these domains. The group Test-Sharepoint is "domain local" and it is able to see the groups/users from other domain: DomainB.
    The other users are now able to access our sharepoint environment once access is granted to DomainA\Test-Sharepoint.
    Problem came when we applied Audience targetting around few web parts. The users from DomainB who are added as object in DomainA\Test-Sharepoint (group in DomainA) are not able to see the web parts that have audience targeting for this group. Someone
    suggested that AD groups should be Global or Universal but that is not our case. Most of the groups in our AD are domain local and SP is able to see the users within it.
    Please suggest how we can resolve audience targeting issue?
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

    My apologies, yes that is correct you'll have to use Domain Local in this case. http://technet.microsoft.com/en-us/library/cc755692(v=WS.10).aspx
    Actually what you'll need to do is not use Groups in your domain at all, as the users are Foreign Security Principals. Instead, use a group in the trusted domain, or attributes of the users you intend to target directly.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Access oracle database from different classes in desktop / standalone app.

    I am a bit confused as to what way to go. I am building a desktop application that needs to access an oracle database. I have done this in the past using code similar to the following:
            try {             DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());             Connection conn = DriverManager.getConnection(                     "jdbc:oracle:thin:@111.111.111.111:oracledb",                     "username", "password" );             // Create a Statement             Statement stmt = conn.createStatement();             ResultSet rs = stmt.executeQuery(                     "select ... from ...");             while (rs.next()) {                 ReportNumberCombo.addItem(rs.getString(1));             } // end of rs while             conn.close();         } //  end of try         catch( Exception e ) {             e.printStackTrace();         }
    The problem I would like to resolve is that I have this code all over the place in my application. I would like to have it in one objects method that i can call from other classes. I can't easily see how to do this, or maybe at this point I'm just too confused.
    I want to be able to change this connection info from a properties file which I have already done, not sure if this bit of information would change the answer to my question. I was also looking at the DataSource api, this looks like it is close to what I should use, what are your thoughts?
    I would also like to if JNDI is only for web applications or would be appropriate for a desktop app.
    Thank you for your help, I realize this is all over the place but I really need these topics cleared up!

    I have tried exactly that and am getting an error which let me to believe it couldn't be done that way. Here is my code and error message:
    public class readPropsFile {
        String getURL() throws IOException {
            // default values for properties file
            String Family = "Family:jdbc" + ":oracle:" + "thin:@";
            String Server = "Server:111.111.111.111";
            String Port = "Port:1521";
            String Host = "Host:oradb";
            String Username = "Username:username";
            String Password = "Password:password";
            try {          
                new BufferedReader(new FileReader("C:\\data\\Properties.txt"));
            } catch (FileNotFoundException filenotfound) {
                System.out.println("Error: " + filenotfound.getMessage());
                // displays to console if file DOES NOT exist
                System.out.println("The file DOES NOT exist, now creating...");
                FileWriter fileObject = null;
                fileObject = new FileWriter("c:\\data\\Properties.txt");
                BufferedWriter out = new BufferedWriter(fileObject);
                // writes to output as simple text.
                out.write(Family);
                out.newLine();
                out.write(Server);
                out.newLine();
                out.write(Port);
                out.newLine();
                out.write(Host);
                out.newLine();
                out.write(Username);
                out.newLine();
                out.write(Password);
                out.newLine();
                out.close();
            // displays to console if file exists
            System.out.println("The file exists, or was created sucessfully");
    //      creates the properties object, assigns text file.
            Properties props = new Properties();
            FileInputStream in = new FileInputStream("c:\\data\\Properties.txt");
            props.load(in);
            Family = props.getProperty("Family");
            Server = props.getProperty("Server");
            Port = props.getProperty("Port");
            Host = props.getProperty("Host");
            Username = props.getProperty("Username");
            Password = props.getProperty("Password");
    //      prints properties to a file for troubleshooting
            PrintStream s = new PrintStream("c:\\data\\list.txt");
            props.list(s);
            in.close();
            String URL = "\"" + Family + Server + ":" + Port + ":" + Host + "\"" +
                    "," + "\"" + Username + "\"" + "," + "\"" + Password + "\"";
            System.out.println("This is the URL:" + URL);
            return URL;
    }And here is where I try to call the method:
    public class connWithProps1 {
        public static void main(String[] args) {
            readPropsFile callProps = new readPropsFile();
            try {
                callProps.getURL();
                String url = callProps.getURL(); // not needed
                System.out.println("The URL (in connWithProps1) is: " + csoProps.getURL());
                DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                Connection conn = DriverManager.getConnection(url);
                // Create a Statement
                Statement stmt = conn.createStatement();
                ResultSet rs = stmt.executeQuery("select .... WHERE ....'");
                while (rs.next()) {
                    System.out.println(rs.getString(1));
                } // end of rs while
                conn.close();
            } catch (SQLException sqle) {
                Logger.getLogger(connWithProps1.class.getName()).log(Level.SEVERE, null, sqle);
            } catch (IOException ioe) {
                Logger.getLogger(connWithProps1.class.getName()).log(Level.SEVERE, null, ioe);
    }The error I get is:
    SEVERE: null
    java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    111.111.111.111:1521:oradb","username","password"
            at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
            at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:460)
            at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
            at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:490)
            at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
            at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
    {code}
    Although the URL prints out correctly and when I tried plugging in the URL manually, it works just fine. One other thing I noticed was the line "The file exists, or was created sucessfully" is output 3 times.
    I will go back and change my code to properly close the resultset, thanks for catching that. Id rather use what I have instead of JNDI unless it's nesessary.
    Edited by: shadow_coder on Jun 19, 2009 2:16 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • AD Resource forest access with user from different forest

    I am trying to access a AD resource forest using a user from a different forest.
    The "different forest" is the main forest used to contain all user accounts etc. This domain is trusted by the resource forest (which contains things like outlook distribution lists etc) and so I am able to log into the resource forest (using ldp.exe or the mmc ad snap-ins) with my credentials from the main forest.
    How can I replicate this in java?
    I can connect directly to the user forest with simple authentication. But I can't do the same with the resource forest (as the user does not exist on it - it is merely trusted). Is there an authentication method that will allow me to do this?
    In this organisation user accounts for the resource forest are not given out - you have to use one from the main user forest. So I have to find a work-around where I can connect with my current credentials.
    Any ideas anyone?

    Devid,
    I am facing the same problem.
    Did you get the solutions.
    I am getting exception while calling "InitialDirContext"
    "Problem searching directory: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Accessing Object Clusters From non-web applications

              Say I have a three-tiered WebLogic cluster (web proxy, servlet, EJB).
              I have an application that wants to access the EJBs directly from
              the object cluster via RMI or Corba.
              If I'm correct, the only load balancing/failover would be provided
              by DNS. So how are non-web applications able to enjoy the benefits
              of the cluster?
              I suppose you could send your EJB requests through a servlet??
              Is that the only way?
              Please share your ideas!
              Thanks,
              Dave
              

    See http://www.weblogic.com/docs51/cluster/concepts.html#1024225
              David Mrozek <[email protected]> wrote:
              > Say I have a three-tiered WebLogic cluster (web proxy, servlet, EJB).
              > I have an application that wants to access the EJBs directly from
              > the object cluster via RMI or Corba.
              > If I'm correct, the only load balancing/failover would be provided
              > by DNS. So how are non-web applications able to enjoy the benefits
              > of the cluster?
              > I suppose you could send your EJB requests through a servlet??
              > Is that the only way?
              > Please share your ideas!
              > Thanks,
              > Dave
              Dimitri
              

  • How do I access time machine from different user account

    Hi there.
    Last week I had to take my comupter into the local Apple Store because I was having problems with Boot Camp.  The genius at the store had to delete everything from my hard drive and reinstall it from my external hard drive.  As part of the process she created a "Apple" user account.  I now want to restore some files (unrelated to this Boot Camp story) from my time machine archive.  However, all the files prior to this Apple Store encounter are red -- and it says I do not have permission to view them.  When I click "get info" it says that the "Apple" account has the read/write access to them and the option to unlock them is greyed out.  How can I get these files from the archive and get them onto my main user account where they belong?  The "Apple" account does not have a password so I think I can easily log on as that account, but I don't know where to go from there.
    PS The files in question are iTunes libraries.
    Thanks for your help.

    Ok, I fixed it.  Here's what I did.
    I logged into my computer under the Apple account.  Then I went into Time Machine.  I found my old files under Users-->"my main account".  I was able to restore those files to Users-->Shared.  Then I was able to log back into "my main account" and retrieve the files from the shared folder.  It worked!  Hope this helps someone else some time!

  • Accessing objects in a different class?

    I am now trying to reference a JFileChooser that is in my properties class to a String in my ConfCode class. How would I go about referencing this Object outside of its class? If this makes sense!

    If both classes are located in the same directory, you should be able to call them just like any other class you've imported.
    //source file Class1.java
    public class Class1 {
        public static void main(String[] args) {
         Class2 c2 = new Class2();
         c2.theMethod();
    //source file Class2.java
    public class Class2 {
        public void theMethod() {
         System.out.println("the method was called!");
    }

Maybe you are looking for

  • Why can't i find adobe media encoder in apps in creative cloud

    I just purchased the creative cloud suite and I found all the apps I need except for media encoder - any suggestions would be greatly appreciated. Thanks!

  • Special characters vanish when passed to webservice on Oracle AS 10gR2

    I've created a rpc webservice with an "echo" method. It has a single String parameter and simply returns this parameter. I've been using JDeveloper 10.1.2 and deployed this webservice onto OAS 10gR2 (10.1.2). To access it in client application I used

  • CAD Silent Monitoring 8.5(2a)

    Hello, I am having a weired situation happening with CAD 8.5(2a) with ICM 8.5(3) The silent monitoring is working and the supervisor can monitor the agent normally however , what is happened is if the supervisor was monitoring a agent and he decided

  • Lexing and parsing!!!!

    I C/C++ and ML there at specialisers (fx YACC and MLYACC) that makes the code for a lexer and a parser. What is the name for the same things in JAVA? And where do I learn how to use of them? Thanks

  • Development Configuration import failed

    Hi, In NWDS , when I try to import an existing development configuration, I get the following error message : Exception: class java.ioUTFDataFormatException invalid byte 1 of 1-byte UTF-8 sequence (0xfd) Do you guys have an idea about this issue ? Th