Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Access non key data from parent table
Re: Access non key data from parent table [message #1636 is a reply to message #1635] Thu, 11 September 2008 13:36 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2355
Registered: April 2006
Location: Surrey, UK
Senior Member
The selection from the INNER entity is passed to the child task via the $selection string, which can be customised using the _cm_getPkeyNames() method. The $where string is also extracted from the same object and passed in the $where string, which can be customised using the _cm_getWhere() method. If no selection is made then $selection will be set to $where.

You therefore need to put some code in the _cm_getWhere() method if you are not making any selections from the INNER entity.

I have tried navigating from a LIST2 to a ADD4 and I see the $where string correctly passed to the ADD4 task where it is passed to the initialise() and _cm_initialise() methods. It is still there when it is passed to the getInitialDataMultiple() method, but is converted into an associative array before being passed to the _cm_getInitialDataMultiple() method. There is nothing in the standard code which loses the contents of $where. Where does it happen in your code?


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Display combined fields on Output3 report
Next Topic: Using UPD4 to process emails
Goto Forum:
  


Current Time: Thu Aug 08 05:16:16 EDT 2024

Total time taken to generate the page: 0.00994 seconds