Copying many cds to a stack causes standalone to hang

Steve Denney steve.denney at bigpond.com
Wed Nov 29 21:35:58 EST 2006


Thanks Jim,
(and to Paul Looney (SimPLsol at aol.com) who also proposed a database/imported
pic solution). 

Product info (description, pricing) is indeed kept in the one file and
imported into a fld. Similarly customer (reseller) info is located in an
odbc database for company reps (there's both a rep and reseller version of
this app). The only searching of cds is when a user wants to 'go to' a
particular catalogue card and focus on one the products. Other types of
product searches simply parse the product info fld & display a list. 

Unfortunately the die is cast with respect to catalogue format - it's in the
client's layout. I have seen warehousing programs (& of course there's lots
of websites) where a search, index or link will display product info & pics
with a consistent format but that's not what the client wanted. So the loc
of the product pics & their associated btns vary considerably from page to
page (actually the loc of the page pic doesn't vary but the associated
product btns are all over the place. Since that's really the only variation
I suppose I could store all the page pics in a folder, keep the product btn
rects in a fld and have rev create the catalogue pages on demand. Instead
I've simply made each page into a cd and stopped at that. 
At the moment I'm still thinking brand stacks with many prefab pages, opened
as required.
Your help and suggestions are much appreciated.
Many Thanks,
Steve Denney



-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Jim Ault
Sent: Tuesday, 28 November 2006 8:42 AM
To: How to use Revolution
Subject: Re: Copying many cds to a stack causes standalone to hang


On 11/27/06 1:58 PM, "Steve Denney" <steve.denney at bigpond.com> wrote:

> Hi PL,
> The app is a catalogue where users can view pics of the products & click
on
> them to order (amongst other things).
> Currently each product page (card) is kept in a single cd stack file and
all
> the pages are copied into one stack at start up. I've now realized it'll
be
> better to have collections of product pages (by brand) in fewer stacks
with
> many cards.
> I also thought cross brand searching and movement between cds would be
made
> easier by having all the cards present in the one open stack. Now I'm
> considering keeping each brand collection in its own stack (i.e. no
copying
> of cds - not that I'm not immensely grateful for the effort everyone's put
> in and finding out the true nature of the 'start using' command :) And
> opening and searching each 'brand' stack only as required.
> My feeling is the latter will work just as well (without waiting for
> "Loading catalogues..." on openStack), or (as you point out) having to
deal
> with a huge unwieldy stack, especially if I don't bother to encrypt the
> catalogue pages.
> All comments and suggestion most welcome.
>

You should consider some other way of doing the brand differences, view pic,
and searching.  Looks like a lot for Rev to do, but Rev is extremely fast at
this.

For example, 
1 card per brand
using 1 group that behaves like a background that is on all brand cards
name each card with the brand name, then
on preopencard

set the label of btn "brandLogo" to the short name of this card
set icon of btn "brandLogo" to 23009
-- importing a png or jpg  into the stack will result in
--   Rev assigning an ID
set the rect of btn "brandLogo" to <rect>
set the script of btn "brandLogo" to <snippet>
set the text of btn "modelDropDown" to <list of models>
set the label of btn "modelDropDown" to line 1 of <list of models>

put line 1 of fld "hiddenData1" into fld "vizModelNumber"
put line 2 of fld "hiddenData1" into fld "vizPrice"
put line 3 of fld "hiddenData1" into fld "vizInStock"
put line 4 of fld "hiddenData1" into fld "vizShippingCost"
put line 5 of fld "hiddenData1" into fld "vizTaxNotice"
put line 6 to -1 of fld "hiddenData1" into fld "vizDescription"
get  line 1 to 5 of fld "hiddenData1"
replace cr with tab in it
put it into line 1 of fld "vizTableColumn
get  line 1 to 5 of fld "hiddenData2"
replace cr with tab in it
put it into line 2 of fld "vizTableColumn
get  line 1 to 5 of fld "hiddenData3"
replace cr with tab in it
put it into line 3 of fld "vizTableColumn

How many items are you displaying?
If you are doing a catalog, espcially if it needs frequent updating, then
consider using a database such as SQL
How many scripts are you using?
Where are they located?

Jim Ault
Las Vegas


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list