I have two datasources:
TABLE1
TABLE2
I set a listgrid's datasource as TABLE2 with the criteria filtering on the TABLE1.id which shows what I want BUT the issue is when I want to add an entry no entry ID is supplied (I am assuming as no relationship is being found - how can I make this work?).
Secondly I am trying to perform the following:
This does not work and return null yet when I use this on the server side it works?
Please could someone help I have been stuck with this issue for a number of days.
Thank you.
TABLE1
Code:
<fields> <field primaryKey="true" name="id" type="sequence"></field> <field name="amount" type="integer"></field> <field name="createDatetime" type="datetime"></field> <field name="userID" type="integer"></field> </fields>
TABLE2
Code:
<fields> <field primaryKey="true" name="id" type="sequence"></field> <field nativeFK="TABLE1.id" name="entryID" type="integer"></field> <field name="amount" type="integer"></field> <field name="createDatetime" type="datetime"></field> <field name="userID" type="integer"></field> </fields>
Secondly I am trying to perform the following:
Code:
<field name="userID" type="integer" value="$session.userId">
Code:
HttpServletRequest request request.getSession().getAttribute("userId")
Thank you.
Comment