Interesting Miyako, but that only tells me I have a relation attribute and that relation’s name. It does not tell me if it is a relations between A and B, or A and C. Is there a way to get that?
And there is one key member function missing that tells me to which Table an Entity or Entity Selection belongs to. cheers, julio > On Jul 31, 2018, at 3:17 AM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > or, DA. > > C_COLLECTION($one;$many) > > $one:=New collection > $many:=New collection > > For each ($attribute;ds.Table_1) > > $kind:=ds.Table_1[$attribute].kind > > Case of > : ($kind="storage") > > > : ($kind="relatedEntity") > $one.push($attribute) > > : ($kind="relatedEntities") > $many.push($attribute) > > End case > > End for each > > http://doc.4d.com/4Dv17/4D/17/dataClassAttributekind.303-3777559.en.html > >> 2018/07/31 6:07、Julio Carneiro via 4D_Tech <4d_tech@lists.4d.com>のメール: >> As a thank you for the tip, here is some code to get a Relation name, given >> 2 related tables… > > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** -- Julio Carneiro jjfo...@gmail.com ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************