CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 making a search form the size I want

Print topic Send  topic

Author Message
Pepito
Posted: 06/03/2003, 6:28 AM

Hello, I want to make a search form that fits in a 295 wide x 44 height
(pixels) table. However, when I create the form it is bigger that that and
therefore, stretches the table out , way above the desired size.

I have tried several tricks but it does not work....any hints??

Thanks

DonB
Posted: 06/03/2003, 12:26 PM

The textboxes will size themselves to be as big as the number of characters
they can contain (at the font size used).

You have a couple of choices - force a smaller font or limit the width in
characters. Note: you have control over two aspects of "number of
characters", one is the number characters that you can type into them and
the other is how many characters will be displayed. Decrease the latter and
you will make the box narrower.

DonB


"Pepito" <pepitxispi@yahoo.com> wrote in message
news:bbi7po$s3h$1@news.codecharge.com...
> Hello, I want to make a search form that fits in a 295 wide x 44 height
> (pixels) table. However, when I create the form it is bigger that that and
> therefore, stretches the table out , way above the desired size.
>
> I have tried several tricks but it does not work....any hints??
>
> Thanks
>
>

Pepito
Posted: 06/04/2003, 2:38 AM

Thanks for you tip...however, I already downsized the text box and it´s ok,
but the problem is this:
When I create a search form from the builder, it creates a form with a table
that contains 3 cells...
1 row for the start "tag" or "label" (forgive me if I am using the wrong
description)
1 row for {error}
1 row for the, for instance, "search articles" - this one is not a problem,
I can erase it
1 row for the text box and the search button
1 row for the ending "tag" or "label" (forgive me if I am using the wrong
description)

So, in the end I have 5 rows, and I want to fit all this in a single
row...If I delete some rows, the form won´t work...
and I have to fit it in a 295 wide x 44 height (pixels)...try it for
yourself....just create a table of that size, and insert a search form from
the builder....you´ll see it for yourself...(2 minutes)

Thanks for your interest and help!!!!!



"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
news:bbispg$bnq$1@news.codecharge.com...
> The textboxes will size themselves to be as big as the number of
characters
> they can contain (at the font size used).
>
> You have a couple of choices - force a smaller font or limit the width in
> characters. Note: you have control over two aspects of "number of
> characters", one is the number characters that you can type into them and
> the other is how many characters will be displayed. Decrease the latter
and
> you will make the box narrower.
>
> DonB
>
>
> "Pepito" <pepitxispi@yahoo.com> wrote in message
>news:bbi7po$s3h$1@news.codecharge.com...
> > Hello, I want to make a search form that fits in a 295 wide x 44 height
> > (pixels) table. However, when I create the form it is bigger that that
and
> > therefore, stretches the table out , way above the desired size.
> >
> > I have tried several tricks but it does not work....any hints??
> >
> > Thanks
> >
> >
>
>

Roger Harris
Posted: 06/04/2003, 6:02 AM

Have you tried using horizontal orientation in the search builder? For
instance, I just created a blank test page, and then clicked on Search
Builder in the builder tab of the toolbox. The first screen lets you
pick your DB. When you click on next, you pick the table you will be
using. Just under that drop-down box, and to the right, there is a
radio button that lets you pick vertical or horizontal orientation.
Vertical is chosen by default. I clicked on horizontal, and finished up
the wizard, and it created a table with only 3 rows.

Then, to get everything up into one row, I moved the Error control down,
and the submit control up, (I guess it doesn't really matter, I just
decided to do it this way :) ) and then everything was in one cell.

You have to make sure though, that you move the hidden tags that show up
in HTML view also...

It would need to look like this:


<tr>
<td><!-- BEGIN Error -->{Error}<br><!-- END Error -->
Article Title <input maxlength="125" size="20"
value="{s_article_title}" name="{s_article_title_Name}"> 
<!-- BEGIN Button Button_DoSearch --><input class="ClearButton"
type="submit" value="Search" name="{Button_Name}"><!-- END Button
Button_DoSearch -->  </td>
</tr>

This is untested though, so you'll need to try it out to make sure it
works... To make it even smaller, you could define your own style to
make the font smaller, in the table tag.. such as

hope that helps,

