CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Problem with getting data from searchfield into input page

Print topic Send  topic

Author Message
beek
Posted: 02/21/2004, 4:26 AM

Situation:

Searchfield is searching for some code through the database.
If found, it display's some values and askes for it to be the recordvalues
searched for.
If not, the searchstring is needed in the new record page.
the string must be inserted automaticcaly in the insert record page, but it
isn't... yet...

Problem is this value... I can't get it to be inserted...

How can I fix this?

DonB
Posted: 02/21/2004, 6:37 AM

I'm not really sure what you are asking about, so this answer may be off
base.

CCS will match up query parameters with field names on your page, and
attempt to initialize those fields with the query parameterrr - IF the field
is not bound to a database column. This behavior can be seen in a "Search"
page. You see parameters like "s_username="fred" in the address bar and the
search form will load it's "username" field with the value "fred" each time
the page loads.

When the page has fields bound to database columns, then the values are
extracted from the database and displayed. For an "Insert" page, the fields
are bound to columns, but there is no current record because you are doing
an Insert.

You can combine the two effects by putting a Before Show event on the Insert
page. Each field you want to initialize needs to be assigned a value in the
event handler. Something like:

myInsertForm->username->SetValue( CCGetParam("s_username"),"");

should do it.

--
DonB

http://www.gotodon.com/ccbth


"beek" <beek64us@yahoo.com> wrote in message
news:c17ipu$188$1@news.codecharge.com...
> Situation:
>
> Searchfield is searching for some code through the database.
> If found, it display's some values and askes for it to be the recordvalues
> searched for.
> If not, the searchstring is needed in the new record page.
> the string must be inserted automaticcaly in the insert record page, but
it
> isn't... yet...
>
> Problem is this value... I can't get it to be inserted...
>
> How can I fix this?
>
>


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.

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.