Scripting

  • 1.  Is there a way that I don't see or understand to s

    Posted 01-05-2017 11:15
    Is there a way that I don't see or understand to save form selections in (for example) Picking Sheet Printing? There is a custom form code being used that we would like to hard-code a UDF value for selection, but the value will not save from print to print. If this can't be done via interface, is it possible with a script, and if so, how to do it?


  • 2.  RE: Is there a way that I don't see or understand to s

    Posted 01-05-2017 11:19
    As long as you don't use ""Standard"", the settings used the last time should be preserved.


  • 3.  RE: Is there a way that I don't see or understand to s

    Posted 01-05-2017 11:21
    Sorry, I need to clarify the ""Selections"" section at the bottom of the form screen do not save for the custom form codes.


  • 4.  RE: Is there a way that I don't see or understand to s

    Posted 01-05-2017 11:29
    Hmm... I've seen it work for custom report settings (preserving the grid selections), but after a quick test apparently this does not work for form codes.


  • 5.  RE: Is there a way that I don't see or understand to s

    Posted 01-05-2017 11:45
    I have never tried what you are looking for, but I wonder if it might be possible to edit the settings in MAS_System\SY_ReportOption.M4T.


  • 6.  RE: Is there a way that I don't see or understand to s

    Posted 01-05-2017 11:51
    Unfortunately, the selections starting with Order Number at the bottom of the form printing screen are not available in SY_ReportOption.


  • 7.  RE: Is there a way that I don't see or understand to s

    Posted 01-05-2017 12:27
    In my experience, criteria in the Group Selection are not overridden by MAS and can be used to isolate records as well as groups. So, try putting your hard-coded UDF expression in as a Group Selection formula.


  • 8.  RE: Is there a way that I don't see or understand to s

    Posted 01-05-2017 12:34
    When set for a report, the values are stored in SY_ReportSelection... but not for forms. Having the selection / filter done by the RPT is a good idea as a work-around.


  • 9.  RE: Is there a way that I don't see or understand to s

    Posted 01-05-2017 12:56
    I know I can do this via the report itself, but that doesn't prevent it from being selected and therefore toggling the ""Pick Sheet Printed"" field. That's why I was hoping to hard-code this selection to the form code somehow.


  • 10.  RE: Is there a way that I don't see or understand to s

    Posted 03-26-2017 08:36
    if you are on version 2015 and above, this can be done with a UI post load script. i think i have a working script somewhere...