Anton Pirker | 9 Nov 15:39

sorting collections

hello fellow helmaphils!

i was wondering if it is possible to sort a collection of hopObjects by 
script and not with type.properties?
would help me really a lot, right now.

thanks in advance
Anton

btw: is there a possibility to search the mailing-list-archives?
(i just found the archive where i can manually look through every 
mounths postings)
Christoph.Lincke | 9 Nov 16:00
Picon
Favicon

AW: sorting collections

Hi Anton,

I needed the same feature a few days back. There is a macro called
"loop" in antvilleLib/HopObject/macros.js that does what you want. Maybe
you can use it as it is, but at least it gives you an idea of how it can
be done. 

Best,
Christoph

> hello fellow helmaphils!
> 
> i was wondering if it is possible to sort a collection of hopObjects
> by script and not with type.properties? would help me really a lot,
> right now. 
> 
> thanks in advance
> Anton
> 
> 
> btw: is there a possibility to search the mailing-list-archives?
> (i just found the archive where i can manually look through every
> mounths postings) 
> 
> 
> 
> 
> 
> 
> _______________________________________________
(Continue reading)

Anton Pirker | 9 Nov 22:55

Re: AW: sorting collections

thanks, christoph!

just what i was looking for.
had to hack a little for my purposes but on the whole i could use it 
right away!

greets,
anton

Christoph.Lincke <at> orf.at wrote:
> Hi Anton,
>
> I needed the same feature a few days back. There is a macro called
> "loop" in antvilleLib/HopObject/macros.js that does what you want. Maybe
> you can use it as it is, but at least it gives you an idea of how it can
> be done. 
>
> Best,
> Christoph
>
>   
>> hello fellow helmaphils!
>>
>> i was wondering if it is possible to sort a collection of hopObjects
>> by script and not with type.properties? would help me really a lot,
>> right now. 
>>
>> thanks in advance
>> Anton
>>
(Continue reading)

Christoph.Lincke | 11 Nov 11:22
Picon
Favicon

AW: AW: sorting collections

Hi Anton,

What did you change or what did you need? I'm asking because it might be
useful for others and worth to be added to the library. 

Cheers,
Christoph

> thanks, christoph!
> 
> just what i was looking for.
> had to hack a little for my purposes but on the whole i could use it
> right away! 
> 
> greets,
> anton
> 
> 
> Christoph.Lincke <at> orf.at wrote:
>> Hi Anton,
>> 
>> I needed the same feature a few days back. There is a macro called
>> "loop" in antvilleLib/HopObject/macros.js that does what you want.
>> Maybe you can use it as it is, but at least it gives you an idea of
>> how it can be done. 
>> 
>> Best,
>> Christoph
>> 
>> 
(Continue reading)

Anton Pirker | 11 Nov 11:28

Re: AW: AW: sorting collections

servus christoph!

i added a parameter param.sortObj so now i can sort in an subObject of 
the Collection.
and i added a Date.Sorter to sort for (or after?) dates.

i have to make some minor changes to your Number.Sorter and 
String.Sorter to
support the subObject sorting, but that should not be the big problem.

if you wish i can send you the code, so you can review it.

cheers
Anton

Christoph.Lincke <at> orf.at wrote:
> Hi Anton,
>
> What did you change or what did you need? I'm asking because it might be
> useful for others and worth to be added to the library. 
>
> Cheers,
> Christoph
>
>   
>> thanks, christoph!
>>
>> just what i was looking for.
>> had to hack a little for my purposes but on the whole i could use it
>> right away! 
(Continue reading)

Christoph.Lincke | 11 Nov 13:23
Picon
Favicon

AW: AW: AW: sorting collections

Hi Anton,

The AntvilleLib is not my code and I'm not the one who decides whether a
contribution will be added or not. But send it to me anyway and I'll
have a chat with Tobi or Robert. 

Thanks for your effort,
Christoph

> servus christoph!
> 
> i added a parameter param.sortObj so now i can sort in an subObject
> of the Collection. 
> and i added a Date.Sorter to sort for (or after?) dates.
> 
> i have to make some minor changes to your Number.Sorter and
> String.Sorter to support the subObject sorting, but that should not
> be the big problem.  
> 
> if you wish i can send you the code, so you can review it.
> 
> 
> cheers
> Anton
> 
> 
> 
> Christoph.Lincke <at> orf.at wrote:
>> Hi Anton,
>> 
(Continue reading)

Anton Pirker | 15 Nov 11:11

helma and script.aculo.us

hi list!

i just tried to add some funky script.aculo.us effect to my upcoming 
killer-helma-app ;-)

the problem is, that if you want to use the script.aculo.us effects or 
controls you have to include them in your html-markup like this:

<%= text_field_with_auto_complete :contact, :name %>

now helma thinks, i want to include some macro and complaints that it 
does not know what to do.
is there a way to "comment this out", so helma does not try to evaluate 
whats between <% ... %>?

thanks in advance

cheers,
anton
Hannes Wallnoefer | 15 Nov 11:26
Picon
Gravatar

Re: helma and script.aculo.us

Hi Anton,

these tags are intended to be interpreted by Ruby on Rails. If you
want to use this lib with Helma, you probably want to replace the
Rails helper methods equivalent Helma macros.

hannes

2005/11/15, Anton Pirker <helma <at> gmiatlich.net>:
> hi list!
>
> i just tried to add some funky script.aculo.us effect to my upcoming
> killer-helma-app ;-)
>
> the problem is, that if you want to use the script.aculo.us effects or
> controls you have to include them in your html-markup like this:
>
> <%= text_field_with_auto_complete :contact, :name %>
>
> now helma thinks, i want to include some macro and complaints that it
> does not know what to do.
> is there a way to "comment this out", so helma does not try to evaluate
> whats between <% ... %>?
>
>
> thanks in advance
>
> cheers,
> anton
>
(Continue reading)

Anton Pirker | 15 Nov 11:31

Re: helma and script.aculo.us

hi hannes!

Hannes Wallnoefer wrote:
> Hi Anton,
>
> these tags are intended to be interpreted by Ruby on Rails. If you
> want to use this lib with Helma, you probably want to replace the
> Rails helper methods equivalent Helma macros.
>   
ah, our big rival in business, rails...
thanks for the tip. i just found out how to do it. (maybe i was a little 
to fast with posting to the mailing-list... )

sorry for the noise!
Anton

> hannes
>
> 2005/11/15, Anton Pirker <helma <at> gmiatlich.net>:
>   
>> hi list!
>>
>> i just tried to add some funky script.aculo.us effect to my upcoming
>> killer-helma-app ;-)
>>
>> the problem is, that if you want to use the script.aculo.us effects or
>> controls you have to include them in your html-markup like this:
>>
>> <%= text_field_with_auto_complete :contact, :name %>
>>
(Continue reading)

Juerg Lehni | 17 Nov 10:26
Gravatar

collection.group.prototype documentation / questions

I'm looking for more information about the undocumented  
type.properties setting "collection.group.prototype" ( http:// 
helma.org/docs/guide/mapping/collections/ is lacking documentation  
about it )

I know that I can use it to set the prototype used for the group  
nodes returned by the collection. each node defines a property  
"groupname" that returns the name of the group.

But what else is there? Can I for example easily find the node's  
parent collection?

Jürg

Gmane