Sales Question?
Welcome, Guest
  • Page:
  • 1

TOPIC: related Select

related Select 1 year, 2 months ago #70052

In the example SELECT country the second list generated from an array, how to do it so that the list was formed from the database
  • Spot
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0

Re: related Select 1 year, 2 months ago #70283

Hello,

please have a look in the knowledge base, there are tutorials about it :

crosstec.de/support/index.php?pid=knowle...wentclient&id=52

Regards,
Syno
  • Syno
  • OFFLINE
  • Administrator
  • Posts: 2227
  • Karma: 0
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: related Select 1 year, 2 months ago #70380

I am creating a form in easy mode, then add the element 'Select from list'. Where to add the script:
 $this->execPieceByName('ff_InitLib');

 $out = '1;--Please select--;none\nr';
 $db = JFactory::getDBO();
 $db->setQuery("SELECT id,name FROM #__mycomponent");
 $contents = $db->loadObjectList();
 foreach( $contents As $content ){
 $out .= "0;{$content->name};{$content->id}\n";
 }
 return $out;

 function ff_setSelectList($name, $value) 
 {
   global $ff_processor;
   for ($r = 0; $r < $ff_processor->rowcount; $r++) {
     $row =& $ff_processor->rows[$r];
     if ($row->name==$name)
       $row->data2 = $value;
     unset($row);
   } // for
 } // ff_setSelectList

 ff_setSelectList('selCity', $out);
  • Spot
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.30 seconds

Flatrate Membership: Professional Subscription

Get lifetime access to all of our products and 1 year of professional support -- for just $199 USD. No limits on domains!. Includes all of our current and future Joomla!® extensions, WordPress® plugins and Joomla!® templates.

Get it from here

Recurring Customer Discount - 50% Off!

Get a 50% discount on our Professional Subscription if you have been purchasing a subscription from us in the past -- no matter when. The Professional Subscription includes all of our current and future Joomla!® extensions, WordPress® plugins and Joomla!® templates.

How to receive the discount:

  • Purchase a basic 1-Year Subscription from here.
  • Send us a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and proof of your old purchase.
  • We will then upgrade your account to the Professional Subscription.

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our 1-Year Basic or Professional Subscription plans.

How to receive the discount:

  • Send us a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with a proof of purchase (for example a paypal receipt).
  • Await payment instructions and enjoy your membership!

About

Crosstec GmbH & Co. KG

Hohenzollernring 57

50672 Cologne, Germany

Imprint