questions on variations of Ken's [text multi=T]var1=&var2=[/text]
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 25792
interpreted = N
texte = You know the technique Ken showed us for setting variables' value to *nothing* via-[text multi=T]var1=&var2=&etc[/text]...so that variables that do not get passed as a form variable get a set value of*nothing*. (Values that ARE passed override the values set with the [text] context.)...well my question is this: Does anyone know definitively whether or not I canreliably use the same technique to preset values that may or may not be presentwithin a [Search][Founditems] context?For example I have a db with a record in it. A template finds that record andattempts to replace just some of the field values in that record. Do the valuesfound in the record ALWAYS override any value set in the template (above) with a[text] context? Do the values found in the record ALWAYS override any values comingin via formvariables?to be even more concrete:Imagine a template is hit with this link:
Go to Some Page(prior to the link being clicked, the contents of 'Order.db' is this:OrderID
var2var3¬123456applered¬---------[code for SomePage.tmpl]-------[text]var2=banana[/text][Search db=Orders.db&eqOrderIDdatarq=[OrderID]&max=1][FoundItems][Replacedb=Orders.db&eqOrderIDdatarq=[OrderID]]OrderID=[OrderID]&var2=[var2]&var3=[var3][/Replace][/Founditems][/Search]---------[/code for SomePage]-------Exactly what should I regularly expect the contents of that record to be?I can surely just try it, but what I am after is someone (someone like Ken maybe ;-)to respond with the rules that *always apply*.:-)-John-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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:
You know the technique Ken showed us for setting variables' value to *nothing* via-[text multi=T]var1=&var2=&etc[/text]...so that variables that do not get passed as a form variable get a set value of*nothing*. (Values that ARE passed override the values set with the [text] context.)...well my question is this: Does anyone know definitively whether or not I canreliably use the same technique to preset values that may or may not be presentwithin a [search][founditems] context?For example I have a db with a record in it. A template finds that record andattempts to replace just some of the field values in that record. Do the valuesfound in the record ALWAYS override any value set in the template (above) with a[text] context? Do the values found in the record ALWAYS override any values comingin via formvariables?to be even more concrete:Imagine a template is hit with this link:Go to Some Page(prior to the link being clicked, the contents of 'Order.db' is this:OrderIDvar2var3¬123456applered¬---------[code for SomePage.tmpl]-------[text]var2=banana[/text][Search db=Orders.db&eqOrderIDdatarq=[OrderID]&max=1][founditems][Replacedb=Orders.db&eqOrderIDdatarq=[OrderID]]OrderID=[OrderID]&var2=[var2]&var3=[var3][/Replace][/Founditems][/Search]---------[/code for SomePage]-------Exactly what should I regularly expect the contents of that record to be?I can surely just try it, but what I am after is someone (someone like Ken maybe ;-)to respond with the rules that *always apply*.:-)-John-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
John Butler
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:
Processing stops (2006)
Nested tags count question (1997)
Timer Values on [redirect] (1998)
Weird problems with [SHOWIF]s (1997)
2.0 Info (1997)
creator code (1997)
Only charge card when product shipped ? (1997)
WebCat2 - storing unformatted date data? (1997)
RequiredFields template (1997)
strange [date] behavior (2001)
Sku numbers (1997)
[WebDNA] Sorry WebDNA server not running (2015)
Show shoppingcart after remove last item (1997)
Multiple Pulldowns (1997)
[OT] Certs (2002)
I can help! (1996)
WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997)
[OT] OSX (unix) favorite text editor. (2002)
Languages (1997)
Just a thought (1998)