PW@KKI
18th June 2013, 11:56
A little while ago, I sucessfully created a VB web application that passed parameters from app/web interface and created a Sales Order on BaaN IV.

I now want to do the same process but intergrating to Infor10 LN.

Whilst I can sort of use my current code, it fails at the last hurdle. I suspect it may have something to do with LN not using 'functions' so much.

I have noticed that LN has many scripts that could maybe(?) called remotely.

Ideally, what I would like is a snippet of code (Visual Studio/VB) that will allow me to 'call' an LN script to do something on LN itself.

Can anyone help on this ???

bhushanchanda
18th June 2013, 12:17
Hi,

What kind of script? If its 3GL, what you can do is create a session which calls a 3GL script in its 4GL script using activate(). And then you can create a VB File to launch the newly created session.

Here's a way to call:- (This launches Sales Orders session)

Set baanobj = CreateObject("Baan.Application.Live")
BaanObj.ParseExecFunction "ottstpstandard", "zoom.to.menu(" & Chr(34) & "tdsls4100m000" & Chr(34) & ",2," & Chr(34) & Chr(34) & "," & Chr(34) & Chr(34) & ",0,0)"


Live is the bwc configuration file.


You can get lots of threads on the board!

PW@KKI
18th June 2013, 23:11
The scripts are ones that I 'found' on our LN - not sure what they are and what they do for that matter, it was just a hunch that I could 'call' one to 'do something'

Moving on, the other code snippit was rather cool ... that works nicely ...... but .....

Let's say I want to create a Quotation Header on LN passing some data from my web page - how should i code that (my old code that I used for BaaN IV worked nicely, but on LN it doesn't!!)

Thanks for your help

mark_h
19th June 2013, 00:33
Well for LN they always say look at DAL2 functionality. I am jus not sure how you would call it like the above - ottstpstandard like Bhushan mentioned.

bhushanchanda
19th June 2013, 10:05
Mark,

That gives me an idea to create a New Thread!! (http://www.baanboard.com/baanboard/showthread.php?p=182486#post182486)

:)