670 pts.
 How to map HTML page with AS400
I have an HTML page with NAME field. When user enter the in the page and click on the submit it should go in the PF file and add the record in the PF. Is it possible that we can map the HTML pages with AS400. Please give some link or code where I can try this.

Software/Hardware used:
AS400
ASKED: November 7, 2012  12:11 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. TomLiotta   107,995 pts. , TheHumanRace   335 pts. , ankit2002   670 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I can easily be done as long as you have a data connection to your DB2 database. You can make a few simple changes to your HTML page using Visual Studios (you can get the express for Free from Microsoft) and the using either Visual Basic or c# do the update to write to your i-Series file. It can be done with an SQLDataSource or stored procedure. 

 3,910 pts.

 

@Todd: I am new to this and in the stage of learning.Can you Please share any sample source code which can help me out doing this.
I have the HTML Code with me. If you want I can share that with you.
Let me know if you require any other inputs.
 
Thanks and Regards
Ankit Taneja 

 670 pts.

 

If that’s all you want to do, about all it takes for code is to add to the page a Net.Data FUNCTION(DTW_SQL) section that contains the INSERT statement. (Or an UPDATE statement if that’s what is meant.) Make the function the ACTION of the form. It’s hard to guess what more could be needed without knowing a lot more, such as what web server is even being discussed. — Tom

 107,995 pts.