Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-05-2003, 06:19 AM   #1
odeathoflife
Registered User
 
Join Date: Nov 2002
Posts: 9
Default Search Keywordsin database (via cfc)

hey folks,

I am trying to get my store to be able to search the keywords column in my database (access)
I have this for my cf function=


<cffunction name="keywordsearch" access="remote" returntype="query" output="false">
<cfargument name="keyword" type="text">
<cfquery name="SearchQuery" datasource="cart">
SELECT ProductDescription FROM products WHERE keywords LIKE '%#keyword#%'
ORDER BY ProductDescription
</cfquery>
<cfreturn SearchQuery>
</cffunction>

Thsi I believe is all well and good,
but I am having problems with the flash side of it.

I have categories that are selectable in the flash movie using variations of this code= buttons have a on release getData (1) / (2) etc...

function getData() {
basic.Products(dataView.getSelectedItem().data);
}
function Products_Result(result) {
_root.infoMC.ProductDescription.text = result.getItemAt(0).ProductDescription;
_root.infoMC.SKUNumber.text = result.getItemAt(0).SKUNumber;
_root.infoMC.UnitPrice.text = result.getItemAt(0).UnitPrice;
_root.infoMC.manufactLink.htmlText = result.getItemAt(0).manufactLink;
_root.infoMC.Information.text = result.getItemAt(0).Information;
_root.infoMC.imageMC.text = result.getItemAt(0).image;
}



But I am unsure how to say look at the searchfield text box, then grab relivant information from the keywords column, and return it to the dataView list box.


Any help would be appretiated in this, but there is no rush.

Thanks
odeathoflife is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:54 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.