Cannot replace my own custom form

Sort:
You are not authorized to post a reply.
Author
Messages
mikeP
Veteran Member
Posts: 151
Veteran Member

    Working on my first update form in PGMDEF and have run into a number of issues.  Currently, I can’t seem to get rid of the previous version of my form.

    Ideally it will have multiple PRDISTRIB records and allow just the account field to be updated.  At this point, it’s just and “online inquiry” that shows a few fields from the file.

    The problem is that I created a new version but Lawson won’t display it.

    Here’s the sequence:
    Create form in PGMDEF.  Run type is Prototyped and 4GL
    Quick painted all fields, then deleted  the bottom several rows.
    Run from within PGMDEF, it can find and display records.
    Generate and compile
    Create security rules for new program in Lawson Security Admin

    Run in portal.   Displays fine initially, but crashes and burns spectacularly when trying a Next or Inquire.

    Decided to start over by deleting the original program in PGMDEF and creating it again with the same exact name.
    Quick painted again, but did not delete any rows.
    Generate and compile.

    When run in portal, I always get the previous version of the form that only has a few rows of fields.   I cannot get the new version with all the fields to display.

    It’s not the browser cache.  I’ve cleared it several times, and the old version displays on other PCs.

    I rebuilt the form index in portal and cleared the IOS cache, no help.

    I deleted all the files generated for that form from the prsrc folder, and regenerated and compiled, no help. 

    I’ve been using “Application DevelopmentWorkbench—Windows 9.0.x” as a reference, but I don’t see anything that addresses this.

    jaherb
    Veteran Member
    Posts: 164
    Veteran Member

      Have you set the "In Production On" switch?

       

      mikeP
      Veteran Member
      Posts: 151
      Veteran Member
        The only value that I can set for that is "None". When I F4 in that field, "NT" appears in the select list, but cannot be selected. We do have a number other custom forms, and they are all "None". Also the original I created yesterday worked OK with "None".

        The issue was that AMS has been messing with security on our Dev server. I found that if I manually delete the .hlp, .trm, and .xml files from the map/default folder via a file share, and regenerate, those files can be created, and the new version does display in portal. The regenerate (or a RM in LID) just can't delete them.

        Now I'm back to the original issue. When I enter Company and Employee in the form and click Next, I get a status bar message: "Whole value too large." When I hit next again, I get a pop up error:

        2016-02-04 09:07:17 : Incident 1454605635923-001 An error occurred
        outside of IOS while accessing Lawson Application:
        An error occurred during application processing. Please check
        d:\lawdev\law\system\joblog\lapm.5984 for details.

        That file contains a single line:

        ERROR: Application object could not be started, TEST XH76.1

        I don't know if that's the result of AMS meddling, or if I'm doing something wrong.
        jaherb
        Veteran Member
        Posts: 164
        Veteran Member
          Since you are running on a NT server.. when that value appears press the "Home" key to select it and then save it, Recompile and try again. I only have one value that is Unix, since I am on a Unix box
          mikeP
          Veteran Member
          Posts: 151
          Veteran Member
            I forgot about the Home key thing, we need to do that in the "Allow generation for" box too.

            After setting "In production on" to NT, the Generate option was disabled. I did a compile, which didn't change the program's files in ...map/default. But, If I understand things correctly, scrgen just creates the files used to display the program's screen IO.

            I deleted them manually and recreated them using scrgen, but the error persists.

            Can you tell me where the object code is created when a program is compiled, so I can see if they are being updated?

            Also, what does the "In production on" setting really do? It's still set to None in our other forms that run properly in portal.

            Thanks!
            Greg Moeller
            Veteran Member
            Posts: 1498
            Veteran Member
              From everything that I can determine, the "In production on" setting allows you to do a ProductLine copy and have it automatically included. Once the form is properly compiled, I'm not sure it has any other effect(s).
              The object code is in %LAWDIR%\productline\obj directory structure..
              John Henley
              Senior Member
              Posts: 3348
              Senior Member
                If production in = None, program will not be compiled via cobcmp or patchcompile.
                if production in <> None, program will be compiled.

                'in production' also locks/unlocks the program code from being re-generated via 'paint screen'.
                In other words, if you use 'paint' to create a form, generate the COBOL, modify the COBOL, then you need to change 'in production' to NT/Unix, etc. to prevent yourself from regenerating over your modifications (unless you want to).
                Thanks for using the LawsonGuru.com forums!
                John
                You are not authorized to post a reply.