I am trying to populate a datagrid with results from a cfc. This
should be simple. I have written the simply Hello World cfc and
gotten the string to display, but am really struggling getting a
query to return and display. If someone would help it would be
appreciated.
Here is my CFC
Thanks to everyone. This code works...I can finally move forward and
do something that makes a difference on our site, lol...
--- In flexcoders@yahoogroups.com, Dave Carabetta [EMAIL PROTECTED]
wrote:
An alternative way to write the resultHandler() function would be:
import
I've searched high and low for this simple answer.
In my datagrid I have a click event that simply does an Alert.Show()
to try and return the value found in hidden column cvcontactID for the
selected row. I can return the value of the datagrid row , but can't
figure out how to use that to get
That will work on the visible fields, but for some reason since the
cvcontactID field is not visible it will not return a value.
--- In flexcoders@yahoogroups.com, Pan Troglodytes
[EMAIL PROTECTED] wrote:
Does grid.selectedItem.cvcontactID work for you?
On 7/24/06, michrx7 [EMAIL PROTECTED
mx:Script
![CDATA[
import mx.controls.Text;
import mx.collections.ArrayCollection;
import mx.utils.ObjectUtil;
import mx.rpc.events.*;
import mx.controls.Alert;
import flash.net.*;
, michrx7 [EMAIL PROTECTED] wrote:
mx:Script
![CDATA[
import mx.controls.Text;
import mx.collections.ArrayCollection;
import mx.utils.ObjectUtil;
import mx.rpc.events.*;
import mx.controls.Alert
=Country
dataField=cvcountryName/
mx:DataGridColumn headerText=Reg
dataField=cvcontactmemberReg/
mx:DataGridColumn headerText=Expires
dataField=cvcontactmemberExp/
/mx:columns
/mx:DataGrid
/mx:Application
On 7/25/06, michrx7 [EMAIL PROTECTED] wrote
In my flex app I send a company name over to a cfc. The CFC returns
a query of company names with close matches.
I am trying to output that list of names in an Alert but keep
getting a list of [object Object]
Of course the number of items in that list matches the number that
should be
Ok, I tried that and now I get the following error when running the
app:
Error: Unknown Property: '[object Object]'.
at
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionsc
ript/flash/proxy::getProperty()
at admin_AddCompany/::checkcompanyHandler()
at
Thanks for your help... I got it by doing the following:
for each (var testcompanyValue in testCompany) {
for each (var testcompanyValue2 in testcompanyValue) {
mytestcompanyOutput = mytestcompanyOutput +
testcompanyValue2.toString() + \n;
}
}
--
Flexcoders
Ok, so I've created a combo box with id cvcompanyValue, then I call my
coldfusion cfc and return a query with two fields data and label.
Data holding a list of company IDs and label holding the corresponding
company names. Then I set the combobox provider to the result and
everything populates
I swear I tried that at one time...but since it works I guess I didn't.
Thanks to both who answered!
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
HELP! I am having the same problem as #2. If I create the textareas
dynamically how do I loop through them later on to set their
properties?
so basically I have some textareas with ids of
myText_0
myText_1
myText_2
myText_3
(etc)
and I have a loop of
for (var x:int=0; x4; x++)
{
// insert AS3
Using the code below I am able to create an array collection and set
it as the provider of a datagrid (the resort the columns to match
the way I want them to display).
Now I have two issues I need to solve if anyone is able to help:
1) I have of defined static arrays (mynewArray1 - 3) to add
I need to build an array collection with a dynamic # of columns so
that I can use it as a dataProvider in a datagrid.
I am trying to combine the following:
1) Columns 1 2 need to be a copy of an arraycollection
called theColleagues with two columns that are returned by a
remoteoject call to
Ben,
Yes I am checking during the show event of the second tab, but my
issue is how I build the collection. At that point I could bind it to
the datagrid, loop through the columns property and adjust as needed,
but my problem is in building the collection. I just posted a new
topic asking for
Ok, the code below calls a cfc that returns a query companies and
other company related information.
1) In the mx:Application tag I call a function initApp() which in
turn calls my remote object myService.getActive()
a) myService is the id of my remoteobject and getActive is the name
of the
Ben, thanks at this point I am successfully building the datagrid
with checkboxes in the appropriate columns and everything is
updating properly when checked.
Thank you for all your help.
-Mike
--- In flexcoders@yahoogroups.com, michrx7 [EMAIL PROTECTED] wrote:
Ben,
Yes I am checking
@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of michrx7
Sent: Monday, November 27, 2006 9:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Someone please help me build this array
collection...
I need to build an array collection with a dynamic # of columns so
that I can use
If I build out a project called InvestorStuff every time the user
opens another instance it gives it a new number like:
InvestorStuff0
InvestorStuff1
InvestorStuff2
InvestorStuff3
How do I check this value to see how many they have open?
How does one go about referencing objects on another canvas? For
example I have a tab navigator with 4 tabs:
Register
Attendees
Membership
Payment Options
Inside the attendees tab I have a canvas: csAttendee with a datagrid:
dgselectedOptions
When the user submits the pay button on the payment
Is there a better way to send a ton of values to a cfc rather then
entering them all in one huge line?
myService.SendCredit
(selectedPackageIDs,selectedForumIDs,selectedAdditionIDs,selectedPublica
tionIDs,selectedPackageUsers,selectedForumUsers,selectedAdditionUsers,et
selectedPackageIDs GT 5
...
/CFIF
--- In flexcoders@yahoogroups.com, michrx7 [EMAIL PROTECTED] wrote:
Is there a better way to send a ton of values to a cfc rather then
entering them all in one huge line?
myService.SendCredit
(selectedPackageIDs,selectedForumIDs,selectedAdditionIDs,selectedPublica
How does one go about changing the layer for multiple canvas' in AS3?
I have two canvas' and Canvas2 is slightly on top of Canvas1 and I want
to switch it so Canvas1 is slightly on top of Canvas2?
mx:Canvas id=Canvas1 x=10 y=10 height=100 width=100/
mx:Canvas id=Canvas2 x=50 y=50 height=100
Ok, I solved this with the setChildAt()
--- In flexcoders@yahoogroups.com, michrx7 [EMAIL PROTECTED] wrote:
How does one go about changing the layer for multiple canvas' in AS3?
I have two canvas' and Canvas2 is slightly on top of Canvas1 and I
want
to switch it so Canvas1 is slightly
Here is my issue. I have a canvas with a mouseOver and mouseOut
transition that resizes the height of the canvas. This works, except
when you move the mouse over the canvas inside (insideCanvas) it throws
the mouseOut command and shrinks the canvas back down. How do I catch
the fact that it is
Well, a little searching found rollOver and rollOut fix the issue.
--- In flexcoders@yahoogroups.com, michrx7 [EMAIL PROTECTED] wrote:
Here is my issue. I have a canvas with a mouseOver and mouseOut
transition that resizes the height of the canvas. This works,
except
when you move
If anyone can help with making this work I'd appreciate it. If I have
canvas' within a canvas I can't get the horizontalScrollPolicy = on
to work properly.
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
mx:Script
![CDATA[
I have an arraycollection(myArray) and I need to filter it dynamically
based on multiple criteria from user selections. How do you set
multiple filterFunctions on the array collection?
I tried calling one filter function, then refreshing and calling
another and refreshing, but it only
.
R.
On 1/4/07, michrx7 [EMAIL PROTECTED] wrote:
I have an arraycollection(myArray) and I need to filter it
dynamically
based on multiple criteria from user selections. How do you set
multiple filterFunctions on the array collection?
I tried calling one filter function
What I really need is to filter based on unknown criteria so if my
arraycollection contains two columns: ID, Name and there are 10 IDs (1-
10) and 10 names (pick some) the user might want to filter down to IDs
1,3,7 and then the next time IDs 2,3,8,9. Since the number of IDs is
variable there
If I am returning an arraycollection from a CFC how do I bind that to
a HSlider? There is no dataprovider and I'm unsure how to set the
minimum/maximum values.
I am returning an arraycollection called monthlyMemberRenewals and
I'm trying to use the field inside called cvrenewalDate to set the
32 matches
Mail list logo