Roger

Pepito wrote:
> Thanks for you tip...however, I already downsized the text box and it´s ok,
> but the problem is this:
> When I create a search form from the builder, it creates a form with a table
> that contains 3 cells...
> 1 row for the start "tag" or "label" (forgive me if I am using the wrong
> description)
> 1 row for {error}
> 1 row for the, for instance, "search articles" - this one is not a problem,
> I can erase it
> 1 row for the text box and the search button
> 1 row for the ending "tag" or "label" (forgive me if I am using the wrong
> description)
>
> So, in the end I have 5 rows, and I want to fit all this in a single
> row...If I delete some rows, the form won´t work...
> and I have to fit it in a 295 wide x 44 height (pixels)...try it for
> yourself....just create a table of that size, and insert a search form from
> the builder....you´ll see it for yourself...(2 minutes)
>
> Thanks for your interest and help!!!!!
>
>
>
> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
>news:bbispg$bnq$1@news.codecharge.com...
>
>>The textboxes will size themselves to be as big as the number of
>
> characters
>
>>they can contain (at the font size used).
>>
>>You have a couple of choices - force a smaller font or limit the width in
>>characters. Note: you have control over two aspects of "number of
>>characters", one is the number characters that you can type into them and
>>the other is how many characters will be displayed. Decrease the latter
>
> and
>
>>you will make the box narrower.
>>
>>DonB
>>
>>
>>"Pepito" <pepitxispi@yahoo.com> wrote in message
>>news:bbi7po$s3h$1@news.codecharge.com...
>>
>>>Hello, I want to make a search form that fits in a 295 wide x 44 height
>>>(pixels) table. However, when I create the form it is bigger that that
>>
> and
>
>>>therefore, stretches the table out , way above the desired size.
>>>
>>>I have tried several tricks but it does not work....any hints??
>>>
>>>Thanks
>>>
>>>
>>
>>
>
>
DonB
Posted: 06/04/2003, 7:12 AM

You should edit the HTML portion of that page (this is perfectly acceptable
to do, CCS will be happy with that). Modify the table containing the search
fields, to remove the "<tr></tr>" pairs that result in the multiple rows.
This will alter the layout to make it a single row, and will not have any
impact on the code or functionality. I find that in some stuation, just
trying to edit the visual layout on the "Design" panel can do something you
did not intend, so I usually make the sort of changes you described, by
editing the HTML panel directly. Again, this is perfectly acceptable to do.
You DO NOT want to edit the "Code" page by hand because CCS has total
control over that. If you edit the code, CCS will remember that and never
regenerate the code again (to preserve your edits for you). Violate this
"rule" and you will regret it ;-)

Be aware that a "row" means two things:

(1) the html template/layout has tables that have rows. This is simply the
visual "row".

(2) CCS parses comment tags that look like <!-- BEGIN Row xxxx --> and <!--
END Row xxxx ->. These delimit the "row" as far as the code and database
results are concerned. CCS refers to them as "template blocks". There are
several types, such as "Record", "Button", etc. You have to preserve all
the begin/end pairs or the code will not work correctly anymore.

You can layout the "row" described in (1) anyway you like, as long as you
preserve the "row" described in (2).

Most likely, when you deleted some things, you did something that damaged a
template block.

Also:
If you delete textboxes or other data elements, then you must also change
the Grid control's datasource to remove references to those elements.
Otherwise they stay in the "where"clause that's generated by the code, and
this will cause the search form to appear at fault.

This all sounds complicated, but it's not really. Basically, if you
hand-edit any of the source files, you need to be certain you have kept the
html, code pages and parameter-passing between components "in synch".

DonB


