Re: Nesting format tags
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11647
interpreted = N
texte = >We're just too demanding, aren't we? Actually, what I have is a set>number of fields for product information in an order form (so it imports>into the client's order fulfillment software), i.e. 15 records, each>with a length of 37, so if a customer orders 15 items, all of the spaces>will be filled, but if they only order 1, then the remaining 14 record>spaces have to be filled with blank spaces. In other words, it has to>be 555 characters in length no matter what. OK, well I know it's harder than just using 555s, but you can certainly use the 255 + 300 trick I mentioned earlier.Or you can get real tricky with [math] and [showif] inside the [lineitems] loop -- there should be something like [numlineitems] that tells you how many items are in the cart, so you could multiply that by 37 to see how many you have already written out, then pad the remainder with 555-37*numLineItems. Something like that. Sounds like programming because it is.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>We're just too demanding, aren't we? Actually, what I have is a set>number of fields for product information in an order form (so it imports>into the client's order fulfillment software), i.e. 15 records, each>with a length of 37, so if a customer orders 15 items, all of the spaces>will be filled, but if they only order 1, then the remaining 14 record>spaces have to be filled with blank spaces. In other words, it has to>be 555 characters in length no matter what. OK, well I know it's harder than just using 555s, but you can certainly use the 255 + 300 trick I mentioned earlier.Or you can get real tricky with
[math] and
[showif] inside the
[lineitems] loop -- there should be something like [numlineitems] that tells you how many items are in the cart, so you could multiply that by 37 to see how many you have already written out, then pad the remainder with 555-37*numLineItems. Something like that. Sounds like programming because it is.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
Errata: WCS Newbie question (1997)
Odd
Sorting Round 2 plus (1998)
[OT] Google Codesearch (2006)
Help! WebCat2 bug (1997)
[removehtml] (was: Undocumented tags and contexts) (2000)
Demo math questions (2000)
possible, WebCat2.0 and checkboxes-restated (1997)
[OT] HTML, HTML docs (2001)
WebCat2b15MacPlugin - showing [math] (1997)
Cart Question (1998)
[WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018)
Make sure I understand this??? (1997)
Followup question re: checksum for credit cards? (1997)
verify online (1997)
Cart problem (1999)
Questions To Answer (1997)
[random] only for 1-100??? (1997)
Database Fields (1997)
Erotic Sites (1997)