Form on a page + related list in a module on same page

jeffry

New Member
Hello,

I had posted a reply to this thread (Form on a page + related list in a module on same page http://fabrikar.com/forums/index.ph...-related-list-in-a-module-on-same-page.29120/), but then realized I am using Fabrik 3.3.3 for Joomla! 3.4.4

I am trying to achieve what was discussed here. I am working with the USDA Nutrient Database for Standard Reference. I have two tables with a common field (___NDB_No). Specifically, a table with foods (FOOD_DES), and a table with nutrient values (NUT_DATA). When viewing a food item, I want to display the nutrient values for that food in the Fabrik List Module. I have tried Rob's code and Suzzi's too. However, I have been unsuccessful in getting this to work. Any guidance would be appreciated.

Db table: FOOD_DES
Form ID: 2
Full Element Name: FOOD_DES___NDB_No

Db table: NUT_DATA
Form ID: 8
Full Element Name: NUT_DATA___Nutr_Val
Full Element Name: NUT_DATA___NDB_No

return JFactory::getSession()->get('com_fabrik.form.8.data')['NUT_DATA___NDB_No_raw'];


$nutrval = JFactory::getSession()->get('com_fabrik.form.8.data');
return $nutrval[NUT_DATA___NDB_No_raw];
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top