Trying to add TA data to check inquiry

 5 Replies
 0 Subscribed to this topic
 68 Subscribed to this forum
Sort:
Author
Messages
Mike Schlenk
Veteran Member
Posts: 71
Veteran Member

    We're getting ready to stop giving elec remit advice on paychecks and force everyone to use ESS.  The only problem, you can't see the time accrual data per check.

    I've been hunting around trying to alter the paytyear.htm file to retrieve this data.  I'm not totally understanding the DMEObject functionality.  I've simply added this (fixed from previous post.  I apologize for that):

        var TimeAccrual = new Array()
        function MakeTA()
        {
            var taobj            = new DMEObject(prodline,"emtatrans")
                taobj.out        = "JAVASCRIPT"
                taobj.index      = "ettset1"
                taobj.key        = company+"="+employee
                taobj.field      = "ta-hours;plan.plan-name"
                taobj.select     = "type=TE"
                taobj.max        = "100"
                taobj.sortdesc   = "plan.plan-name"
                taobj.func       = "DspEmtatrans(true)"
                taobj.debug      = false
            DME(taobj,"dmedata")

            TimeAccrual=self.dmedata
            }

    I'm attempting to create an array of EMTATRANS data that contains two fields for each entry found.  I want to display the SICK and PTO time accrued.   Below this I would hope I could say TimeAccrual[i].ta-hours and TimAccrual[i].plan-name.

    Something's obviously not right.  I get a javascript error when I run this ("Object doesn't support this properly or method").  I'm trying to use basic things I've found about using the DMEObject functions.  Any ideas?

    8.0.3 apps and env.

    John Henley
    Posts: 3353
      Your javascript got a little scrambled (you might want to post as an attachment), but it looks like you have the functions defined incorrectly. The way DME works is that if you don't specify a .func property, it will return to the function immediately below the DME call. Which in your case, looks like it might be recursing...
      Thanks for using the LawsonGuru.com forums!
      John
      John Henley
      Posts: 3353
        BTW, I moved this topic to a more appropriate spot...
        Thanks for using the LawsonGuru.com forums!
        John
        Mike Schlenk
        Veteran Member
        Posts: 71
        Veteran Member
          So do I need to create a function for this? Do do what exactly?
          ridjayc
          Veteran Member
          Posts: 191
          Veteran Member

            You might try with a very simple page at first. Say a page with just one DME. Then take the page and add a second DME.

            If memory serves me you need a matching iframe in order to dump the data into. Also there seemed to be something sutle problem with it being a call back so it seemed like if you didn't touch the object it would not pull the data in. Perhaps I am thinking of something else.

            --JayR
            Mike Schlenk
            Veteran Member
            Posts: 71
            Veteran Member
              Can you give me an example of a home-made DME file? I'm missing the basic understanding of the object and how to utilize it. Perhaps a sample would help.