CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Button In Grid Help

Print topic Send  topic

Author Message
Chris Moore
Posted: 07/15/2003, 4:55 PM

I have a Search form 7 results Grid on the same page. They work fine. Now I
need to add a Button to the top of the Grid (next to the xx records zz
results message). This will be in the first line of the Grid, I guess. It
needs to be at the top of the Grid for sure. How do I add this button and
make it go to another page when pressed? I have tried the Forms button and
that didn't work. I tried the HTMl button & that didn't work. Man,
ignorance is a real pain in the butt. Can someone help with this please??

Thanks

Chris
Carl Joshi
Posted: 07/16/2003, 4:36 AM

::
This might help
http://www.rexdesign.com/ccs/kb.php?category_id=39&lang...d=1&event_id=76

::

"Chris Moore" <chris@dblayout.com> wrote in message
news:Xns93B9C114584BBcabubba@66.180.229.147...
> I have a Search form 7 results Grid on the same page. They work fine. Now
I
> need to add a Button to the top of the Grid (next to the xx records zz
> results message). This will be in the first line of the Grid, I guess. It
> needs to be at the top of the Grid for sure. How do I add this button and
> make it go to another page when pressed? I have tried the Forms button and
> that didn't work. I tried the HTMl button & that didn't work. Man,
> ignorance is a real pain in the butt. Can someone help with this please??
>
> Thanks
>
> Chris

DonB
Posted: 07/16/2003, 7:49 PM

Another way is to create what is essentially a "dummy" record form. s you've
found, buttons won't work without a <FORM>, and you can't put a form inside
a grid.

What you can do is just put a Cancel button on the dummy form and change the
text to "Go" or whatever makes more sense. Set the "Return Page" to the
target page. This is handy because it stays "synched" because CCS can hunt
down this reference and change if/when the target page name changes.

Two things to consider:

1. If you DON'T have a datasource/recordset on the page already there my
approach would represent extra overhead you might not be willing to "eat"
2. It looks like returning "False" from the BeforeExecuteSelect event of
the affected control will short-circuit the SELECT on your dummy record.

So I offer this as something to ponder and acknowledge Carl's is more
efficient. In reality, though, probably not to a significant degree.

The forest-for-the-trees solution is to use a simple ImageLink and a graphic
that looks like a button. But you can't change the text on the fly. Or
maybe stay with a plain link and set the backround color attribute so it
resembles a button.

DonB


"Carl Joshi" <carl_joshi_unspam@hotmail.com> wrote in message
news:bf3dba$59m$1@news.codecharge.com...
> ::
> This might help
>
http://www.rexdesign.com/ccs/kb.php?category_id=39&lang...d=1&event_id=76
>
> ::
>
> "Chris Moore" <chris@dblayout.com> wrote in message
>news:Xns93B9C114584BBcabubba@66.180.229.147...
> > I have a Search form 7 results Grid on the same page. They work fine.
Now
> I
> > need to add a Button to the top of the Grid (next to the xx records zz
> > results message). This will be in the first line of the Grid, I guess.
It
> > needs to be at the top of the Grid for sure. How do I add this button
and
> > make it go to another page when pressed? I have tried the Forms button
and
> > that didn't work. I tried the HTMl button & that didn't work. Man,
> > ignorance is a real pain in the butt. Can someone help with this
please??
> >
> > Thanks
> >
> > Chris
>
>

Chris Moore
Posted: 07/16/2003, 9:53 PM

This did it. I managed to add a generic button to a grid and add
the javascript to it & it works perfectly.

Thanks


"Carl Joshi" <carl_joshi_unspam@hotmail.com> wrote in
news:bf3dba$59m$1@news.codecharge.com:

>::
> This might help
> http://www.rexdesign.com/ccs/kb.php?category_id=39&language_id=
1&event_
> id=76
>
>::
>
> "Chris Moore" <chris@dblayout.com> wrote in message
>news:Xns93B9C114584BBcabubba@66.180.229.147...
>> I have a Search form 7 results Grid on the same page. They
work fine.
>> Now
> I
>> need to add a Button to the top of the Grid (next to the xx
records
>> zz results message). This will be in the first line of the
Grid, I
>> guess. It needs to be at the top of the Grid for sure. How do
I add
>> this button and make it go to another page when pressed? I
have tried
>> the Forms button and that didn't work. I tried the HTMl button
& that
>> didn't work. Man, ignorance is a real pain in the butt. Can
someone
>> help with this please??
>>
>> Thanks
>>
>> Chris
>
>

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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