numero = 29270
interpreted = N
texte = but I thought values generated from a [search] were SUPPOSED to override [math] and [text] values.... this is what you told me several weeks ago. So if the [search] indeeds finds 0 records then it seems like proper behaviour, no?(I must be missing something?)-JohnKenneth Grome wrote:> >> I learned more about this issue. It seems I can set a variable> >> named max to a value of 9 before a search context, and it> >> keeps the value of 9 everywhere on the page *except* inside the> >> search context, where it changes to a value of 0 for some> >> unknown (and undocumented) reason.> >>> >> What's going on here? All I'm trying to do is use:> >>> >> [showif [numfound]>[max]]> >> Show more items ... > >> [shownext]> >> [/shownext]> >> [showif]> >>> >> inside my search context in order to show or hide the enclosed> >> text and webdna code. So why is webcatalog changing my preset> >> max variable value from 9 to 0 in this code?> >>> >> And why is this behavior not documented?> >> Or is this just another bug in your software?> >> >> >Are you posting to the page in a search context using:> >>> No, there is no external max value being passed into this page, or else it would override my efforts to set max to 9 as a text or math variable.>> The issue here is that [max] displays 9 everywhere on the page -- EXCEPT inside the search context, where it displays 0. Of course this breaks my code because it is doing the wrong thing by displaying 0 instead of 9 ... :(>> This behavior is WRONG based on everything we have learned about the way the webdna language is *supposed* to work, therefore I conclude that this is another bug SM needs to fix.>> ================================> Kenneth Grome, WebDNA Consultant> 808-737-6499 http://webdna.net> ================================>> -------------------------------------------------------------> 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 -------------------------------------------------------------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:
but I thought values generated from a [search] were SUPPOSED to override [math] and [text] values.... this is what you told me several weeks ago. So if the [search] indeeds finds 0 records then it seems like proper behaviour, no?(I must be missing something?)-JohnKenneth Grome wrote:> >> I learned more about this issue. It seems I can set a variable> >> named max to a value of 9 before a search context, and it> >> keeps the value of 9 everywhere on the page *except* inside the> >> search context, where it changes to a value of 0 for some> >> unknown (and undocumented) reason.> >>> >> What's going on here? All I'm trying to do is use:> >>> >> [showif [numfound]>[max]]> >> Show more items ... > >> [shownext]> >> [/shownext]> >> [showif]> >>> >> inside my search context in order to show or hide the enclosed> >> text and webdna code. So why is webcatalog changing my preset> >> max variable value from 9 to 0 in this code?> >>> >> And why is this behavior not documented?> >> Or is this just another bug in your software?> >> >> >Are you posting to the page in a search context using:> >>> No, there is no external max value being passed into this page, or else it would override my efforts to set max to 9 as a text or math variable.>> The issue here is that [max] displays 9 everywhere on the page -- EXCEPT inside the search context, where it displays 0. Of course this breaks my code because it is doing the wrong thing by displaying 0 instead of 9 ... :(>> This behavior is WRONG based on everything we have learned about the way the webdna language is *supposed* to work, therefore I conclude that this is another bug SM needs to fix.>> ================================> Kenneth Grome, WebDNA Consultant> 808-737-6499 http://webdna.net> ================================>> -------------------------------------------------------------> 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 -------------------------------------------------------------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
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...