Menu

interceptor in subform

Help
MisterT
2005-05-01
2013-06-03
  • MisterT

    MisterT - 2005-05-01

    Hi!
    I still have a problem with an interceptor of a table of a subform.

    In the preUpdate() method of my interceptor I only can get the one fieldvalue of the field which is defined in the "childField" attribute of the subforms dbform tag. If I try to get another value of the table using the fieldValues.get().getFieldValue() method, I get a nullpointerexception.

    Is there a restriction for using interceptors in subform tables?

    Thanks in advance + regards T.

     
    • Henner Kollmann

      Henner Kollmann - 2005-05-02

      There is no known restriction for using interceptors in subforms.
      Could you try to reproduce this behaviour with an bookstore based example?

      Then i could help....

      Henner

       
      • MisterT

        MisterT - 2005-05-03

        OK, I will try to reproduce it in the bookstore example.

        But let me know: Should there all fields of the table be available in an interceptor under all conditions via the fieldValues.get("field").getFieldValue() method? If I use the fieldValues.toString() method to dump out all the available data, I only get this:

        FieldValues size: 1; elements are:
        doc_id -   field [doc_id] has value, oldvalue [658, null]

        instead of nine fields, which are defined in the table and the dbforms-config.xml.

        However, I will try it with bookstore too.

        Thanks and regards T.

         
        • Henner Kollmann

          Henner Kollmann - 2005-05-03

          No only field for which do you have defined input fields so that they can be edited by the user are listed in the fieldValues collection.

          Henner

           
    • MisterT

      MisterT - 2005-05-03

      Now I see! This a very important information for me.

      Since it could be an important hint for others too, I suggest, that we put it in the documents. (I could not find anything about it in the manual)

      I thought, that it was a problem, with my embedded subform...

      OK Henner, thanks a lot for your help again!

      best regards T.

       

Log in to post a comment.

MongoDB Logo MongoDB