1
0
-1

Hi Everybody

I'm developing a simple JMS consumer plugin in JOGET exploiting the AuditTrailPlugin superclass that allows a plugin to work in background. Now I'm facing a problem. When a specific event triggers my plugin, I have to start a process and compile a form. From what I understand, a form is simply an interface usable only by the UI that simplifies the creation of a datalist in the DB, so a plugin cannot compile a form directly, but have to write a row in the datalist. 

So here is my problem:  how can I obtain a model object from the datalist structure (with getter/setters) in order to write a new row?  At the moment I instantiate a ForwRow and use the .setProperty method to set values of the columns given the id, but it's not the best approach, since I could modify columns ids or structure later! 

Thanks in advance, any advice will be appreciated

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi, I do not think there are specific model classes, and you are meant to use a generic FormRow object. If you need to obtain the columns and definition of the datalist, you could try using the DataListService.

      1. Francesco

        Thank you for your response. 

        So for example, If I have to simulate the compilation of a repeated subform,seen as a JSON array in the datalist  , there is no way to handle possible changes in the subform (add,remove, change id of fields), exploiting the strong typing of Java as a validation for the fields?

      CommentAdd your comment...