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 ofWebsites. I am running into a lot of confusing problems in porting what I'vealready developed in Lasso to WebCatalog. I'm hoping someone here can tell mewhat I'm doing wrong....1) the search is done by the following code:[search db=database.db&woKeywordsdata=[FormVariablesname=searchtext&exact=T][value][/formVariables]& woTitledata=[FormVariablesname=searchtext&exact=T][value][/formVariables]& woDescriptiondata=[FormVariablesname=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 inalphabetical 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 nottrue. 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=[FormVariablesname=form.Description&exact=T][value][/FormVariables]& Keywords=[FormVariablesname=form.Keywords&exact=T][value][/FormVariables][/append]Although the variables are set and contain values when viewing the page, allthat is added to the database is a blank record.4) I want to validate the data before I add it. If I use the RequiredFieldoption, the error message is a plain, ugly page, quite out of keeping with therest 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 havethree keywords that mention the word 'radio', but the search facility only findstwo 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:
I am evaluating WebCatalog for a database project which is basically a list ofWebsites. I am running into a lot of confusing problems in porting what I'vealready developed in Lasso to WebCatalog. I'm hoping someone here can tell mewhat I'm doing wrong....1) the search is done by the following code:[search db=database.db&woKeywordsdata=[FormVariablesname=searchtext&exact=T][value][/formVariables]& woTitledata=[FormVariablesname=searchtext&exact=T][value][/formVariables]& woDescriptiondata=[FormVariablesname=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 inalphabetical 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 nottrue. 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=[FormVariablesname=form.Description&exact=T][value][/FormVariables]& Keywords=[FormVariablesname=form.Keywords&exact=T][value][/FormVariables][/append]Although the variables are set and contain values when viewing the page, allthat is added to the database is a blank record.4) I want to validate the data before I add it. If I use the RequiredFieldoption, the error message is a plain, ugly page, quite out of keeping with therest 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 havethree keywords that mention the word 'radio', but the search facility only findstwo 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:
PIXO support (1997)
WebCatalog for Postcards ? (1997)
Plain Language Manual? (1998)
BCC Limits (2002)
WebCat2b13MacPlugIn - syntax to convert date (1997)
shipcost (1997)
mass mailing (1998)
email program problem (1998)
much help needed NEWBIE alert (2000)
Fun with dates (1997)
WC2b15 File Corruption (1997)
set header in DB (no cart) (2003)
[WebDNA] Strange MATH result - BUG (2010)
grep twice or a better way.... (2007)
Non expiring cookies again (*sorry*) (1999)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Opinion: [input] should be called [output] ... (1997)
Authorize.net, SIM, tcpconnect and applescript (2003)
Search design (1997)
WebCat2b15MacPlugin - showing [math] (1997)