Jump to content


Read view must show options doesn´t values

dropdown read view options values

  • Please log in to reply
3 replies to this topic

#1 fbn

fbn

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationMadeira, Portugal

Posted 09 April 2015 - 03:46 PM

Hi,

 

In my controller i have this:

$crud->field_type('papel', 'dropdown', array('1' => 'Administrador', '2' => 'Operador'));
$crud->field_type('estado', 'dropdown', array('1' => 'Ativado', '0' => 'Desativado'));

In the read view papel field must be Administrador ou Operador and estado field must be Ativado or Desativado.

 

Any suggestions would be great!

Sorry for my english.

 

 

 

Attached Thumbnails

  • database.PNG
  • read view.PNG


#2 fbn

fbn

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationMadeira, Portugal

Posted 09 April 2015 - 10:50 PM

Somebody can help??



#3 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 12 April 2015 - 04:47 AM

Welll this is not set relation .. this is a field type

so it might not have rendered. As for the read to get it in that case - i will recommend a callback - that should do it



#4 fbn

fbn

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationMadeira, Portugal

Posted 17 April 2015 - 09:06 AM

Thanks Amit,

 

Is there any callback for read views in Grocery Crud?







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users