PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Again Column Formatter Callback

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures
View previous topic :: View next topic  
Author Message
sutterp



Joined: 16 Apr 2008
Posts: 6
Location: Western Australia

PostPosted: Fri May 09, 2008 1:56 pm    Post subject: Again Column Formatter Callback Reply with quote

I have the need to copy a value of a table element into a form variable when a table element is clicked. The obvious way to do this, would be to associate the onclick event in the formatter callback function, e.g put

Code:
onclick="document.forms[0].elementname.value=ValueFromRecord


into $params.attribs in my column formatter function.

$params['attribs'] gives me the value of the attributes as specified in the constructor of Structures_DataGrid_Column. I now want to append to attribs the onclick handling string. How do I pass the appended/changed attributes value back to the Structures_DataGrid_Column object? $params is obviously read-only

Thanks

Peter
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Fri May 09, 2008 5:21 pm    Post subject: Reply with quote

I don't really get your problem here, but most likely you'll want to overload the Smarty renderer class and add the desired behaviour there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software