As said above, there is no way to know just what columns are showing. Why do you need to know that, when you have access to all the fields?
I was thinking about a combo-box which gives the list populated only by visible column names. Can we read visible column names from a layout grid data file?
but there is no specific access to just the list of columns in the current grid layout, even because what changes when the script edits the metadata is the metadata stored in the DB
Please correct me if I'm wrong, but columns in PDFe are PDF object metadata fields (excluding: F,FS,AN,FP,DL,DS,FD,NP) appended with the Custom fields and
listed in the order of their creation? And if (saved) layout grids simply toggle their visibility then custom grid layout lists those columns which are real DB
fields - in other words, removing a custom field removes its column from all the grid layouts at the same time?
You will find the implementation of the FileSummary object under the sample libraries, "File Summary Info" script.
Honestly, I still can't get my head around this... I need something like this:
var rowId = 0; // that's PDF file entry in the grid
var columnId = 1; // that's field (column) entry
// get the db metadata entry value
var value = pdfe.SelectedFiles(rowId).Metadata.Item(columnId);
pdfe.echo(value);
Could you help me a little with this?
P.S. try editing current grid layout while having deleted all custom fields
here be dragons.