Feeding an Array of Objects returned from a remote object using AMFPHP Remote procedure calls.

Hi guys,
I am working on an AIR Application that Uses Flex and AMFPHP remoting, The returned data type is an array of objects containing a sting an a url to an image on the server, How do bind this to a tilelist so i have a list with images representing the icons and the string representing labels of the Tilelist?

We assume that the object have these two fields:
-     label
-     image
so you may first pass the Array to the dataProvider of the TileList and make an ItemRenderer (with a label and a image). Then in the ItemRenderer, access to the objects fields with data:
ItemRenderer.mxml
<mx:VBox>
     <mx:Label text="{data.label}"/>
     <mx:Image source="{data.image}"/>
</mx:VBox>

Similar Messages

  • Should I use the object returned from em.merge()

    I am still confused how to use em.merge() correctly. I need to know if I should use the result of em.merge().
    PersistentObject obj = new PersistentObject();
    obj.setSomething("Value#1");
    // Should I do this and continue to use the object returned from merge().
    obj = em.merge(obj);
    obj.setSomething("Value#2");

    Chris,
    First thanks for your and your teams awesome support.
    The reason I always get confused with merge() is my misunderstanding about how clones and caching are handled. Let me give you 2 scenerios and could you tell me what the problems are, is any?
    Scenerio #1: (using return from merge)
    -- Start of Transaction #1
    EntityObject obj = new EntityObject();
    obj.setName("chris");
    obj = em.merge(obj);
    -- End of Transaction #1
    -- Start of Transaction #2
    obj.setName("scott");
    obj = em.merge(obj);
    -- End of Transaction #2
    Is this ok, will I lose data, are the clones and cache ok?
    Scenerio #2: (NOT using return from merge)
    -- Start of Transaction #1
    EntityObject obj = new EntityObject();
    obj.setName("chris");
    em.merge(obj);
    -- End of Transaction #1
    -- Start of Transaction #2
    obj.setName("scott");
    em.merge(obj);
    -- End of Transaction #2
    Is this ok, ?
    These 2 scenerios are different in the fact that one uses the return from merge and one does not. Which one is correct, and what would the problem be with the wrong one?

  • Can objects returned from web services be cast to strongly typed objects?

    Can objects returned from web services be cast to strongly
    typed objects?
    Last I tried this was with one of the beta of Flex2 and it
    did not work. You had to use ObjectProxy or something like that...
    Thanks

    Please post this question in the CRM On Demand Integration Development forum.

  • Multi-state object return from visible to invisible after a few seconds?

    Hi Community,
    I have a folio for ipad. on the second page is a picture of a technological product. i made several info buttons on top of it that open a descriptionbox for the specific area of the product via MSO.
    Is it possible to let MSOs return to their invisible state after a few seconds? I tried the timing option, but that didn't worked out. the object returned to invisible immediatly. not after the set timeframe of 3 seconds.
    my only solution was to make extra close buttons for each MSO to return to invisible state. but that leaves the Infotext boxes open all the time unless you close them manually.
    another idea was to make each info button close every other infobox. but that is messy and didn't work very well on the first attempt. and still leaves one infobox open all the time.
    PS: sorry if unclear, for typos and language. Not native.
    Hendrik

    there is no way to automatically close an MSO n seconds after it was manually opened by the reader.
    yet...
    but thanks anyway

  • Response from one stored proc. to another stored procedure call in JDBC

    Hi,
    I have to call 2 stored procedures, where the response from first stored procedure ( an id) is mapped as a parameter to the second stored procedure call.
    My question is that can this be achieved without using BPM?
    Can we somehow map the response from the stored procedure 1 to stored procedure 2 parameter w/o using BPM?
    I have to insert multiple rows using the stored procedure.
    Should I use STATEMENT unbounded times ( which means stored procedure is called multiple times) or should I use the parameter as unbounded ( like an array, maybe define the parameter as an array in the stored procedure)?
    From the performance standpoint, which approach is better?
    Please suggest.

    Hi Ardent !
    I think you could use 2 mapping programs (message mapping objects) in your interface mapping. The first one, executes and returns the ID to a message type defined by you for internal use only between both stored procedure executions. The second ones uses that message type as source message and the XML required by the JDBC for the second stored procedure execution as target message type. This can be done without BPM.
    Regards,
    Matias.

  • Urgent: Failed to get the object returned from the server

    Hi there,
    I'm debugging someone's code which make use of RMI to implement the client/server.
    I found that when the client request the object from the server, the server return the object properly. But on the client side, it returned "java.io.EOFException". Don't know how to resolve it. Pls HELP !!
    Thanks.
    -Maggie
    ==============
    Here is the output:-
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.io.EOFException
    java.io.EOFException
         at java.io.DataInputStream.readInt(DataInputStream.java:343)
         at java.io.ObjectInputStream.readInt(ObjectInputStream.java:1980)
         at javax.swing.ImageIcon.readObject(ImageIcon.java:371)
         at java.lang.reflect.Method.invoke(Native Method)
         at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
         at java.util.Hashtable.readObject(Hashtable.java:792)
         at java.lang.reflect.Method.invoke(Native Method)
         at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
         at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
         at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
         at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
         at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
         at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:300)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:134)
         at com.ptec.rms.app.olap.modelbuilder.OlapMBServiceImpl_Stub.getPanel(Unknown Source)
         at com.ptec.rms.app.sc.SystemConsoleDesktop.changeService(SystemConsoleDesktop.java:141)

    at least you have the benefit of the code to work with! :)

  • Error while doing multiple object updation from EP ! object lock error

    HI all,
    I am doing multiple  object updation using a standard RFC(BAPI_PROJECT_MAINTAIN). The RFC i am calling from Enterprise portal. I am sending data to RFC one by one. But the error i am getting is object is locked by user so data can't be save.
    Though i am using Lock and unlock method before and after calling RFC the project lock error comes up.
    What might be the reason
    regards
    sandeep

    Hi Sandeep,
    Is the RFC you use for locking in the same model as the bapi BAPI_PROJECT_MAINTAIN? If it is not then you are using two connections for communication with the sap R/3 backend.
    You can do 2 things.
    1. You could add the RFCs for locking in the same model as the BAPI_PROJECT_MAINTAIN
    2. Instead of adding the RFCs in one model synchronize the connections the models use as follows:
    IWDDynamicRFCModel model1 = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(Model1.class);
    IWDDynamicRFCModel model2 = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(Model2.class);
    model1.setConnectionProvider(model2);
    You can do this in the wdDoInit. This will make sure both models use the same connection but closing a connection will close both at the same time.
    The same problem applies to commit/rollback functionality.
    Regards,
    Jeschael

  • Can't connect from Mac to PC using MS Remote Desktop

    I have a 5 day old Windows 8.1 laptop. 
    My daughter has an application called Microsoft Remote Desktop 8.0.5 on her Mac. It is Microsoft-made application for Mac, like Office.
    I want her to access my computer, using this application, to access my computer from hers, even though she lives several states away (to show me how to use this computer). 
    Her application asks her for: 
    Connection Name
    PC Name (Enter Host Name or IP Address)
    Gateway (No Gateway Configured is the default), but she can add a Gateway, which then asks for a Gateway Name, Server, Username, and Password.
    Username (Enter Domain\User)
    Password
    Resolution (Native is the Default)
    Colors (32 bit is the Default)
    Fullscreen Mode (OS X Native is the Default)
    I found my IP addresses through the command prompt by typing ipconfig /all (Of course, nothing is actually called IP address.)
    She types in the "Default Gateway" into the PC name box and she can't connect. She types in the "IPv4 address" and it can't connect. (She has tried uninstalling and re-installing the software).
    The error message that she gets is "Unable to connect to remote PC. Please verify remote desktop is enabled, the remote pc is turned on and available on the network and try again."
    As far as I know, I allowed Remote Access, and I set up the Windows Firewall to allow Remote Access. I have uninstalled Norton Internet Security because I could not access my settings with it installed at all, and installed AVG for free instead, which only
    includes antivirus, no firewall.
    What do we do? How can she access my computer to teach me how to use it?

    Hi,
    Firstly, you need to the following on your side.
    1. Allow remote connections to the computer you want to access.
    2. Make sure Remote Desktop is able to communicate through your firewall.
    3. Find the IP address of the computer on your home network that you want to connect to.
    4. Open your router's configuration screen and forward TCP port 3389 to the destination computer's IP address.
    5. Find your router's public IP address so that Remote Desktop can find it on the Internet.
    Allow Remote Desktop connections from outside your home network
    http://windows.microsoft.com/en-HK/windows7/allow-remote-desktop-connections-from-outside-your-home-network
    Then, for your daughter.
    1. Connection Name: Optional.
    2. PC Name: Required. Enter the public IP address of your router.
    3. Gateway: No need here.
    4. User Name:
    YourComputerName\YourUserAccountName
    5. Password: The password of
    YourUserAccountName
    Getting Started with Remote Desktop Client on Mac
    http://technet.microsoft.com/library/dn473012
    Remote Desktop Client on Mac: FAQ
    http://technet.microsoft.com/library/dn473006
    However, please note that if your daughter connects to your computer, you will be disconnect and you cannot see what she is doing. It is be design.
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Unable to connect to my home PC from my home Mac using Windows Remote Desktop

    i have downloaded from the Microsoft website and also the Application from the App store and both fail to connect. i have connected to my PC using the migration assistant so they are able to recognise each other.
    on the Mac:
    - downloaded the app and also done the download from MS website - both fail and suggest to check that remote access is enabled.
    on the PC:
    - have my Ipaddress from "IPConfig"
    - have enabled remote access through windows firewall
    The PC is on and has a password enabled 
    Error on App:
    "Unable to connect to remote PC. Please verify remote desktop is enabled, the remote pc is turned on and available on the network and try again"
    both are connected to the internet and on the same home network. Can anyone please advise to any additional steps as this seems as though this should be really straightforward. as another note i don't have another firewall software interrupting - am just
    using windows firewall until i can get this working.

    Hi,
    Firstly, please refer to the article below to enable remote desktop connection on your Windows 7.
    Remote Desktop Connection: frequently asked questions
    http://windows.microsoft.com/en-us/windows/remote-desktop-connection-faq#1TC=windows-7
    On your Mac, you can download the app here.
    https://itunes.apple.com/hk/app/microsoft-remote-desktop/id715768417?mt=12
    More information:
    Getting Started with Remote Desktop Client on Mac
    http://technet.microsoft.com/library/dn473012
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • Filter Objects returned by Get-ChildItem

    Hello there,
    I had a look at the properties available for objects returned by Get-ChildItem command using:
    PS C:\> Get-ChildItem | Get-Member
    This command shows that objects returned by Get-ChildItem command possess properties
    'Name, FullName, LastAccessTime etc...'
    If I declare a variable to retrieve objects starting with 'Program':
    PS C:\> $ChildItems_Program = Get-ChildItem -name 'Program*'
    and check what is stored in $ChildItems_Program, it shows me two objects/items as shown below:
    PS C:\> $ChildItems_Program
    Program Files
    Program Files (x86)
    However if I try to access properties 'Name, FullName, LastAccessTime' from the first object saved in $ChildItems_Program
    PS C:\> $ChildItems_Program[0] | Select -Property Name, FullName, LastAccessTime
    Name FullName LastAccessTime
    I can't see any results for above command- Shouldn't it return the properties of first object saved in $ChildItems_Program?
    Can anyone please guide.
    Thank you!
        

    Hi,
    Tommy is right, using -Name doesn't actually return the full object. When you use that parameter, you're getting back an array of names only. Here's how you can tell:
    PS C:\> $ci_program = Get-ChildItem -Name 'Program*'
    PS C:\> $ci_program.GetType()
    IsPublic IsSerial Name BaseType
    True True Object[] System.Array
    PS C:\> $ci_program[0].GetType()
    IsPublic IsSerial Name BaseType
    True True String System.Object
    PS C:\> $ci_program[0] | Get-Member -MemberType Property
    TypeName: System.String
    Name MemberType Definition
    Length Property int Length {get;}
    PS C:\> $ci_program
    Program Files
    Program Files (x86)
    Here's what you should see if you get objects back from gci, using -Filter (I use -Path here):
    PS C:\> $ci_program_object = Get-ChildItem -Path 'Program*'
    PS C:\> $ci_program_object.GetType()
    IsPublic IsSerial Name BaseType
    True True Object[] System.Array
    PS C:\> $ci_program_object[0].GetType()
    IsPublic IsSerial Name BaseType
    True True DirectoryInfo System.IO.FileSystemInfo
    PS C:\> $ci_program_object[0] | Get-Member -MemberType Property
    TypeName: System.IO.DirectoryInfo
    Name MemberType Definition
    Attributes Property System.IO.FileAttributes Attributes {get;set;}
    CreationTime Property datetime CreationTime {get;set;}
    CreationTimeUtc Property datetime CreationTimeUtc {get;set;}
    Exists Property bool Exists {get;}
    Extension Property string Extension {get;}
    FullName Property string FullName {get;}
    LastAccessTime Property datetime LastAccessTime {get;set;}
    LastAccessTimeUtc Property datetime LastAccessTimeUtc {get;set;}
    LastWriteTime Property datetime LastWriteTime {get;set;}
    LastWriteTimeUtc Property datetime LastWriteTimeUtc {get;set;}
    Name Property string Name {get;}
    Parent Property System.IO.DirectoryInfo Parent {get;}
    Root Property System.IO.DirectoryInfo Root {get;}
    PS C:\> $ci_program_object
    Directory: C:\
    Mode LastWriteTime Length Name
    d-r-- 1/26/2014 12:40 AM Program Files
    d-r-- 3/28/2014 12:07 PM Program Files (x86)
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • How to use value returned from a bean in jsp page

    Hi All,
    I have a string array value being returned from a javabean to a jsp page. I want to be able to assign the value to a variable in the jsp page.
    How do I do this?
    Many thanks :)

    thanks for your response.
    I actually used something like this:
    <% String loggedin = log.User(user,password);
    out.println(loggedin);
    %>i am not yet as much of an expert on beans as i would like to be, but i thought it is not really a bean if it has a getter method which takes arguments?

  • How to create an object of our own class by using Class.forName()??

    how to create an object of our own class by using Class.forName()??
    plzz anser my qustion soon..

    Class.forName does not create an object. It returns a reference to the Class object that describes the metadata for the class in question--what methods and fields it has, etc.
    To create an object--regardless of whether it's your class or some other class--you could call newInstance on the Class object returned from Class.forName, BUT only if that class has a no-arg constructor that you want to call.
    Class<MyClass> clazz = Class.forName("com.mycompany.MyClass");
    MyClass mine = clazz.newInstance();If you want to use a constructor that takes parameters, you'll have to use java.lang.reflect.Constructor.
    Google for java reflection tutorial for more details.
    BUT reflection is often abused, and often employe when not needed. Why is it that you think you need this?

  • Selecting data from a RDBMS table using connector framework, JDBC-Connector

    Hi Experts,
    I'm trying to select data from a mysql database that is connected via the BI-JDBC System in the portal (EP 7 SP 11).
    The connection (using the Connector Gateway Service) is set up, but selecting data fails.
    Can you please give me a code example how to select data from a table using INativeQuery or IOperation / IExcecution ?? IQuery is depracted...
    Here my piece of code, actually method "connection.newNativeQuery()" throws exception "BICapabilityNotSupportedException: Operation is not supported":
         IConnection connection = null;
         public void connectToJDBCSystem(String jdbcSystem) {
           // open a connection
           try { // get the Connector Gateway Service
              Object connectorservice =
              PortalRuntime.getRuntimeResources().getService(IConnectorGatewayService.KEY);
              IConnectorGatewayService cgService =
              (IConnectorGatewayService) connectorservice;
              if (cgService == null) {
                   response.write("Error in get Connector Gateway Service <br>");
              try {
                ConnectionProperties prop =
                   new ConnectionProperties(request.getLocale(), request.getUser());
                connection = cgService.getConnection(jdbcSystem, prop);     
              } catch (Exception e) {
                   response.write("Connection to JDBC system " + jdbcSystem + " failed <br>");
                   response.write((String)e.getMessage() + "<br>");
                   e.printStackTrace();
              if (connection == null) {
                   response.write("No connection to JDBC system " + jdbcSystem + "<br>");
              } else {
                   response.write("Connection to JDBC system " + jdbcSystem + " successful <br>");
           } catch (Exception e) {
                response.write("Exception occurred <br>");
                           // up to this point it works fine...
           // build query using an IExecution object obtained from the Connection object
           response.write("prepare query 'SELECT idArt, art FROM art' <br>");
           String qstr = "SELECT idArt, art FROM art";
           INativeQuery query = null;
           try {
              query = connection.newNativeQuery();             
              response.write("execute query...<br>");
              ResultSet rs = (ResultSet)query.execute(qstr);
              while (rs.next()) {
                   response.write("<th>" + rs.getString(1) + "</th>");     
           } catch(Exception e)
              response.write("connection.newNativeQuery() failed <br>");
              response.write((String)e.getMessage() + "<br>");
              e.printStackTrace();
           } finally {
                 if( connection != null )
                 try {connection.close();}
                              catch(Exception ee){}
    Many thanks in advance, Monika
    Edited by: Monika Verwohlt on Jan 26, 2010 9:49 AM

    However this doesn't affect the XML encoding in data retrieved from XMLType using PL/SQL or programs (but it does work OK for SQLPlus SELECT).When performing an explicit serialization, with getClobVal method or XMLSerialize function, the database character set is used :
    NLS_LANG = FRENCH_FRANCE.WE8MSWIN1252
    NLS_CHARACTERSET = AL32UTF8
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> create table test_nls of xmltype;
    Table créée.
    SQL> insert into test_nls values(xmltype('<?xml version="1.0" encoding="UTF-8"?><root/>'));
    1 ligne créée.
    SQL> select * from test_nls;
    SYS_NC_ROWINFO$
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <root/>
    SQL> select t.object_value.getclobval() from test_nls t;
    T.OBJECT_VALUE.GETCLOBVAL()
    <?xml version="1.0" encoding="UTF-8"?><root/>
    SQL> select xmlserialize(document object_value as clob) from test_nls;
    XMLSERIALIZE(DOCUMENTOBJECT_VALUEASCLOB)
    <?xml version="1.0" encoding="UTF-8"?><root/>

  • Securing Procedure Called from URL

    Hello all,
    I've read-up on creating procedures that can be called directly via a URL (ie. http://localhost:8080/apex/myschema.helloworld) by granting execute to anonymous and adding "MYSCHEMA.HELLOWORLD" to wwv_flow_epg_include_mod_local. I have a test procedure running.
    My question is, does anyone have any suggestions on how one might do this securely? Specifically I'm thinking I'd like to use one of these procedures to generate an XML stream of location information into a Google Map on one of my pages. As long as a user is in the app, I'm good because I know the user logged-in to get there. My concern is that some smart guy would get hold of the URL, pop it in the address bar and now has all the location data which may be sensitive.
    Couple things I tried:
    - granting execute to just apex_public_user incorrectly thinking that's what an ApEx application runs as (I forgot it runs as anonymous which is the same as someone who isn't logged in at all)
    - checking the value of v('APP_SESSION') inside the procedure, thinking if there's a session then the user must have logged-in - but it comes back null whether called from inside or outside the application. I suspect that when calling the procedure via a URL even from inside the app (like thru an iframe in an HTML region), it must kick off a new session.
    Any thoughts or suggestions, even something other than using a direct procedure call at all? My main priority is doing this securely.

    Hi,
    I have had similar requirements. I'm not sure I've solved it properly yet, but here's the sort of thing I did:
    1 - I updated the procedure to receive a parameter - this will be the ID of the user
    2 - In my database, I created a table that holds nothing but the IDs and a datetime value.
    3 - When the page loads that the user uses to get to this procedure, I update datetime value for the record for that user to, say, now + 1 minute
    4 - When called, the procedure then checks the ID in that table to see if the datetime value is &gt; now - if it is, then the download proceeds, otherwise, nothing
    You could probably also do something with a random number created when the page loads. Pass this as another parameter and check it in the process.
    Andy

  • Using jdbc StoredProcedure to return from a function an array of objects

    I am trying to call a stored procedure(function) using jdbcTemplates with no inputs which returns a list of objects.
    I previously used the same function returning a cursor and used the following example:
    http://www.saarathi.com/wiki/Processing_JDBC_ResultSet_from_an_Oracle_stored_procedure_with_Spring#Calling_the_stored_procedure_and_function_from_Spring_JDBC_DAO
    which worked fine.
    I now want to return the same objects which relates to a table but in a list and have tried to follow the example in
    http://forum.springframework.org/archive/index.php/t-10042.html
    But have had no success and did not understand the example GetPersonProc.
    I dont understand why it works for the cursor and not a list.
    I would very much appreciate some help.

    Hi
    Can anybody help me with the code of how to return a resultset from a web service. i have put the resultset data's in an object array and tried to return it, but in the client side no data comes ,,, i mean it is printed as null.... and plz tell me where to specify the return type of a object in the wsdl file....
    thanks..

Maybe you are looking for

  • Time constraints for IT0377

    Hello All, For the Benefits IT, 0377, we are using a benefit area 08 and subtype 0001. For this Benefit Area and Subtype, we have configured several Benefit Plans such as BUPA, CYCL, TRVL etc. We want to set the time constraint such that for an emplo

  • Can't uninstall to install 8.0.24 Firefox

    The uninstallation program hangs with "1706 error --- can't find source something..." I've installed 8.5 beta for Opera and do have 8.0.24 for IE but Firefox won't upgrade. (I'm a browser junkie :-) Any help would be greatly appreciated!

  • Standby database datafile corruption.

    Hi: I am getting the following errors on my standby db. Could u please tell me how to handle the situation. I am skeptical to try out any thing as this might end up in datafile corruption. Please advice.. MRP0: Background Media Recovery terminated wi

  • IMac running lion 10.7.3 won't remember network/

    When it wakes up it tries to connect and fails, but as soon as I choose my home network from the list it connects immediately. I have checked the box remember this network . I have tried all the tricks found on the internet and still have to copnnect

  • Creating Repository from using Archive file (.a2a)

    Hello, I Archived a repository from MDM 5.5 SP4 running on Oracle. Can I create a repository using that Archived (.a2a) file in MDM 5.5 SP5 running on SQL Server ? Is it possible to create like that? Note: Database is different and MDM version is dif