Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

arkcto
arkcto
Offline

Badges

Badges
7

Accepted Solutions

Accepted Solutions
0

Likes

Likes
0

Posts

Posts
19

Discussions

Discussions
14

Questions

Questions
5

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by arkcto
Customize the badges you want to showcase on your profile
Re: Datagrid not populated programatically
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
You the man.Thank you, it works.

Views

169

Likes

0

Replies

0
Datagrid not populated programatically
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Hello,I am trying to populate a datagrid in ActionScript, but amunable to do. However, if I do it in mxml, I am able to see thedata. Here is my relevant mxml code. public var players:ArrayCollection; private function fillPlayers(event: ArrayCollection):void { players = event; mainTxt.text = "Getting filled later"; } private function displayRackInfo():void { playMe.getPlayersAsList(); // This fills the playerscollection. var rackInfoGrid:DataGrid = new DataGrid(); rackInfoGrid.dataProvider = play...

Views

393

Likes

0

Replies

2
Re: Populating Tree from Java Remote Object
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Thanks Tom,Yes, If you could please email the zip file toarkcto@yahoo.com, I'd very much appreciate it.Thanks for your help again.

Views

199

Likes

0

Replies

0
Re: Populating Tree from Java Remote Object
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
H I Tom,I have public attributes AND have public getters/setters, andstill doesnt' work.More importantly, Tom, is my approach to building a Tree froma Java object correct ? What if I've more than just the 'Name'field that I want displayed ? Nodes such as building and room mightonly have 'Name' as the labelField, but nodes such as Cubicle alsohave fields such as Width, Height that need to be displayed.The way I am doing it now (labelField='Name') precludes thatfrom happening. Is that right ?What ...

Views

524

Likes

0

Replies

0
Re: Populating Tree from Java Remote Object
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Thanks Tom.I am getting somewhere now. However it still doesn't workfully yet. Instead of just one 'object:MyTree' it's giving me a2-level tree.i.e. objectMyTree. ----------------objectMyTree--------------------------------------objectMyTree.So it's getting the data, I believe, but it's not showing it?My mxml looks like this : import mx.collections.ArrayCollection; import rpc.tree.*; [Bindable] public var aTree:Building; private function now(event: Object):void { aTree = Building(event); }

Views

524

Likes

0

Replies

0
Re: Populating Tree from Java Remote Object
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Hi Tom,My Tree control isAlso I can't import 'java.util.List' in my action scriptclass. But I have used List in my .as files.// import java.util.*; - This doesn't work.package rpc.tree { [Bindable] [RemoteClass(alias="rpc.tree.Building")] public class Building { public var name:String; public var children:List }}My Detination class. public static Building getMeATree() { Cubicle cubicle = new Cubicle("Cubicle A"); List cubicles = new ArrayList(); cubicles.add(cubicle); Room room = new Room("Room ...

Views

524

Likes

0

Replies

0
Populating Tree from Java Remote Object
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Hi TomThanks for the response. Well, I did the classes and actionscript files as you suggested. However, I get the same result - thetree just shows 'objectMyTree' (I think it's just giving aninstance name of the class).My modified classes are as follows :Building.javapublic class Building {String name;List children;public Building(String name, List children) {this.name = name;this.children = children;}Room.javapublic class Room {String name;List children;public Room(String name, List children) {...

Views

524

Likes

0

Replies

0
Populating Tree from Java Remote Object
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Hi,I was wondering if there is a specific "type" of Javaobject(s) I need to create to pass a Java object as the dataprovider for a Tree.My example is as follows : I have a Building, inside abuilding I have a room, inside a room I have a cubicle, inside acubicle I have a desk.Obviously each node can have many subnodes (i.e. One room canhave many cubicles).I tried representing this hierarchy in Java.I have the following structure :Building.javapublic class Building { String name; Room room; public...

Views

2.2K

Likes

0

Replies

12
ChannelConnect Failed. error null
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
RPC Fault faultString="Send failed"faultCode="Client.Error.MessageSend"faultDetail="Channel.Connect.Failed error null"]Hi folks - I've been succesfully able to get RPC servicesrunning. However, when I try to run a simple FDS example, I get thefollowing error :RPC Fault faultString="Send failed"faultCode="Client.Error.MessageSend"faultDetail="Channel.Connect.Failed error null"]My mxml code is given below : My data-management config file looks like this : rpc.playerinfo.PlayerAsse...

Views

439

Likes

0

Replies

1
Empty Array with Remote Object - HELP
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Got it. IT works.Thank you very much.

Views

148

Likes

0

Replies

0
Empty Array with Remote Object - HELP
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Hi, I posted a related message last week about how I am unable toretrieve an array of data from a remote object. I am a newbie and I've been able to call Java methods whenthey return a simple String. However, I am unable to get an arrayof Java objects.I have a datagrid in my application that has to be populatedby calling a method of a remote object.The remote object (Java class looks like this).public class PlayerService { ...... // This is the method that gets called. public Player[] getPlayers...

Views

375

Likes

0

Replies

2
Re: passing an Array Remote Object
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Thanks guys.JS, I got what you are saying. Now I don't have any errormessages, but the data grid is blank.This is the mxml code. (I added your input) import mx.controls.Alert; import mx.collections.ArrayCollection; import rpc.playerinfo.Player; import mx.utils.ArrayUtil; [Bindable] public var players:ArrayCollection; public function handlePlayersResult(event: ArrayCollection) { //then set the event result which is being sent into thisfunction to the playerList players = event; } What is it missing ? Thank you so much.

Views

206

Likes

0

Replies

0
passing an Array Remote Object
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Hi,I am a newbie and I've been able to call Java methods whenthey return a simple String. However, I am unable to get acollection of Java objects. I get the following error message : Type Coercion failed: cannot convertmx.rpc.remoting.mxml::Operation@31717b1 to Array.I have a datagrid in my application that has to be populatedby calling a method of a remote object.The remote object (Java class looks like this).public class PlayerService { public PlayerService() { } public Player[] getPlayersAsAr...

Views

566

Likes

0

Replies

3
passing an Array Remote Object
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Please ignore this duplicate message, and look at the mostrecent one with the same message title.Thanks.

Views

215

Likes

0

Replies

0
Re: Simple RPC with RemoteObject
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
>>By the way, when you compile mxml yourself, make sureyou use --compiler.services .That works - now .the swf and mxml both work.Thanks so much for your help, matamel.

Views

128

Likes

0

Replies

0
Re: Simple RPC with RemoteObject
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
And the plot thickens.I removed flex, flex-admin directories, and kept just therpcdataservice (my app) as the only webapp under Tomcat. What I seeis that if I launch .mxml from the browser, it works, but when Ilaunch the .swf file it complains about 'unknown destination'.I compiled the .mxml into .swf frm command-line using thebatch file I mentioned in the earlier message.So .mxml works, but .swf doesn't work. Again I am launchingboth the files from the browser.Thanks for your patience.

Views

133

Likes

0

Replies

0
Re: Simple RPC with RemoteObject
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Tried everything, doesn't work.Even removed flex and flex-admin webapps from Tomcat. Justhave rpcdataservice webapp and inside that the Flex subfolder withthe right configuration files.Also, I used the build.bat (got it from flex samples) tobuild the .swf file from .mxml file. @echo offSET OPTS=-use-network=falsefor /R . %%f in (*.mxml) do ..\..\bin\mxmlc.exe %OPTS% "%%f"I'm sure this has nothing to do with it, but I triedeverything else alreadyThanks Matamel.

Views

130

Likes

0

Replies

0
Re: Simple RPC with RemoteObject
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Thanks matamel,I don't know how it can work on your computer and not onmine. Yes, I am modifying the right configuration files.My full remoting-config file looks like this : rpc.playerinfo.PlayerService Also, my web.xml is pretty empty. Anything need to be there ? Also, I have two web applications - Flex and rpcdataservice.Inside my rpcdataservice I have a web-inf folder, inside which Ihave another flex subdirectory. I am modifying theremote-config.xml file in my flex subdirectory insi...

Views

125

Likes

0

Replies

0
Simple RPC with RemoteObject
Avatar
Give Back 10
Level 2
arkcto
Level 2

Likes

0 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
arkcto
- Adobe LiveCycle
Hello,I am a newbie and I am trying a simple application to testRPC using RemoteObject. My application takes a name from a textinput field and prints the welcome greeting in a text area.The method to execute in my RemoteObject is a goofy methodthat takes a person's name and returns the String welcoming theperson.Here is the method.package rpc.playerinfo;public class PlayerService { public String printThis(String name) { return "Welcome to " + name; }}I've added a destination representing this re...

Views

981

Likes

0

Replies

11