Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Generate Form Fields from a different LinksSQL Instance

Quote Reply
Generate Form Fields from a different LinksSQL Instance
Heya all,

A while ago I asked how to automatically generate dropdown or form fields from your DB. Alex came up with some code that works fine for generating this from the tables the local LinksSQL installation. (See that post here)

I have 4 installations of LinksSQL and would like to generate form fields in the one install from DB values in the tables of another. Both instances of LinksSQL is on the same domain.

In other words, I have a Gear Review db with all the brands of gear listed in DB1. In DB2 is a Stolen Gear db and I'd like to automatically generate a dropdown of all the possible gear brands from DB1 for them to choose from when they list a stolen item.

Here's the piece of code Alex wrote to generate it from the local DB:

Quote:
So let's assume we are dealign with the Status field in the User table which has values 'Not Validated', .., 'Administrator'. We want to build a select list out of this now. I think this would be the quickest way:
Code:
sub {
my $html = $DB->html ( ['Users'], $IN );
return $html->select ( { name => 'Status', value => 'Default' }); }

Any ideas on how to modify this to do what I described above? Smile

Safe swoops
Sangiro
Subject Author Views Date
Thread Generate Form Fields from a different LinksSQL Instance sangiro 8254 Oct 18, 2002, 6:25 AM
Thread Re: [sangiro] Generate Form Fields from a different LinksSQL Instance
sangiro 8099 Nov 4, 2002, 3:33 AM
Thread Re: [sangiro] Generate Form Fields from a different LinksSQL Instance
sangiro 8015 Mar 23, 2003, 1:14 PM
Thread Re: [sangiro] Generate Form Fields from a different LinksSQL Instance
Paul 8028 Mar 23, 2003, 1:45 PM
Thread Re: [Paul] Generate Form Fields from a different LinksSQL Instance
sangiro 8034 Mar 23, 2003, 2:49 PM
Thread Re: [sangiro] Generate Form Fields from a different LinksSQL Instance
pugdog 8040 Mar 23, 2003, 7:43 PM
Thread Re: [pugdog] Generate Form Fields from a different LinksSQL Instance
sangiro 7961 Mar 25, 2003, 3:58 PM
Thread Re: [sangiro] Generate Form Fields from a different LinksSQL Instance
Paul 8005 Mar 25, 2003, 4:44 PM
Thread Re: [Paul] Generate Form Fields from a different LinksSQL Instance
pugdog 7948 Mar 26, 2003, 1:53 AM
Thread Re: [pugdog] Generate Form Fields from a different LinksSQL Instance
Paul 7997 Mar 26, 2003, 2:33 AM
Post Re: [Paul] Generate Form Fields from a different LinksSQL Instance
pugdog 7946 Mar 26, 2003, 4:47 PM
Thread Re: [sangiro] Generate Form Fields from a different LinksSQL Instance
Alex 7910 Apr 10, 2003, 11:04 AM
Thread Re: [Alex] Generate Form Fields from a different LinksSQL Instance
webmaster33 7933 Apr 10, 2003, 4:59 PM
Thread Re: [webmaster33] Generate Form Fields from a different LinksSQL Instance
Alex 7883 Apr 11, 2003, 9:23 AM
Thread Re: [Alex] Generate Form Fields from a different LinksSQL Instance
webmaster33 7939 Apr 11, 2003, 9:41 AM
Thread Re: [webmaster33] Generate Form Fields from a different LinksSQL Instance
Alex 7892 Apr 11, 2003, 9:48 AM
Post Re: [Alex] Generate Form Fields from a different LinksSQL Instance
webmaster33 7882 Apr 11, 2003, 10:07 AM
Thread Re: [Alex] Generate Form Fields from a different LinksSQL Instance
pugdog 7865 Apr 13, 2003, 9:04 PM
Post Re: [pugdog] Generate Form Fields from a different LinksSQL Instance
sangiro 7774 Oct 26, 2003, 5:43 PM
Thread Re: [sangiro] Generate Form Fields from a different LinksSQL Instance
kamalrajm 7635 Feb 11, 2005, 4:42 AM
Thread Re: [kamalrajm] Instances of LinksSQL for 2 users
kamalrajm 7622 Feb 17, 2005, 11:47 PM
Thread Re: [kamalrajm] Instances of LinksSQL for 2 users
webmaster33 7653 Feb 18, 2005, 12:23 AM
Thread Re: [webmaster33] Instances of LinksSQL for 2 users
kamalrajm 7619 Feb 18, 2005, 3:01 AM
Post Re: [kamalrajm] Instances of LinksSQL for 2 users
webmaster33 7601 Feb 18, 2005, 3:20 AM