
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
RE: [ic] [sort] across [more] pages
> From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-
> users-admin@interchange.redhat.com] On Behalf Of Mike Heins
> Quoting Ron Phipps (rphipps@reliant-solutions.com):
> > Do you know if it's possible to get the values that
> > were submitted in a link that looks like this:
> >
/scan/sf=display/se=yes/se=Case%20Badges/sf=category/ml=15/tf=sku/to=f.h
> > tml
> > , without rewriting the link to pass the values as a cgi string? It
> > would even be enough if it came back as a complete string and I
could
> > then parse out the sort option, change it to the new value, and
rebuild
> > the string.
> >
>
> You can do a quick-and-dirty pretty easily. Save the following to any
> page and then access it.
>
> [page scan/ra=yes/sp=@@MV_PAGE@@]Test it[/page]
> <P>
> [loop code prod_group category description price:n ]
> [loop-calc]
> my $url;
> my $search;
> if( $search = $Session->{last_search}) {
$Session->{last_search} was what I was looking for!!! Thanks Mike, you
even gave me the expression to replace the tf tag, too cool :) I
appreciate your help tonight.
-Ron
> $search =~ s!tf=\w+!tf=[loop-code]!
> or $search .= "/tf=[loop-code]";
> }
> else {
> $search = 'scan/ra=yes/tf=code/sp=@@MV_PAGE@@';
> }
> my $url = $Tag->area($search);
> return qq{<A HREF="$url">Sort on [loop-code]</A><BR>};
> [/loop-calc]
> [/loop]
>
> <P>
> [search-region]
> <table>
> <tr>
> <td>
> code
> </td>
> <td>
> prod_group
> </td>
> <td>
> category
> </td>
> <td>
> description
> </td>
> <td>
> price
> </td>
> </tr>
> [search-list]
> <tr>
> <td>
> [item-code]
> </td>
> <td>
> [item-field prod_group]
> </td>
> <td>
> [item-field category]
> </td>
> <td>
> [item-description]
> </td>
> <td>
> [item-price]
> </td>
> </tr>
> [/search-list]
> </table>
> [/search-region]
>
>
> --
> Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
> phone +1.513.523.7621 <mheins@redhat.com>
>
> I have a cop friend who thinks he ought be able to give a new ticket;
> "too dumb for conditions".
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users