Sage 100

 View Only
  • 1.  Script for register update

    Posted 04-12-2022 20:32
    Hi All,   Working with a client today and they want to be able to post manual check batches using the BOI.  They were given a code snippet from Sage.  However when they run it there is no error but it does not update the batch.  It's a bit over my head and wondered if anyone could tell what the issue may be.  Thanks in advance for any thoughts/advice. 

    SessionUtility.SetUIClass(holder.Session, "AP_ManualCheckRegister_ui");
    using (dynamic post = SessionUtility.NewObject(holder, "AP_ManualCheckRegister_upd"))
     {
    post.nSelectBatch(BATCH_TO_POST);
    post.nSetPostingDate(DateTime.Now.ToString(DATE_WITHOUT_HYPHENS_FORMAT));
    post.nInitReportEngine();
    post.nProcessReport("deferred");
    post.nUpdateInit();
    post.nUpdateMain();
    post.nUpdateCleanup();
    post.DropObject();
    }
    ​


    ------------------------------
    Bob Osborn
    Consultant
    ACI Consulting
    ------------------------------


  • 2.  RE: Script for register update

    Posted 04-12-2022 22:40
    I have found that BOI register updates are hit and miss- the same code will code on one system and not on another, with no errors where it doesn't work.

    ------------------------------
    Phil McIntosh
    President
    Friendly Systems, Inc.
    ------------------------------



  • 3.  RE: Script for register update

    Posted 04-13-2022 09:52
    Is Task Scheduler an option?


    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    ------------------------------



  • 4.  RE: Script for register update

    Posted 04-13-2022 18:15
    HI Kevin,  I wish it was but they want it triggered by their process.  The somewhat annoying part is that I advised the automating the update is not really a good idea as someone should verify the entry and they agreed but they still want it as an option...

    ------------------------------
    Bob Osborn
    Consultant
    ACI Consulting
    ------------------------------