Filtering collections

Hi,
Either I'm not using this properly or the filtering mechanism doesn't seem to work for collections that have sub-collections.
For example, I have a collection with 1800+ images, which are contained in sub-collections (some with their own sub-collections). I've gone though all of the images and flagged the ones I want using the "pick" flag.
If I set a filter on the lowest level collection to only show picked images this works fine. If I go up a level and select the same filter for the parent collection it gives a message "No photos match the filter".
If I turn the filter off and view the parent collection in the grid view I can see hundreds of flagged images, but if I filter them it says that there are no flagged images.
I've using a Mac with OSX10.4 and Lightroom 1.1.
Chris

Flags are local. Ratings, keywords, and color flags are global.

Similar Messages

  • Filtered Collection

    Hi,
    I have a filterfunction that filters the data in my grid. I
    would like to be able to reference the filtered rows. Is there a
    way to do that ?
    Here's the filterfunction :
    private function processFilter(item:Object):Boolean {
    var result:Boolean=false;
    for(var i:int = 0; i < columns.length; i++) {
    if((String(item[String(columns
    .columnName)])) != 'null') {
    if(item[String(columns.columnName)].toString().toUpperCase().indexOf(txtFilter.text.toUpperCase())
    >= 0) {
    result = true;
    return result;
    }

    Use the getItemAt method. Suppose you have 100 rows and your
    filter function selects 10 of those rows. Then the collection's
    length property is 10, getItemAt(0) is the first filtered row,
    getItemAt(9) is the last filtered item.
    You can also use cursors (ICursorView) - see the Flex docs
    for more detailed explanation and examples.

  • Design Issues for filtering a JTable

    Hi,
    I'm interested in any suggestions on how I should implement a JTable with filtering.
    I have a JTable, which also sorts, so it is associated with a FilterModel as well as a TableModel.
    I have a filter panel with a bunch of controls where a user can type in a name or date range or any number of other fields. This creates a Filter object and I pass this Filter object into my table model.
    Basically the way I thought would be best is if there are two collections within my tableModel. A Filtered collection and a Complete collection. When filtering the filtered collection is filtered and used to display.
    I just can't seem to get it to work yet.
    Does anyone have any ideas for a better approach, or is my approach the standard pattern for doing this kind of thing?
    cheers,
    Oliver

    actually I just had a thought. Within the panel code I could have two data models. One for the filtered stuff and one for the complete stuff :
    table.setModel(completeModel);
    //if user filters
    table.setModel(filteredModel);
    is that a better design?????????

  • Advanced XML filtering

    Hi,
    In short: How do I filter an XMLList in ActionScript rather
    than E4X, i.e. I am looking for a
    replacement of myXmlList.(@attrib == someValue) with
    myXmlList.filter(someFilterFunction)
    which has the same behaviour (i.e. the result does not
    contain copies).
    The long story: I have an application that operates on an XML
    structure. It uses the E4X filter
    mechanism to generate a number of filtered views to display,
    using
    filteredList:XMLList = myXmlList.(@attrib == someValue)
    I now hit the situation that the filter functionality is more
    complicated (I basically need access to the whole object and
    perform a few calculations to decide whether it's in the list).
    First quesiton: Is there an easy way to do this straight on the
    XMLList?
    I tried something like this
    var filteredList:XMLListCollection = new
    XMLListCollection(new XMLList());
    for each (var n:XML in myXmlList) {
    if (logic to decide whether n is in here) {
    filteredList.addItem(n); (*** see below)
    filteredList = XMLList(filteredList);
    But this seems add each item again to myXmlList (so they are
    all in there twice now) - no what I want.
    Second question: What exactly is the addItem call doing? Why
    is it also adding to the XMLList n is from?
    I tried
    filteredList.addItem(n.copy());
    which does not add the items to myXmlList but it makes a copy
    which is not what I want (I am updating the
    XML and don't want to have copies around). This whole
    approach may be complete nosense, I am just
    starting to get my head around the XML processing.
    Any help or pointers in the right direction are much
    appreciated.
    Thanks,
    Robert

    You are so close. You are saying the right words but not
    conjuring the right spell. You do want a filtering function - you
    want a filterFunction:
    var bigList:XMLListCollection = new XMLListCollection(
    originaldata );
    bigList.filterFunction = uniqueFilter;
    private function uniqueFilter( item:Object ) : Boolean {
    var test:XML = XML(item);
    if( /* some test here */ ) return true; else return false;
    bigList.refresh();
    If you look at the documentation for XMLListCollection and
    then examine the inherited properties and methods, you'll see the
    filterFunction property and the refresh method.
    I just wrote an article on my blog about filtering
    collections. Although I used ArrayCollection, it should similarly
    for XMLListCollection.
    Filtering
    Collections - weblogs.macromedia.com/pent
    Basically the filterFunction is given an element of the
    Collection and must return true if the element should appear in the
    collection's view or false if should not. This does not eliminate
    the item from the Collection, just from the view of the Collection.
    This way you can change the criteria and refresh() the collection.
    If you have a DataGrid's dataProvider bound to the Collection
    you'll see it just when the refresh() is done.

  • Bridge CS6 Display Problem

    When I set up Bridge, I used 3 columns.  The left column contains the Files/Folders Panel with the Filters/Collections/Export Panels underneath.  In the middle is the Content Panel which is set to display 1 thumbnail wide.  To the right is the Preview Panel with the Metadata/Keywords underneath. 
    Everytime I close Bridge and reopen, the display shifts so that I get a larger Content Panel which now displays 2 or 3 rows of smaller thumbnails and correspondingly smaller Preview and Metadata/Keyword Panels.  Is there a way to make the display settings remain as I want them whenever I open Bridge?
    Thanks.

    Sure, just make sure you SAVE the Workspace you create under a distinctive name.  See the Help files to learn about saving a work space if you've never done it before.
    You also need to make sure you quit (exit) Bridge in an orderly fashion after recreating and saving your workspace, because Preferences are saved whenever Bridge quits normally, not when it crashes or you force quit it.

  • Difference of Photoshop Lightroom and Photoshop Elements

    I'm using PSE5 since some years, starting with PSE2 already. On the first look LR seams to have more or less the same features as PSE, but better suited for professional users. What would be the arguments for changing from PSE to LR and is there a comparison available of this to products? Has someone experience migrating from PSE to

    My oppinion, as a "former" PSE7 user:
    The library in LR (organizer in PSE) offers much more functions like filtering, collections, smart collections, compare view, ...
    The development workflow in LR is much more logical, by having all the different development tools in one panel, one after the other in the sequence in which one usually goes thru changing a picture
    The way of non-destructive editing is a big advantage over changing and saving the image after change. One has to get used to this though, because it's a different concept
    One big thing PSE does not have is the adjustment brush, I've been using Nik Viveza for that in PSE, which I rarely use anymore now.
    All together, LR to me seems much more straight forward and logical to work with pictures than PSE. I've been using LR for 3 months now and I really love working with it, it's well worth the money. I rareley ever go back into PSE again, unless performing functions that LR does not have, like scene cleaner, Photomerge panorama etc.
    I've invested quite some time watching LR videos to understand how to work with it.
    Beat Gossweiler
    Switzerland

  • Issue in Combobox flex 3.5

    Hello all,
    I got a serious issue in combobox while using flex sdk 3.5.
    The issue is if we filter the collection before creation complete of component and use that filtered collection as a dataprovider for combobox.
    If the result from the filtered collection is a blank collection then that combobox is still pouplated from the first value from the source of collection. However the actual result should be null in the selected item of comboBox.
    Giving you the sample test code to reproduce the issue.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*"
         initialize="onInitialize()"     >
         <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   [Bindable]
                   private var dp:ArrayCollection = new ArrayCollection(['t1','t2','t3']);
                   private function filterFunction(inData:Object):Boolean
                        return false;
                   private function onInitialize():void
                        dp.filterFunction=filterFunction;
                        dp.refresh()
              ]]>
         </mx:Script>
         <mx:ComboBox id="cb" dataProvider="{dp}" x="66" y="31"/>
         <mx:Button  label="Refresh DP"  x="102" y="92" click="dp.refresh()"/>
    </mx:Application>
    However it is corrected after refreshing the dataprovider after creation complete. But I don't want to refresh it everywhere thoughout my application.
    Please, provide your comments on this.
    Thanks
    Vikash Kumar

    Hi Vikash Kumar,
    Just put the initialize event on ComboBox itself instead of Application tag....as shown below...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*"
              >
         <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   [Bindable]
                   private var dp:ArrayCollection = new ArrayCollection(['t1','t2','t3']);
                   private function filterFunction(inData:Object):Boolean
                        return false;
                   private function onInitialize():void
                        dp.filterFunction=filterFunction;
                        dp.refresh()
              ]]>
         </mx:Script>
         <mx:ComboBox id="cb" dataProvider="{dp}" x="66" y="31" initialize="onInitialize()"/>
         <mx:Button  label="Refresh DP"  x="102" y="92" click="dp.refresh()"/>
    </mx:Application>
    Thanks,
    Bhasker

  • Do I really need Lightroom?

    I don’t have a problem, but I have questions regarding the need for Lightroom. I have Photoshop CS5 and Lightroom3. I use Photoshop, Camera Raw and Bridge. So far, I’ve used Lightroom3 in learning mode, and I’m not convinced it offers advantages over using Photoshop CS5/Camera Raw/Bridge. Here’s why.
    I’ve not delved into Lightroom3’s Slideshow, Print or Web features, but Library appears to be a photographers file-control system that takes some control away from a user. Why should I care about a file-control system that establishes a catalog that I must ensure stays in order. Can’t I do that myself using Bridge? In Bridge, as in Lightroom, I have filters, Collections, Metadata, Keywording, syncing capabilities—as far as I can tell, everything I think Lightroom offers without giving control to a software cataloging system. Is Lightroom that much easier or more beneficial in other ways that I should use its Library module for file control instead of Bridge? As for the Development module, it replicates Camera Raw but perhaps missing one or two features that available in Camera Raw.
    The bottom line for me is this. Am I wasting my time trying to develop proficiency in Lightroom when I’m not convinced it offers benefits over Camera Raw and Bridge—which, again, I use in conjunction with Photoshop. If I switched to Lightroom, I suppose it would be in place of Camera Raw and Bridge but still in conjunction with Photoshop. I’d appreciate any opinions/advice.
    Efwess, AKA Fred

    Trevor.Dennis wrote:
    That's the sort of throughput that people argue you need LR for
    That's what they say, but I agree that Bridge can deal with high volume equally well.
    What I see as the main thing with Lightroom is that it's an entirely photographic workflow. That may sound like an academic point, but these subtle shifts in emphasis can have a surprisingly large effect on the final result. If the image is crap, nothing in Lightroom can save it. In Photoshop you can just turn it into something different if you have the time. As such, Lightroom inspires discipline and improved photographic skills. We can all use a dose of that.
    In the short time I've used Lightroom I can already see that it has changed some of my habits, and I think for the better. Less emphasis on post-production, and more on the actual shoot. The net result is, surprise, time saved, and a better result overall. Of course I can still send the image to Photoshop, just as I can with ACR, but for some reason I find myself doing it less. I tend to push development as far as possible in Lightroom and often leave it at that.
    Of course I love Photoshop way too much to ever give it up. But for now, I'm happy to follow my intuition and not try to fight it.
    But, again, do you need Lightroom? No.

  • Let end user to set up the query

    Hi all!
    Is there a way to let end user to set up a query/report with forms?
    = users can use a form (whit predefined values) to determine which column(s) shows in the result and can add filters before submit.
    Because a cube is stored in relational tables i think it's not an olap question.
    But here is why i asked this:
    I make an application that query an olap cube. I can make reports with apex from the cube view and from dimension views. But i want to let users to select from the available dimensons and measures and set filters on selected dimensions (on first page) using a form. When user submit the form the second page shows the result.
    Thanks
    Edited by: qenchi on 2009.08.09. 7:27

    Hi,
    This is what I've done in that application example.
    1 - I have two pages. Page 1 is the select columns and filters page and Page 2 is the report
    2 - On page 1, I have created a PL/SQL page process, called P1_CREATE_COLLECTION, that runs "Before Header". This is unconditional and has a Source Process of:
    BEGIN
    IF NOT APEX_COLLECTION.COLLECTION_EXISTS('FILTERING') THEN
      APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY('FILTERING', 'SELECT COLUMN_NAME, DATA_TYPE, ''Y'' SHOW_YN, '''' FILTER FROM ALL_TAB_COLUMNS WHERE OWNER = ''#OWNER#'' AND TABLE_NAME = ''EMP3'' ORDER BY COLUMN_ID');
    END IF;
    END;ALL_TAB_COLUMNS contains records for all columns in all tables. In this example, I'm retrieving a list of all of the columns in the EMP3 table (which is just a copy of EMP plus a few extra fields). I'm also getting the data type for the column, setting the "Show" value to Y and starting with an empty filter string for each column. The actual data is retrieved into a collection called FILTERING. In this way, I can store all of the user's selections for use on Page 2. The IF test just ensures that I don't overwrite the collection if it already exists - that is so that I can keep any settings that the user made when they were last on Page 1.
    This collection gives allows me to store the following:
    SEQ_ID - the collection's sequence ID
    C001 - The COLUMN_NAME
    C002 - The DATA_TYPE
    C003 - The Y/N flag for SHOW_IN_REPORT
    C004 - The filter to be applied to the column
    3 - I created a "SQL Query (updateable report)" report. To do this you need to create a report using the SQL Wizard - any SQL statement will do - then you can change the report type from "SQL Query" to "SQL Query (updateable report)". I haven't found another way to do this.
    The report's SQL was changed to:
    SELECT APEX_ITEM.HIDDEN(1, SEQ_ID) || C001 COLUMN_NAME,
    C002 DATA_TYPE,
    APEX_ITEM.SELECT_LIST(3, C003, 'Yes;Y,No;N') SHOW_IN_REPORT,
    APEX_ITEM.TEXT(4, C004) FILTER
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'FILTERING'
    ORDER BY SEQ_IDThis is a "manual tabular form" and is based on the collection created by my process.
    4 - I then created a button on the page called P1_CREATE_REPORT. This is just a normal submit button - the branch for this is to Page 2. On the branch, I ticked the option to "reset pagination for this page"
    5 - Finally, on Page 1, I created a PL/SQL process, triggered by my button, and in the "On Submit - After Computations and Validations" process point. The Process code for this is:
    BEGIN
    FOR x IN 1..APEX_APPLICATION.G_F01.COUNT
    LOOP
    APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE(p_collection_name=&gt;'FILTERING', p_seq=&gt;APEX_APPLICATION.G_F01(x), p_attr_number=&gt;3, p_attr_value=&gt;APEX_APPLICATION.G_F03(x));
    APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE(p_collection_name=&gt;'FILTERING', p_seq=&gt;APEX_APPLICATION.G_F01(x), p_attr_number=&gt;4, p_attr_value=&gt;APEX_APPLICATION.G_F04(x));
    END LOOP;
    END;This loops through the tabular form after it is submitted and updates the collection with the Y/N Show values and the filters
    Now onto Page 2
    1 - I created a SQL Query report using *SELECT 1 FROM DUAL".  When created, I changed the report type to "SQL Query (PL/SQL function body returning SQL query)" and change the Region Source to the following code:
    DECLARE
    vSQL VARCHAR2(8000);
    vQ CHAR(1);
    vSEP1 VARCHAR2(2);
    vSEP2 VARCHAR2(6);
    BEGIN
    vQ := CHR(39);
    vSEP1 := '';
    vSEP2 := 'WHERE ';
    vSQL := 'SELECT ';
    FOR x IN (SELECT SEQ_ID, C001, C002, C003, C004 FROM APEX_COLLECTIONS WHERE COLLECTION_NAME = 'FILTERING' ORDER BY SEQ_ID)
    LOOP
      IF x.C003 = 'Y' THEN
       vSQL := vSQL || vSEP1 || x.C001;
       vSEP1 := ', ';
      END IF;
    END LOOP;
    vSQL := vSQL || ' FROM EMP3 ';
    FOR x IN (SELECT SEQ_ID, C001, C002, C003, C004 FROM APEX_COLLECTIONS WHERE COLLECTION_NAME = 'FILTERING' ORDER BY SEQ_ID)
    LOOP
      IF LENGTH(x.C004) &gt; 0 THEN
       IF x.C002 = 'VARCHAR2' THEN
        vSQL := vSQL || vSEP2 || x.C001 || '=' || vQ || x.C004 || vQ;
       ELSIF x.C002 = 'DATE' THEN
        vSQL := vSQL || vSEP2 || x.C001 || '=TO_DATE(' || vQ || x.C004 || vQ || ',' || vQ || 'DD/MM/YYYY' || vQ || ')';
       ELSE
        vSQL := vSQL || vSEP2 || x.C001 || '=' || x.C004;
       END IF;
       vSEP2 := 'AND ';
      END IF;
    END LOOP;
    RETURN vSQL;
    END;This loops through the FILTERING collection twice. The first time to build up a SQL SELECT statement containing all of the columns in EMP3 that the user wants to show
    The second loop then builds up a WHERE clause for the statement based on any filters the user wants to apply. I have used the DATA_TYPE values stored in the C004 field to identify the format of the value in the WHERE clause - either VARCHAR2, which puts the string in quotes, DATE, which casts the string as a date using DD/MM/YYYY format and then any other value (which should be NUMBER), which just outputs the value entered.
    Note that I've used vQ to hold the quote character (CHR(39)) as I find this easier than trying to work out how many single, double or triple quotes I need to get quotes within the string.
    All of this just builds up a string (vSQL) which is returned to Apex at the end of the code so that it can build the report.
    Note that I have also ticked the option under the Region Source setting to show "Use Generic Column Names (parse query at runtime only)". This needs to be done as the columns are changeable.
    2 - I created a button called P2_BACK_BUTTON which branches back to Page 1
    Obviously, this is a very basic example. You could, for instance, go one step further and allow the user to pick the table (SELECT TABLE_NAME FROM ALL_TABLES) or view (SELECT VIEW_NAME FROM ALL_VIEWS). As the final report is being constructed as a string, it doesn't matter how the table/view name is derived. You could also add popups for calendars and calculators, where appropriate, on Page 1.
    Andy

  • Inadvertent Keyword Modifications

    I keep generating dozens of new keywords by inadvertently modifying existing keyword tags. I finally figured out that all of my missing photos were re-keyworded with words that contained existing keywords only with random X, P, U tossed in somewhere. Somehow I keep getting the keyword Tags box selected by accident - I may not even see it as it can be scrolled off screen or collapsed. Bottom line is that when I start using FLAG SELECTIONS instead of actually getting the desired flag one of the keyword tags gets changed. In my case the keyword being hit was the same for which I had the collection filtered so images would "disappear" as if it took the FLAG properly. It's too easy to screw up your keyword tags this way and to misplace images. I'd like it if when images were flagged that the status would float on screen a bit longer than the current .x seconds which is so short I can't read the message before it filters out of if the FLAG blinked once before it set or some way other to see what happens before the image leaves the filtered collection. Further, it would an big improvement if the Keyword TAGS field required a dbl click or click and hold to activate it - or at least had a local easy to deselect that box so it would stop receiving inadvertent FLAG selections. i.e when it is activated you can click on recent tags, collapse the tags, collapse keywording etc but that darn box stays selected and starts taking ALL keyboard input.

    I too have the problem of multiple keywords being assigned to photos, without my having assigned them. I have just rebuilt the library, as suggested, but, sadly this hasn't worked. The keyword situation remains the same. It's a major problem for me, as I am a teacher, and have smart folders assigned, using keywords, to each pupil. One pupil has multiple keywords on all his photos, and his smart folder now states that he has 13,885 photos, when there should be only about 650. I have tried to individually remove keywords from his photos, but iPhoto is not allowing me to delete them. This basically means I can't do his end of term records until I sort this out.

  • Shortcut for finding large effective resolutions

    I'm packaging several large books to send to a printer in China, which are coming out to be fairly large folders (the printer only accepts native files). I know that I have quite a few links that are probably too large for their size in the books, but I don't have time to go through and click on each image in the books and check the effective resolutions. Is there a quick way to generate a list or, better yet, a filtered collection in Bridge of links that need to be resized based on effective resolutions over 400 ppi? Or is there a script that anyone knows of that will find such images and automatically resize them in Photoshop and relink in ID?
    I'm using CS3 on a Dual G5 running Tiger.

    Unfortunately if you use round the number will be rounded to a whole number (4.127273 becomes 4). You can add a little handler at the bottom of the script and control the amount of rounding, so:
    At the bottom of the script after the last end tell add:
    on roundMe(n, nDecimals)
    set x to 10 ^ nDecimals
    (((n * x) + 0.5) div 1) / x
    end roundMe
    And then after:
    set {w, x, y, z} to geometric bounds of image 1 of item a of myPageList
    set myW to (z - x)
    set myH to (y - w)
    Add:
    set myW to my roundMe(myW, 3)
    set myH to my roundMe(myH, 3)
    In this case 3 is the number of decimal places you'll get, so change the three to whatever you want.

  • Input Filter using Runtime API

    Hi, I am having problems trying to pass values through the BDC runtime to a Model I have deployed in my Sharepoint server.
    I am attempting to pass two parameters that have filters (of type input) to my model at runtime. So far I have this:
    IEntity groupMember = catalog.GetEntity("SharePoint.MASConnector.MASModel", "Member");
    IMethodInstance finderMethod = groupMember.GetMethodInstance("ReadList", MethodInstanceType.Finder);
    IFilterCollection filters = finderMethod.GetFilters();
    I would now like to add the values of both filters to the collection and then:
    IEntityInstanceEnumerator members = groupMember.FindFiltered(filters, mASServiceSystemInstance);
    But I cant figure out how to get the values to the filters collection.
    Is there anyone who has done something like this?
    Thanks in advance

    Hi Scott,
    Thanks for the response, should have guessed you would answer the question, I guess you are the resident BCS expert :-).  The filters I need to pass are actually input filters so none of the above would be helpful. You had suggested:
    (filters[0] as InputFilter).Value = "MyValue!";
    I
    have been digging but cant find the right namespace for the type InputFilter
    Thanks.
    BTW
    Is
    there a way to buy a digital download or early copy of your book?
    I am sure it would be a great resource, the information out there is so limited.

  • Strange Difference between runtime and development mode.

    Hello everyone,
    I have created an add-on that adds three items to the menu which launch three different forms. When SBO is loaded and I run the code from the development environment (VB6) it works perfectly, i.e. click on one of the three new menu items and the appropriate form loads.
    When I compile and register it as an add on SBO loads it correctly and it customizes the menu. However, when I click on any of the three new menu items it now gives an error message:
    Run Time Error (91)
    Object variable or With Block variable not set.
    And then blows away the add on.
    I tried trapping the error in the "Menu_Event" and got nothing. The error occurred as before with no evidence that it had been caught by my trap.
    This same behavior occurs on both my development system and on the customer's production system! Both systems are 6.5 sp1 Ef 07.
    Has anyone else had this problem? Any help appreciated.
    Mel

    Hi Mel,
    I heard of a similar problem - just that the menu event did not get fired.
    Do you use event filters?
    Did you add the menu event to the filters collection?
    Set oFilter = oFilters.Add(et_MENU_CLICK)
    Though apparently this should have been mandatory, in case you use filters, from the beginning of 6.5, what I heard from another partner does not match to this information.
    HTH,
    Frank

  • Remove filter

    I have created a addon and I have added filter for it.During the execution of the addon ,I want to update the filter and continue the execution of the addon.For this I tried to remove filter and again add it.While removing filter it gave me error as Illegal activity.How can I remove filter ?

    Hello Dillip,
    Use Dim oFilters As SAPbouiCOM.EventFilters = sbo_application.GetFilter() code for receiving Filters from the current addon.
    You got the error message becuase you objFilters collection is empty.
    Public Sub RemoveFilters()
            Dim objFilters As SAPbouiCOM.EventFilters
            Try
    ' Receive filters collection from SBO APPLICATION
                objFilters = sbo_application.GetFilter()
                objFilters.Remove(SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD)
                SBO_Application.SetFilter(objFilters)
            Catch ex As Exception
                SBO_Application.MessageBox("SetFilters()=" & ex.Message)
            End Try
        End Sub
    here is a little playaround about filters
    Private Sub AddFilters()
            Dim oFilters As SAPbouiCOM.EventFilters = New SAPbouiCOM.EventFilters
            Dim oFilter As SAPbouiCOM.EventFilter = oFilters.Add(BoEventTypes.et_MENU_CLICK)
            oFilter = oFilters.Add(BoEventTypes.et_CLICK)
            oFilter.AddEx("133")
            oFilter = oFilters.Add(BoEventTypes.et_KEY_DOWN)
            oFilter.AddEx("133")
            sbo_application.SetFilter(oFilters)
        End Sub
        Private Sub DelFilters()
            Dim oFilters As SAPbouiCOM.EventFilters = sbo_application.GetFilter()
            Dim s As String = oFilters.GetAsXML()
            oFilters.Remove(BoEventTypes.et_CLICK)
            sbo_application.SetFilter(oFilters)
        End Sub
    Tip you can use XML files fo manipulate filters !
    Regards,
    J

  • Adding Every Row From a Filtered Interactive Report to a Collection

    I'm creating an email list maintenance application in Apex 3.1. I have an Interactive Report on an email address table. I want the users to be able to run this IR and then click a button to add all of the resulting email addresses into a selected mailing list table. The interface needs to be as quick and simple for the user as possible, so I don't want to force them to click a checkbox beside hundreds of rows.
    Is there a way to add every resulting row from a custom IR to an apex_collection?
    I know that collections can be created based on a query with the CREATE_COLLECTION_FROM_QUERY call. But I don't think it's possible to reference the SQL statement which is dynamically generated through an Interactive Report. I'm referring to the SQL created after the user has applied filters. If there were, then I would just create the collection that way. Please correct me if I'm wrong.
    Thanks,
    Martin

    Hi Martin
    I couldn't find a place where the filters are stored either - it would be nice to know.
    It is possible to get to the filters via javascript as they are actually stored in a table with an id of "apexir_CONTROL_PANEL_COMPLETE". Within there, there are rows for each filter and each row has four cells. The second cell contains an A tag that has the filter itself as the text displayed as a hyperlink on screen. The third cell contains the checkbox that enables/disables the filter. Strings and numbers seem to be formatted ok, so you could pick up these values and create your own WHERE clause, populate a hidden field somewhere and then pick that up to generate a full select statement to get to the id's that you need.
    I haven't yet tried this, so this is theory only - but I can't see that it wouldn't work
    Andy

Maybe you are looking for

  • Metadata entry for frame sequences.

    Hi There,                  I'm running the trial of Prelude ahead of getting the full CC to test a pipeline. A couple of issues have come up dealing with Cinema DNG (I'm using some samples from the Digital Bolex, the Ikonoskop and the BMCC). Firstly,

  • JSF & entity  displaying bilingual messages

    could anyone tell me how can Implement bilingual messages on my pages, my messages are stored in the DB, and I can switch the language and direction of my pages (using a custom ADF life cycle and resource bundle files for labels). thanks in advance,

  • WRT51AB - Not able to connect to one site when accessing thro router

    When I am trying to access a particluar website directly via cable modem using ethernet cable, I am able to access the website. However if I connect the wireless router to the modem and then try to access the website using wireless connection, I am n

  • Can I install Premiere CS5.5 on Lion?

    Just got my MBP with Lion installed on it already.  Some of you may know you can't install FCS2 on Lion... I want to purchase Premiere CS5.5 and get the 50% off, but need to make sure that it will install..... I'm sure it will, but don't want to be o

  • Data lost with 3.1 update

    I dutifully downloaded 3.1 and had done a software update which updated iTunes to 9 on my MBP 2.5GHz/250GB-5400/4GB 667DDR2 RAM. When I synced my 32GB 3GS iPhone, ALL of my apps were deleted from the iPhone, then all 96 of them were reinstalled, incl