Newbie questions

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 29134
interpreted = N
texte = I am evaluating WebCatalog for a database project which is basically a list of Websites. I am running into a lot of confusing problems in porting what I've already developed in Lasso to WebCatalog. I'm hoping someone here can tell me what I'm doing wrong....1) the search is done by the following code:[search db=database.db&woKeywordsdata=[FormVariables name=searchtext&exact=T][value][/formVariables]& woTitledata=[FormVariables name=searchtext&exact=T][value][/formVariables]& woDescriptiondata=[FormVariables name=searchtext&exact=T][value][/formVariables]& max=10&Titlesort=1&Titlesdir=ra]I want the results to be randomly sorted, but they always seem to come up in alphabetical order. 2) The results are displayed like this: [ShowIf [numFound] = 0]

No sites match your criteria.

[/ShowIf] [ShowIf [numFound] ! 0]

[numFound] sites found.

[shownext position=middle]

Sites [start] to [end]…

[/shownext]
[foundItems]
[title]
[URL]
[Description]

[/foundItems]
[shownext position=begin] Previous [/shownext]   [shownext position=end] Next [/shownext]
[/ShowIf] [/search]The first ShowIf seems to be ignored - even if no records are found, it is not true. Also, the ShowNext code is eaten - nothing is displayed for these.3) I have a page that adds records to the database with this code:[append db=Galway1.db] Title=[FormVariables name=form.Title&exact=T][value][/FormVariables]& URL=[FormVariables name=form.URL&exact=T][value][/FormVariables]& Description=[FormVariables name=form.Description&exact=T][value][/FormVariables]& Keywords=[FormVariables name=form.Keywords&exact=T][value][/FormVariables] [/append]Although the variables are set and contain values when viewing the page, all that is added to the database is a blank record.4) I want to validate the data before I add it. If I use the RequiredField option, the error message is a plain, ugly page, quite out of keeping with the rest of the site. I tried verifying that fields contained data with things like [hideif [countchars]form.Title[/countchars] = 0] around the [append] command, but it seemed to be ignored. 5) the search facility doesn't find records that it should. For example, I have three keywords that mention the word 'radio', but the search facility only finds two of them.Any advice you all can offer would be great. Thanks in advance.Rónán------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. RE: [BULK] RE: [WebDNA] WebDNA for Windows Newbie Questions ("Michael A. DeLorenzo" 2008)
  2. RE: [BULK] RE: [WebDNA] WebDNA for Windows Newbie Questions ("Terry Nair" 2008)
  3. [BULK] RE: [WebDNA] WebDNA for Windows Newbie Questions ("JD Ready" 2008)
  4. Re: [WebDNA] WebDNA for Windows Newbie Questions (Stuart Tremain 2008)
  5. Re: [WebDNA] WebDNA for Windows Newbie Questions (Terry Wilson 2008)
  6. [WebDNA] WebDNA for Windows Newbie Questions ("JD Ready" 2008)
  7. RE: [WebDNA] WebDNA Newbie Questions (Terry Wilson 2008)
  8. Re: [WebDNA] WebDNA Newbie Questions (Stuart Tremain 2008)
  9. RE: [WebDNA] WebDNA Newbie Questions ("JD Ready" 2008)
  10. Re: [WebDNA] WebDNA Newbie Questions (Donovan Brooke 2008)
  11. Re: [WebDNA] WebDNA Newbie Questions (christophe.billiottet@webdna.us 2008)
  12. [WebDNA] WebDNA Newbie Questions ("JD Ready" 2008)
  13. Re: Newbie questions (Kenneth Grome 2000)
  14. Re: Newbie questions (Mike Davis 2000)
  15. Re: Newbie questions (Kenneth Grome 2000)
  16. Newbie questions (Rónán 2000)
  17. Re: Newbie questions (webcatalog@smithmicro.com 1999)
  18. Re: Newbie questions (Kim 1999)
  19. Re: Newbie questions (Kim 1999)
  20. Re: Newbie questions (John Butler 1999)
  21. Re: Newbie questions (Charles Kline 1999)
  22. Re: Newbie questions (Charles Kline 1999)
  23. Re: Newbie questions (Nitai 1999)
  24. Re: Newbie questions (Chris Vargas 1999)
  25. Re: Newbie questions (Gwendolyn Bailey 1999)
  26. Re: Newbie questions (Gwendolyn Bailey 1999)
  27. Re: Newbie questions (Charles Kline 1999)
  28. Re: Newbie questions (Gwendolyn Bailey 1999)
  29. Re: Newbie questions (Gwendolyn Bailey 1999)
  30. Re: Newbie questions (Sam Polk 1999)
  31. Re: Newbie questions (Christopher Mackay 1999)
  32. Re: Newbie questions (Charles Kline 1999)
  33. Newbie questions (Christopher Mackay 1999)
  34. Re: Newbie questions (Eddy Deschenes 1999)
  35. Re: Newbie questions (PCS Technical Support 1998)
  36. Newbie questions (Puchalski, Steve 1998)
