This topic is locked

Chart Search Page

8/30/2007 12:07:00 PM
ASPRunnerPro General questions
R
rickcalder author

Hello,
Anyone know how to restrict the Search option drop down box items to "Equal" only or to get rid of it entirely?

I would also like to eliminate the "NOT" check box. These are located on the Chart Advance Search Page.
Thanks

M
Michael7 8/30/2007

You can remove entirly in ASP runner by unchecking what you dont want to seach on the search page.

to remove 'not' you could use a wysiwyg editor and just remove the cells. but chart editing does not appear on the inbuilt wysiwyg editor in ASPrunner.
look for these codes in output/templates/"chartname"_search.htm to remove the 'Not' option

remove the not checkbox cell

1st - <td align=center class=editshade_lb style="padding-left:10px;"><input type=CheckBox name="not_Store" {$not_Store}></td>

remove the not text cell at top of cell

2nd - <td width=30 align=center valign=middle class=searchlist>NOT</td>
look for these codes in output/"chartname"_search.asp to remove all options except 'Equals
*s=""

if opt="Equals" then s="selected"

options=options & "<OPTION VALUE=""Equals"" " & s & ">" & "Equals" & "</option>"
you will see this line of code for each option. (contains, starts with etc)

remove the options you done want by deleting all the code as above.
if anything doesn't work right just reset page in ASP runner

hope that helps.



R
rickcalder author 8/31/2007

You can remove entirly in ASP runner by unchecking what you dont want to seach on the search page.

to remove 'not' you could use a wysiwyg editor and just remove the cells. but chart editing does not appear on the inbuilt wysiwyg editor in ASPrunner.
look for these codes in output/templates/"chartname"_search.htm to remove the 'Not' option

remove the not checkbox cell

1st - <td align=center class=editshade_lb style="padding-left:10px;"><input type=CheckBox name="not_Store" {$not_Store}></td>

remove the not text cell at top of cell

2nd - <td width=30 align=center valign=middle class=searchlist>NOT</td>
look for these codes in output/"chartname"_search.asp to remove all options except 'Equals
*s=""

if opt="Equals" then s="selected"

options=options & "<OPTION VALUE=""Equals"" " & s & ">" & "Equals" & "</option>"
you will see this line of code for each option. (contains, starts with etc)

remove the options you done want by deleting all the code as above.
if anything doesn't work right just reset page in ASP runner

hope that helps.




Thanks much. Worked like a charm.