"Pepito" <pepitxispi@yahoo.com> wrote in message
news:bbken7$p8a$1@news.codecharge.com...
> Thanks for you tip...however, I already downsized the text box and it´s
ok,
> but the problem is this:
> When I create a search form from the builder, it creates a form with a
table
> that contains 3 cells...
> 1 row for the start "tag" or "label" (forgive me if I am using the wrong
> description)
> 1 row for {error}
> 1 row for the, for instance, "search articles" - this one is not a
problem,
> I can erase it
> 1 row for the text box and the search button
> 1 row for the ending "tag" or "label" (forgive me if I am using the wrong
> description)
>
> So, in the end I have 5 rows, and I want to fit all this in a single
> row...If I delete some rows, the form won´t work...
> and I have to fit it in a 295 wide x 44 height (pixels)...try it for
> yourself....just create a table of that size, and insert a search form
from
> the builder....you´ll see it for yourself...(2 minutes)
>
> Thanks for your interest and help!!!!!
>
>
>
> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
>news:bbispg$bnq$1@news.codecharge.com...
> > The textboxes will size themselves to be as big as the number of
> characters
> > they can contain (at the font size used).
> >
> > You have a couple of choices - force a smaller font or limit the width
in
> > characters. Note: you have control over two aspects of "number of
> > characters", one is the number characters that you can type into them
and
> > the other is how many characters will be displayed. Decrease the latter
> and
> > you will make the box narrower.
> >
> > DonB
> >
> >
> > "Pepito" <pepitxispi@yahoo.com> wrote in message
> >news:bbi7po$s3h$1@news.codecharge.com...
> > > Hello, I want to make a search form that fits in a 295 wide x 44
height
> > > (pixels) table. However, when I create the form it is bigger that that
> and
> > > therefore, stretches the table out , way above the desired size.
> > >
> > > I have tried several tricks but it does not work....any hints??
> > >
> > > Thanks
> > >
> > >
> >
> >
>
>

Pepito
Posted: 06/07/2003, 9:11 AM

OK, following your indications, I managed to put the form on 1 single
row....and it is ok, but what happens with the [_> sort of thing that shows
up above and below the form? ...in other words, I have a

[_>
search articles (here the text box) (here the button search)
<_]

So, yes, the visible part is on 1 row, but still the two (I will call them
begin and end tags) are still there. The total effect is that there is a row
above and below the "real thing".
I checked the portal template and they, wisely, set up those forms with no
tables around them, but I am working on a site where the cell I want to put
the search form is tightly "sanwiched" between 2 tables, and that's why, the
cell/table overstretches itself to fit the search form.

I have been doing my own research and looks like I am the first guy with
this problem, unbeliavable...

I am working on it, if I find a workaround I will post it inmediately.

Lots of thanks DonB, your work here helping donkeys like me is just superb!!

Congratulations



"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
news:bbkunq$s9a$1@news.codecharge.com...
> You should edit the HTML portion of that page (this is perfectly
acceptable
> to do, CCS will be happy with that). Modify the table containing the
search
> fields, to remove the "<tr></tr>" pairs that result in the multiple rows.
> This will alter the layout to make it a single row, and will not have any
> impact on the code or functionality. I find that in some stuation, just
> trying to edit the visual layout on the "Design" panel can do something
you
> did not intend, so I usually make the sort of changes you described, by
> editing the HTML panel directly. Again, this is perfectly acceptable to
do.
> You DO NOT want to edit the "Code" page by hand because CCS has total
> control over that. If you edit the code, CCS will remember that and never
> regenerate the code again (to preserve your edits for you). Violate this
> "rule" and you will regret it ;-)
>
> Be aware that a "row" means two things:
>
> (1) the html template/layout has tables that have rows. This is simply
the
> visual "row".
>
> (2) CCS parses comment tags that look like <!-- BEGIN Row xxxx --> and
<!--
> END Row xxxx ->. These delimit the "row" as far as the code and database
> results are concerned. CCS refers to them as "template blocks". There
are
> several types, such as "Record", "Button", etc. You have to preserve all
> the begin/end pairs or the code will not work correctly anymore.
>
> You can layout the "row" described in (1) anyway you like, as long as you
> preserve the "row" described in (2).
>
> Most likely, when you deleted some things, you did something that damaged
a
> template block.
>
> Also:
> If you delete textboxes or other data elements, then you must also change
> the Grid control's datasource to remove references to those elements.
> Otherwise they stay in the "where"clause that's generated by the code, and
> this will cause the search form to appear at fault.
>
> This all sounds complicated, but it's not really. Basically, if you
> hand-edit any of the source files, you need to be certain you have kept
the
> html, code pages and parameter-passing between components "in synch".
>
> DonB
>
>
> "Pepito" <pepitxispi@yahoo.com> wrote in message
>news:bbken7$p8a$1@news.codecharge.com...
> > Thanks for you tip...however, I already downsized the text box and it´s
> ok,
> > but the problem is this:
> > When I create a search form from the builder, it creates a form with a
> table
> > that contains 3 cells...
> > 1 row for the start "tag" or "label" (forgive me if I am using the wrong
> > description)
> > 1 row for {error}
> > 1 row for the, for instance, "search articles" - this one is not a
> problem,
> > I can erase it
> > 1 row for the text box and the search button
> > 1 row for the ending "tag" or "label" (forgive me if I am using the
wrong
> > description)
> >
> > So, in the end I have 5 rows, and I want to fit all this in a single
> > row...If I delete some rows, the form won´t work...
> > and I have to fit it in a 295 wide x 44 height (pixels)...try it for
> > yourself....just create a table of that size, and insert a search form
> from
> > the builder....you´ll see it for yourself...(2 minutes)
> >
> > Thanks for your interest and help!!!!!
> >
> >
> >
> > "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
> >news:bbispg$bnq$1@news.codecharge.com...
> > > The textboxes will size themselves to be as big as the number of
> > characters
> > > they can contain (at the font size used).
> > >
> > > You have a couple of choices - force a smaller font or limit the width
> in
> > > characters. Note: you have control over two aspects of "number of
> > > characters", one is the number characters that you can type into them
> and
> > > the other is how many characters will be displayed. Decrease the
latter
> > and
> > > you will make the box narrower.
> > >
> > > DonB
> > >
> > >
> > > "Pepito" <pepitxispi@yahoo.com> wrote in message
> > >news:bbi7po$s3h$1@news.codecharge.com...
> > > > Hello, I want to make a search form that fits in a 295 wide x 44
> height
> > > > (pixels) table. However, when I create the form it is bigger that
that
> > and
> > > > therefore, stretches the table out , way above the desired size.
> > > >
> > > > I have tried several tricks but it does not work....any hints??
> > > >
> > > > Thanks
> > > >
> > > >
> > >
> > >
> >
> >
>
>

