Fwd: [PEAR] CrossLinks?

From: Date: Sun, 24 Oct 2004 19:54:49 +0000
Subject: Fwd: [PEAR] CrossLinks?
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15083@lists.php.net to get a copy of this message
---------- Forwarded message ---------- From: Justin Patrin <papercrane@gmail.com> Date: Sun, 24 Oct 2004 02:23:12 -0700 Subject: Re: [PEAR] CrossLinks? To: Ken Restivo <ken@restivo.org> On Sun, 24 Oct 2004 00:41:05 -0700, Ken Restivo <ken@restivo.org> wrote: > On Sun, Oct 24, 2004 at 12:11:40AM -0700, Justin Patrin wrote: > > On Sun, 24 Oct 2004 00:00:15 -0700, Ken Restivo <ken@restivo.org> wrote: > > > > > > Can someone point me to a screen shot of what a "crosslink" and a > > > "triplelink" field in FormBuilder is supposed to look like when rendered? I'm reading > > > the docs, and not getting any clues. A picture is worth a thousand words ;-). > > > > > > > Crosslinks show up as a column of checkboxes. > > > > Triplelinks show up as a table of checkboxes. > > > > Just set some up. ;-) > > > > Well, I tried, and they're not working, and frantically panicked way behind a deadline, > and don't have time to jack with them, and I was never any good at word problems. If I can see > it, I can understand it. Well, if you'd give some code, what it should do, and what's wrong, it would help. > > I suspect they may be useful for my app, but I can't tell. Maybe they do what I'm > banging my head against the wall trying to do, but I don't know, since I don't know what > they look like. > > A table of checkboxes. > > Anything else? Just checkboxes? What values are in the checkboxes? What text gets displayed? If > I have 1000 rows in the table I link to, does it show 1000 checkboxes? Does it page them in any way > (looks like not, I see calls to HTML_Table but not Pager). Yes, it always shows all options. > > The fields I might want to try as checkboxes are already defined as $fb_linkFields. Do I have > to remove them from $fb_linkFields before the crosslinks work? Well, for cross and triplelinks, the fields should be set as links in the intermediate table. Then the intermediate table has to be set up as a cross or triple link in the DO of the table whose form you want them to show up in. For example, if you're connecting people to groups, you make an intermediate table and set it up as a crosslink in either or both of the person and group tables. > > Really man, cut me a break. Screenshot please ;-) > http://www.reversefold.com/PEAR/crossLink.png Links the "Media" table to the "Music" table. You *must* have an intermediate linking table (check the docs). http://www.reversefold.com/PEAR/tripleLink.png Links the "Media" table to the "Language" and "Format" tables. Again, you *must* have an intermediate table. -- paperCrane --Justin Patrin-- -- paperCrane --Justin Patrin--

« previous php.pear.general (#15083) next »