Da / Ne (potvrdni okvir) u dijelu za filtriranje sadržaja web-upita

Za filtriranje za upit za da / ne potvrdni okvir pod nazivom "Milestone PG", konfigurirati CQWP ovako:

slika

To je jedan od onih očito-jednom-you-know-it, ali teško pronaći--odgovor-na pitanja: Kako filtrirati na Da / Ne potvrdni okvir pomoću web-dijela za pretraživanje sadržaja.

The first search result I find using the search term "filter yes/no content query web part" is flat out wrong, so I thought I’d put this up there and see if it can replace the incorrect result in typical search results.

It’s quite easy: True values = "1" and false values do not equal "1" (pretty retro, actually).

In the above example, I created site column of type "Yes/No (checkbox)" named "PG Milestone". I added it to a doc library, uploaded a few documents, set the value for a couple and tested it.

<kraj />

6 misli o „Da / Ne (potvrdni okvir) u dijelu za filtriranje sadržaja web-upita

  1. Collin

    Imam pitanje… I have an easy database with one table. Basically it consists of just a Name Field, Email Field and then several Yes/No Check Fields. I want to generate a query which list each email record of each which is checked "Yes". I have a qyery which each Yes/No field on it. And this formula: [Forms]![FORM WITH CHECK BOXES].[Yes/No FIELD NAME].. SO it points to a form where I can check multiple boxes and then the form has a button to run the query… It works fine except the relationship is an "AND" relationship where if an email record has Check Box 1 & Check Box 2 checked, I have to filter exactly like that. What I want is if Check Box 1 & Check Box 2 is checked to get result which include those records as well as the records where Only Check Box 1 is checked and the records where Check Box 2 is checked… Bilo koji ideja?

  2. Alan Li wrote:
    Bok, this article is very useful for me.
    Can I ask how do you set up the CQWP file for filtering on Yes/No check box (Say ImportantNotices)? Is that right below?
    <property name="FilterField2" type="string">ImportantNotices</svojstvo>
    <property name="FilterValue2" type="string">Da</svojstvo>

    <property name="FilterOperator2" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Kultura = neutralni, PublicKeyToken=71e9bce111e9429c">Eq</svojstvo>
    <property name="FilterType2" type="string">Tekst</svojstvo>

    Thanks very much for your help.

Dopust jedan Odgovor

Vaša email adresa neće biti objavljena. obavezna polja su označena *