[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] search-region using label causes more-list error


Hi All,

I am using the following code on a page.

Basically what I am trying to accomplish is displaying the search
results found in a Perl block using the [search-region] mechanism
including the more-list feature.

Unfortunately, clicking the more list links will generate errors like:
'Object saved wrong....'

Would I need to save the search results manually in the Perl block?


[perl]
        my $label = 'mysearch';
        my $ary = [
                        [ 'return-A1', 'return-A2', ],
                        [ 'return-B1', 'return-B2', ],
                        [ 'return-C1', 'return-C2', ],
                        [ 'return-D1', 'return-D2', ],
                ];

        my $n = scalar @$ary;

        $Search->{$label} = {
                        matches => $n,
                        mv_results => $ary,
                        mv_matchlimit => 2,
                        mv_field_names => [ 'field1', 'field2', ],
        };
        return;
[/perl]


[search-region label=mysearch]
[search-list]
        [item-code] - [item-param field2]<br>
[/search-list]

[more-list]
        [more]
[/more-list]
[/search-region]


Thank you for your kind attention !


Best regards,

Ton

--
Alamerce Nederland --- Cornerstone of eBusiness
Phone +31-40-2374381    suppressed    http://www.alamerce.nl

eCommerce Solutions -- Consulting -- Website & Interchange Hosting

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.