Create 2 dataproviders to a remote object
HelloI created a remote object that populates an arrayCollection collection to be used as a dataprovider for a menu item drop-down. In one case, I want to add data to the dataProvider to show an additional element in the list and in the other dataProvider I want just the data returned by the remote call. The problem is that when I add the article to the list it is also reflected in the second collection of arrayCollection. How can I use a remote call complete 2 separate arraycollections and do not have changes to the one reflected in the other collections?
Try this.
private void handleResult(e:ResultEvent):void {}
copy the result returned by using the ObjectUtil object. This will create a copy of which has been returned
Array1 = ObjectUtil.copy (e.ResultEvent) as ArrayCollection collection;
Array1.addItemAt ("Show All", 0);
Use what was returned unmodified as the second collection
Array2 = e.ResultEvent as ArrayCollection collection;
}
Tags: Flex
Similar Questions
-
Remote object shared my kicks butt
After 4 days, I'm still stuck with what should be a simple learning exercise. I'm not a developer starting with all means, which should not be beyond me. After a few weeks of reading, I now try to do some exercises of bite size for the ramp on the Communication (using Flex as the primary server) server. I'm missing something in my understanding and could use a good quick quick kick in the pants get me.
All I want to do is created a remote object on the side server, then when a client connects, send and add a simple string to the remote object. While the customer gets the update and display the information in a text box. Here is the code I try to use, cleaned up a bit (so their could be a typo or two). He seized the idea of what I'm trying to do.
I'm not sure what I'm doing wrong. The idea is to send a test string to the server to connect, and only the server to add to the object shared side server. In theory, I think, it will trigger the client onsync event to send the change to the customer. Fires of onsync but I see not the information contained in the customer... just get an "undefined"... What Miss me? Save me a week of pulling on my hair, if you can, please!
Thank you!
==================server asc================================
application.onAppStart = function()
{
trace ("onAppStart");
Create the shared object on the side Server
test_so = SharedObject.get ("myTestSharedObject");
}
application.onConnect = function (client, someTextForDisplaying)
{
test_so. SetProperty (myProperty, someTextForDisplaying);
Returns true;
}
==================client ================================
var my_so: SharedObject;
var nc:NetConnection;
It is triggered by a click of a button in the user interface
function createConnection (): void
{
to connect to the server
NC = new NetConnection();
nc.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
nc.objectEncoding = ObjectEncoding.AMF0;
//
NC. Connect ("rtmp: / testApplication", "test string");
}
connected now connect the client to the remote object on the side Server
function netStatusHandler (event: NetStatusEvent): void
{
Switch (event.info.code) {}
case "NetConnection.Connect.Success":
The connection was successful now create components
User simple shared object and event management
SharedObject.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;
my_so = SharedObject.getRemote ("myTestSharedObject", nc.uri, false);
my_so.addEventListener (SyncEvent.SYNC, usersSyncHandler);
my_so. Connect (nc);
break;
case "NetConnection.Connect.Rejected":
Alert.Show ("connection rejected.',"something went wrong");
break;
}
}
It's the event triggered when the remote shared object changes
function usersSyncHandler (event: SyncEvent): void
{
display the information returned in the user interface
txtDisplay = event.target.data.myProperty;
or
txtDisplay = txtDisplay + my_so.data.myProperty;
}
Solved it... don't know what the problem was, but it finally works...
-
I created an application that needs to refer to several synonyms that exist in a different schema on another server.
When I compile my package in SQL Developer, that I'll meet with the error message:
ORA-04045: errors during recompilation/revalidation of GILLNET_TAG. GILLNET_TAG
ORA-04052: error occurred when searching to the top of the remote object PERMITS. VPS_FISHERY_NER@DER1_PERMIT
ORA-00604: an error has occurred at the SQL level recursive 2
Note that the error referred to only 1 of 4 thesaurus - VPS_FISHERY_NER
The others seem fine.
I created this synonym like this:
CREATE a PUBLIC SYNONYM vps_fishery_ner FOR permit.vps_fishery_ner@der1_permit;
Note that this is a synonym that refers to a synonym, as are the other 3.
Any ideas as to why this error occurs?
The DBMS is 10g.
Thank you.You can search for 'ORA-04052' in Metalink, it brings several bugs that may be related. We had similar problems when the database that were in different versions like 9i-> 10 g-> 9i. The solution, you can try is to delete the % type definition and use a locally defined type that corresponds to the same remote type definition.
-
Failed to create the stored procedure with the object as a parameter
Hello
No idea how to create procedures to the current data stored in SQLFire, try to run the command prompt "sqlf" per call "create_proc.sql" as give below error below
C:\SQLFire10Beta>sqlf sqlf version 10.4 sqlf> connect client 'localhost:1527'; sqlf> run 'create_proc.sql'; sqlf> CREATE PROCEDURE INSURANCE.SEARCHCUSTOMER (IN CUST OBJECT) DYNAMIC RESULT SETS 1 LANGUAGE JAVA PARAMETER STYLE JAVA READS SQ L DATA EXTERNAL NAME com.xxx.xxx.sqlfire.dao.CustomerSearchProcedure.searchCustomer; ERROR 42X01: Syntax error: Encountered "" at line 1, column 47. Caused by: SqlException: Syntax error: Encountered "" at line 1, column 47. at com.vmware.sqlfire.internal.client.am.Statement.completeSqlca(Statement.java:1838) sqlf> sqlf>
and I created a class Java as described below:public class CustomerSearchProcedure { public static void searchCustomer (BaseDTO[] customers, ResultSet[] outResults, ProcedureExecutionContext context) throws SQLException { BaseDTO searchCriteria = customers[0]; StringBuilder sql = new StringBuilder(); sql.append("SELECT * FROM INSURANCE.CUSTOMERS WHERE CUST_NAME LIKE '"+searchCriteria.getCustName().trim() + "%'"); Connection cxn = context.getConnection(); Statement stmt = cxn.createStatement(); ResultSet rs = stmt.executeQuery(sql.toString()); outResults[0] = rs; } //END OF METHOD }
This procedure is called class using the class StoredProcedure Spring DAOYou can let me know why am not able to create the procedure?
FYI, pots can also can be dynamically installed in the system by using the SYS. Table client-side JARS to transport the jar bytes rather than by requiring that the pot be accessible side Server (http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.sqlfire.1.0/deploy_guide/Topics/sysjars_install.html)
-
Is it possible to create an action that moves an object?
Is it possible to create an action that moves an object from its original position to another location?
I think you can do it using the object effects.
-
Create ctxsys.ctxcat index in the object Table
What I'm trying to do is to create an index of type ctxsys.ctxcat on 'col3 '. But this 'col3' is not a 'TABLE', but in an object, as follows:
CREATE OR REPLACE TYPE TestObj AS OBJECT
(
col1 varchar2 (10),
col2 varchar2 (10),
COL3 varchar2 (10),
COL4 varchar2 (10)
);
CREATE OR REPLACE TYPE AS THE TestObj TABLE TestTable;
Now, how can I create an index of type ctxsys.ctxcat on 'col3 '?
create index test_ind on TestTable (col3) indextype is ctxsys.ctxcat;?
Thank you for helping.
ScottYou cannot index a user-defined data type. Indexes are used for persistent storage of persistent objects.
What I suspect you really want is an associative array or an array indexed by integer binary. Demos here:
http://www.morganslibrary.org/reference/arrays.html
-
ORA-04052: error occurred while the remote object by raising
Please help I m this error
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-04052: error occurred while the remote object by raising
ORA-01017: name of user and password invalid.
connection refused ORA-02063: preceding the line of LINK DBTom wrote:
Please help I m this error
ORA-01017: name of user and password invalid.
connection refused ORA-02063: preceding the line of LINK DBWell, what part of the name of user and password invalid needs to explain?
SY.
-
Hello
I have this error when I try to connect using remote object with ColdFusion.
Unknown AMF type "15".null
Any ideas?
Thank you!
Sorry, I was the bad parameter
It's time to go to sleep.
Best,
-
Remote object with mobile apps
Hi all
I want to know that is it possible to apply a moblie (TLE say for android) using the adobe AIR software, which can work with
the remote object? If so then someone can say that it will be possible to implement as amfphp, blazeds, flurinefx or web - orb etc.?
Thanks in advance,
Wallerand
iPad, Android, Blackberry Playbook.
-
How to get the remote object mode protect?
Hi all
I have a question for a remote object mode protect in drive x. need your help, thank you very much ~
Background: I have a plugin running on drive x protect mode. Without a strong name, plug-in will load my DLL (manufactured by c#). Then, in this DLL, it will use
_3rdProxy p (_3rdProxy) Activator.GetObject = (typeof (_3rdProxy), url); for a remote object of the 3rd application (made by c# also). Then I can make communication between my app plug-in and 3rd.
But I got an error "Access denied", said. Anyone know how to get the remote object in this case? Thank you very much ~
Since you have a reader integration key, you are advised to use our methods of support for the official Developer.
-
Hello
I have a component that is to have a remote object.
Is it possible to the ResultEvent or result generated by the remote object of bubble. ? Can I do something that is mentioned below?
COMP1. MXML
<? XML version = "1.0" encoding = "utf-8"? >
"< mx:VBox xmlns:mx ="http://www.adobe.com/2006/mxml">".
< mx:RemoteObject id = "rem" destination = 'TestService' result = "onComplete (event); "showBusyCursor ="true"/ >< mx:VBox >
MainComp.mxml<? XML version = "1.0" encoding = "utf-8"? >
"< mx:Application xmlns:mx ="http://www.adobe.com/2006/mxml"layout ="absolute"creationComplete =" init () ">"
< mx:Script >
<! [CDATA]
Import mx.controls.Alert;
Import mx.rpc.events.FaultEvent;
private function init (): void {}
COMP1.addEventListener (GenericEvent.FAULT_EVENT, faultEvent);
}
private void faultEvent(event:FaultEvent):void {}
Alert.Show ("Ersdasdfsdfrrror");
}
[]] >
< / mx:Script >
< ns2:Comp1 id = "comp1" x = "72" y = "55" >
< / ns2:Comp1 >
< / mx:Application >Concerning
mxvx
Hello
Propagation of events occur through the display list, that is to say a component (DisplayObject) sending an event and another component (DisplayObject) listen.
However, you may have;
COMP1. MXML
private function onComplete(event:FaultEvent):void { dispatchEvent(event); }
The above would then go the event to your MainComp.mxml
Mike
-
< mx:RemoteObject id = "myService" destination = "{currentReport}" >
< name mx:method = "getDateFromServer" result = "resultHandler (event)" / >
< / mx:RemoteObject >How can I set the method of the remote object in as3?
I think that's what you ask for
var getDateFromServer_remote:AbstractOperation = remoteObject.getOperation ("getDateFromServer");
getDateFromServer_remote.addEventListener (ResultEvent.RESULT, onResult);
getDateFromServer_remote.addEventListener (FaultEvent.FAULT, onFault);
getDateFromServer_remote.send (); -
Remote objects do not support Java integers
Another a - cha with the help of flex... it becomes bad enough... :(
Integers do not cross over Java in ActionScript3, the use of remote objects. Strings of working on a large, all the rest are not. Where can I report this bug?After further research, it turns out that flex 3 is still in ALPHA and is not ready for the general public. You simply can not get reproducible results when you use Flex / Java / JBoss / BlazeDS under any form without code change.
Flex leaves just, no errors, no nothing. 10%, there is no work (return of remote objects), the rest of the time, it isn't, it returns empty objects.
Would be great if this was tested prior to release.
-
Create a business for a maintenance object object
Hello
I want to create a business for a maintenance object object change all XML attributes to XML elements.
Should I have to change the whole XML schema attributes to the elements one by one?
For example, I create the business CM_Person_BO for the purpose of maintenance person object and use the business object to add a user in a more standard way.
But it is a very important job to rewrite the entire schema for the maintenance person object, which has the rest of the elements that are PersonIdentifiers, PersonNames, PersonPhones, PersonCharacteristics, person and SeasAddress.
Is there an easy way to do it?
Thank you
KerrShould I have to change the whole XML schema attributes to the elements one by one?
Is there an easy way to do it?Unfortunately no, you need to set the schema with each element/field, once. The main objective is to create a version of the BO with only the required fields or a subset of available fields, should you not all fields in a month. This improves performance because the IO is made only for the fields specified in the BO.
You can define areas of separate data for the context of the purpose of each person, i.e. identifiers, names, phones, etc. and include (includeDA) in the Soundtrack of the person (CM_Person_BO) for clarity.
-
Hello
on 10 gr 2 on WIN 2003 server:
And then:C:\>sqlplus repadmin/***@CEL2.WORLD SQL*Plus: Release 10.2.0.4.0 - Production on Tue Jun 22 09:54:18 2010 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
Thanks for the help.CONNECT repadmin/******@CEL1.WORLD BEGIN DBMS_REPCAT.ADD_MASTER_DATABASE ( gname => 'REPG', master => 'CEL2.WORLD', use_existing_objects => TRUE, copy_rows => FALSE, propagation_mode => 'ASYNCHRONOUS'); END; / BEGIN * ERROR at line 1: ORA-04052: error occurred when looking up remote object [email protected] ORA-00604: error occurred at recursive SQL level 2 ORA-12545: Connect failed because target host or object does not exist ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 4271 ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2156 ORA-06512: at "SYS.DBMS_REPCAT", line 146 ORA-06512: at line 2
connect to the remote database as sys and
SQL > grant execute on sys. DBMS_REPCAT repadmin;
Maybe you are looking for
-
IPhone 6 s. version number 9.3.4 New MacBook Pro I have trouble downloading all the music from my MacBook Pro on my iPhone via iTunes. I tried to sync my iPhone but there is no change.
-
Beats by Dre (PowerBeats 2)
First of all, I'm a big fan of the Beats by Dre brand and what it represents. I take the time to write this letter because I really like the brand. Unfortunately, these last months 4-5 has been disappointing and frustrating. A bit of background about
-
Hello I have a Qosmio G10.With this device, I want to watch TV (which is the reason for burning).I tried to connect with my Satellite Box with normal coaxial cable. But MCE does not have a Signal. Can I connect the Qosmio standard Cable I can watch t
-
Photosmart C5180 scanning and copy problem
Scanning and copying service, computer and also the printer button produce entirely black (not empty) pages with lines vertical and horizontal of different shades of black. Uninstalled, reinstalled, used doctor scan, download software uptodate and th
-
Already have my contact information?
I got a call last night from a lady in an Indian call centre supposedly from Microsoft Support saying that someone was trying to access my computer and she would help me to stop. She was able to tell me that I am the primary user of the computer to