PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 04/17/2017 3:28 PM by  Jonathan
Write Landmark Transaction Call like AGS and DME in DesignStudio functions
 14 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Rajachidambaram G
Infor Technical Consultant
Greeno Tech Solutions
New Member
(7 points)
New Member
Posts:5


Send Message:

--
01/22/2014 11:27 PM
    Can anyone know about how to write and access Landmark Transaction Call(like AGS and DME) in Design Studio Functions. urgent!
    David Williams
    Private
    Private
    Veteran Member
    (3064 points)
    Veteran Member
    Posts:1032


    Send Message:

    --
    01/23/2014 6:28 PM
    You can't - the transaction calls within Landmark are different.
    David Williams
    Rajachidambaram G
    Infor Technical Consultant
    Greeno Tech Solutions
    New Member
    (7 points)
    New Member
    Posts:5


    Send Message:

    --
    02/11/2014 12:06 AM
    Thanks David.
    Terry P
    Private
    Private
    Veteran Member
    (612 points)
    Veteran Member
    Posts:234


    Send Message:

    --
    10/14/2015 1:16 PM
    This is a bummer. I have custom code in a portal form that reads the WF user categories from LOGAN. Now that we have converted from PFI to IPA that information is maintained and stored in Landmark. So I'm up a creek without a paddle for wanting to read any of those files using javascript DME calls. Has anyone come up with a work around?
    Peter O
    Systems Analyst
    Independent
    Veteran Member
    (205 points)
    Veteran Member
    Posts:69


    Send Message:

    --
    02/01/2016 7:54 AM

    What do you mean? Of course you can trigger (certain) things with web calls! Want to grab some data? Call the Landmark servlet that is associated with that business class - it returns results in JSON.

    You can also trigger IPA workunits, etc. I do so routinely from a Perl script for smoketesting and system validation.

     

    Edit: I should mention, the only downside is user authentication. There is, of course, a way to work around that.


    Here's an example - https://[LMRKURL]/[DATA_AREA]/soap/ldrest/Employee/Find_Detail_FormOperation?Employee=[EMP_NUM]&HROrganization=[ORG_NUM]&Name.GivenName=+&Name.Familyname=+

    This call pulls the employee data in the URL string based on the employee's emp num and HRorg.

    you could have DS trigger an ajax call with this data from a hidden frame or something, then when the output arrives, you process the JSON -formatted employee data.

    Peter O
    Systems Analyst
    Independent
    Veteran Member
    (205 points)
    Veteran Member
    Posts:69


    Send Message:

    --
    02/01/2016 8:07 AM
    Another thing I would recommend if you're looking on how to manipulate landmark web calls would be to rip apart the CandidateSite.zip and the custom HomePages.zip that exist for customizing the web-based apps.
    Peter O
    Systems Analyst
    Independent
    Veteran Member
    (205 points)
    Veteran Member
    Posts:69


    Send Message:

    --
    02/01/2016 8:35 AM
    Oh geez... from 2014. Nevermind :|
    Scott Perrier
    Assoc Principle Solution Analyst
    Mercy
    Veteran Member
    (106 points)
    Veteran Member
    Posts:36


    Send Message:

    --
    02/01/2016 2:46 PM
    peter, the post maybe old but we are about to undertake the same effort in the next 2 months on a design studio to read work unit information from IPA. So any insight on how to access this data would be greatly appreciated.
    NHBB
    ProcessFlow Administrator
    State of NH
    Basic Member
    (24 points)
    Basic Member
    Posts:10


    Send Message:

    --
    03/01/2016 11:32 AM
    Hi Scott, we are in the same situation, I would like to know how to pass the contents of a variable to design studio.  We are in the middle of the PF to IPA migration.  In our configuration the design studio is called within the UA node Display/Desktop tab.  I have selected Display type Infor Lawson Custom form, because that is what worked. We use Image Express to attach invoice images to AP transactions.  MHC had a solution for providing the document link in the InBasket for ProcessFlow but not for IPA.  I am trying to figure out how to get the document link to display in the InBasket either as a component of the design studio or along with the design studio display.  Barbara 
    balayogesh
    Private
    Private
    Basic Member
    (33 points)
    Basic Member
    Posts:11


    Send Message:

    --
    03/21/2016 7:26 AM
    Hi, Any one tried this. I am 95% successful.
    1. Cross domain fails in using XMLHTTP or jquery
    2. Tried JSNOP but its fails because of json output
    2. Trying hard to parse the output aftyer all failure.

    Any help>
    balayogesh
    Private
    Private
    Basic Member
    (33 points)
    Basic Member
    Posts:11


    Send Message:

    --
    03/22/2016 7:19 AM
    Successfully got the LTM data as JSON and parsed and used it in Design studio and Custom Java script. Next would be Action request out side LTM and Reporting . Like real time list.
    Jonathan
    ERP Business Process Dev
    UMMC
    Basic Member
    (16 points)
    Basic Member
    Posts:8


    Send Message:

    --
    02/22/2017 1:20 PM
    @balayogesh

    Would you mind posting your solution? I'm trying to do the same thing. Thank you.

    Jonathan
    balayogesh
    Private
    Private
    Basic Member
    (33 points)
    Basic Member
    Posts:11


    Send Message:

    --
    03/21/2017 12:59 AM

    Hi,

     

    I will check, if i can get you a sample.

    balayogesh
    Private
    Private
    Basic Member
    (33 points)
    Basic Member
    Posts:11


    Send Message:

    --
    04/12/2017 5:49 AM
    function mailtrigger()
    {
    //alert("hi");
    var Year = self.MAIN.document.getElementById("YearSel").value;
    var Month = self.MAIN.document.getElementById("MonthSel").value;
    var EmployeeFrom = self.MAIN.document.getElementById("EmployeeFrom").value;
    //alert(EmployeeFrom);
    var EmployeeTo = self.MAIN.document.getElementById("EmployeeTo").value;
    //alert(Year+'-'+Month+'-'+EmployeeFrom+'-'+EmployeeTo);
    if (!window.jQuery) {
       var jq = document.createElement('script');
       jq.type = 'text/javascript';

      jq.src = 'http://XXXXXXXXXXXXXXX/bpm/trigger?triggerType=ServiceAsync&triggerName=BCR0153&dataArea=TST102&workTitle=BCR0153&varName[3]=Month1&varValue[3]='+Month+'&varName[4]=Year1&varValue[4]='+Year+'&varName[0]=Email1&varValue[0]='+parent.portalWnd.oUserProfile.getAttribute("email")+'&varName[1]=EmployeeFrom&varValue[1]='+EmployeeFrom+'&varName[2]=EmployeeTo&varValue[2]='+EmployeeTo;

    //jq.src = 'http://XXXXXXXXXXXX/lawson/portal/theme/jquery.min.js';

    alert(document.getElementById("script").innerText);
    document.getElementsByTagName('Body')[0].appendChild(jq);
    //alert(jq.toString());

      

    }
    Jonathan
    ERP Business Process Dev
    UMMC
    Basic Member
    (16 points)
    Basic Member
    Posts:8


    Send Message:

    --
    04/17/2017 3:28 PM
    Thank you. That is very helpful.
    You are not authorized to post a reply.