Boris,

Write a provider could be a cool, it will give a easy way to search things.
Thanks.

Michael, send your code, so I can look how you did the query.

I did one dynamic select that threat search one page, paragraph and a field
and return the uuid (from jcr)
Then I make a reference (just set the type in the dialog admin console to
Referece)

I found a bug in the save class. The getData doesn't threat the REFERENCE
case. See the end of getData( String , int ) in save.java, search for
"//custom")

I'm sending both for you analyse.

If, possible, We can fix it to the next release.

I had some problemans with getNodes( "regexp" ).
I tried to catch the pattern options, options1 , options0, options10 with
the pattern "options(\\d)*", but it doesn't work. May be it is a bug.

If this work, the dynamic will be more generic.

I think tha we can add three features to this dynamic:
- Provider options for external data
- XPATH for internal
- Query for internal

There is another problem with the repositoty. Once I make a reference, it
must check referecial integrity. It does, but the exception is not threated,
just logged. The ideal case is to show a pop-up to the user telling he can't
delete it because there content point to it. I know how to discover if there
is content point to another content, BUT, how can I show a popup or
something like an alert to the user?

Thanks and waiting some directions,
Felipe 

-----Original Message-----
From: dev-list@magnolia.info [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 8 de setembro de 2005 05:26
To: dev-list@magnolia.info
Subject: Re: [magnolia-dev] Developing Features - Dynamic Select

Boris Kraft wrote:
>> I'm developing a new Control that is a DynamicSelect, it extend the 
>> features of DialogSelect in a dynamic way.
>>
>> Basycally, you create a dialog with this control, and set options to 
>> the "page path", the content collection and the field you want to get.
>>
>> With these informations I populate the select.
>> The objective is to place a Reference to another node, so I can grant 
>> the data integrity.
> 
> maybe you can go one step further and allow entering a provider (class). 
> Then, you can create one provider for your specific idea; others can 
> create their own providers to populate the option. This way, we could 
> use providers that for example query web services or databases for 
> their content.

I already have developed a select dialog with which you can specify SQL. The
SQL is then used search the indexed repository to populate the options. It's
still in Beta that's why I didn't send a patch. Another option could be to
specify XPath Queries. Coming soon.

--
Cheers,
Michael

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Attachment: DialogDynamicSelect.java
Description: Binary data

Attachment: Save.java
Description: Binary data

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to