Using the aColumns attribute is the more flexible way of doing things. 
All the child tag does is build this internal array for you.

This should all be explained here:
http://docs.farcrycms.org:8080/confluence/display/FCDEV30/typeadmin

If its not clear.. please comment on the individual pages and I'll 
update the documentation :)

-- geoff
http://www.daemon.com.au/


drummintime wrote:
> Thanks Blair & Geoff!  I tried using the typeadmincolumn attributes but
> couldn't get that working.  I used Blair's suggestion of copying the
> default columns & reworking them for my purposes, and it worked.  Not
> very elegant, but it does the trick.  I'll try again w/
> typeadmincolumns soon, & if I can get it working, I'll post the code.
> 
> This is the resulting code of the successful attempt to replace the
> field label with my custom field unitName:
> 
> <cfimport taglib="/farcry/farcry_core/tags/widgets/" prefix="widgets">
> 
> <!--- set up columns --->
> 
> <cfscript>
>       //This data structure is used to create the grid columns
>       //remember to delimit dynamic expressions ##
>       aDisplayColumns=arrayNew(1);
>       mytypename = "ocUnit";
> 
>       editobjectURL =
> "#application.url.farcry#/conjuror/invocation.cfm?objectid=##recordset.objectID[recordset.currentrow]##&typename=#mytypename#&ref=typeadmin";
> 
>       //select
>       stCol=structNew();
>       stCol.columnType="expression";
>       
> stCol.title="#application.adminBundle[session.dmProfile.locale].select#";
>       stCol.value="<input type=""checkbox"" class=""f-checkbox""
> name=""objectid"" value=""##recordset.objectid##""
> onclick=""setRowBackground(this);"" />";
>       stCol.style="text-align: center;";
>       //stCol.orderby="";
>       arrayAppend(aDisplayColumns,stCol);

...snip..8<...
-- 
Message protected by MailGuard: e-mail anti-virus, anti-spam and content 
filtering.
http://www.mailguard.com.au/mg



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" 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/farcry-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to