Display Employee Image

 5 Replies
 0 Subscribed to this topic
 11 Subscribed to this forum
Sort:
Author
Messages
Mary Porter
Veteran Member
Posts: 337
Veteran Member
    We paid the $99 to download the script from Lawson to display the employee photo on HR11 in smart office 10.0.5
    We modified the script with our server information and put it in the persistdata/lawson/smartclient/data/scripts/DEV directory that it's supposed to be saved in.
    If I open the HR11 in the DEV environment the photos aren't there. If I keep the HR11 open and then open Other / Lawson Script Tool and paste in the script and compile and save it and publish it, the photos will show up in the HR11 that I have open. If I open another HR11, the photos aren't in there. If I close the HR11 that is showing
    the photos, and then open another HR11, there are not photos. If I paste the script in again in the script tool and publish it again then I have photos back.

    What am I missing? why won't it stay?
    Karin
    Veteran Member
    Posts: 57
    Veteran Member
      Hi,
      Have you looked in the log file in Smart Office? It's internal://log and you can find a link to it from the About screen.
      I can think about one thing. The encoding might have been changed on the file by the editor you used. Now I'm not at the office so I can't compare with a file that works, but any new file from the script editor has the correct encoding.
      I use Notepad ++ and it's free
      But check the logs first.
      Regards Karin http://smartofficeblog.com
      Mary Porter
      Veteran Member
      Posts: 337
      Veteran Member
        Karin,
        Thank you very much for your response but I have no idea what to look for in the logfile, I don't see any references to the script tool just a lot of messages like this:
        3/15/2013 10:30:00 AM INFO Mango.UI.Services.NavigationViewDS.GetRootNodesFromApplications  sforms implements IClientApplicationTasks but AvailableTasksRoot() returns null so it will not have a root node in the Navigator. Should I log a ticket with Lawson since using their installation instructions and their script isn't working?
        Karin
        Veteran Member
        Posts: 57
        Veteran Member
          Hi Mary,
          The information message you see about the IApplicationTasks is not relevant to this. It has to do with the Navigator widget implementation and is not relevant. I don't know the details about the deployment of S3 scripts. All I know is that we have had an issue when the scripts were edited in like notepad and the encoding was changed. The encoding should be UTF-8 without BOM. Anyhow that is a detail, but if the script is connected I think there should be something in the log. I would recommend you to change the log level to debug (you do that under -> Show -> Settings -> Smart Office log level. Run HR11 and then check and search for the name of the script. If you don't find it search from the buttom and look for HR11. There is a debug entry before launching a program so if there is something about running a script it should be after that.

          Of course you can always contact support!
          Regards Karin http://smartofficeblog.com
          Matthew Nye
          Veteran Member
          Posts: 514
          Veteran Member
            Mary,

            Have you assigned the script class to the form in the Personalization Tool?

            > Open the Personalization Tool
            > Select the form to attach the script to
            > Type the Class name in the "Script" text box
            > Add any argument values required
            > Click Add
            If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
            Mary Porter
            Veteran Member
            Posts: 337
            Veteran Member
              That was it! Thank you so very much! Now i'm going to try it in our prod environment which is older.