I'm trying to add a new column to the events admin tabulated
view. I have looked at the typeadmin.cfm customtag and it appears that
it gets the default columns(select,edit,view...) from the typeadmin.cfc.
What I want to do is get the default values, however add another column
at a certain position. Am I over-engineering here:
Before I call the customadmin.cfm customtag. I call the
customadmin.cfc method of getDefaultColumns().
Then I create a new array with one element holding the new
column values that I want.
Then add it to the default values array at the correct array
Position. Finally passing in into the customadmin.cfm customtag as
attributes.aColumns.
So essentially it's the default column plus one additional
custom column.
Is there an easier way to do this?
Theo
--
_______________________________________________________________________________
Notice from Melbourne Business School Ltd
The information contained in this e-mail is confidential, and is intended for
the named person's use only. It may contain proprietary or legally privileged
information. If you have received this email in error, please notify the
sender and delete it immediately. You must not, directly or indirectly, use,
disclose, distribute, print, or copy any part of this message if you are not
the intended recipient
Internet communications are not secure. You should scan this message and any
attachments for viruses. Melbourne Business School does not accept any
liability for loss or damage which may result from receipt of this message or
any attachments.
______________________________________________________________________________
typeadmin.cfc is not designed to be called directly -- it really only
exists to simplify the complexity of typeadmin.cfm.
To change columns you need to generate an array of column data with the
relevant data structure per column and pass that in as an attribute or
use the typeadmincolumn child tag which will do much the same but in a
more tag friendly way.
More details here:
http://bugs.farcrycms.org:8080/confluence/display/FCDEV30/typeadmin
Hope that helps,
-- geoff
http://www.daemon.com.au/
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg
I have tried both however the default buttons have security
complexities around their properties. I did not want to have to
duplicate that. I thought it would be far cleaner to call the
getDefaultColumns() and then append my changes. Is there a way to get
the default properties? Or how can you just add one extra column without
having to re-code the default button properties?
Theo
Hope that helps,
-- geoff
http://www.daemon.com.au/
--