Form Source Code

 10 Replies
 0 Subscribed to this topic
 11 Subscribed to this forum
Sort:
Author
Messages
Matthew Nye
Veteran Member
Posts: 514
Veteran Member
    I need to see the source code of an LSO 10 form. Where would I find that?
    If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
    JimMNH
    Veteran Member
    Posts: 60
    Veteran Member
      The way I understand it .. you won't. You can personalize a form and put script in it but there is no practical way to get at it and update the source.
      JimMNH
      Veteran Member
      Posts: 60
      Veteran Member
        Actually John Henley told me "You would need to create a new form from scratch in the environment in order to expose it all the way through to LSO. The starting point in the environment is pgmdef, where you define the program, adding it to a product line, system code, etc. That is what gives it the look-and-feel of a standard Lawson S3 form."  You also need Mashup Designer.  So I don't consider this practical.
        Matthew Nye
        Veteran Member
        Posts: 514
        Veteran Member
          Yup, I understood the thread about adding a form but I dont want to add a form. I just want to see the source code. I realize its probably in a compiled DLL or other binaries but that shouldnt be a problem. I just need to know the location.
          If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
          John Henley
          Posts: 3353
            Define "source code". What is it that you're trying to accomplish?
            Thanks for using the LawsonGuru.com forums!
            John
            Matthew Nye
            Veteran Member
            Posts: 514
            Veteran Member
              I need to discover the methods, events and properties in an LSO form that are not documented in order to perfect an LSO script. I've gleaned all that I can using SnoopWPF and it's obvious there is some additional calls that im not seeing. The hope is that the soure file will contain the missing calls that I can hijack in my scripts.
              If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
              Karin
              Veteran Member
              Posts: 57
              Veteran Member
                You can use a tool called Proccess Explorer http://technet.microsoft....rnals/bb896653.aspx, in order to see all dlls loaded by a process.

                It will give you a list of dlls and their location. But I don't think it will help you. LSO contains a number of dlls and a very large set of classes. Considering the way a form is rendered automatically from it's definition I don't think finding methods and events will be easy.

                What do you want to do? Since I'm on the LSO development team I might know if there is a public API.
                Regards Karin http://smartofficeblog.com
                Matthew Nye
                Veteran Member
                Posts: 514
                Veteran Member
                  Karin,

                  Thanks, I've actually been using a lot of your blog posts as a basis for my work so thanks for that.

                  Specifically I've added a field to a subordinate grid on a form. On focus of a standard element the rows are moved above or below the subordinate grid depending on the position. I am able to get my custom element to do the same by moving focus to a standard element. However by doing this, the user is unable to enter data.

                  So basically, I need to know what event forces the movement of the lines n a subordinate grid In a form.
                  If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
                  Karin
                  Veteran Member
                  Posts: 57
                  Veteran Member
                    Matthew,
                    I do mostly framework stuff. I'll check with the S3 developers. Can you give me a form url with this behavior?
                    What if you move focus to a standard element but after that you dispatch to the UI thread to set focus back to your element. Would that work? We have util method called FocusAsync() or SetFocusAsync() that will do the dispatch but I don't remember the namespace. It is an extension method.

                    Or just dispatch the last set focus call on a rather low priority.

                    Regards
                    Karin
                    http://lawsonsmartoffice.com
                    Regards Karin http://smartofficeblog.com
                    Matthew Nye
                    Veteran Member
                    Posts: 514
                    Veteran Member
                      Karin,
                      Thanks for these tips. I'll look Ito it and report back. For reference though I'm working with MA43.

                      Have a good weekend.
                      If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
                      Karin
                      Veteran Member
                      Posts: 57
                      Veteran Member
                        Hi,
                        I asked around and this is what I found out.

                        "the rows are moved above or below the subordinate grid"

                        Not true– each row has its own complete set of fields/controls.

                        What is happening is that on a change of row, the subordinate tab (grid?) is hidden on the previous row and shown on the current row.

                        "what event forces the movement of the lines n a subordinate grid In a form"
                        There is no event exposed to scripting.

                        Working with detail areas is complex and working the detail areas that have subordinatetabs even more so.

                        For that reason, we have not thus far supported adding fields to detail areas viascripting.

                        I know that does not help you much but it seems its very complex. I can think of adding a handler to check for lostkeyboard focus, and adding a handler for all events, including the handled events as well, working with the visual tree to locate the different areas but I think it is probably too complex to get good code quality in the script due to the complexity and the lack of debug support.

                        Regards
                        Karin
                        Regards Karin http://smartofficeblog.com