Write Landmark Transaction Call like AGS and DME in DesignStudio functions

Sort:
You are not authorized to post a reply.
Author
Messages
Rajachidambaram G
New Member
Posts: 5
New Member
    Can anyone know about how to write and access Landmark Transaction Call(like AGS and DME) in Design Studio Functions. urgent!
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      You can't - the transaction calls within Landmark are different.
      David Williams
      Rajachidambaram G
      New Member
      Posts: 5
      New Member
        Thanks David.
        Terry P
        Veteran Member
        Posts: 234
        Veteran Member
          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
          Veteran Member
          Posts: 69
          Veteran Member

            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
            Veteran Member
            Posts: 69
            Veteran Member
              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
              Veteran Member
              Posts: 69
              Veteran Member
                Oh geez... from 2014. Nevermind :|
                Scott Perrier
                Veteran Member
                Posts: 39
                Veteran Member
                  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
                  Basic Member
                  Posts: 10
                  Basic Member
                    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
                    Basic Member
                    Posts: 11
                    Basic Member
                      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
                      Basic Member
                      Posts: 11
                      Basic Member
                        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
                        Basic Member
                        Posts: 9
                        Basic Member
                          @balayogesh

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

                          Jonathan
                          balayogesh
                          Basic Member
                          Posts: 11
                          Basic Member

                            Hi,

                             

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

                            balayogesh
                            Basic Member
                            Posts: 11
                            Basic Member
                              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
                              Basic Member
                              Posts: 9
                              Basic Member
                                Thank you. That is very helpful.
                                You are not authorized to post a reply.