DonB
Posted: 06/07/2003, 11:08 AM

Don't worry about the "form" tags. They are not rendered to the live page
and will not create any extra blank spaces. They are only there to assist
you during page layout.

There is no requirement that a form must contain a table, either. Just as
long as the Begin and End tags for the form are there, that is all that
matters. You can take the table tags out and it will still work. This will
eliminate some of the blank space, especially any due to cell padding,
cellspacing or border area that the browser might insert for the table.

There is some kind of implicit margin around form tags (not a CCS thing, but
a browser thing). You can make the grid below your search form move up
slightly with a DIV block:

<div style="position: relative; top : -20px">
<!-- BEGIN Grid yourgrid -->
... your grid html here ...
<!-- END Grid yourgrid -->
</div>

This works in IE at least. It took out pretty much all the space in my
test page, so the search part was as close as practical to the grid part.


DonB


"Pepito" <pepitxispi@yahoo.com> wrote in message
news:bbt2r4$hu6$1@news.codecharge.com...
> OK, following your indications, I managed to put the form on 1 single
> row....and it is ok, but what happens with the [_> sort of thing that
shows
> up above and below the form? ...in other words, I have a
>
> [_>
> search articles (here the text box) (here the button search)
> <_]
>
> So, yes, the visible part is on 1 row, but still the two (I will call them
> begin and end tags) are still there. The total effect is that there is a
row
> above and below the "real thing".
> I checked the portal template and they, wisely, set up those forms with no
> tables around them, but I am working on a site where the cell I want to
put
> the search form is tightly "sanwiched" between 2 tables, and that's why,
the
> cell/table overstretches itself to fit the search form.
>
> I have been doing my own research and looks like I am the first guy with
> this problem, unbeliavable...
>
> I am working on it, if I find a workaround I will post it inmediately.
>
> Lots of thanks DonB, your work here helping donkeys like me is just
superb!!
>
> Congratulations
>
>
>
> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
>news:bbkunq$s9a$1@news.codecharge.com...
> > You should edit the HTML portion of that page (this is perfectly
> acceptable
> > to do, CCS will be happy with that). Modify the table containing the
> search
> > fields, to remove the "<tr></tr>" pairs that result in the multiple
rows.
> > This will alter the layout to make it a single row, and will not have
any
> > impact on the code or functionality. I find that in some stuation, just
> > trying to edit the visual layout on the "Design" panel can do something
> you
> > did not intend, so I usually make the sort of changes you described, by
> > editing the HTML panel directly. Again, this is perfectly acceptable to
> do.
> > You DO NOT want to edit the "Code" page by hand because CCS has total
> > control over that. If you edit the code, CCS will remember that and
never
> > regenerate the code again (to preserve your edits for you). Violate
this
> > "rule" and you will regret it ;-)
> >
> > Be aware that a "row" means two things:
> >
> > (1) the html template/layout has tables that have rows. This is simply
> the
> > visual "row".
> >
> > (2) CCS parses comment tags that look like <!-- BEGIN Row xxxx --> and
> <!--
> > END Row xxxx ->. These delimit the "row" as far as the code and
database
> > results are concerned. CCS refers to them as "template blocks". There
> are
> > several types, such as "Record", "Button", etc. You have to preserve
all
> > the begin/end pairs or the code will not work correctly anymore.
> >
> > You can layout the "row" described in (1) anyway you like, as long as
you
> > preserve the "row" described in (2).
> >
> > Most likely, when you deleted some things, you did something that
damaged
> a
> > template block.
> >
> > Also:
> > If you delete textboxes or other data elements, then you must also
change
> > the Grid control's datasource to remove references to those elements.
> > Otherwise they stay in the "where"clause that's generated by the code,
and
> > this will cause the search form to appear at fault.
> >
> > This all sounds complicated, but it's not really. Basically, if you
> > hand-edit any of the source files, you need to be certain you have kept
> the
> > html, code pages and parameter-passing between components "in synch".
> >
> > DonB
> >
> >
> > "Pepito" <pepitxispi@yahoo.com> wrote in message
> >news:bbken7$p8a$1@news.codecharge.com...
> > > Thanks for you tip...however, I already downsized the text box and
it´s
> > ok,
> > > but the problem is this:
> > > When I create a search form from the builder, it creates a form with a
> > table
> > > that contains 3 cells...
> > > 1 row for the start "tag" or "label" (forgive me if I am using the
wrong
> > > description)
> > > 1 row for {error}
> > > 1 row for the, for instance, "search articles" - this one is not a
> > problem,
> > > I can erase it
> > > 1 row for the text box and the search button
> > > 1 row for the ending "tag" or "label" (forgive me if I am using the
> wrong
> > > description)
> > >
> > > So, in the end I have 5 rows, and I want to fit all this in a single
> > > row...If I delete some rows, the form won´t work...
> > > and I have to fit it in a 295 wide x 44 height (pixels)...try it for
> > > yourself....just create a table of that size, and insert a search form
> > from
> > > the builder....you´ll see it for yourself...(2 minutes)
> > >
> > > Thanks for your interest and help!!!!!
> > >
> > >
> > >
> > > "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
> > >news:bbispg$bnq$1@news.codecharge.com...
> > > > The textboxes will size themselves to be as big as the number of
> > > characters
> > > > they can contain (at the font size used).
> > > >
> > > > You have a couple of choices - force a smaller font or limit the
width
> > in
> > > > characters. Note: you have control over two aspects of "number of
> > > > characters", one is the number characters that you can type into
them
> > and
> > > > the other is how many characters will be displayed. Decrease the
> latter
> > > and
> > > > you will make the box narrower.
> > > >
> > > > DonB
> > > >
> > > >
> > > > "Pepito" <pepitxispi@yahoo.com> wrote in message
> > > >news:bbi7po$s3h$1@news.codecharge.com...
> > > > > Hello, I want to make a search form that fits in a 295 wide x 44
> > height
> > > > > (pixels) table. However, when I create the form it is bigger that
> that
> > > and
> > > > > therefore, stretches the table out , way above the desired size.
> > > > >
> > > > > I have tried several tricks but it does not work....any hints??
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


   


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

Web Database

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.