Using DoFunction with OnBeforeTransaction
Last Post 03/10/2010 04:31 AM by Gary Davies. 2 Replies.
    Printer Friendly
    •  
    •  
    •  
    •  
    •  
    Sort:
    PrevPrevNextNext
    You are not authorized to post a reply.
    AuthorMessages
    NickUser is Offline
    Private
    Private
    Veteran Member
    (129 points)
    Veteran Member
    Posts:49
    Nick

    Send Message: Send Private Message

    --
    03/09/2010 06:39 PM

      I have a customized PA49 form with 2 new text fields (not tied to the database) that I am trying to concatenate into one field tied to the database.  I am using an OnBeforeTransaction to get the values and then write to the standard field.  That part is working fine.  However, I am having trouble getting a lawformDoFunction call to then perform the original transaction that the user requested.  I am getting a result where either the user has to click the Add/Change button again, or it appears to get stuck in a loop trying to perform the action repeatedly.

      Does anyone have any ideas on the syntax to use to 'hijack' a funtion code, set a field value, and then perform the function code? 

      Thanks!

      Nick

      David WilliamsUser is Offline
      Private
      Private
      Veteran Member
      (1835 points)
      Veteran Member
      Posts:621
      David Williams

      Send Message: Send Private Message

      --
      03/09/2010 08:18 PM
        If you add Return True; to the end of your function then the script should return control back to the form and the transaction (whichever button was clicked) should execute. You shouldn't have to add the do function call.
        David Williams
        Consult David W LLC
        Gary DaviesUser is Offline
        Private
        Private
        Veteran Member
        (738 points)
        Veteran Member
        Posts:248
        Gary Davies

        Send Message: Send Private Message

        --
        03/10/2010 04:31 AM

          I am trying to understand why you need to use the DoFunction. You just need to merge the fields in OnBeforeTransaction if the FC is "A" or "C" (as you are doing) and split and populate the fields in OnAfterTransaction if the FC is I,N or P.

          You should only use DoFunction when you want to "simulate" pressing a function code when the actual user has not pressed one.

          You are not authorized to post a reply.


          New TopicsMinimize
          ESS/MSS audit log
          02/10/2012 05:13 PM
          Does anyone know how to capture ESS activities? Fo

          Pay Class Not Working
          02/09/2012 08:46 PM
          We have set up a pay class tied to a specific pay

          GEN Database Fields
          02/09/2012 02:13 PM
          I was wondering if anyone knew what lawson used th

          Headcount
          02/09/2012 12:32 PM
          We are currently looking into the possibility of a

          Multiple UOM Setup
          02/09/2012 10:01 AM
          Ok so here is our issue, the warehouse orders and

          Enterprise web forms with processflow?
          02/09/2012 08:21 AM
          I'm being asked about enterprise web forms for a s

          15 Variable limit for WFWK.1
          02/08/2012 11:42 PM
          Have a custom design studio form that is consolida

          Crystal/Xcelsius and LBI Bursting
          02/08/2012 12:06 PM
          We are currently working on rolling out LBI for ou

          Upgrade to 9.0.1 Workplan from 8.0.3 and 9.0.0
          02/08/2012 11:05 AM
          Does anyone have a workplan that you are willing t

          Is there a way to get the user_id name to print on a Crystal rpt?
          02/08/2012 10:50 AM
          I'm looking to create a report that would show the