Copy link to clipboard
Copied
I am looking to connect to AS400 so that users can:
1. Pass usernames and passwords to AS400
2. query a "Work Order" to get related items (AS400)
Thanks in advance.
Copy link to clipboard
Copied
I am able to establish a connection to AS400 using ODBC socket and connection string. However, my account does not have enough permissions to see any data. I would like users to pass their authentication to AS400 via a Coldfusion form. Any ideas on params? Should they look like this:
<cfparam name="FORM.username" default="Your Username">
<cfparam password="FORM.password" default="Enter Password">
If so, then will they pass to AS400?
Copy link to clipboard
Copied
Disclaimer: I'm not familiar with MAPICS.
If are trying connect to MAPIC using an OBDC or JDBC DSN setup in ColdFusion and execute SQL statements via CFQUERY you might try using the password and username attributes of CFQUERY.
<cfquery name="myQuery" datasource="myMapicsDsn" username="#form.username#" password="#form.password#">
<!--- your query here --->
</cfquery>
CFQUERY
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_17.html#1102316
Copy link to clipboard
Copied
Thanks Bob. I got it going using jt400.jar. I have to make another post because the data is returning gibberish in some places.