Re: [WebDNA] Search Problem

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 107316
interpreted = N
texte = --Apple-Mail-4--574614069 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Yes you should be able to do it the way you were intending Stuart.. with = just a proper set of search params. If you do not have luck with Brian's suggestion below, then I will = recreate the data locally.. and play with it until I get it and post = back. PLMK. - Govinda -------------- Old WebDNA talklist archives: http://dev.webdna.us/TalkListArchive/index.tpl?db=3Dwebdna-talk On 2011-09-01, at 10:21 AM, Brian Fries wrote: > Add "®IONfbrk=3D;" to your search. "fbrk" specifies the break = characters for the field's value. "wbrk" specifies the break characters = for the comparison value you are passing in. >=20 > Brian Fries > BrainScan Software >=20 >=20 >=20 > On Sep 1, 2011, at 12:54 AM, Stuart Tremain wrote: >=20 >> Hi Guys >>=20 >> I have a product db that sells different product to different = regions. >>=20 >> The db looks something like this >> SKU PRODUCTNAME REGION >> 1 red .com; >> 2 blue .com;.com.au; >> 3 green .com.au; >> 4 yellow .co.uk >>=20 >> As you can see I am determining the regions from the HTTP_HOST - = [ListMIMEHeaders name=3DHTTP_HOST][value][/ListMIMEHeaders] >>=20 >> I am having a bit of a problem with the search though >>=20 >> This works OK due to .co.uk >>=20 >> [SEARCH = db=3D^data/celmecproducts.db&woREGIONSdatarq=3D.co.uk®IONword=3Dww®I= ONSwbrk=3D;] >>=20 >> But if I use .com the green product also shows ( I should only get = red & blue) >>=20 >> I could do the db in a different format but it would be nice to get = this to work. >>=20 >> Any ideas ?? >>=20 >> Thanks :) >>=20 >> Stuart Tremain >> IDFK Web Developments >> AUSTRALIA >> webdna@idfk.com.au --Apple-Mail-4--574614069 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Yes = you should be able to do it the way you were intending Stuart.. with = just a proper set of search params.
If you do not have luck with = Brian's suggestion below, then I will recreate the data locally.. and = play with it until I get it and post back.  PLMK.

- Govinda
--------------
Old WebDNA = talklist archives:


On = 2011-09-01, at 10:21 AM, Brian Fries wrote:

Add "&REGIONfbrk=3D;" to = your search. "fbrk" specifies the break characters for the field's = value. "wbrk" specifies the break characters for the comparison value = you are passing in.

Brian = Fries
BrainScan = Software



On Sep 1, 2011, at 12:54 AM, Stuart Tremain = wrote:

Hi = Guys

I have a product db that sells different product = to different regions.

The db looks something = like this
SKU      PRODUCTNAME     =  REGION
1            red =                     =            .com;
2     =        blue           =                   =  .com;.com.au;
3           =  green                 =            .com.au;
4   =          yellow         =                   = .co.uk

As you can see I am determining the = regions from the HTTP_HOST - [ListMIMEHeaders = name=3DHTTP_HOST][value][/ListMIMEHeaders]

I am having a bit of a = problem with the search though

This works OK due to = .co.uk

[SEARCH = db=3D^data/celmecproducts.db&woREGIONSdatarq=3D.co.uk&REGIONword=3D= ww&REGIONSwbrk=3D;]

But if I use .com the green = product also shows ( I should only get red & blue)

I could do the db in a different format but it = would be nice to get this to work.

Any ideas ??

Thanks :)

Stuart = Tremain
IDFK Web Developments
AUSTRALIA

=



<= /div>
= --Apple-Mail-4--574614069-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Search Problem (Stuart Tremain 2011)
  2. Re: [WebDNA] Search Problem (Govinda 2011)
  3. Re: [WebDNA] Search Problem (Brian Fries 2011)
  4. Re: [WebDNA] Search Problem (Kenneth Grome 2011)
  5. Re: [WebDNA] Search Problem (Stuart Tremain 2011)
  6. Re: [WebDNA] Search Problem (Kenneth Grome 2011)
  7. Re: [WebDNA] Search Problem (Stuart Tremain 2011)
  8. Re: [WebDNA] Search Problem (Tom Duke 2011)
  9. Re: [WebDNA] Search Problem (Stuart Tremain 2011)
  10. Re: [WebDNA] Search Problem (William DeVaul 2011)
  11. Re: [WebDNA] Search Problem (Tom Duke 2011)
  12. [WebDNA] Search Problem (Stuart Tremain 2011)
