Sage 100

 View Only
Expand all | Collapse all

Cleaning up sy_griddefinition.m4t

  • 1.  Cleaning up sy_griddefinition.m4t

    Posted 11-14-2022 12:04
    Has anyone come up with an easy way to clean up the sy_griddefintion.m4t?

    I'm working with a client that has a 50 user count and they have been using Sage 100/MAS90 for at least 20 years.

    Sy_griddefinition contains every rearrangement of data entry grids for every user/workstation combination from the beginning of time and the file contains nearly 90,000 records.  We have been having some issues with individual workstations not displaying information properly.   I've fought with this many times in the past and about the only way to get a handle on/make sense of the info out there is to export the file via crystal to an excel file and using the data sort/selection functionality to find what I want and then if I need to delete things to try to resolve the issues it still takes quite a bit of time to clean it up.  You don't appear to be able to use visual integrator on this file.

    I've worked around some of this by either giving a user and new log in or renaming their workstation,  but it sure would be nice to just clean up all the old inactive users/workstations. I would love to just reinitialize the file but I know that there are generalized records that are not specific to a user or workstation so I don't think that would be an option.

    Has anyone created a utility or come up with some nice way of this file?


    ------------------------------
    Thomas Rogers (TomTarget)
    Target System Technology, Inc.
    ------------------------------


  • 2.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-14-2022 22:21
    What about the nuclear option?  Replace with vanilla file and do a complete rebuild.  Just wondering out loud.

    ------------------------------
    Jeff Schwenk
    Bottomline Software, Inc.
    (540) 221-4444
    ------------------------------



  • 3.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-15-2022 11:55
    Edited by Thomas Rogers 11-15-2022 11:56
    Hmm.  Interesting thought.

    From a fresh install before migrating any data, copy the file to the live install.   Worth a try.

    Only problem might be UDF's added to the data entry grids.


    ------------------------------
    Thomas Rogers (TomTarget)
    Target System Technology, Inc.
    ------------------------------



  • 4.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-15-2022 12:22
    Also watch for columns added by enhancements...

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



  • 5.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-15-2022 16:32

    That's a great point Kevin – third party mods that add columns would need to be reinstalled if you took that route. Plus, any custom office changes would be gone  

     I have a utility that I have used in the past that was hard coded to read through the SY_GridDefinition and remove records for a specific user key and module. I have only used this twice; both times the same client when users were getting errors on the lines tab of purchase order receipt of goods entry. I could tell the errors were related to corrupted grid records. this client was also quite large with about 45 users and years of history.

     I could update that utility to prompt for:

    • 10-digit User Key (optionally allow user to type in ALL for all users).
    • Module Code: formatted as X/X (optionally allow user to type in ALL for all modules).

    The utility would only remove records with a level "A" (user specific). So master developer and custom office records remain untouched.

    Since I've never really used this except in 2 very specific circumstances, does anyone think this would be a safe and/or helpful utility?  I would test it internally, but it would anyone have a more complete test install for more thorough testing?

    I welcome any thoughts.



    ------------------------------
    David Overholt
    DWD Technology Group
    ------------------------------



  • 6.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-15-2022 16:39
    I don't know how you would verify it's working OK, but if so, I would LOVE a utility like that.  The SY_Personalize is another file that drags old crap around from version to version.

    ------------------------------
    Beth Bowers
    (269) 358-0989
    ------------------------------



  • 7.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-15-2022 17:49

    Beth,

    I've not dealt with SY_Personalize. Does it contain any system, custom office, or 3rd party records to watch out for? Or when would you want to just remove certain records from that table rather than reinitialize and start fresh.

     

     

     

     

     

    Do not miss out on our 2022 Sage 100 Year-End Tips Webinar: 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

     

     






  • 8.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-15-2022 18:30
    The "F" and "G" records contain the path to Sage in the records, so it should be easy to ditch them if they are not the current path.

    ------------------------------
    Beth Bowers
    (269) 358-0989
    ------------------------------



  • 9.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-16-2022 08:56
    This file can be such a pain, especially like @Beth Bowers said when the client has been on Sage for years.  I went ahead and posted a new idea in Sage City:

    https://www5.v1ideas.com/TheSageGroupplc/Sage100ERP/Idea/Detail/41818



    ------------------------------
    Jane Scanlan
    Partner
    Next Level Manufacturing Consulting Group
    ------------------------------



  • 10.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-17-2022 09:18
    I have a utility written for SY_GridDefinition I have tested it on my install with Sage 100 demo data and it works. It's pretty straightforward but when I test my own code, sometimes I don't think of the unexpected. Would anyone have a larger non-live data set and be willing to test it to see if there are any holes?

    ------------------------------
    David Overholt
    DWD Technology Group
    ------------------------------



  • 11.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-17-2022 14:46
    Edited by Thomas Rogers 11-17-2022 14:50
    I've been working a test upgrade and would love to try it out on a backup of this.

    If it can look for field codes that begin with a certain value that would be a big plus as well.  The upgrade has left over fields from an upgraded third party enhancement that are causing a problem.   The original fields have D440 at the beginning and are being replaced by D104s.  Unfortunately even though we fixed the grids with the custom office, the fields are still in sy_griddefinition.

    ------------------------------
    Thomas Rogers (TomTarget)
    Target System Technology, Inc.
    ------------------------------


  • 12.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-18-2022 08:43

    Thomas,

    Email me directly at Doverholt@dwdtechgroup.com and I'll send you the utility and instructions to test. Assuming it works OK, I will post it for the group.

     

     

     

     

    Do not miss out on our 2022 Sage 100 Year-End Tips Webinar: 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

     

     






  • 13.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-19-2022 20:26
    I would love to check out this utility.  I have plenty of material to test with.  Please send to me.  


    ------------------------------
    Carmen Cruz
    Sage Consultant
    CompuData
    ------------------------------



  • 14.  RE: Cleaning up sy_griddefinition.m4t

    Posted 11-23-2022 20:22
    A while back I found SY_GridDefinition_utl which you can use either from VBScript or File > Run > SyzCon.

    It has methods to clear and copy records.

    When clearing;
    • If lvls$ is blank, it will delete all but Z (stock) levels, this includes Y (third-party) levels.  lvls$ can be a combination of levels or a single level, i.e. A, AB, Y, etc.
    • form$ and grid$ are required, comp$, user$, and wrks$ are optional.
    If you only have a few combinations to handle, then it probably makes sense to just do it manually from SyzCon but more than that, it would make more sense to use VBScript or a ProvideX script where you can get the handle to the object and then repeat the ClearRecords method for however many combinations you need to.

    ------------------------------
    David Speck II
    Tennessee Software Solutions
    ------------------------------