[symfony-users] sfWidgetFormDoctrineChoice problem

2010-08-25 Thread Andro Fumero
Hi there,


Does anyone tried to limit the result of dropdown to only 1? or atleast just 
keep the dropdown hidden with selected value?

I already set the id of the following dropdown, and i dont need to show other 
choices anymore.

 public function executeNew(sfWebRequest $request)
  {
  $detail = new Companyproductdetail();
 $detail-setCompany_Info_Id($request-getParameter('com_id'));
  $this-form = new companyproductdetailForm($detail);
  }
The selected Id should now be the only one to show..

any help would be great.

Thanks


  

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sfWidgetFormDoctrineChoice problem

2010-08-25 Thread Gustavo Adrian
The dropdown must show every available choice, regardless an option is
already selected or not (What would you do if you need to update an item and
you want to change that value?). If you need to show only the option
selected, you could change the table method used by the widget to change the
list of choices to only the one is selected (in case an ID is set by default
and you need to show only that value). Or change it to a hidden field. In
both cases you could use an option on the form to select which widget to
use.


Cheers.

On Wed, Aug 25, 2010 at 6:16 AM, Andro Fumero fugitive...@yahoo.com wrote:

 Hi there,

 Does anyone tried to limit the result of dropdown to only 1? or atleast
 just keep the dropdown hidden with selected value?

 I already set the id of the following dropdown, and i dont need to show
 other choices anymore.

  public function executeNew(sfWebRequest $request)
   {
   $detail = new Companyproductdetail();
  $detail-setCompany_Info_Id($request-getParameter('com_id'));
   $this-form = new companyproductdetailForm($detail);
   }
 The selected Id should now be the only one to show..

 any help would be great.

 Thanks


  --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.com

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sfWidgetFormDoctrineChoice problem

2010-08-24 Thread Andro Fumero
Hi there,

Does anyone tried to limit the result of dropdown to only 1? or atleast just 
keep the dropdown hidden with selected value?

I already set the id of the following dropdown, and i dont need to show other 
choices anymore.

 public function executeNew(sfWebRequest $request)
  {
  $detail = new Companyproductdetail();
 $detail-setCompany_Info_Id($request-getParameter('com_id'));
  $this-form = new companyproductdetailForm($detail);
  }
The selected Id should now be the only one to show..

any help would be great.

Thanks



  

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sfWidgetFormDoctrineChoice problem

2010-04-27 Thread Andro Fumero

This is from users BaseForm.

'profileid' = new sfWidgetFormDoctrineChoice(array('model' = 
$this-getRelatedModelName('Profile'), 'add_empty' = false)),

its displaying the Description column of my profile table.

how can i display the profile column in my Profile table ?

Can any one.?

Thanks  in Advance



  

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en