--Apple-Mail-4--574614069 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Yes you should be able to do it the way you were intending Stuart.. with = just a proper set of search params. If you do not have luck with Brian's suggestion below, then I will = recreate the data locally.. and play with it until I get it and post = back. PLMK. - Govinda -------------- Old WebDNA talklist archives: http://dev.webdna.us/TalkListArchive/index.tpl?db=3Dwebdna-talk On 2011-09-01, at 10:21 AM, Brian Fries wrote: > Add "®IONfbrk=3D;" to your search. "fbrk" specifies the break = characters for the field's value. "wbrk" specifies the break characters = for the comparison value you are passing in. >=20 > Brian Fries > BrainScan Software >=20 >=20 >=20 > On Sep 1, 2011, at 12:54 AM, Stuart Tremain wrote: >=20 >> Hi Guys >>=20 >> I have a product db that sells different product to different = regions. >>=20 >> The db looks something like this >> SKU PRODUCTNAME REGION >> 1 red .com; >> 2 blue .com;.com.au; >> 3 green .com.au; >> 4 yellow .co.uk >>=20 >> As you can see I am determining the regions from the HTTP_HOST - = [ListMIMEHeaders name=3DHTTP_HOST][value][/ListMIMEHeaders] >>=20 >> I am having a bit of a problem with the search though >>=20 >> This works OK due to .co.uk >>=20 >> [SEARCH = db=3D^data/celmecproducts.db&woREGIONSdatarq=3D.co.uk®IONword=3Dww®I= ONSwbrk=3D;] >>=20 >> But if I use .com the green product also shows ( I should only get = red & blue) >>=20 >> I could do the db in a different format but it would be nice to get = this to work. >>=20 >> Any ideas ?? >>=20 >> Thanks :) >>=20 >> Stuart Tremain >> IDFK Web Developments >> AUSTRALIA >> webdna@idfk.com.au --Apple-Mail-4--574614069 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Yes = you should be able to do it the way you were intending Stuart.. with = just a proper set of search params.
If you do not have luck with = Brian's suggestion below, then I will recreate the data locally.. and = play with it until I get it and post back.  PLMK.

- Govinda
--------------
Old WebDNA = talklist archives:


On = 2011-09-01, at 10:21 AM, Brian Fries wrote:

Add "&REGIONfbrk=3D;" to = your search. "fbrk" specifies the break characters for the field's = value. "wbrk" specifies the break characters for the comparison value = you are passing in.

Brian = Fries
BrainScan = Software



On Sep 1, 2011, at 12:54 AM, Stuart Tremain = wrote:

Hi = Guys

I have a product db that sells different product = to different regions.

The db looks something = like this
SKU      PRODUCTNAME     =  REGION
1            red =                     =            .com;
2     =        blue           =                   =  .com;.com.au;
3           =  green                 =            .com.au;
4   =          yellow         =                   = .co.uk

As you can see I am determining the = regions from the HTTP_HOST - [ListMIMEHeaders = name=3DHTTP_HOST][value][/ListMIMEHeaders]

I am having a bit of a = problem with the search though

This works OK due to = .co.uk

[SEARCH = db=3D^data/celmecproducts.db&woREGIONSdatarq=3D.co.uk&REGIONword=3D= ww&REGIONSwbrk=3D;]

But if I use .com the green = product also shows ( I should only get red & blue)

I could do the db in a different format but it = would be nice to get this to work.

Any ideas ??

Thanks :)

Stuart = Tremain
IDFK Web Developments
AUSTRALIA

=



<= /div>
= --Apple-Mail-4--574614069-- Govinda

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Working Days (2004) Ampersand (1997) WCf2 and nested tags (1997) Multiple cart additions (1997) Need Sample Template - just purchased (1997) Erotic Sites (1997) WebDNA monitor not working (2002) Was it something I said??? (1998) Triggers under MacOSx (2003) WebCat2_Mac RETURNs in .db (1997) [WebDNA] JSONStore Levels (2020) Bug Report, maybe (1997) New Site Announcement (1998) Bad Cookie / Internet Option / Internet Explorer (2004) WebCatalog can't find database (1997) Calculating multiple shipping... (1997) WebCat2 - [include] tags (1997) Webmerch Error (1998) Dealer locator (1998) Firesite cache vs webcat cache (1997)