Lawson Resource Query node - serviceName attribute

 5 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
timbomom
Advanced Member
Posts: 28
Advanced Member

    Hello,

    I have a Lawson resource query node the queries the employee on the service TEST_EMPLOYEE with this code and it works.

    ]]>

    I want to change it so that the serviceName is a variable so the flow can move easily between the test and prod systems.  In the production system, the service is called PROD_EMPLOYEE.  I created a variable called EmpService to hold either TEST_EMPLOYEE or PROD_EMPLOYEE.  When I tried to do a variable substation in the node such as:

    serviceName = "", I get the message that serviceName can not contain "<" which I think means it is not performing the variable substitution I expected.  I tried variable on setting serviceName but I can't get it to work.  Any suggestions?

    Regards,

    Patricia

    Woozy
    Veteran Member
    Posts: 709
    Veteran Member
      Hi Patricia - it looks like the code portion of your post was stripped by the site, so we can't see what you're really trying to do. Could you maybe attach a screenshot instead?

      Kelly Meade
      J. R. Simplot Company
      Boise, ID
      John Henley
      Posts: 3353
        Patricia, the only way I have been able to use a variable for a service name is to edit the .LPD (v10/IPA) or .XML (v9/PF) file and changing the service name to the variable. Works fine, just a pain.
        Thanks for using the LawsonGuru.com forums!
        John
        timbomom
        Advanced Member
        Posts: 28
        Advanced Member
          timbomom
          Advanced Member
          Posts: 28
          Advanced Member

            I attached an image of the code in the Resource Query Node, followed by what I want to do, which is use a variable in the serviceName="".

            John, I tried updating the lpd but I still got the same error. 

            John Henley
            Posts: 3353
              %3C%21EmpService%3E
              or
              %3C%21CDATA%5B%3C%21EmpService%3E%5D%3E
              Thanks for using the LawsonGuru.com forums!
              John