MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: mv3.10 [data base= field= key= etc] writing to db (solution) part2



******    message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>     ******

At 04:39 PM 6/11/99 , Ryan Hertz wrote:
>******    message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>
    ******
>
>MV3.10
>
>My error.log:
>
>mkt1 UNZ6CvJ9:mkt1 - [11/June/1999:16:30:54 -0700] order
>/cgi-bin/order/ord/repo
>rt2.html Runtime error: gdbm store returned -1, errno 0, key "k13-10" at
>/var/li
>b/httpd/mvend/lib/Vend/Table/GDBM.pm line 205.
>
>On a report page I have:
>
>[tag touch backend][/tag]
>[tag flag write]backend[/tag]

	Switched these two.

>[item-list][data base="backend" key="[item-code]" field="qty"
>value="[item-quantity]" op="increment"[/item-list]

	There is a typo (in email) above, closing bracket missing.

>
>In my catalog.cfg:
>
>Database        backend backend.asc     TAB
>
>I'm not at all familiar with writing to a database from Minivend.  The goal
>is to increment a field in 'backend.asc' by the quantity of the related key
>purchased.  Such as an inventory would do, but by addition, not
>subtraction.  The error I have returned is not familiar to me - the key for
>the item is actually '13-10' not 'k13-10'.
>

	Thanks to Mike Heins for the quick answer.  Putting the [tag flag write]
before the [tag touch] squelched the error and immediately wrote the data
to my db.  However, it is not incrementing by the value, rather just
placing the value into the db.  Aside from my initial stumbling block I
feel like MV is performing some magic for me... except it just ain't
adding!  ;-) 

Any ideas?



Ryan Hertz                                              tel  520-645-3812
Webmaster                                               tel  800-645-BAIT
Advertising Director                                    fax  520-645-2588
Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.com
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: