How do I set up a link with predefined search options and have the results displayed by modify_multi_search_results?
In other words, I want to send a predefined query to the table editor on the admin side of course.
Currently I am cycling thru the results returned from a $table->select, and displaying the results manually using html.
my $prefix_plus_table = $DB->prefix . "Links";
$links_db->select_options('ORDER BY Title ASC') || return $GT::SQL::error;
my $sth = $links_db->select({ MyValue => '0' });
print q|<table><tr><td>Title</td><td>Value</td></tr>|;
while (my $link = $sth->fetchrow_hashref)
{
print q|<tr><td>|;
print $link->{'Title'};
print q|</td><td>|;
if($link->{'MyValue'} == '0') { print "Invalid"; }
print q|</td></tr>|;
}
print q|</table><BR>|;
I want to pass the results to modify_multi_search_results. This is my non-working attempt. It doesn't display correct results,
but does display them on the modify_multi_search_results page. :-)
And then how do I pass the option to "Display Records" "As Rows"?
Thanks,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
In other words, I want to send a predefined query to the table editor on the admin side of course.
Currently I am cycling thru the results returned from a $table->select, and displaying the results manually using html.
Code:
my $links_db = $DB->table('Links') || return $GT::SQL::error; my $prefix_plus_table = $DB->prefix . "Links";
$links_db->select_options('ORDER BY Title ASC') || return $GT::SQL::error;
my $sth = $links_db->select({ MyValue => '0' });
print q|<table><tr><td>Title</td><td>Value</td></tr>|;
while (my $link = $sth->fetchrow_hashref)
{
print q|<tr><td>|;
print $link->{'Title'};
print q|</td><td>|;
if($link->{'MyValue'} == '0') { print "Invalid"; }
print q|</td></tr>|;
}
print q|</table><BR>|;
I want to pass the results to modify_multi_search_results. This is my non-working attempt. It doesn't display correct results,
but does display them on the modify_multi_search_results page. :-)
Code:
print qq|<a href="$CFG->{admin_root_url}/admin.cgi?do=modify_multi_search_results&db=Links&MyValue=0">Show Results</a><br>|;And then how do I pass the option to "Display Records" "As Rows"?
Thanks,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com