The component will be blind to the table(s) of the host. So, the solution that I think (i haven't coded this part yet) will work is:
(Component Method) // Export_All //$1 - pointer - to a pointer array where each element // of the array points to a Host table to be exported //$2 - text - export format (tab, csv, xml, 4D record etc) //RETURNS - text - error message(s) if failure From this I can specify the table(s) to be exported in the host, 1 or all or somewhere between, and I get a general export system rather then all or nothing. > Chip, > > Of course if you want access to a specific table you can just do this: > > C_POINTER(<>TSK_TaskTable_ptr;<>TSK_ID_ptr;<>TSK_Name_ptr) > > EXECUTE FORMULA("<>TSK_Name_ptr:=->[Task]") > EXECUTE FORMULA("<>TSK_ID_ptr:=->[Task]ID") > EXECUTE FORMULA("<>TSK_Name_ptr:=->[Task]Name") > > > > Regards, > > Wayne > > > [image: --] > Wayne Stewart > [image: http://]about.me/waynestewart > <http://about.me/waynestewart> > > > On 29 April 2017 at 05:10, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >> ok - >> Thanks >> >> I think I know how to do this. >> The Export_All method will require a single parameter which (a pointer >> to) is an array of pointers to the host tables to be exported. >> >> Then the host can control the export by only sending those tables which >> need to be exported >> and the component will have the needed access to the Host >> structure/tables >> >> Thanks >> Chip >> On Fri, 28 Apr 2017 12:00:40 -0700, Kirk Brooks via 4D_Tech wrote: >>> Chip, >>> No. But you can pass a pointer to a table and within the component build >> a >>> pointer array of the fields. >>> >>> On Fri, Apr 28, 2017 at 11:22 AM, Chip Scheide via 4D_Tech < >>> 4d_tech@lists.4d.com> wrote: >>> >>>> Is it possible to get access to host tables without a pointer to the >>>> table? >>>> >>>> One of the methods I wold like to "componetize" is a routine that >>>> exports ALL the data in the system. >>>> I know I can expose a method which exports a single table (with a >>>> pointer to the host table), but i would like to be able to just make >>>> one call. >>>> >>>> Thanks >>>> Chip >>>> --------------- >>>> Gas is for washing parts >>>> Alcohol is for drinkin' >>>> Nitromethane is for racing >>>> ********************************************************************** >>>> 4D Internet Users Group (4D iNUG) >>>> FAQ: http://lists.4d.com/faqnug.html >>>> Archive: http://lists.4d.com/archives.html >>>> Options: http://lists.4d.com/mailman/options/4d_tech >>>> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >>>> ********************************************************************** >>> >>> >>> >>> >>> -- >>> Kirk Brooks >>> San Francisco, CA >>> ======================= >>> >>> *The only thing necessary for the triumph of evil is for good men to do >>> nothing.* >>> >>> *- Edmund Burke* >>> ********************************************************************** >>> 4D Internet Users Group (4D iNUG) >>> FAQ: http://lists.4d.com/faqnug.html >>> Archive: http://lists.4d.com/archives.html >>> Options: http://lists.4d.com/mailman/options/4d_tech >>> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >>> ********************************************************************** >> --------------- >> Gas is for washing parts >> Alcohol is for drinkin' >> Nitromethane is for racing >> ********************************************************************** >> 4D Internet Users Group (4D iNUG) >> FAQ: http://lists.4d.com/faqnug.html >> Archive: http://lists.4d.com/archives.html >> Options: http://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> ********************************************************************** >> > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** ------------ Hell is other people Jean-Paul Sartre ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************