Re: [flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-25 Thread Pan Troglodytes
How about an example result from your RemoteObject?On 7/25/06, 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;import flash.net.*;[Bindable] public var

[flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-25 Thread michrx7
The RemoteObject is returning simple database values which is why it is the provider for the datagrid. cvcontactID is a primary key and I have set the visible value to false in the datagrid. When someone selects a row I simply want to return the value within the hidden cvcontactID datagrid

Re: [flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-25 Thread Pan Troglodytes
Well, there is more going on than your code is really showing. As an example, here is a simple ArrayCollection connected to a grid. It has a button that will display the hidden column value when clicked. It works perfectly. So that's why I'm asking for more information from you. There's

[flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-25 Thread michrx7
My apologies for wasting too much of your time and plenty of mine. I made the cvcontactID field visible only to realize that I didn't declare it in my SQL statement in the CFC so the SWF file was simply filling it with blanks. Thanks for your dedication and extra time on this one. Catch me at

Re: [flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-25 Thread Pan Troglodytes
Let he who has not done something equally boneheaded cast the first stone.;)On 7/25/06, michrx7 [EMAIL PROTECTED] wrote:My apologies for wasting too much of your time and plenty of mine. I made the cvcontactID field visible only to realize that I didn'tdeclare it in my SQL statement in the CFC

[flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-24 Thread michrx7
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

Re: [flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-24 Thread Pan Troglodytes
That doesn't make a lot of sense to me. SelectedItem will be the item in the dataprovider, which knows nothing about the grid and which fields are visible or not.Can you post your code? On 7/24/06, michrx7 [EMAIL PROTECTED] wrote: That will work on the visible fields, but for some reason since

[flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-24 Thread michrx7
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.*;