⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

read page not showing relations



superdan

superdan
  • profile picture
  • Member

Posted 28 August 2013 - 09:04 AM

Hi there ive found another minor issue:

 

this command in the controller

$this->grocery_crud->change_field_type('IDAGENTEREF','hidden');

dont work anymore ( in the sense that the field remains visibile in read, edit and add )

 

 

IF and only IF  IDAGENTEREF derives from a relation e.g.

$this->grocery_crud->set_relation('IDAGENTEREF','AGENTI','AC_COGNOME');

Thank you for your attention


davidoster

davidoster
  • profile picture
  • Member

Posted 28 August 2013 - 13:06 PM

Hi there ive found another minor issue:

 

this command in the controller

$this->grocery_crud->change_field_type('IDAGENTEREF','hidden');

dont work anymore ( in the sense that the field remains visibile in read, edit and add )

 

 

IF and only IF  IDAGENTEREF derives from a relation e.g.

$this->grocery_crud->set_relation('IDAGENTEREF','AGENTI','AC_COGNOME');

Thank you for your attention

 

 

Check here.


Jefer

Jefer
  • profile picture
  • Member

Posted 28 October 2013 - 05:28 AM

YEP!
IT WORKS!

 

just still one minor ISSUE

 

in this way 

 

hidden fields are visible in read page but they MUST BE HIDDEN!

 

 

 

and also...

 

isnt possibile to personalize columns to show in read page and only in the read page ( i would like to hide some )?

 

 

grat job, thank you so much

 

This happens with invisible fields, too.

 

Can you fix it please? I don't want to use hidden.


Robert

Robert
  • profile picture
  • Member

Posted 28 October 2013 - 07:37 AM

Any tmp fix for this ? I wanted to use hidden fields but i cant atm ....


Robert

Robert
  • profile picture
  • Member

Posted 28 October 2013 - 08:57 AM

I have upgrated to 1.4.2 but it seams there are still problems with read .. if you use :

 

$crud->field_type('judet', 'dropdown', $judete);

 

then at read for the field you see the id not the name .. the edit/add part works good.


Robert

Robert
  • profile picture
  • Member

Posted 28 October 2013 - 13:21 PM

How can it be normal not to use relation with hidden ? this was working perfect in the old versions .. is there a fix for this ?


Racing Chocobo

Racing Chocobo
  • profile picture
  • Member

Posted 14 November 2013 - 01:25 AM

Hi all, is this bug also solved for manually change the field by using dropdown list?

 

I'm trying something like:

$stage = array('Buy', 'Confirm', 'Send', 'Delete');
$crud->field_type('stage', 'dropdown', $stage);

in the add and edit view, it works normally, will change

1 -> Buy

2 -> Confirm

3 -> Send

4 -> Delete

as an select option

 

However in the read view, it just show the origin number (1 or 2 or 3 or 4) instead of the dropdown related value.

Any suggestion about this issue?

Thank you very much


Racing Chocobo

Racing Chocobo
  • profile picture
  • Member

Posted 14 November 2013 - 01:28 AM

Hi all, is this bug also solved for manually change the field by using dropdown list?

 

I'm trying something like:

$stage = array('Buy', 'Confirm', 'Send', 'Delete');
$crud->field_type('stage', 'dropdown', $stage);

in the add and edit view, it works normally, will change 

1 -> Buy

2 -> Confirm

3 -> Send

4 -> Delete

as an select option

 

However in the read view, it just show the origin number (1 or 2 or 3 or 4) instead of the dropdown related value.

Any suggestion about this issue?

Thank you very much


Robert

Robert
  • profile picture
  • Member

Posted 14 November 2013 - 06:47 AM

Read function is still in development .. we will have to wait for 1.4.3 


Robert

Robert
  • profile picture
  • Member

Posted 14 November 2013 - 06:47 AM

Delete this .... (double post)