Re: [fw-general] DojoComboBox and large data set.

2008-09-25 Thread Paweł Chuchmała
On Wed, Sep 24, 2008 at 15:26, Matthew Weier O'Phinney [EMAIL PROTECTED] 
wrote:
 Most likely what's happening is you're getting double-rendering of the
 layout due to an error further down the stack. From what I've seen, most
 of these errors that have been reported have been due to either:

  * missing pdo_sqlite extension

This one is correct. Thanks for help

regards

-- 
Paweł Chuchmała
pawel.chuchmala at gmail dot com


Re: [fw-general] DojoComboBox and large data set.

2008-09-24 Thread Matthew Weier O'Phinney
-- Paweł Chuchmała [EMAIL PROTECTED] wrote
(on Wednesday, 24 September 2008, 07:49 AM +0200):
 On Tue, Sep 23, 2008 at 17:28, Matthew Weier O'Phinney [EMAIL PROTECTED] 
 wrote:
  Yes. Use a QueryReadStore for the combo box data store, and do
  pagination on the server side to return smaller data sets. You can see
  an example of this with grids in my pastebin application, which uses the
  technique with a grid -- but it's the same basic idea:
 
 http://weierophinney.net/matthew/uploads/pastebin-1.0.0.tar.gz
 
 QueryReadStore sounds good.
 
 But with your application I have a little problem:
 
 [24-Sep-2008 07:48:27] PHP Fatal error: Uncaught exception
 'Zend_Dojo_View_Exception' with message 'Lock already exists for id
 layout' in 
 D:\www\lib\ZendFramework-1.6.1\library\Zend\Dojo\View\Helper\DijitContainer.php:61
 Stack trace:

Most likely what's happening is you're getting double-rendering of the
layout due to an error further down the stack. From what I've seen, most
of these errors that have been reported have been due to either:

  * missing pdo_sqlite extension
  * bad permissions on the app/data/ directory

Check those two items, and try again.

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


[fw-general] DojoComboBox and large data set.

2008-09-23 Thread Paweł Chuchmała
Hi.

How is the best method to use DojoComboBox with large data set? For
example i want to do suggest for users.
I have about 10 records. I want for example query server with 3
first letters filled in combobox.
How can i do that? It is possible to use DojoData with this method?

regards,

-- 
Paweł Chuchmała
pawel.chuchmala at gmail dot com


Re: [fw-general] DojoComboBox and large data set.

2008-09-23 Thread MarkDNA

Well, someone might have a better way, but I would take this a s a two step
process. FIrst, have a three-character wide filed (maxlength=3) thath you
have an onchange JS trigger associated with. When the three are entered, set
of an xhrGet request to pull back the FiltertingSelect or ComboBox field
with it's associated list of possible responses. JM2C

-Mark



Paweł Chuchmała wrote:
 
 Hi.
 
 How is the best method to use DojoComboBox with large data set? For
 example i want to do suggest for users.
 I have about 10 records. I want for example query server with 3
 first letters filled in combobox.
 How can i do that? It is possible to use DojoData with this method?
 
 regards,
 
 -- 
 Paweł Chuchmała
 pawel.chuchmala at gmail dot com
 
 


-
Mark Garrett
DailyDNA
Arkadelphia, AR
(Telecommuting to: Rogue River, OR)
-- 
View this message in context: 
http://www.nabble.com/DojoComboBox-and-large-data-set.-tp19625601p19628026.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] DojoComboBox and large data set.

2008-09-23 Thread Matthew Weier O'Phinney
-- Paweł Chuchmała [EMAIL PROTECTED] wrote
(on Tuesday, 23 September 2008, 01:18 PM +0200):
 How is the best method to use DojoComboBox with large data set? For
 example i want to do suggest for users.
 I have about 10 records. I want for example query server with 3
 first letters filled in combobox.
 How can i do that? It is possible to use DojoData with this method?

Yes. Use a QueryReadStore for the combo box data store, and do
pagination on the server side to return smaller data sets. You can see
an example of this with grids in my pastebin application, which uses the
technique with a grid -- but it's the same basic idea:

http://weierophinney.net/matthew/uploads/pastebin-1.0.0.tar.gz

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] DojoComboBox and large data set.

2008-09-23 Thread Paweł Chuchmała
On Tue, Sep 23, 2008 at 17:28, Matthew Weier O'Phinney [EMAIL PROTECTED] 
wrote:
 Yes. Use a QueryReadStore for the combo box data store, and do
 pagination on the server side to return smaller data sets. You can see
 an example of this with grids in my pastebin application, which uses the
 technique with a grid -- but it's the same basic idea:

http://weierophinney.net/matthew/uploads/pastebin-1.0.0.tar.gz

QueryReadStore sounds good.

But with your application I have a little problem:

[24-Sep-2008 07:48:27] PHP Fatal error: Uncaught exception
'Zend_Dojo_View_Exception' with message 'Lock already exists for id
layout' in 
D:\www\lib\ZendFramework-1.6.1\library\Zend\Dojo\View\Helper\DijitContainer.php:61
Stack trace:
#0 D:\www\pastebin-1.0.0\application\layouts\scripts\_layout.phtml(1):
Zend_Dojo_View_Helper_DijitContainer-captureStart('layout', Array)
#1 D:\www\lib\ZendFramework-1.6.1\library\Zend\View.php(107):
include('D:\www\pastebin...')
#2 D:\www\lib\ZendFramework-1.6.1\library\Zend\View\Abstract.php(787):
Zend_View-_run('D:\www\pastebin...')
#3 D:\www\pastebin-1.0.0\application\layouts\scripts\layout.phtml(2):
Zend_View_Abstract-render('_layout.phtml')
#4 D:\www\lib\ZendFramework-1.6.1\library\Zend\View.php(107):
include('D:\www\pastebin...')
#5 D:\www\lib\ZendFramework-1.6.1\library\Zend\View\Abstract.php(787):
Zend_View-_run('D:\www\pastebin...')
#6 D:\www\lib\ZendFramework-1.6.1\library\Zend\Layout.php(785):
Zend_View_Abstract-render('layout.phtml')
#7 D:\www\lib\ZendFramework-1.6.1\library\Zend\Layout\Controller\P in
D:\www\lib\ZendFramework-1.6.1\library\Zend\Dojo\View\Helper\DijitContainer.php
on line 61

regards,

-- 
Paweł Chuchmała
pawel.chuchmala at gmail dot com