[ic] sorting problem

Alessandro Poletto alessandro at polet.to
Fri Jul 23 19:30:58 EDT 2004


I've made an experiment but without good response:

scan/
st=db/
fi=products/
sf=category/
op=rm/
se=Accessori%20Abbeveratoi%20cani/
sf=inventory:quantity/
op=>/
se=-1/
nu=0/
ml=10/
su=1/
co=1/
tf=quantity/
to=n

or

scan/
st=db/
fi=products/
sf=category/
op=rm/
se=Accessori%20Abbeveratoi%20cani/
sf=inventory:quantity/
op=>/
se=-1/
nu=0/
ml=10/
su=1/
co=1/
tf=inventory:quantity/
to=n

does not works...  

if I put tf=price to=n it works fine!

Help me!


> 
> 
> > -----Original Message-----
> > From: interchange-users-bounces at icdevgroup.org
> > [mailto:interchange-users-bounces at icdevgroup.org]On Behalf Of
> > Alessandro Poletto Sent: Monday, July 19, 2004 3:19 PM To:
> > interchange-users at icdevgroup.org Subject: Re: [ic] sorting problem
> >
> >
> > I have solved a part of the problem writing this code (not so good
> > as code, i'll write better when all is working!), now the problem
> > is: how can I meke a sort by quantity in inventory?
> >
> > p.s. excuse me for 'italian variables'!
> >
> > <=====
> >
> > [tmp linea][data session last_search][/tmp]
> > [tmp prova_uscita][/tmp]
> > [perl]
> >   my $line=$Scratch->{linea};
> >   my @list = split(/\//,$line);
> >   my $test=2;
> >   foreach $record (@list) {
> >     if ($record =~ /to=/) {
> >     #  Erase from last search other orders
> >     } elsif ($record =~ /tf=/) {
> >     #  Erase from last search other orders
> >       } else {
> >       $Scratch->{prova_uscita}=$Scratch->{prova_uscita} .
> >       "$record/";
> >     }
> >  }
> > [/perl]
> >
> > <a href="__VendURL__/[scratch prova_uscita]tf=price/to=n">Price</a>
> >
> > ====>
> >
> > Many thanks...
> 
> in your search, specify the quantity field (in foundation, that's
> usually "inventory:quantity") as one of the fields to search and sort
> by.  See
> http://www.icdevgroup.org/interchange-doc-5.2.0/frames/icdatabase_31.h
> tml for details, and pay particular attention to the examples
> mentioning "Any in stock except Sunflowers, Van Gogh". Remember to add
> a tf= for the quantity field...or you may be able to use a sort tag in
> the results page.  (I'm not sure if a sort tag would work, but
> something tells me it should.)
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
> 


============================================
Toth di
Alessandro Poletto
http://www.toth.it
E-mail: alessandro at polet.to
============================================



More information about the interchange-users mailing list