This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » General discussion » composit views
icon1.gif  composit views [message #41914] Tue, 18 December 2007 05:11 Go to next message
khaleel  is currently offline khaleel
Messages: 33
Registered: December 2007
Member
Hi,
I am just very new to symfony and few months old in PHP. I need a view that has master table grid at the top and detail table under. lets say for example, Projects - Project Tasks,
How do i update the Project tasks grid when user clicks the Project Grid at the Top ?
I hope this is not a silly question Smile
Thanks
Re: composit views [message #41930 is a reply to message #41914 ] Tue, 18 December 2007 10:11 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
It's a very involved question. Had you thought whether you are looking for a JavaScript or server-side solution? Some of the JSext stuff may be suitable for you if the former is what you are after.


Remember Palestine
Re: composit views [message #41958 is a reply to message #41930 ] Tue, 18 December 2007 14:04 Go to previous messageGo to next message
khaleel  is currently offline khaleel
Messages: 33
Registered: December 2007
Member
i am now looking at sfExtjs2Plugin, haven't YET seen how to do so, am still looking. master/detail Ajax , if i can find it will be great.
Re: composit views [message #41978 is a reply to message #41958 ] Tue, 18 December 2007 18:18 Go to previous messageGo to next message
khaleel  is currently offline khaleel
Messages: 33
Registered: December 2007
Member
attached is the view i like to make, top grid selections changes bottom view. any help would be great Smile

  • Attachment: composit.JPG
    (Size: 42.60KB, Downloaded 187 time(s))

Re: composit views [message #41982 is a reply to message #41914 ] Tue, 18 December 2007 18:55 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Yep, that looks like a JavaScript thing. How to use those libraries is way more than anyone can answer in a single post. Why not download one of the plugins and have a play? Ext and YUI are good places to start:

http://trac.symfony-project.com/wiki/SymfonyPlugins#Javascri pt


Remember Palestine
Re: composit views [message #42011 is a reply to message #41982 ] Wed, 19 December 2007 10:08 Go to previous messageGo to next message
lvanderree  is currently offline lvanderree
Messages: 652
Registered: June 2007
Location: Netherlands
Faithful Member
Hi I've implemented something like this.

see:
http://fun4me.demon.nl/test/test_dev.php/country_cities

This is a master-detail view on countries and cities, made from the generator. The only, but big, difference is, that I combine master and detail classes in one grid.
Having two grids isn't impossible, but currently not automatically generated by my generator. If you want to be able to generate it from the generator, it would require significant changes to probably _list_ajax_layout.php and _list_ajax_gridpanel in my plugin (sfExtjsThemePlugin).
to see how you can make the two grids interact, please take a look at
http://extjs.com/learn/Tutorial:Linked_Combos_Tutorial_for_E xt_2
I Think that can help you on your way.

It would be a nice feature for in the future for my plugin, so I add it to my todolist in trac


Leon
Re: composit views [message #42028 is a reply to message #42011 ] Wed, 19 December 2007 13:29 Go to previous messageGo to next message
khaleel  is currently offline khaleel
Messages: 33
Registered: December 2007
Member
Great,
I will look at both the links and try to get this working. hmmm. i have been at this for hours now Smile
Yeah this feature will be be great for Enterprise Apps.

Looking forward to your plugin ; thanx
Re: composit views [message #42034 is a reply to message #42028 ] Wed, 19 December 2007 14:05 Go to previous messageGo to next message
lvanderree  is currently offline lvanderree
Messages: 652
Registered: June 2007
Location: Netherlands
Faithful Member
I don't think it will be very hard, if you patch my plugin, making it possible to generate the grid twice by reusing the _list_ajax_gridpanel twice from the _list_ajax_layout template.

You need to alter _list_ajax_gridpanel, so it can accept two keys from your the generator.yml file (list.display and list.detail.display or something).

And you want to edit _list_ajax_layout to not only load this template twice, with the two different keys, but also make the connection between the two grids, like provided in the extjs example.

Good Luck


Leon
Re: composit views [message #42061 is a reply to message #42034 ] Wed, 19 December 2007 19:49 Go to previous messageGo to next message
khaleel  is currently offline khaleel
Messages: 33
Registered: December 2007
Member
very true, i am making a lot of progress, with
list_ajax_layout + list_ajax_gridpanel
now i have two grids, am now trying to get the list_ajax_store to work.

THANKS for your sujestions.
Re: composit views [message #42082 is a reply to message #42061 ] Thu, 20 December 2007 09:44 Go to previous messageGo to next message
lvanderree  is currently offline lvanderree
Messages: 652
Registered: June 2007
Location: Netherlands
Faithful Member
Nice,

I am very interested in your result, please show it to us when you are finished.

and if you have any problems please say so


Leon
Re: composit views [message #43262 is a reply to message #42082 ] Fri, 11 January 2008 18:19 Go to previous messageGo to next message
sfxpt  is currently offline sfxpt
Messages: 339
Registered: January 2007
Location: Canada
Faithful Member
lvanderree wrote on Thu, 20 December 2007 03:44

I am very interested in your result, please show it to us when you are finished.


Me too!

How are you doing now khaleel? Get anything ready to contribute back?

thanks



http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Re: composit views [message #45170 is a reply to message #42082 ] Fri, 08 February 2008 16:16 Go to previous messageGo to next message
gzorg  is currently offline gzorg
Messages: 5
Registered: September 2006
Location: Besançon, FRANCE
Junior Member
Hi lvanderree,

We are launching a project to get a particular extjs admin theme.

No special functionalities, but working on ergonomy and fastest building of web applications.

We are about to start from sfExtjsThemePlugin.

If we have results improving your plugin, we could publish it, and maybe merge some parts

See you later,
gzOrg


symfony rocks Oo
Re: composit views [message #45171 is a reply to message #45170 ] Fri, 08 February 2008 16:20 Go to previous messageGo to next message
lvanderree  is currently offline lvanderree
Messages: 652
Registered: June 2007
Location: Netherlands
Faithful Member
How nice to hear!

I am looking forward to any improvements you make, so we can merge them, so please keep me updated.

You can ask questions regarding the plugin and its functionality at http://www.symfony-project.org/forum/index.php/m/45115/ or in this forum.

The plugin isn't fully documented so please don't hesitate to ask me your questions.


Leon
Re: composit views [message #45172 is a reply to message #45171 ] Fri, 08 February 2008 16:37 Go to previous messageGo to next message
gzorg  is currently offline gzorg
Messages: 5
Registered: September 2006
Location: Besançon, FRANCE
Junior Member
Thanx for your quick answer, and for the links i didn't found

As a first question I wonder simply how to transform the layout :

fo exemple I need to have filters in a Box not in a Tab but as a right box.

Is this type of param exist or not?

As I need to make a project to demonstrate capabilities of extjs on symfony in a couple of days, do you think I'd better make changes in a separate theme?


symfony rocks Oo
Re: composit views [message #45176 is a reply to message #41914 ] Fri, 08 February 2008 16:54 Go to previous messageGo to next message
lvanderree  is currently offline lvanderree
Messages: 652
Registered: June 2007
Location: Netherlands
Faithful Member
I replied in the other forum: http://www.symfony-project.org/forum/index.php/m/45175/#msg_ 45175
Since I think it contained some info which can be usefull for other extjs-symfony users as well, like my example-generator.yml file...


Leon
Re: composit views [message #45179 is a reply to message #45176 ] Fri, 08 February 2008 17:01 Go to previous message
lvanderree  is currently offline lvanderree
Messages: 652
Registered: June 2007
Location: Netherlands
Faithful Member
KRavEN already posted a solution Surprised


Leon
Previous Topic:propel-build-model/schema error (weird behavior)
Next Topic:how i do set (format_number) a field of the object_input_tag
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software