Hi,
one possibilty is that you create an additional field (lets call it "
owner") to your table (I use "
jobsplanning" as the table and
id as the pk) in this post.
Make this field read-only in AppGini.
Next you generate your project and after that you edit the jobsplanning_view.php file.
Search for the part
// Fields that can be displayed in the table view
$x->QueryFieldsTV = array(
should be around line 23.
You will see the at the end of the array your new field owner.
Replace the code with the following:
Code: Select all
"IF( CHAR_LENGTH((SELECT memberid from membership_userrecords where pkvalue=jobsplanning.id and tablename='jobsplanning')), CONCAT_WS('', (SELECT memberid from membership_userrecords where pkvalue=jobsplanning.id and tablename='jobsplanning')), '') /* owner */" => "owner"
You can also replace the code in the other arrays:
$x->QueryFieldsCSV = array(
$x->QueryFieldsFilters = array(
$x->QueryFieldsQS = array(
This should to the trick.
Please note that you will no see the information in the detail view of the record.