This topic is locked

Custom View Dropdown Selection

1/13/2008 7:46:38 AM
PHPRunner General questions
S
swanside author

Is it possible to make three custom views, and instead of having the three links on a page, just have a dropdown box to select what custom view to select?

J
Jane 1/14/2008

Hi,
sure you can do it using custom code on the Visual Editor tab.

Here is a sample:

<select onchange="window.location.href=this.options[this.selectedIndex].value;">

<option value="view1_list.php">view1</option>

<option value="view2_list.php">view2</option>

<option value="view3_list.php">view3</option>

</select>

S
swanside author 1/14/2008

Thanks Jane

S
swanside author 1/27/2008

Thanks Jane.

I did that, but I need some more help please.
WHen I open my jobs table, I can see the dropdown box, on every result. I select Basic_Invoice and it opens up the results for every item in the list, not just that one particular item.
Any ideas please?

Thanks

J
Jane 1/28/2008

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and post a URL to your pages here or send it to [email=support@xlinesoft.com]support@xlinesoft.com[/email] along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.

S
swanside author 1/30/2008

Jane, I am so sorry.
I was putting the wrong url in. I was entering "Basic_Invoice_list.php" which gave me the whole list. I looked at the code again and entered this "Basic_Invoice_list.php?{$row.1Basic_Invoice_masterkeys}" and it gave me the detail I was looking at.
Thanks for your help

Paul.