I have an instance of a BO called Booking open and an html cell with the following....
<a href="#" class="agent_button" onclick="AwareApp.runQuery('Booking Documents','main', null, { objectName: 'Booking', objectId: '<<Booking.ID>>'})">eTickets</a>
The query it calls called Documents has WHERE
Documents.Booking = Booking
If I take the WHERE out then the query is displayed with all records as expected.
If I include the WHERE then no records get displayed. This would indicate that the ObjectName and ObjectId are not being passed to the Query properly.
I have also tried WHERE Documents.Booking.ID = Booking.ID which also does not work.
Can anyone please suggest where the error might be?