InfoMatters Home Page Search the Site

This page lists news items related to the InfoMatters, Inc.. Here is the detail record you chose. You may also Search for other items.

Vive ala @DIFFERENCE

a Tango Tips & Tricks written by Chris Ogden 8/12/1999   

We recently posted this to Tango Talk to help out another developer with one of their solutions. In case you missed it, we thought we'd include it here as well...

Until there is an @DIFFERENCE tag, you can use @FILTER to compare to arrays and show just the difference (ie, the opposite of @INTERSECT). Run the following and you'll see what I mean...

<@ASSIGN local$AddlItems <@ARRAY VALUE='Motorcycle Cover;Helmet;Highway Bars; Saddle Bags; Leathers'>>
All Recommended Items: @@local$AddlItems



<@ASSIGN local$CurBasket <@ARRAY VALUE='Yamaha 850;Helmet'>>
Current Basket: @@local$CurBasket


Newly Recommended Items (ie, without the newly added "Helmet"):
<@FILTER ARRAY=local$AddlItems EXPR='NOT(@@local$CurBasket contains #1)'>


This method is VERY handy when doing multi-line edits to add/change a Master records' Children (eg, given a Contact with multiple Interests, as a user changes their interests, add/delete just the changed items).

-c

PS. While we're on the subject of advanced array manipulation, you might also want to play around with "@MAP".


>From: Mailing List Reader [mailto:mlr@serversmiths.com]
>Sent: Tuesday, August 10, 1999 11:00 PM
>I have a shopping system that allows the merchant to specify other
>recommended items. After the user puts an item in their basket I want to
>show them a new listing of the recommended items.
>The example of this is buying parts for a classic motorcycle. The user may
>be a newbie and not know that he needs a particular gasket if he's ordered a
>particular part. To cut down on the confusion I want to indicate to him what
>items in the recommended list he has already put in his basket.
>Is the best way to just use s against an array of the part numbers he
>has already ordered?
>Does anyone have any other ideas or pointers?

 

Please use your browser's "back" button to return to the previous page to access other items, or you may wish to Search for other items.


If you'd like... you can be automatically notified when this page changes, rate this page by casting your vote, Join Our Mailing List, or Give Us Feedback!


Corporate Background | Our Approach | Our Products & Services | Our Team
Our Team's Client Portfolio | What's New | Your Investment | Get More Info | Jobs | Search This Site | About This Site

portions of this website copyright 1997, InfoMatters,Inc.