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 -> .NET

 CCS 4.0 Ajax Autocomplete and Value return.

Print topic Send  topic

Author Message
vtorres514

Posts: 3
Posted: 04/23/2008, 9:29 AM

I want to turn one of the textboxt into an Autocomplete, when it finds the name, I would like to also return the id of the row. Ex. Client Name return client id. Any ideas
_________________
V Man
View profile  Send private message
phil

Posts: 4
Posted: 04/30/2008, 12:36 AM

I had this same issue - I spoke to support about it. Returning a corresponding ID from ajax autocomplete is not a built-in function. They acknowledged it was a logical feature addition.

The work around is to do a SQL lookup in the appropriate event (Before Insert in my case). See my two examples below for two different AJAX autocomplete fields on my form.

Asset_Job_CodesF1.Text = Ctype(New integerfield("",Settings.financedataaccessobject.ExecuteScalar("SELECT client_ident FROM proposal_clients WHERE client_name Like '" & Asset_Job_CodesF1.Text & "'")).value,Int64)


Asset_Job_CodesF2.Text = (New textfield("",Settings.financedataaccessobject.ExecuteScalar("SELECT ID FROM timefileruserlist WHERE FullName Like '" & Asset_Job_CodesF2.Text & "'"))).GetFormattedValue("")
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.

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.