Well maybe it's a type, but this one does not work, because you equal it with 'false'. You can also remove the seconde not-is-collection.

Regards,

Jeroen

Irahhoten, Abdeslam wrote:
Hello toolman, Yes I did it but I still have the same problem
This is my dasl query


<?xml version="1.0" encoding="UTF-8" ?>
<d:searchrequest xmlns:d="DAV:"
xmlns:slide="http://jakarta.apache.org/slide/";
xmlns:h="http://hippo.nl/cms/1.0";>
  <d:basicsearch>
    <d:select>
      <d:prop>
        <h:type/>
        <h:hoofdnieuws/>
      </d:prop>
    </d:select>
<d:from>
      <d:scope>
        <d:href/>
        <d:depth>infinity</d:depth>
      </d:scope>
    </d:from>
<d:where> <d:and>
      <d:not-is-collection/>
      <d:eq>
        <d:prop>
                <h:type/>
        </d:prop>
        <d:literal>artikel</d:literal>
      </d:eq>
<d:not-is-collection/>
      <d:eq>
        <d:prop>
                <h:hoofdnieuws/>
        </d:prop>
        <d:literal>false</d:literal>
      </d:eq>
</d:and> </d:where> <d:orderby>
      <d:order>
        <d:prop><h:publicatiedatum/></d:prop>
        <d:descending/>
      </d:order>
    </d:orderby>
<d:limit>
      <d:nresults>10</d:nresults>
    </d:limit>
</d:basicsearch>
</d:searchrequest>

I want to select al elements where hoofnieuws is equal to true.



-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens toolman
Verzonden: Thursday, May 15, 2008 4:38 PM
Aan: Hippo CMS development public mailinglist
Onderwerp: Re: [HippoCMS-dev] dasl query works not fine

Sorry should be more clear:

<d:select>
        <d:prop>
                <h:actief/>
                ...
        </d:prop>
        ...


On Thu, 2008-05-15 at 16:35 +0200, toolman wrote:
Make sure you are also asking for "actief" in the top of the DASL; you
need to request the property for DASL for the "eq" to have something
to
test.  Also, I am assuming that all the other pieces from dasl to JSP
work correct (are you SURE that is all correct?)

toolman


On Thu, 2008-05-15 at 16:32 +0200, Irahhoten, Abdeslam wrote:
I have made some documents (with teh same type) in my hippo-cms.

those documents contains some checkbox say 'actief'.

I want now to select al elements/documents where that property
(actief)
is choosen.

Thus I have edited the following tags to my dasl.query
<d:and>

      <d:not-is-collection/>

      <d:eq>

            <d:prop>

                        <h:actief/>

            </d:prop>

            <d:literal>true</d:literal>

      </d:eq>

</d:and>

but where I brouwse to my jsp-page I see a blank page.

NB. in the repository; under the pad
/default/files/default.preview/content/

can I see that the property actief has the value "true" for some
documents..

Thanks in advance

Abdel

Disclaimer

Dit bericht met eventuele bijlagen is vertrouwelijk en uitsluitend
bestemd voor de geadresseerde. Indien u niet de bedoelde ontvanger bent,
wordt u verzocht de afzender te waarschuwen en dit bericht met eventuele
bijlagen direct te verwijderen en/of te vernietigen. Het is niet
toegestaan dit bericht en eventuele bijlagen te vermenigvuldigen, door
te sturen, openbaar te maken, op te slaan of op andere wijze te
gebruiken. Ordina N.V. en/of haar groepsmaatschappijen accepteren geen
verantwoordelijkheid of aansprakelijkheid voor schade die voortvloeit
uit de inhoud en/of de verzending van dit bericht.
This e-mail and any attachments are confidential and are solely
intended for the addressee. If you are not the intended recipient,
please notify the sender and delete and/or destroy this message and any
attachments immediately. It is prohibited to copy, to distribute, to
disclose or to use this e-mail and any attachments in any other way.
Ordina N.V. and/or its group companies do not accept any responsibility
nor liability for any damage resulting from the content of and/or the
transmission of this message.
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

********************************************
Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Disclaimer

Dit bericht met eventuele bijlagen is vertrouwelijk en uitsluitend bestemd voor 
de geadresseerde. Indien u niet de bedoelde ontvanger bent, wordt u verzocht de 
afzender te waarschuwen en dit bericht met eventuele bijlagen direct te 
verwijderen en/of te vernietigen. Het is niet toegestaan dit bericht en 
eventuele bijlagen te vermenigvuldigen, door te sturen, openbaar te maken, op 
te slaan of op andere wijze te gebruiken. Ordina N.V. en/of haar 
groepsmaatschappijen accepteren geen verantwoordelijkheid of aansprakelijkheid 
voor schade die voortvloeit uit de inhoud en/of de verzending van dit bericht.

This e-mail and any attachments are confidential and are solely intended for 
the addressee. If you are not the intended recipient, please notify the sender 
and delete and/or destroy this message and any attachments immediately. It is 
prohibited to copy, to distribute, to disclose or to use this e-mail and any 
attachments in any other way. Ordina N.V. and/or its group companies do not 
accept any responsibility nor liability for any damage resulting from the 
content of and/or the transmission of this message.
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to