Noha Eshra wrote:Actually if you follow the instructions mentioned it will show the field in the table view as long as you didn't choose to hide it in AppGini.
In case you want to hide it in the detail view, you could add jquery code in tablename_dv.js to hide the desired field as explained in the course lecture 25 .
Noha, again, a field not in AppGini. I don't want to AppGini to modify my table structure just because I need to show a value in one place. I saw the course, 28, and the complete course 5 times. But course don't helps on Table View customization.
I want to show a field from other table, related to the actual table being shown, or a fixed value, or whatever, but on a new column, created by code from hooks, but I don't want to modify my database structure.
Another example, I have a billing table, and I have my table view for this table, all ok. Now, for each bill I have to lookup on other table for some value, and return this value on a new column, for every record (not a real example, just to know if if it's a better explanation).
AppGini generation creates columns for the actual table, and/or with lookups to show values from other table, always if this field exists, but this field don't exists and I don't want to exists.
I don't want to create this table because is unnecesary information I just want to show in one place, and I don't want this field in my table.
I don't want to modify template or something like this, because I don't want to be worried if my changes will be override on some code generation from AppGini, for this reason, I want to do it from hooks. It's suppose this can be do it modifying $options datalist, but, how?
On the sample I provided, in the first post, I have a table, with a field with a lookup. For this reason, I have a JOIN in the query. Just to try if it works, I tried, to add a field that actually is related because JOIN, adding this field manually to QueryFieldsTV as Ahmad suggested me, but any new column was shown.
Then, I tried with the steps in next screens (for this reason I have 4 or 5 lines of code, adding the field to different options), and finnally I get a new column on my table_view, but without any value.