a model of filtering data?

Hello

I have a GroupDataModel defined as an a custom object Q_PROPERTY, attached to a ListView that contains pointers to another custom class.

{To ListView

dataModel: myClass.model

}

I would like to be able to filter content in the GroupDataModel so it displays all the items, or elements based on one of the properties of the custom object in the GroupDataModel, but I'm not clear on how best to address the issue.  If it's important, I'm trying to display it in a segmentedControl with two options... one for all and one for 'Active'.

I tried to do this with two listViews attached to various properties of the custom - like object:

ListView {dataModel: myClass.model}

and

ListView {dataModel: myClass.modelFiltered}

then by a visible: true and visible: false according to the selectedIndex property of the SegmentedControl.

that has not worked, and it seems a little sloppy for me.

is there a nice way to do it?  mainly:

provide a GroupDataModel as a property of a custom object

be able to filter or unfilter the list (simple bool)

have updated the user interface when the list is changed

?

I'm done with two data models, one for the complete list and one for the filtered list.

I guess I could have also clearly () was the model and fills again with a filter applied, but I was not do this way for reasons unknown to me.

Seems in any case, these are the two options to use.

Tags: BlackBerry Developers

Similar Questions

  • Clone a model on multiple data centers

    So here's the scenario:

    In my vcenter, there are two data centers. In a Datacenter (B), that we have our systems development and the other data center (A) are our production environments. Must often make a clone of a (B) VM and clone a VM (A) through. We have a process of the method we use to move our VMs. I'm powerCLI throughout the process in order to save on some manual cloning time. This is our process:

    1 clone a VM (B) direct and take from the Datacenter (B) under the "DEV" folder, under this is a subfolder 'AppServer' where the virtual machine "DevAPP" exists and it a clone of this subfolder in another subfolder in 'AppServer' also called ' ~ DEV (B) to (a) staging of Clone.

    2. once the clone "Date of DevApp_today" is realized in the "~ DEV (B) to (a) staging of Clone" remove us the NIC 1 and then convert it to a template.

    3. once it is converted to a template with the name 'Date of DevApp_today' clone us over the back (B) data center "~ DEV (B) to a Clone (A) Organization" (A) record data center "(B) to (a) staging of Clone.

    4. once the 'Date of DevApp_today' model in the data center (A) convert us into a virtual machine and and add the NIC, assign VLAN appropriate and then activate connected to power on.

    5. once the network card on the virtual computer we then convert back to a model and deploy him 11 VMs with the customization files to configure the virtual machine.

    Most of the time steps 1 and 2 I can script fairly easily, and the 4 and 5, my biggest problem is step 3. What I've tried is by using the New-model command.

    Example: New-model -model 'Date of DevApp_today' -location a Datacenter in English (common name) VMHost - $HostA (a host in A data center) -data store $Data (storage in A data center) DiskStorageFormat - Thin -RunAsync-confirm: $false

    It works to get the center of data (B) (A) data center model, but he falls into the root of the data center (A). I know it's because in - place I put 'A' there, but I do not know in any case to decompose from there to drill down to the data center (A) subfolders. If I put the subfolder "(A) (B) (a) staging of Clone" it's all just a stink about how I already have a template of this name and it must be cloned in the same data center. Meanwhile once it reaches the root of (A) I have just run a Move inventory on the template to move to "(B) to (a) Clone staged."

    I have necessarily need a whole script created for me, I just want to know how to move the model obtained in (B) (a) without him having to be abandoned in the root (A), move inventory

    Not sure about the quotes or not, but may be necessary

  • The maximum size of the model in SQL Data Modeler?

    Hello

    The number of objects is the maximum value that can be used in a model in SQL data maker. I reverse engineered a scheme (see previous posts - thank you to all that helped) which contains 1000 + tables (a candidate for remanufacturing if ever I saw a!) but the Data Modeler is struggling to display them and performs very slowly. I can pull the same schema in the Oracle Designer and that works well, as ERwin-t - y at - it something I can do to improve the performance of the Data Modeler?

    Or people would recommend cutting the model into smaller pieces, which will be a little difficult because it's a bit of a rat's nest.

    John

    Hi John,.

    You can try to fix the memory usage - Re: problem of memory with large model

    And you may have better performance if divide you large diagram in subviews.

    Philippe

  • How can I get the filtered data from the first form

    How can I get the filtered data from the first form in a second form to make an update of the multi.
    Thank you very much

    William,

    I would use for this collections. A link is good if you need to pass a single value.

    1. create a collection
    2 fill the collection with your result set
    3. go in the page target and uses a method of a query in your link to this page
    4. your target page receives a request and allows you to edit documents.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Synchronization of the comments of the column from the relational model to the data dictionary?

    I changed/added comments of column to a table in my relational model. When I try to sync the database data dictionary changes are never included the observations of the new column. In fact, I see that the values in the field 'Commentary in RDBMS' are different in the preview window to compare, but the line is not highlighted in red I guess that, in fact it is even dimmed. Also, I can not check the check box "selected".

    Is there a way to get comments to synchronize? I don't miss any option that I first? Is this a bug or an expected behavior?

    I use the version 4.0.3 x 64 of the Data Modeler.

    Any help would be appreciated,

    Charlie

    Hi Charlie,

    but the line is not highlighted in red I guess that in fact it is grayed out even.

    "that means property is excluded from the comparison - the same dialog box click on tab -" Options > properties filters '-you can control the properties to include in compare it it is to say ' comment in RDBMS ' must be checked.

    Press the button "Refresh trees" after the properties are set correctly.

    Philippe

  • Table 2d-filtering data in column 1

    Hello, let me thank you for your help with this.

    I'm trying to understand a method takes an array 2d and pulling a specific section of this table based on the numbers in a column.  If it was excel, then I would be, for example, snapped up lines 28 to 65.  Specificaly, I like to shoot all the amplitudes associated with a range of frequencies.  You can set the limit higher than a single frequency and the lower limit to be a second frequency and a subarray will be created based on an original array that contains the results for that specific range.  For everything I tried, the end result is an empty array.  I will paste a link of my labview below code.

    This program is to find the equation of the lev - best mar for the amplitude of vibration based on the frequency.  He reads the data that has already been achieved.  The only parts that I'm getting is the adjusted vi, and must be run for each position of natural frequency, that's why I'm trying to build the filter table of he.  If you see a better way to do this, feel free to report it as well.  Part of the code, for example two tables that show the result after the filter, are for me to be able to see the result, while I'm doing the work of filtering.

    Thanks again for your help.

    This shows you how to get a subset of all the lines, where the number in the first column is between 400 and 500 (included). The bottom of the loop, this is how I would do it before LV2012. If you have LV2012, I would use the upper loop.

    Table functions, I used, from left to right, are table index, replace table subset and subset of the table.

  • If our lead scoring model uses a date field, what happens if a contact has a later date in this area?

    Our model way of notation uses a field of date for one of its criteria. In the event that the date field is populated with a date in the future (as the rating is based on recency) how the lead rating model would deal with it? For more information, the current lead score measures the date as a "in the last (period of time).

    In the last x period will always look like in time in the past, so in the case that a contact does not meet the specified criteria, they will not get marked with this particular rule.

  • Create dummy records using the model cluase with date field condition

    Hi all

    I have two tables below:

    create the table Interest_date

    (

    date of interest_date_field,

    Number of Interest_amount

    );

    create the table sys_date

    (type varchar2 (30),)

    date_value date

    );

    Insert all

    IN Interest_date values (to_date('01-11-2012','DD-MM-YYYY'), 20)

    IN Interest_date values (to_date('01-12-2012','DD-MM-YYYY'), 40)

    IN Interest_date values (to_date('02-01-2013','DD-MM-YYYY'), 60)

    IN Interest_date values (to_date('01-06-2013','DD-MM-YYYY'), 80)

    IN Interest_date values (to_date('01-07-2014','DD-MM-YYYY'), 10)

    IN Interest_date values (to_date('25-11-2014','DD-MM-YYYY'), 20)

    INTO SYS_DATE VALUES ('FIRST_DATE',TO_DATE('01-06-1900','DD-MM-YYYY'))--note: the year is not important but the date is used for other

    INTO SYS_DATE VALUES ('FIRST_DATE',TO_DATE('01-12-1900','DD-MM-YYYY'))--note: the year is not important but the date is used for other

    Select * twice;

    Requirement:

    I need to write a select statement that retrieves all the records in interest_date and add a dummy record according to what follows:

    -in NO case of JJ - MM interest_date_field for a given year (year group) = DD - MM of the date_value in sys_date where the type is "FIRST date"-> add a dummy record (date_value for type FIRST_DATE yyyy = year of interest_date_field, - 1)

    -in NO case of JJ - MM interest_date_field for a given year (group by year) = DD - MM of the date_value in sys_date where the type is 'SECOND DAY'-> add a dummy record (date_value for type SEOND_DATE yyyy = year of interest_date_field, - 1)

    Desired output:

    Interest_date_field Interest_amount

    06/01/2012-1

    11/01/2012 20

    12/01/2012 40

    01/02/2013 60

    06/01/2013 80

    12/01/2013-1

    06/01/2014-1

    07/01/2014 10

    25/11/2014 20

    01/12/2014-1

    Thank you very much

    Ferro

    Why not combine the first with the second approach:

    with the years as)

    Select distinct

    TO_CHAR (interest_date_field, "YYYY") y

    of Interest_date

    )

    year_dates as)

    Select

    to_date(y||) MD, 'YYYYMMDD') d

    years

    (to_char(date_value,'MMDD') md by selecting in SYS_DATE)

    )

    Select

    I have interest_date

    an interest_amount

    of interest_date

    model

    dimension (interest_date_field i)

    measures (Interest_amount a)

    rules)

    a [for i (select year_dates d)] = nvl (a [cv ()],-1)

    )

    i order

  • Custom object filters (data card)

    How do you run the filters with data cards?

    We have Contact information stored in the Contact record, and our products are stored against cards of data with the email address as a common link between them.

    I need to run reports for some products, that lists all the products selected for some countries.

    Kind regards

    John

    He discovered. Using the "field of the linked object Custom' and 'A related custom object' in the contact filter allows filtering in the game of the data card.

  • Problems with synchronization model with the data dictionary

    Let me start by saying that I do something wrong (there not much documentation on this product so far...).

    I designed my whole from scratch in SDDM 3 and then put model upgraded to SDDM 4. There is already a problem with the sync option from the data dictionary model, in which it works only if first import you an object any in the data dictionary for the model for the reverse to work. I did, and now I can't start the synchronization successfully. The thing is, but I have all the objects already created in my database, according to a specific schema, each time I start the synchronization, it always tells me that none of my model objects exist on the destination! I've tried setting the owner on the physical model, remove, modify the connection to connect with the owner objects, but nothing seems to work.

    Any ideas?

    Hello

    You need clear information source banner and rename the schema in the relational model if you want to use the Sync feature, otherwise, you can use import wizard of data dictionary (possibly to check 'target swap') and to

    don't check box "use schema property in compare features" If your schema is changed.-"preferences > Data Modeler > DOF > compare > ' or to compare options in compare dialog.

    You can clear information source banner by selecting all the objects on the diagram (Ctrl-A) and use 'Clear stamp source' in the context menu for the selected objects.

    In the next version - there are options to work around the source schema and the name of the source object, and you can use different user and change the name of the table in the physical model in order to synchronize with a different schema or even track changes in table name.

    Philippe

  • Models required for Data Migration

    Hi gurus of the Oracle,.

    I'm looking for SCM models underwear for the migration of the data:

    Master item template - for the migration of the elements in the instance
    OnHand quantity of model elements
    Rule template - for rules of sourcing migration in the supply system
    Min - Max sets to the level of the inventory under model - for the migration of configurations Qty Min - Max sub-inventory
    Open the template to point of sale
    Open the model order - for sale open migration controls in system

    If someone above models related above points, please send to [email protected]

    Hello

    For the item, pl. visit following links template.

    http://oracleappscommunity.com/Oracle/blog/2038/create-item-with-a-item-template/
    http://www.shareoracleapps.com/2011/03/item-import-based-on-item-template-in.html

    HTH
    Sanjay

  • Regarding the Model layer and data controls

    Hello

    I have a small query on the design of an application of the ADF.

    Scenario:
    I have a class (Model.java) in the model layer queries who manages all databases and the calculation of the other partners.
    I have a class (BackingBean.java) in the view events related to the layer of controller, which is a bean of support and manages all actions.

    Query:
    How to access the methods of Model.java of BackingBean.java for that architecture is not broken.

    Proposed solution:
    1. I create a data control that exposes all the methods and I give a call back bean by using the binding operation
    2. I call directly the Member of the class of functions of bean support and not through data controls.

    Which should be a better approach to 1 or 2 or any other suggestion.

    Thank you
    Rohit

    Published by: rohit6699 on March 28, 2012 12:13

    Data controls to "hide" the implementation of the underlying data source and also give you a way uniform (standard) access and data binding. It would be the main reason that I said "#1".

  • Helps the model clause. Date field in the Dimension

    Hello, all.

    I'm having a problem with the clause type in my query. In my view, it may be a misunderstanding on my part, but I can't find any documentation that is opposed to the use of the date fields in the dimensions of my model.

    Given these data;
    LOGDATE               SHIFTNAME  BUILDING  UNIT  DOORNUMBER  INOUT    EVENTCOUNT
    2012-02-01 06:00:00      A        1800      R      Door 4     Out         14
    2012-02-01 06:00:00      A        1800      R      Door 4     In          15
    2012-02-01 18:00:00      D        1800      R      Door 4     Out         17
    2012-02-01 18:00:00      D        1800      R      Door 4     In          19
    2012-02-02 06:00:00      A        1800      R      Door 4     Out         14
    2012-02-02 06:00:00      A        1800      R      Door 4     In          14
    ...
    I write my SQL like this:
    SELECT logdate, shiftname, building, unit, doornumber, inout, eventcount
      FROM door_events
     WHERE building='1800' AND unit='R' AND doornumber=4
     MODEL DIMENSION BY (logdate, shiftname, building, unit, doornumber, inout)
           MEASURES (eventcount)
          RULES ()
    And I get the expected result. (The same table as above) But when I try to add rows using rules, I get no new line until the LOGDATE field is a date. For example, by using this code, I expect to get a new line, with a 100 EVENTCOUNT (and other fields as written) but I stiill get the same set of data (no line is added)
    SELECT logdate, shiftname, building, unit, doornumber, inout, eventcount
      FROM door_events
     WHERE building='1800' AND unit='R' AND doornumber=4
     MODEL DIMENSION BY (logdate, shiftname, building, unit, doornumber, inout)
           MEASURES (eventcount)
           RULES (eventcount[SYSDATE,'X','1800','R',4,'In'=100)
    However, when I turn the LOGDATE field in a CHAR data type (and make the SYSDATE a TANK in the same way) with the code below, all of a sudden I get the line I was expecting!
    SELECT TO_CHAR(logdate,'YYYY-MM-DD HH24:MI:SS') logdate, shiftname, building, unit, doornumber, inout, eventcount
      FROM door_events
     WHERE building='1800' AND unit='R' AND doornumber=4
     MODEL DIMENSION BY (logdate, shiftname, building, unit, doornumber, inout)
           MEASURES (eventcount)
           RULES (eventcount[TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS'),'X','1800','R',4,'In'=100)
    
    
    LOGDATE               SHIFTNAME  BUILDING  UNIT  DOORNUMBER  INOUT    EVENTCOUNT
    2012-02-01 06:00:00      A        1800      R      Door 4     Out         14
    2012-02-01 06:00:00      A        1800      R      Door 4     In          15
    2012-02-01 18:00:00      D        1800      R      Door 4     Out         17
    2012-02-01 18:00:00      D        1800      R      Door 4     In          19
    2012-02-02 06:00:00      A        1800      R      Door 4     Out         14
    2012-02-02 06:00:00      A        1800      R      Door 4     In          14
    ...
    2012-02-07 15:18:33      X        1800      R      Door 4     In          100
    Can someone explain this behavior? I intend to do some calculations on the LOGDATE dimension and I would like to keep it as a date. Thanks in advance for any help!

    I do not get the same result. When I use SYSDATE, I don't get the extra line. When I use TO_CHAR (SYDATE...) as you say, I still don't get the extra line.

    However, when I use a constant date, such as TO_DATE (' 2012/02/07 02:00 ',' YYYY-MM-DD HH24:MI:SS'), then I get the extra line.

    This behavior is described in http://docs.oracle.com/cd/E11882_01/server.112/e25554/sqlmodel.htm#BEIGGGFJ

    «Using UPSERT creates a new cell corresponding to that referenced on the left-hand side of the rule when the cell is absent, and the cell reference contains only positional references * qualified constants *.»

    Best regards, stew Ashton

    P.S. "Oracle Database 11g Enterprise Edition Release 11.2.0.2.0.

    Published by: stew Ashton on 7 February 2012 23:03

  • Models of print data

    I started recently by using the function of data with SQL Developer 3.0.0.4 Modeler. I reverse engineered my small schema and I would like to print out the template. I have the relational model highlight, I click on file/data Modeler/print, it shows me a screen shot with my 7 tables on 4 pages, and if I print I get blank pages. Even if I change the "print scale:" to get all the tables to fit on a single page, it prints always empty.

    Hello if you search the forum I'm sure that you will get the details, but I remember there were two sets of contradictory batik jar come with sqldeveloper v3 libraries

    a good %SQLDEV_HOME%\extensions\oracle.datamodeler\lib-->, supports printing
    another under conflicting %SQLDEV_HOME%\jdev\lib-->; move or rename

  • Columns of REF Modeler 3.0 data in relational model

    Hello

    Anyone know how in Data Modeler 3.0 (Production), create a column in a relational table that reference (REF) an object table and then brought this REF to the table of the object?

    Thank you

    Technically this is not a problem however what kind of line you expect to see. Clause of "Scope" is not obliged referential, so we cannot use the FK line. We need another type of line - probably it will increase the complexity and decrease the understanding for large diagrams. The same concerns the functional dependencies.

    Philippe

Maybe you are looking for

  • My signatures "Apple Mail" have all gone

    My Apple Mail signatures are gone!  I don't know how it happened.  When I look in mail preferences, all the signatures for all of my email accounts are now gone.  I have 8 setup of email accounts and had 10 registered signatures. Of course, along wit

  • topic: home and about: newtab not loading, address is invalid

    Opening new tabs and clicking on the home button, that both lead to a page that tells me that the address is not valid. Looking on: around, I see that: newtab and about: home page are not present I have already reset firefox, and without the installe

  • I tunes could not verify your device

    What a solution with the upgrade of my ipad 2 on itunes, but the answer is "iTunes was unable to verivy your device? Please help me...

  • How can I activate on labels in the block diagram, but not on the front panel?

    This question may have been asked before, but searching the Forum did not. In LabVIEW 2010, I have 16 indicators of chain on the front panel. I can't have the label for each Visible on the front panel, so I turned it off. But in the block diagram, I

  • Virtual PC resolution problem.

    I have a Dell Inspiron 1545. I have Windows 7 and you are running Windows XP in Virtual PC mode. I have some programs that are not yet supported by Windows 7. My normal screen resolution is 1366 x 768, when I run in the Virtual PC mode of my resoluti