Sage 100

 View Only
  • 1.  BOI app JournalComment field failing

    Posted 04-06-2022 12:11
    BOI app in C# creating journal entries, all works except setting the Journal comment fails.  Line comment works.
    Sage 100 Premium 2021.2

    retval = (int)glJournalLines.InvokeMethod("nSetValue", "JournalComment$", journalComment);

    journalComment does in fact have a value ("test0123")

    Any ideas what might be wrong?

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


  • 2.  RE: BOI app JournalComment field failing

    Posted 04-06-2022 12:22

    The field JournalComment is on the header on the lines, the field name is PostingComment.

     

    I think that might be it

     

     

    Don't miss out on the 2022 Basic Crystal Reports for Sage 100 online Training: View the details

    Don't miss out on the 2022 Intermediate Crystal Reports for Sage 100 online Training: View the details

     

     

    David Overholt

    DWD Technology Group, Inc.

    9921 Dupont Circle Drive West, Suite 300 | Fort Wayne, IN 46825

    260.423.2414 main

    800.232.8913 toll free

    sagesupport@dwdtechgroup.com

    www.dwdtechgroup.com

     






  • 3.  RE: BOI app JournalComment field failing

    Posted 04-06-2022 13:08
    Posting Comment on the lines works, it is the header field JournalComment that is giving me an error.

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



  • 4.  RE: BOI app JournalComment field failing

    Posted 04-06-2022 16:52

    I don't think you can set the header field from the lines object. You need to set it from the header object try this (assuming the header object is glJournal )

     

    retval = (int)glJournal.InvokeMethod("nSetValue", "JournalComment$", journalComment);

     

     

    Don't miss out on the 2022 Basic Crystal Reports for Sage 100 online Training: View the details

    Don't miss out on the 2022 Intermediate Crystal Reports for Sage 100 online Training: View the details

     

     

    David Overholt

    DWD Technology Group, Inc.

    9921 Dupont Circle Drive West, Suite 300 | Fort Wayne, IN 46825

    260.423.2414 main

    800.232.8913 toll free

    sagesupport@dwdtechgroup.com

    www.dwdtechgroup.com

     






  • 5.  RE: BOI app JournalComment field failing

    Posted 04-06-2022 21:16
    Thank you @David Overholt! I knew it had to be something simple I just wasn't seeing!​

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