Quick and Omnidex on entry.
Paul Kemner
pkemner@bright.net
Tue, 09 Mar 1999 11:14:52 -0500
I'm having a problem with an Omnidex retrieval in Quick. We don't have a
set of manuals since Omnidex was purchased with a 3rd party package.
In the demo files, all the examples use a POSTPATH procedure, with code
similar to this:
REQUEST CUSTOMER-NAME
LET CRITERIA=TRUNC(CUSTOMER-NAME)+":"
LET SEARCH-KEY = "CUSSTOMERS.CUSTOMER-NAME;"
DO EXTERNAL OMNIFIND(SEARCH-KEY,CRITERIA,QUALIFY-COUNT,MESSAGE)
Etc etc.
The omnifind procedure doesn't return a value as such, and I assume that
the info gets put on a stack somewhere.
I need to do the retrieval in an ENTRY procedure, and get a key value
returned. Any ideas / sections of code that do this in Quick?
Here are the records: ****************************************
Record ORDERS (image master)
Item ord-key (the image key)
Item cust-id
Etc.
Record CUSTOMERS (image master)
Item cust-id (the image key)
Item cust-no (an OMNIDEX repeating key)
Item cust-name
Etc.
And this is the screen: ******************************************
Screen Test
File ORDERS
File CUSTOMERS designer
Temp t-cust-no
Field ord-key of ORDERS
Field t-cust-no
Field cust-name of customers display
Procedure Entry
Begin
Accept ord-key
Accept t-cust-no
; If cust-no was a regular image key, I could do the following, but
;as things are I get "No key/index is defined which matches these items"
from QDESIGN.
Get CUSTOMERS via cust-no using t-cust-no
Let cust-id of ORDERS = cust-id of CUSTOMERS
Display cust-name of customers
Etc. etc.
End
It is my guess that I need to call some external procedure that would do
the "Get CUSTOMERS" task.
Do you have any code example for this?
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.