I want to use SQL to retrieve some values (our order no, our workorder no, intern article no) from our ERP system directly into 3 fields on our form (complaints database)
The customer send me information about their internal ordernumber. I write this number/string into a field and want to click a button to retrieve the information I need.
I have tried the following code as a test for dome of the information I need (no errormsg is created)
@DbLookup( “ODBC” : “NoCache” ; “QSYSDTA” ; “user” ; “password” ; “OOLINE” ; “OBITNO” ; “OBCUOR” ; “[cuord]” ; “” )
The ODBC (named QSYSDTA) is created and works from Visual Basic.
OOLINE = The table with the data I need
OBITNO = Our article number (column in table)
OBCUOR = Customer orderno (column in table)
[cuord] Is the string from the field in the form (customer orderno:)
I run Domino on AS/400 and run Movex (our ERP system) on the same machine.
I’ve read the help file for @DbLookup, @DbColumn and @DbCommand but still I cannot understand how I can display the result from my query.
What am I doing wrong ?