TKN Call from Notification link

Sort:
You are not authorized to post a reply.
Author
Messages
TBonney
Veteran Member
Posts: 277
Veteran Member
    I have a notification that gets sent to show unmatched items after MA126 is run. It has a link to form MA60.1 on each row. I have added the URL to the tag in the infoset, including the value for [Company] pulled from the row in the notification. Based on information I found by looking through Lawson KB articles, I thought I could string an additional variable to the end to also pull the [Vendor] from the row too. However, it doesn't work. When MA60.1 is displayed, it is only filtering by [Company]. I was told by Lawson that this is because [Vendor] is not a required field, so it is only recognizing the _HK=[Company] because company is the required field. My question is this...is there a way, even though [Vendor] is not a required field, that I can append it so the link filters to company/vendor combination when followed from within the notification? Thank you in advance for any advice you can provide.
    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      You should be able to set a value for PT-API-VENDOR, and it will include that in the form inquire.
      Thanks for using the LawsonGuru.com forums!
      John
      TBonney
      Veteran Member
      Posts: 277
      Veteran Member
        Thank you John. I did try various ways to add the vendor using the field tag PT-API-VENDOR, but it didn't work. Among other variations, I've tried replacing '_HK=[Company]' with 'API-COMPANY&PT-API-VENDOR=[Vendor]', which I thought to be the best choice. Nothing I tried worked though. Can you please advise what the proper syntax would be? The current string I am using now is as follows: http://lawsonweb-nt/lawso...K=[Company].

        Thank you for your guidance.
        John Henley
        Senior Member
        Posts: 3348
        Senior Member
          After looking more closely at that form, the only key field that can be passed via _HK is the Company.
          Thanks for using the LawsonGuru.com forums!
          John
          TBonney
          Veteran Member
          Posts: 277
          Veteran Member
            So when you do this, you may only pass the required fields? If I do an AGS call instead of TKN call, would that allow me to display the form, specific to the company and vendor?
            John Henley
            Senior Member
            Posts: 3348
            Senior Member

              HK can only be used to pass key fields. As an alternative, you could use an AGS call as well as a DME call. However, an AGS call would not display the form itself (AGS is used to process a form via HTTP, not display a form). I'd recommend a DME call to list of the messages for the specific, with each detail line having a link to MA60. But, what you'll find out is that if you have a lot of lines, you start having to deal with paging.

              Which then leads to using Design Studio to build a Portal Page to handle the query and paging, and then linking the Portal Page to an MA60 form. If you look at this article (see https://www.danalytics.co...archive/2007-12.htm, you will see a similar concept of a Portal Page combined with a customized form. Since a Portal Page has access to the parameters passed to it, you would be able to pass those parameters via LSN, and display the appropriate vendor messages.

              Thanks for using the LawsonGuru.com forums!
              John
              TBonney
              Veteran Member
              Posts: 277
              Veteran Member
                OK. Thank you John. That's a little beyond me, but we do have one of our guys taking a design studio class next week. Maybe this can be one of his test projects upon his return. Thank you.
                You are not authorized to post a reply.