[aida] Sort elements with links

Francisco A. Lizarralde st.easy.rider at gmail.com
Mon May 11 22:30:07 CEST 2009


Hi Janko,

Wonderful !!!

That's exactly what I need. I didn't know about columnLinkViews. 
I think I need to learn much more about Aida.

Thank you so much for your help.

Best regards,

Francisco

El lun, 11-05-2009 a las 22:11 +0200, Janko Mivšek escribió:
> 
> Francisco A. Lizarralde pravi:
> > "IF I COMMENT THE NEXT LINE, i CAN SORT THE COLUMN"
> > 		column: 2 addBlock: [ :each |
> > 			(WebElement new) addLinkTo: each text: each studentId].
> 
> That's exactly what I wrote in additiona mail: you cannot sort columns
> with addBlocks.
> 
> But in your case you can make links much more simply, use
> #columnLinkViews: instead
> 
> 	...
> 	columnAspects: #(nil #studentId #surname #name #email);
> 	columnLinkViews: #(nil main nil nil nil);
> 	...
> 
> #columnLinkViews: specify the view of the link of the each object in in
> your case is the equivalent of:
> 
>    column: 2 addBlock: [:each |
>       WebElement new
> 	addLinkTo: each text: each studentId view: #main;
> 	yourself].
> 	
> 	
> Janko
> 



More information about the Aida mailing list