Ah. I might be wrong here (I spent about 30 minutes with cfgrid before
ditching it and went straight to using ext directly), but I believe you
cannot use objects as your bind expression. I believe you have to use the
literal notation, i.e. bind="cfc:cfc.servers.getServersByCustomer(.....)".
I do not know if you can use the cfc binding with existing objects. When I
need to do that, I've gone to using a url bind expression with that cfm file
using the objects i've created (in some persistent scope, obviously, since
they wont' be in the variables or request scope). Although it's entirely
possible I just didn't know enough at the time to know how to use the
existing objects.
Best,
Marc
On Jan 11, 2008 7:46 AM, Xavi <[EMAIL PROTECTED]> wrote:
> Complex object types cannot be converted to simple valuesThe expression
> has requested a variable or an intermediate expression result as a simple
> value, however, the result cannot be converted to a simple value. Simple
> values are strings, numbers, boolean values, and date/time values. Queries,
> arrays, and COM objects are examples of complex values.
>
> The most likely cause of the error is that you are trying to use a complex
> value as a simple one. For example, you might be trying to use a query
> variable in a cfif tag.
>
> The error occurred in
> D:\Inetpub\ftproot\99999\crm.ackstorm.es\02\TEST\calTest_4.cfm: line 6
>
> 4 :
> 5 : <cfgrid name="serversGrid" format="html" pagesize="10"
> selectmode="row" striperows="yes" striperowcolor="##E4E4E4"
> 6 : selectcolor="##CCF1FD" appendkey="yes"
> bind="cfc:#application.objServers#.getServersbyCustomer({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},99999)">
>
> 7 :
>
>
>
> On Jan 11, 2008 1:14 PM, Marc Esher <[EMAIL PROTECTED]> wrote:
>
> > What's the error?
> >
> >
> > On Jan 11, 2008 6:40 AM, Xavi <[EMAIL PROTECTED]> wrote:
> >
> > > I have cfcs like this :
> > >
> > > <cfset application.objServers =
> > > createObject("component","cfc.servers").init("my_datasource")>
> > >
> > >
> > > And i need to bind a cfc to a grid, but i get an error:
> > >
> > > <cfform name="servers">
> > >
> > > <cfgrid name="serversGrid" format="html" pagesize="10"
> > > selectmode="row" striperows="yes" striperowcolor="##E4E4E4"
> > > selectcolor="##CCF1FD" appendkey="yes"
> > > bind="cfc:#application.objServers#.getServersbyCustomer({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},99999)">
> > >
> > > <cfgridcolumn name="id" display="no">
> > > <cfgridcolumn name="severname" header="Server Name" width="250">
> > > <cfgridcolumn name="ips" header="IP's" width="250">
> > > </cfgrid>
> > >
> > > </cfform>
> > >
> > > Is it posible to do? Or is thtere another way.
> > >
> > >
> > >
> >
> >
> >
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---