I am evaluating WebCatalog for a database project which is basically a list of Websites. I am running into a lot of confusing problems in porting what I've already developed in Lasso to WebCatalog. I'm hoping someone here can tell me what I'm doing wrong....1) the search is done by the following code:[search db=database.db&woKeywordsdata=[FormVariables name=searchtext&exact=T][value][/formVariables]& woTitledata=[FormVariables name=searchtext&exact=T][value][/formVariables]& woDescriptiondata=[FormVariables name=searchtext&exact=T][value][/formVariables]& max=10&Titlesort=1&Titlesdir=ra]I want the results to be randomly sorted, but they always seem to come up in alphabetical order. 2) The results are displayed like this: [ShowIf [numFound] = 0]

No sites match your criteria.

[/ShowIf] [ShowIf [numFound] ! 0]

[numFound] sites found.

[shownext position=middle]

Sites [start] to [end]…

[/shownext]
[founditems]
[title]
[url]>[url]
[Description]

[/foundItems]
[shownext position=begin] Previous [/shownext]   [shownext position=end] Next [/shownext]
[/ShowIf] [/search]The first ShowIf seems to be ignored - even if no records are found, it is not true. Also, the ShowNext code is eaten - nothing is displayed for these.3) I have a page that adds records to the database with this code:[append db=Galway1.db] Title=[FormVariables name=form.Title&exact=T][value][/FormVariables]& URL=[FormVariables name=form.URL&exact=T][value][/FormVariables]& Description=[FormVariables name=form.Description&exact=T][value][/FormVariables]& Keywords=[FormVariables name=form.Keywords&exact=T][value][/FormVariables] [/append]Although the variables are set and contain values when viewing the page, all that is added to the database is a blank record.4) I want to validate the data before I add it. If I use the RequiredField option, the error message is a plain, ugly page, quite out of keeping with the rest of the site. I tried verifying that fields contained data with things like [hideif [countchars]form.Title[/countchars] = 0] around the [append] command, but it seemed to be ignored. 5) the search facility doesn't find records that it should. For example, I have three keywords that mention the word 'radio', but the search facility only finds two of them.Any advice you all can offer would be great. Thanks in advance.Rónán------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Rónán

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:

World Address Info (2003) show all problem (1997) WC2b15 File Corruption (1997) Setting up WebCatalog with Retail Pro data (1996) Removing [showif] makes a big difference in speed (1997) File perms (2002) Fw: Linux w/ apache (2000) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) [WebDNA] website issues (2013) Using tags to create a file name (2000) WCS Newbie question (1997) Sorting by date (1997) transferring values (1998) Frames and WebCat (1997) Redirect to _parent? (2002) Images (2000) Never ending problem.... (2000) Speed questions (1998) Occasional crashes with $remove (1997) Using Applescript to process WebCatalog functions (1998)