Closed GoogleCodeExporter closed 9 years ago
Hi,
This is for view record details?
Maybe something like this would help:
$grid->setViewDetail(true);
$grid->setFieldsForDetailView(array('id','name','country'));
And using the same layout from the form.
???!!!
Best Regards,
Bento Vilas Boas
Original comment by pao.fre...@gmail.com
on 14 Feb 2010 at 6:19
Yes, just that. The same form, just disable submitting it.
Original comment by vlatko.b...@gmail.com
on 14 Feb 2010 at 6:28
I wasn't aware you already implemented this. You really are fast and productive.
66% works nice. View action/icon is displayed, clicking it displays the
detailed Form
with readonly (just text) fields, however, the return link is not working.
Return link looks like this:
http://.../site/index/gridDetailcountries_zfGrid/1
As I figured out, $this->_getPkFromUrl() can't handle this URL, returns false,
at
select ends up with empty where (i.e. WHERE() )
The example application runs correctly, but it hasn't got the GridID set.
When you set it, (i.e. $grid = $this->grid('countries_zfGrid');)
the same happens.
http://localhost/zfDatagrid/site/basic
Original comment by vlatko.b...@gmail.com
on 15 Feb 2010 at 8:35
Hi,
When running it on table with reference fields, and I'm getting error
- Mysqli prepare error: Column 'id' in where clause is ambiguous
The "normal" Form works, but View Form does not. I think table reference is
missing.
Simple Grid with no reference fields displays correctly, but Return still not
working.
Original comment by vlatko.b...@gmail.com
on 16 Feb 2010 at 8:48
Hi,
Please check now.
Revision 615
Best Regards,
Bento Vilas Boas
Original comment by pao.fre...@gmail.com
on 16 Feb 2010 at 5:07
Hi,
1. New: I'm getting Notice when displaying Grid:
Notice: Undefined index: add in C:\...\Bvb\Grid\Deploy\Table.php on line 1666
The line does looks strange. ;-)
The above displays only for View, not for Form (Edit)
2. the Return link is still
http://.../site/basic/gridDetailaddressbook_zfGrid/1
and that causes
Mysqli prepare error: You have an error in your SQL syntax; check the manual
that
corresponds to your MySQL server version for the right syntax to use near ')'
at line 3
Original comment by vlatko.b...@gmail.com
on 16 Feb 2010 at 7:05
Hi,
Any changes?
Made some changes that may have interfered...
About the URL, The only thing I do is remove the gridDetail and comm params.
I'm not
setting the base HTTP_HOST...
Best Regards,
Bento Vilas Boas
Original comment by pao.fre...@gmail.com
on 17 Feb 2010 at 2:12
Hi,
No changes.
1. Still occurs.
2. I was trying to simplify the URL. The base URL is correct, but the
gridDetail is
not removed.
Now: http://localhost/site/basic/gridDetailaddressbook_zfGrid/1
Should be: http://localhost/site/basic/
This happens only if gridID is set.
In example app, in basicAction change first line to
$grid = $this->grid('someGridId');
Original comment by vlatko.b...@gmail.com
on 17 Feb 2010 at 6:20
Hi,
Figured out.
:)
Revision 626
thanks
Best Regards,
Bento Vilas Boas
Original comment by pao.fre...@gmail.com
on 17 Feb 2010 at 4:35
Hi,
the Return URL is fixed, :-)
but I'm still getting Notice from Comment 6 above, but the line is 1726 now.
Original comment by vlatko.b...@gmail.com
on 17 Feb 2010 at 4:46
Hi,
Can you check now.
And if the problem persists, please tell me the line again...
Best Regards,
Bento Vilas Boas
Original comment by pao.fre...@gmail.com
on 17 Feb 2010 at 5:03
Solved,
No Notice any more. Tried with Filtered and Paged, works perfectly.
Confirmed and Verified
Original comment by vlatko.b...@gmail.com
on 17 Feb 2010 at 5:08
Original comment by bento.vi...@gmail.com
on 3 Mar 2010 at 4:56
Original issue reported on code.google.com by
vlatko.b...@gmail.com
on 14 Feb 2010 at 6:11