Filter based on attributes

I'm trying to filter a series of images based on a predefined
attribute in an XML file. This works (partially):
<div class="pic" spry:repeat="ds1">
<div spry:if="'{@class}' == 'pt'">
<img src="{@mainsrc}" class="{@class}" />
</div>
</div>
- only images with the class "pt" are displayed, but it still
displays all the rows in the dataset .
In any case, I want to let the user click a button to
re-filter using alternate values, so I think I need to use filter,
but not sure how...
Any suggestions?
Paul

Hello Paul,
The answer to your first problem is to put the spry:if
condition on the spry:repeat element itself so all the information
from that repeat and not only the image to be hided:
<div class="pic" spry:repeat="ds1" spry:if="'{@class}' ==
'pt'">
<div>
<img src="{@mainsrc}" class="{@class}" />
</div>
</div>
In case you want to create filters programmatically later you
should study the different samples that show you the use of the
filter():
http://labs.adobe.com/technologies/spry/samples/data_region/DataSetObserver.html
http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersSample.html
http://labs.adobe.com/technologies/spry/samples/data_region/NonDestructiveFilterSample.htm l
http://labs.adobe.com/technologies/spry/samples/data_region/SuggestSample.html
Regards,
Cristian MARIN

Similar Messages

  • Filter master rows based on attributes in detail view.

    Hi,
    How do I set up VO's so that I can:
    1. filter master records based on attribute values in either the detail or master attribute values.
    and
    2. display each distinct master record with all its associated detail records.
    Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
    We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
    To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
    TIA, for ideas or guidance.

    Hi,
    How do I set up VO's so that I can:
    1. filter master records based on attribute values in either the detail or master attribute values.
    and
    2. display each distinct master record with all its associated detail records.
    Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
    We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
    To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
    TIA, for ideas or guidance.

  • How to create LDAP filter-based rule to check Group membership in OAM

    Hi folks,
    I'm having hard time creating an authorization rule to verify ldap group membership. I've followed "Configure User Authorization" article from Oracle website (http://download.oracle.com/docs/cd/E10761_01/doc/oam.1014/b32420/v2authz.htm#BABHBFEJI) and created an Authorization scheme w ldap_attribute_name as User Parameter and ruleExpression as Required Parameter. Then, inside my policy I created an Authorization Rule based on my Authz scheme w Allow Access attrib filter-based Rule which looks like this:
    ldap://ldap_server:port/ou=People,o=Company,c=US??sub?(ldap_attribute_name=ldap_attribute_value)
    This works fine.
    Now, I've added another filter-based rule under the same Authz Rule/Allow Access:
    ldap://ldap_server:port/ou=Groups,o=Company,c=US?uniqueMember?sub?(&(objectClass=groupOfUniqueNames)(cn=ldap_group_name))
    While query looks somewhat correct and works as a command-line argument (slightly modified format), it does not work in OAM (meaning people w out req-d group membership can still login).
    Can someone steer me to the right direction as to what do I need to do:
    1. Change/fix the ldap query
    2. Create new Authz scheme with uniqueMember userParameter; create new Authz rule based on new authz scheme; create new Allow Access filter rule with the ldap query I have
    3. Do smth else
    Any help is greatly appreciated.
    Thank you, Roman

    You can create two authorization rules
    First for user with attribute
    and second for group
    and then in authorization expression you can have AND of these two.
    Regarding your query...
    First ... If your requirement is to give access to all the members of a particular group then you don't require any ldap filters
    All you have to do is in the authorization rule -> Allow access -> Select People (here you have to select group so click on the group tab, its little hard to see but its there in light blue color on dark blue tab) -> select the group you want to give access
    Second.. If your requirement is such that you want to give access to a member of a group which has certain attribute lets say group with status active ( In this case you are not aware of the name of the group because user can be a member of any group but you want to give access only to the group with specific attribute.) then you have to write custom authorization plugin.
    If the option is second let me know i can give you a solution which will work for a single domain without any effort of developing a major plugin.
    Hope this helps,
    Sagar

  • Can rsync filter on extended attributes?

    Hi there,
    I've been using rsync for quite a while now to perform various backups on my network, and it's been working without issue.
    What I'm wondering today is if it's possible to create an rsync job that can filter on the colour label value of a folder? Bascially I'd like a job that essentially does
    "IF this folder IS red OR orange THEN rsync it"
    I've google for a while now and while I see that the -E filter preserves extended attributes, and the filter command can filter on file/folder name attributes, I can't seem to figure out a way to filter based on extended attributes.
    Is there a way?
    ...Mike

    This is not going to be pretty.
    bash doesn't look to have a direct path into Finder's sort-of-private extended attribute information, save via some "creativity" involving xargs and xattr.
    There are also paths into the extended attributes via Perl and via [Python xattr calls|http://www.entropy.ch/blog/Developer>.
    Invoking osascript to script Finder via AppleScript can be be a path.
    I'd probably [customize some C code|http://www.mactech.com/articles/mactech/Vol.21/21.05/ACLs/index.html] to fetch the attributes, and call that from within the bash script. (These APIs are documented, if you're comfortable coding in C.)
    The "sneaky" or "clever" approach would be a customized rsync; tweak the file selection logic to do what you want.
    Have a look at [updating rsync 3.0|http://patternbuffer.wordpress.com/2008/01/04/rsync-30-looking-very-promisi ng> and (for testing) the [backup bouncer|http://www.n8gray.org/code/backup-bouncer> tool.
    But none of this is particularly pretty.

  • Is it possible to regroup data based on attribute value of a tag?

    is it possible to regroup data based on attribute value of a tag?

    Hi Rajeev,
    You can filter records during import if one of the Matching field is of type Lookup.
    In your case if you create City as flat lookup table in MDM & maintain lookup values in DM(Just as an example), then you can import only records where city is HYD.
    Map Name & City, Then in Match Records tab select both the fields (Combination)
    then right click on it & select Filter.. option.
    Now new pop up will open where you be able to see ur Lookup table values, from there select HYD and Add
    Now in default Import Action, set Create Action for None/None (All other will be skip)
    This way you will import only HYD records.
    But this is possible only on Lookup fields & not foe Text fields
    Hope this will help you
    Thanks & Regards,
    Mahi

  • Web Server Filter Based SSO to Non-SAP Apps

    Hi,
    I am following SAP Note 442401 for configuring the Non-SAP App for Web Server Filter based SSO using SAP Logon Ticket. Also, I have downloaded the 5_0_2_8.zip file.
    The Readme doc of this zip file says:
    "<b>Changes in Web server filter plugins
    The Web server filter plug ins and the Ticket Toolkit now were separated.
    See subdirectories for further information:
    "C"          the Ticket Toolkit
    "filter"     the Web server filter plug ins
    This is the last released version (5.0.2.8) on SAPSERV.
    Pleaser refer for newer versions to SAP Service Marketplace (http://service.sap.com/patches)
    Technology Components-> SAP SSOEXT -> SAP SSOEXT</b>"
    Zip file has two folders named "C" and "filter".
    "C" folder has cpp code to varify the ticket.
    "Filter" folder has DLLs for the different web servers.
    So far so good . Now, what I want to know is that is placing the  DLL from the Filter folder onto the respective web server and doing some configs, as per the PDF provided with ZIP file, enough?
    Or do I need to do anything else, like writing any class to read and validate the Ticket?
    Thanks,
    Vivek

    See Web Server Filter Based SSO to Non-SAP Apps

  • Filter Based on other report not working

    Hi Gurus,
    I am using OBIEE 10g.
    I have a Dashboard page in that i have a prompt and 2 reports,(A, B reports). Report B is using the same columns as prompt where as report A not.
    Report A has columns which hold the same data as report B, so i thougt to pass the values based on Report B column using the filter based on other report. I am able to complete it succssfuly but Report A is not having amount of data that i was excepting. When i started investigating i found out that the column which i am using in the prompt and report B have values ( NEW, OLD, NULL) report A able to take the values NEW and OLD but the NULL values are not passing to report A. In report B it is taking null value as it has filter as prompted.
    Is it any way to have the values (NEW, OLD, NULL) in report A?
    Thanks in Advance.
    Regards
    Ali

    Hi Deep,
    Thanks for taking time to answer my question.
    I have to display null. If i Mask with something then i dont get proper data in report A, couse in the table it is null.
    Thanks
    Ali

  • How to create a Filter based on 2 or more columns

    Hi Folks,
    We have a requirement to filter based on 1 column, 2 columns and 3 columns values to an analysis with measures.
    So my question is whether we can acheive this in OBIEE, If so then what would be the best way to implement it.
    Thanks,
    Vj

    Hi Vj,
    This we can leverage using BINS,But i have never tried that.
    Check this
    http://www.onyxtraining.com/blog/bid/92181/Multiple-Conditions-and-Filtering-in-OBIEE
    Mark if helps.
    Thanks,

  • Read BPs from a filter of an Attribute Set.

    Hi SAP Gurus,
    We have a scenario: We have a PROFILE/Attribute List where one attribute is selected. That attribute has a filter criteria which  contains some BPs. We have to read those BPs within the filter and Assign the BPs to a target group. then we have to assign the target group to a campaign.
    1. Do we have any function modules to read BPs from the filter of the attribute list automatically?
    2. Do we have FMs to create a Campaign? we have found a FM 'MKT_ELEMENT_CREATE' which creates a Campaign element within a parent campaign. But we want to create a parent campaign itself. Do we have any FM for that?
    Thanks in Advance.

    Hi,
    You can use the methods in the class 'cl_crm_mktpl_appl_base' to create a campaign and assign target groups.
    the mehods used are : get instance to instantiate an object, 'element create' method followed by 'save method , BAPI_TRANSACTION_COMMIT to create the campaign and 'tggr_assign_create' followed by ''save' and 'bapi commit' to assign the target groups.
    Hope this helps!!!
    Prerna

  • How to open network tab in developer tool and filter based on a value in C# selenium webdriver

    Hi,
    I am using selenium webdriver in c#, is there any way i can open the network tab of developer tool for the opened page, filter based on a value, and click on the event where i can check the value of the variable
    Sample code woulb b helpful
    Thanks,
    Prahal
    if not possible wat is the best way to automate web analytics 

    Hi Prahal,
    Thank you for posting in MSDN forum.
    Since you are using Selenium WebDriver which is third-party product, the issue is out of support range of Visual Studio testing forum. I suggest that you can consult your issue on Selenium support:
    http://docs.seleniumhq.org/support/ for better response.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Filter based group - viewing contents

    Hi,
    I'm trying to figure out how to see if a filter defined group on a Sun One 5.2 Directory server is getting the objects required.
    The filter group was defined by someone else. I've got several LDAP search tools available to me, but can't get results that I expect.
    The group is defined as:
    objectClass: top
    objectClass: groupofuniquenames
    objectClass: groupofurls
    memberURL: ldap:///ou=People,dc=app,dc=sample,dc=com??sub?(&(objectclass=person)(uid=*)(ntuserdomaindi=*sample*))
    cn=Employees
    The group is defined in the tree as:
    cn=Employees,ou=Groups,dc=app,dc=sample,dc=com
    My expectation, using ldp, ldapsearch, or Softerra's LDAP Browser, is that when I attempt to open the tree looking at the 'Employees' group, I would see a list of the objects that the filter selected. I Don't see any thing.
    Am I looking this in a WRONG way, or is my query not working?
    TIA, Scott

    That's correct, senderbase reputation filtering occurs very early on. At the IP/TCP level of a connection. To get more info on this, check out the user guide on HAT Overview.
    Since senderbase reputation filtering occurs early on, even before the mail-from/rcpt-to/subject information are obtained, it is too late to enforce LDAP settings.
    However, what you can do with ldap is verify if the sender or recipient are a member of a certain group and then disable anti-spam/anti-virus/content filtering from their email. You would use ldap-from-group in conjunction with incoming or outgoing mail policies.
    To make an email immune from senderbase reputation filtering, you would need to know the IP/hostname/partial hostname of where their message is coming from and add that info to the whitelist sendergroup in the HAT overview.
    Is it possible to completely disable the reputation filter based on whether the recipient is in a certain LDAP group?
    I'm currently thinking no as LDAP groups are assigned a message filter and by this point in the pipeline the reputation filter has already been applied.
    Perhaps someone more experienced can confirm/disprove this for me?

  • Filter based on another analysis need to run as a seperate query obiee 11g

    Hi,
    I have a main report which has a filter condition that depends on the another request(Created through Filter based on another analysis).The Filter based on another analysis report query comes as a embedded query along with the main query (making a subquery).As it has a subquery it is taking more time to fetch data.
    Is there any possiblity of running the Filter based on another analysis report as a seperate query.
    Please suggest.
    Thanks,
    Soukath

    Hi,
    Make sure one thing,u have eanble check box and submit sql button in the bottom of Advanced tab then save it and try again it will work.
    refer:
    http://tipsonobiee.blogspot.com/2009/06/step-by-step-to-bypass-all-caches.html
    Thanks
    Deva
    Edited by: Devarasu on Dec 19, 2011 11:59 AM

  • Filter based upon results of another request

    How do I troubleshoot a Filter based upon results of another request issue?
    I have a report that lists every account that purchased a product in May.
    I have a report that lists every account that purchased a product between Jan - April.
    I have a report that lists every account that purchased a product in May and also between Jan-apr. The problem is it's returning Account Names that are valid for May but not for Jan-apr and I dont' know why. It filters some but not others, interestingly enough it seems to split it down the middle.
    Report A = 222 customers
    Report B = 673
    Report C = 111???
    When I compare A to B manually I get 94.
    Any ideas as to how I troubleshoot this?

    Worked it out ;-D

  • How can I filter based on the IPTC core information?

    How can I filter based on the IPTC core information? (CS6)

    "Substitution Variables" can do what you are asking for.

  • KPI's based on attributes

    I would like to create KPI's based on attributes dimension.Making a singe example based on the SAMPLE db, the formula should look like this:KPI1 = Profit->True;"KPI1" & "Profit" are Accounts."True" is a member of the attribute dimension Cafeinated linked to the Product dimension.I would appreciate it if you could give me an idea or a workaround.Jana

    ok, you want:KPI1 = Profit->True; You could try something like:Fix(@withattr(Caffeinated,"==",True))KPI1=Profit;EndfixYou could also fix using the @attribute.

Maybe you are looking for

  • Acrobat X not installing in Word 2010 toolbar

    Using Windows 7, 64-bit, and Office 2010 64-bit version. Just installed Acrobat X Pro and it is not installing Acrobat into the Word 2010 toolbar, can't locate any Acrobat items in the Word toolbar/com add-in/ribbon menus. I have installed it success

  • FW800 Card causes G4 all firewire ports to go dead

    I tried to install an Allegro Firewire 800 card from Sonnet into my G4 1GHz Dual Processor G4. I put the card in, connected my firewire drive and got the following outcome. 1. When I re-booted, the computer hung at the blue screen that comes right af

  • User Details Data Source in CUP 5.3

    Dear GRC Gurus, Iam configuring CUP 5.3., in the User data source (which is used to fetch users,approvers,managers from backend)  there is User Details Data Source -> i select SAP and i get the system name -> There is a Field Function Template -> the

  • Funzione Apri con photoshop 2014 da Lightroom 5

    Dopo aver effettuato l'aggiornamento da Photoshop CC a Photoshop CC 2014, quando da Lightroom 5 voglio aprire l'immagine visualizzata in Photoshop 2014 il programma viene lanciato ma poi l'immagine non si apre, costringendomi prima ad esportare la fo

  • Can not export fotos

    hi everyone i have a Little Problem with the Export, of my Pictures.. it says always Memory not enough.. and when i try to fix the immage size to 5000kb, then it seems to work, and when the work is done, i go check in to the final Folder...and nothin