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:
Further tests with the infamous shipCost (1997)
[WebDNA] Processing a CSV file for use as a db file (2016)
Can't use old cart file (was One more try) (1997)
WebDNA Solutions ... sorry! (1997)
Amusement (2004)
Credit Card Checking?? (1998)
Math Context (2001)
WC2f3 (1997)
problem with [Format Days_To_Date] (2000)
Real-Time Credit Card Processing - OnCommerce from OuterNet (1998)
wierd crashes for multi-sendmails on NT (1997)
WebCat b13 CGI -shownext- (1997)
Problems with [Applescript] (1997)
Appending Information from one db to another (1998)
WebCatalog NT beta 18 problem (1997)
Listserver problem (1997)
docs for WebCatalog2 (1997)
Country & Ship-to address & other fields ? (1997)
How to implement 'email to a friend' feature? (2002)
Store Example to Use (1998)