CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Getting Multiple Select List ...

Print topic Send  topic

Author Message
Martín Alaimo
Posted: 04/26/2001, 12:32 PM

Is there any possibility to create a Form Field that will be a Multiple
Select List, with data taken from another table, and get selected those
values?

Paul
Posted: 04/26/2001, 12:43 PM

I believe you have to use a query to do this Martin.

Paul
Martín Alaimo wrote in message <9c9t3k$4jq$1@mail.tankhill.com>...
>Is there any possibility to create a Form Field that will be a Multiple
>Select List, with data taken from another table, and get selected those
>values?
>
>

Martín Alaimo
Posted: 04/26/2001, 7:32 PM

Yes, I also think to use a query... but,.. What type of Form Field is a
"Multiple select" (<select size=x multiple>...</select>)?



"Paul" <paporter@visto.com> wrote in message
news:9c9ton$5rh$1@mail.tankhill.com...
> I believe you have to use a query to do this Martin.
>
> Paul
> Martín Alaimo wrote in message <9c9t3k$4jq$1@mail.tankhill.com>...
> >Is there any possibility to create a Form Field that will be a Multiple
> >Select List, with data taken from another table, and get selected those
> >values?
> >
> >
>
>

Alexey Alexapolsky
Posted: 04/27/2001, 5:06 AM

A big explanation , gear up ,

1) I guess you should manually change template to <select mulitple
name="name">
Then adding multiple value takes no coding at all , they will
be put in a db field like "1,2,3,5" .

2) One thing that will require some coding is displying values from that
field using multiselect.
This will definitely involve codecharge events and possible html template
handling routines.
For instance one may need to add javascript to the record form(Footer
section) , the javascript will
know that "1,2,3" values are in db field and will make them selected. The
trick is that client
side javascript must know values calculated by server side script.
If no html templates are used you should place something like
<script>
<% code to get multiple values for
javascript %>
var multivalues = <=%somevar>
</script>

If these values will be placed in javascript using template mechamism then
we'll need to add
a small template block in footer , like <script> <!--Begintmp --> var
multivalues = {values}; <!--Endtmp> <script>
and parse it in events , like

SetVar "values" , calulated_values
Parse "tmp",false

--
Regards,
Alexey
CodeCharge Support



Martín Alaimo <malaimo@metaimagen.com> wrote in message
news:9calo8$hn1$1@mail.tankhill.com...
> Yes, I also think to use a query... but,.. What type of Form Field is a
> "Multiple select" (<select size=x multiple>...</select>)?
>
>
>
> "Paul" <paporter@visto.com> wrote in message
>news:9c9ton$5rh$1@mail.tankhill.com...
> > I believe you have to use a query to do this Martin.
> >
> > Paul
> > Martín Alaimo wrote in message <9c9t3k$4jq$1@mail.tankhill.com>...
> > >Is there any possibility to create a Form Field that will be a Multiple
> > >Select List, with data taken from another table, and get selected those
> > >values?
> > >
> > >
> >
> >
>
>


   


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.