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:
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)