CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Add inline search to existing Grid on its own page

Print topic Send  topic

Author Message
myproxy

Posts: 23
Posted: 02/10/2008, 10:02 PM


I have a Grid on its own page which gets its search criteria from another page.

What I want to do is simply add a textbox under each field in the heading of a GRID so user can update boxes to reflect the new search criteria.

So obviously, adding a Record inside a Grid will not work so has anybody built such a scheme without resorting to a fully custom page. Tricks, tips...

Essentially, it comes down to a flow and usage of screen real estate to ease searching of data.
View profile  Send private message
JayEdgar


Posts: 77
Posted: 02/11/2008, 5:07 AM

I'm not sure why you wouldn't want the use the standard search form at the top of the page. And if it's what you want...

Add a search form to the top of the page. To the <table> tag add
style="visible: none;"
Add the textboxes you want where you want them. in the onblur event of each one, have it update the corresponding textbox in the now-hidden form (refer to document.forms(0).Fieldname.value="xxx").

I'll leave it to you to figure out how you want to submit. Probably a button somewhere that runs javascript that says document.forms(0).submit();

Good luck,

J
View profile  Send private message
datadoit
Posted: 02/11/2008, 5:54 AM

Doable without any custom coding.

Create a table or panels with two rows. The top row drop in your search
form. The bottom row drop in your grid without any sorting (you'll lose
your sorting in this method).

For each of your search form listboxes, do a client onchange event to
submit the form.
JayEdgar


Posts: 77
Posted: 02/11/2008, 6:23 AM

Interesting idea.

Jay
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.