okneb1
6th August 2019, 13:25
Hello all,

Is it possible to attach a document into IDM from a custom LN session (with custom table)? Does anyone have some experince developing this?
Requirement is the same as with ODM on stand. LN Items session. For example, you select a item line on the session, and upload some PDF that gets attached to this line.
Difference here is, the document should be stored in IDM for a specifc line/document/index. User can then later access this document from the attachment menu (right side) on the session.

Looking at the documentation, it seems like the ES InContext Modeler is the way to go here?

Any tips will be appreciated.

JaapJD
7th August 2019, 09:48
Yes, InContext Modeler is the way to go. You can generate an InContext Model and an InContext library for your session and then the session will automatically send its context to Ming.le, which updates the IDM webpart with the related documents.

Steps:
1. Ensure the ta-package is in your package combination.
2. Open your custom table in LN Studio.
3. Click the InContext Model hyperlink on the Overview tab in the editor.
4. It will ask to generate a new model, click Yes. The model will be shown, check the Context Messages tab whether there is a Business Context Message for your table.
5. Open your custom session in LN Studio.
6. Click the InContext Model hyperlink on the Overview tab in the editor.
7. It will ask to generate a new model, click Yes.
8. In the Session Incontext Model Editor click the (Re)generate hyperlink.

Run the session (in Ming.le) with the IDM contextual application active. You will be able to attach a document. For debugging purposes, you can activate the Context Viewer contextual app, which will show the technical context message that is sent from LN.

okneb1
9th August 2019, 15:19
@JaapJD thank you very much for this info.
I followed your steps and it worked! LN 10.5., both session and table are in TX package.