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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
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.
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
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.