Jane That helps a lot. I had tried copying some of your original code but I'd use the wrong terminology. At least now I can compare 2 similar plugins and see what effect the differences make. Is there a list of the different Function calls (ie to inbuilt FH functions) ?? Also, is there a "User Help Manual" document that brings all the Plugin "stuff" together in one document or is it primarily in the various Help parts. Again, thanks Brian On 23/05/2014 09:12, Jane Taubman wrote: > On 23 May 2014 08:56, Brian Horridge <[email protected]> wrote: > >> so I need to study this code and other >> plugin examples to find the right words / functions to use. >> > > Hi Bill, > > With the Columns it's fairly easy. > > This lines defines the column > tblResults.recordid1 = {title='Record Id', width=60} > > To get the record ID you can use the fhGetRecordId > and add a line to add the value in eg > > tblResults.recordid1:set(fhGetRecordId(pi)) > > For the Father the easiest way is to use fhGetItemPtr > tblResults.father1:set(fhGetItemPtr(pi,'~.~FATH>')) > > > ( I have added the column to my copy so if you grab it again you can see > what I added.
On 23 May 2014 09:45, Brian Horridge <[email protected]> wrote: > Is there a list of the different Function calls (ie to inbuilt FH > functions) ?? Also, is there a "User Help Manual" document that brings > all the Plugin "stuff" together in one document or is it primarily in > the various Help parts. > Yes, have you found the Plugin Help (under the More button), all the FH functions for Lua and the Objects are detailed there. In addition there is a link to the plain Lua documentation. Also don't miss the code snippets in the FHUG plugins section. If you check out the How to write plugins section of the help it does a simple introduction so you can understand the Obiject pointers. -- Jane. Jane Taubman | www.rjt.org.uk | www.taubman.org.uk |www.fhug.org.uk