Ask the related Collection

Hello
I created a form using the collection.
I want it. I have 3 fields A, B and C and I want to correct the value of these fields in the form collection when I click Add row button. So much time I click on Add button line these value should be fixed in the columns in the collection.




Thank you
Nisha

Okay, do you want an entry to the collection value via your elements above reports, not through tabular presentation. Is this right?

If yes you change point 4:

Start

htmldb_collection.add_member
(p_collection_name-online 'COLL_BILL',
p_c001 =>: ITEM_A,
p_c002 =>: ITEM_B
);
end;

Condition
When you press the button
'Add the line '.

Tags: Database

Similar Questions

  • can we ask question related php here?

    I was wondering if it would be OK to ask the related issue of php on this forum?  There is no category or tags related to issues of the sort, but given the few people displaying their question on learning Fireworks with php question?  What is the rule for this forum on this topic?

    PHP SOLUTIONS teaches by working through a series of projects. The methods of coding that powers teaches are excellent. Many tutorials leave out important, as aspects of security considerations, but the powers provide relatively complete solutions.

    PHP PROGRAMMING is more of a text book. You can read through or choose the different sections of the chapters.

    Then down the road there are advanced books like PHP OBJECTS, MODELS AND PRACTICES

    Of course, you must also learn SQL. There are big big tomes like SQL for MYSQL, but I think you can get by learning a lot of SQL through web tutorials that cover various topics, like you need to learn.

  • I already sent my phone to apple service center I am able to ask the service center to fix at the service of my phone that I would not be able to collect my phone on the estimated time

    I already sent my phone to apple service center I am able to ask the service center to fix at the service of my phone that I would not be able to collect my phone on the estimated time

    I guess you can always contact them using the contact information they provided and ask them.  If they can you host or not is not something that anyone here can say.

  • When file/collection, how can I delete all the related items that are not on my last composition?

    Hello, I have a great difficulty using the file/collection a large file I did months ago, because when I use it, the file is created, but it takes 2.5 to space! compared to others of my works, taking almost 1 TB of files, this one is too big and I think by deleting some files, but I don't want to make a mistake, so I wanted to ask here, if it is possible to take a main composition and only do a file/collection of this composition, objects and elements that serve there (the last I made on my account at least, with the elements used on that, because I think that there are many (if not a large part of them) files and elements that are not used in the final version, as scenes of the version beta of my work, the problem is the composition is too long and have a lot of different archives or drop movies then it could take forever to do it manually...

    Thanks for reading me! I hope that this is a solution...

    It's a two-step process:

    1. reduce your project to the desired composition.

    2 recover your files.

  • Zoo Tycoon 2: the zookeeper Collection installs, works to the contrary uninstall

    good so I had problems to run the game (I have now found that an update of Avast has been preventing running games so I have to turn everything off first, before running some of my games). so I uninstalled. only when I went to install Collection of Zookeeper (looking to skip a step, since it's three games in one) I click on install, and instead, it asking me questions for uninstall and is yet to install the program

    so today I tried to install Zoo tycoon 2, the base game and installed. Then I tried zookeeper collection. It does the same thing. I tried my missing pets and that it has installed. I'll try the zookeepers collection once more. but my hopes are not up. for some reason, I can't collection of tea another Zookeeper downloadable thing going through the stage of uninstall to remove parts saved, and content.
    I want to know how to get my installed ZooKeeper collection because I really want my African adventures and endangered species.
    I was able to overcome this problem by following these steps for Windows 7. First, go to the control panel and uninstall all the programs related to Zoo Tycoon. Then, type "regedit" in the search box after clicking on the button 'start '. You can search "zoo" and delete the entries that correspond to the "CLEAR" Zoo Tycoon, nothing else. Then go to the computer, then the drive Local (c), then Program Files (x 86), then the information of InstallShield. A list of folders will fill. Look at the dates and try to determine where you originally installed Zoo Tycoon 2 and delete these folders. So try and re - install Zoo Tycoon 2 and it should install correctly. Apparently, the developer, Blue Fang Games, neglected aspects of the use of InstallShield and program still considers that it is installed by looking at the InstallShield folder that was created when you initially installed the game! By deleting this file, it will install then.
  • AT300 - battery / load the related question

    Hi all

    May I ask your help with a battery / load the related question

    I used my AT300 a few weeks back and I forgot to turn if off battery voltage flat then, so the next day, plugged the charger, but the loading icon does not appear on the screen.

    Sort left connected to work, but after 8 hours always toll-free, I'll start when plugged into the charger but dies as soon as it s disconnected.

    I thought that I may have killed the battery I found some people saying that if they are allowed to carry out completely so that they will not return to the top.

    So has his hand on another battery but same thing, the guy then a charged battery for me and I got him and started toward the top of a stack, but there is a red exclamation mark on the battery icon and the unit will still not take a charge

    If I plug the charger in the icon changes to show that there main power, if I look at the setting and go to the battery it says 0% unknown battery

    So I am at a loss and hope that some of you may have encountered this and have an idea how to solve this problem

    Thank you very much

    Hmm kinda sounds like some hardware issue about...
    To be honest, this is the first time that someone has reported these problems here in the forum.

    But have you ever tried to reset the default Tablet?
    Press and hold the power button / stop and the volume up button.
    Now the recovery menu appears providing different option. One of the option should allow you to reset the tablet.
    To navigate between options, use the volume up/down button.

    I hope that affecting the default tablet would help you to fix it otherwise, it seems to be hardware related issue.

  • How to create indexes on the ordered collection of XMLTYPE table?

    I use Oracle 11.2.0.2.

    Basically, my XML documents have a 3-level hierarchy:

    event

    + - action [1: n]

    + - param [1: n]

    I try to create indexes on the tables of the orderly collection, but cannot get the right syntax...

    I created a table with an XMLType object-relational column:

    CREATE TABLE T_C_RMP_MNTRNG_XML_FULL_IL4 (
      MESSAGE_ID NUMBER(22,0) NOT NULL ENABLE,
      XML_EVAL_ID NUMBER(22,0),
      VIN7 VARCHAR2(7 BYTE),
      FLEET_ID VARCHAR2(50 BYTE),
      CSC_SW_VERSION VARCHAR2(100 BYTE),
      RECEIVED DATE,
      XML_CONTENT SYS.XMLTYPE ,
      DWH_LM_TS_UTC DATE NOT NULL ENABLE,
      CONSTRAINT PK_C_RMP_MNTRNG_XML_FULL_IL4 PRIMARY KEY (MESSAGE_ID)
    ) NOLOGGING TABLESPACE CATALOG
    VARRAY "XML_CONTENT"."XMLDATA"."action" STORE AS TABLE "T_OR_MON_ACTION" (
      NOLOGGING TABLESPACE "CATALOG"
      VARRAY "param" STORE AS TABLE "T_OR_MON_ACTION_PARAM" (
      NOLOGGING TABLESPACE "CATALOG"
      ) RETURN AS LOCATOR
    ) RETURN AS LOCATOR
    XMLTYPE XML_CONTENT STORE AS OBJECT RELATIONAL XMLSCHEMA "http://mydomain.com/cs.xsd" ELEMENT "monitoring";
    
    
    
    
    

    I execute the SELECT statement:

    SELECT EVENT_ID, ACTION_SUB_ID, MESSAGE_ID, ACTION_TYPE, UNIXTS_TO_DATE(ACTION_TIMESTAMP) ACTION_TIMESTAMP
    FROM T_C_RMP_MNTRNG_XML_FULL_IL4, 
    XMLTABLE( 
      'for $i1 in /monitoring , 
      $i2 in $i1/action            
      return element r {              
      $i1/eventId,              
      $i2            
      }' 
      PASSING XML_CONTENT COLUMNS 
      EVENT_ID VARCHAR(40) PATH 'eventId', 
      ACTION_SUB_ID INTEGER PATH 'action/actionSubId', 
      ACTION_TYPE VARCHAR2(100) PATH 'action/type', 
      ACTION_TIMESTAMP NUMBER(13,0) PATH 'action/time' 
    ) T2 
    WHERE ( 
      EVENT_ID IS NOT NULL AND ACTION_SUB_ID IS NOT NULL 
    )
    
    
    
    
    

    The plan of the explain command looks like this (sorry, don't know how to get it formatted any 'eye-team'):

    ----------------------------------------------------------------------------------------------------------

    | ID | Operation | Name                        | Lines | Bytes | TempSpc | Cost (% CPU). Time |

    ----------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                             |  1609K |  6316M |       |  6110K (1) | 20:22:11 |

    |*  1 |  HASH JOIN |                             |  1609K |  6316M |   111 M |  6110K (1) | 20:22:11 |

    |   2.   TABLE ACCESS FULL | T_C_RMP_MNTRNG_XML_FULL_IL4 |   582K |   104 M |       |  5241 (1) | 00:01:03 |

    |*  3 |   TABLE ACCESS FULL | T_OR_MON_ACTION |    32 M |   117G |       |   105K (2) | 00:21:08 |

    ----------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    1 - access ("NESTED_TABLE_ID"= "T_C_RMP_MNTRNG_XML_FULL_IL4"." ("SYS_NC0001300014$")

    filter (CAST (SYS_XQ_UPKXML2SQL (SYS_XQEXVAL (SYS_XQEXTRACT ((SYS_XMLGEN ("T_C_RMP_MNTRN XMLCONCAT

    G_XML_FULL_IL4 ". "" $ SYS_NC00017 ", NULL, SYS_XMLCONV ("T_C_RMP_MNTRNG_XML_FULL_IL4". "SYS_NC00012$", 0.32,

    (('EC1EEF23FD023A27E04032A06D930A8D', 3, 3783, 1)), SYS_MAKEXML ('EC1EEF23FD023A27E04032A06D930A8D', 3780,

    'T_C_RMP_MNTRNG_XML_FULL_IL4 '. "' SYS_NC00008$ ', 'SYS_ALIAS_0 '. ((("' SYS_NC_ROWINFO$ ')),'/ ID ', NULL), 0,.

    0,20971520,0), 50.1, 2) AS VARCHAR (40)) IS NOT NULL)

    3 filter (CAST (TO_NUMBER (TO_CHAR ("SYS_ALIAS_0". "actionSubId")) AS INTEGER) IS NOT NULL) "

    Note

    -----

    -dynamic sample used for this survey (level = 2)

    -Construction detected no optimized XML (activate XMLOptimizationCheck for more information)

    The XML schema looks like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:oraxdb="http://xmlns.oracle.com/xdb" oraxdb:storeVarrayAsTable="true" oraxdb:flags="2105639" oraxdb:schemaURL="http://mydomain.com/cs.xsd" oraxdb:schemaOwner="MYUSER" oraxdb:numProps="23">
      <xs:element name="monitoring" oraxdb:propNumber="3785" oraxdb:global="true" oraxdb:SQLName="monitoring" oraxdb:SQLType="monitoring755_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="monitoring757_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="monitoring755_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element maxOccurs="unbounded" ref="action" oraxdb:propNumber="3780" oraxdb:global="false" oraxdb:SQLName="action" oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false" oraxdb:SQLCollType="action756_COLL" oraxdb:SQLCollSchema="MYUSER"/>
            <xs:element ref="reservationType" oraxdb:propNumber="3781" oraxdb:global="false" oraxdb:SQLName="reservationType" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="softwareVersion" oraxdb:propNumber="3782" oraxdb:global="false" oraxdb:SQLName="softwareVersion" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="eventId" oraxdb:propNumber="3783" oraxdb:global="false" oraxdb:SQLName="eventId" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="vin" oraxdb:propNumber="3784" oraxdb:global="false" oraxdb:SQLName="vin" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="action" oraxdb:propNumber="3790" oraxdb:global="true" oraxdb:SQLName="action" oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="action754_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element ref="type" oraxdb:propNumber="3786" oraxdb:global="false" oraxdb:SQLName="type" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element maxOccurs="unbounded" ref="param" oraxdb:propNumber="3787" oraxdb:global="false" oraxdb:SQLName="param" oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false" oraxdb:SQLCollType="param753_COLL" oraxdb:SQLCollSchema="MYUSER"/>
            <xs:element ref="actionSubId" oraxdb:propNumber="3788" oraxdb:global="false" oraxdb:SQLName="actionSubId" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="time" oraxdb:propNumber="3789" oraxdb:global="false" oraxdb:SQLName="time" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="type" type="xs:string" oraxdb:propNumber="3791" oraxdb:global="true" oraxdb:SQLName="type" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="type751_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="param" oraxdb:propNumber="3794" oraxdb:global="true" oraxdb:SQLName="param" oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="param750_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element minOccurs="0" ref="value" oraxdb:propNumber="3792" oraxdb:global="false" oraxdb:SQLName="value" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="key" oraxdb:propNumber="3793" oraxdb:global="false" oraxdb:SQLName="key" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="value" type="xs:string" oraxdb:propNumber="3795" oraxdb:global="true" oraxdb:SQLName="value" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="value748_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="key" type="xs:string" oraxdb:propNumber="3796" oraxdb:global="true" oraxdb:SQLName="key" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="key747_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="actionSubId" type="xs:integer" oraxdb:propNumber="3797" oraxdb:global="true" oraxdb:SQLName="actionSubId" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:defaultTable="actionSubId746_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="time" type="xs:integer" oraxdb:propNumber="3798" oraxdb:global="true" oraxdb:SQLName="time" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:defaultTable="time745_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="reservationType" type="xs:string" oraxdb:propNumber="3799" oraxdb:global="true" oraxdb:SQLName="reservationType" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="reservationType744_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="softwareVersion" type="xs:string" oraxdb:propNumber="3800" oraxdb:global="true" oraxdb:SQLName="softwareVersion" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="softwareVersion743_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="eventId" type="xs:string" oraxdb:propNumber="3801" oraxdb:global="true" oraxdb:SQLName="eventId" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="eventId742_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="vin" type="xs:string" oraxdb:propNumber="3802" oraxdb:global="true" oraxdb:SQLName="vin" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="vin741_TAB" oraxdb:defaultTableSchema="MYUSER"/>
    </xs:schema>
    
    
    
    
    

    How can I create an index on these tables of the ordered collection to improve performance?

    I found the example at http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb_rewrite.htm#ADXDB5859 but am not able to apply to this particular case...

    Thank you in advance...

    If the schema is not annotated and XS: Integer and XS: String are mapped to types of data NUMBER and VARCHAR2 (4000), so you must use in your query to avoid typecasting unnecessary operations.

    You must also use XMLTABLEs chained when accessing a parent/child instead of a FLWOR expression relationship, otherwise the CBO cannot rewrite the XQuery query correctly (maybe it's fixed in the latest version).

    If you make these changes, the plan should show the cleaner predicates:

    SQL > SELECT EVENT_ID, MESSAGE_ID, ACTION_TYPE, ACTION_SUB_ID, ACTION_TIMESTAMP

    2 FROM test_table

    3 XMLTABLE ('/ monitoring ')

    4 COLUMNS XML_CONTENT OF PASSAGE

    5 WAY of VARCHAR2 (4000) EVENT_ID "ID."

    6 actions for XMLTYPE PATH 'action '.

    (7) T1,

    8 XMLTABLE ('/ action')

    Shares of PASSAGE 9 COLUMNS

    NUMBER of ACTION_SUB_ID 10 PATH "actionSubId."

    11 PATH of VARCHAR2 (4000) ACTION_TYPE "type."

    12 WAY of NUMBER ACTION_TIMESTAMP 'time '.

    (13) T2

    14 WHERE EVENT_ID IS NOT NULL

    15 AND ACTION_SUB_ID IS NOT NULL

    16;

    Execution plan

    ----------------------------------------------------------

    Hash value of plan: 1763884463

    ------------------------------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

    ------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                 |   109.   220K |     6 (17). 00:00:01 |

    |   1.  THE MERGE JOIN.                 |   109.   220K |     6 (17). 00:00:01 |

    |*  2 |   TABLE ACCESS BY INDEX ROWID | TEST_TABLE |    11.   352.     2 (0) | 00:00:01 |

    |   3.    INDEX SCAN FULL | SYS_C007567 |    11.       |     1 (0) | 00:00:01 |

    |*  4 |   JOIN TYPE.                 |   109.   216K |     4 (25) | 00:00:01 |

    |*  5 |    TABLE ACCESS FULL | T_OR_MON_ACTION |   106 S 216K |     3 (0) | 00:00:01 |

    ------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    2 - filter("TEST_TABLE".") (' SYS_NC00012$ ' IS NOT NULL)

    4 - access("SYS_ALIAS_0".") NESTED_TABLE_ID "=" TABLE_TEST. " ("' SYS_NC0000800009$ ')

    filter ("SYS_ALIAS_0". "NESTED_TABLE_ID"="TABLE_TEST" "." " ("SYS_NC0000800009$")

    5 - filter("SYS_ALIAS_0"." actionSubId» IS NOT NULL)

    Note

    -----

    -dynamic sample used for this survey (level = 2)

    Now, if it is still necessary, everything boils down to choosing a technique for index NULL values:

    -composite index with a column not zero or constant

    -FBI

    -bitmap image

    Choose the one that best fits your data, the selectivity and activity on the tables.

  • Lightroom 5: AppleScript: action 'AXShowMenu' in the Smart Collection Panel does not display a context menu

    We are developing a tool for simple automation using Lightroom 5 (the most recent version of the penal code) using AppleScript.

    For certain actions, we need the context menu in the Panel smart Collections, for example, to import smart collections descriptions.

    According to the documentation and sources on stackoverflow and elsewhere, AXShowMenu should bring up this menu.

    So far I was not able to do the contextual pop-up menu.

    With the help of UIElementInspector and the browser of the user interface, I have found the element that has the attached AXShowMenu action. Based on the code provided by the browser of the user interface, I got the following script, that I run from the Applescript Editor:

    tell application "Adobe Photoshop Lightroom 5"

    activate

    tell application "System Events"

    tell process "Lightroom"

    set frontmost to true

    perform action 1 of static text "Smart Collections" of group 1 of row 11 of outline 1 of scroll area 1 of window 6

    delay 2

    end tell

    end tell

    end tell

     

    tell application "AppleScript Editor" to activate

    Note that if you try to recreate it, the number of the window as well as the number of the line may be different. In addition, the last line is just more convenience and not really relevant to the code.

    In the window results in the AppleScript Editor, I have the following:

    perform action 1 of static text "Smart Collections" of group 1 of row 11 of outline 1 of scroll area 1 of window 6 of process "Lightroom"

    --> action "AXShowMenu" of static text "Smart Collections" of group 1 of row 11 of outline 1 of scroll area 1 of window 6 of application process "Adobe Photoshop Lightroom 5"

    which means I have to invoke the action.

    But... nothing happens.

    Any insight, etc. workaround is much appreciated.

    Thanks in advance.

    Just for the records, I asked the same question on Stackoverflow, and I got a response that does not work. This solution uses a small Python program to really simulate mouse clicks.

  • Different "views" of the same collection of ArrayCollection

    Hello

    How would be the best way to do this?

    I'm going to simpify the problem, so it's quite fictitious...

    Let's say I have a class, student:

    public class student

    {

    public var name: String;

    public var isActive:Boolean;

    public var averageGrade:int; 0 = 1 A = 2 B = C, 3 = D (or other)

    public var likesCabbage:Boolean;

    }

    I have a collection of all students in my school, called allStudents ArrayCollection.

    Now, I want to display on a single screen, several views of this collection ArrayCollection:

    1. all students (IE not filtered)

    2. students where isActive = true;

    3. students with an average grade of B or above

    4. students who like cabbage.

    Obviously, if I simply apply a filter to the collection ArrayCollection, it will have an impact on all of these points of view. So I need basically a filter that is limited to each component.

    I could copy the ArrayCollection collection four times (a loop in the original and using addItem() to add each item to the new collections, so that they are not related) and apply a filter to each new collection, but this seems messy - and among other problems, the ArrayCollections news will not be linked to the original, so if this changes, others will not automatically be updated.

    Is there a best practice for this situation?

    Thank you!

    ListCollectionView is your friend!

    var unfiltered: ListCollectionView = new ListCollectionView (mySourceAC.list);

    var active: ListCollectionView = new ListCollectionView (mySourceAC.list);

    active. FilterFunction = activeFilterFunction;

    class var: ListCollectionView = new ListCollectionView (mySourceAC.list);

    graded.filterFunction = gradedFilterfunction;

    Points of view all the wrap the same source so you only have to update that.

    You may have to monkey with refresh() sometimes, but that's a small price to pay!

  • Is it possible to search the ArrayCollection collection by index?

    Hi all

    I know, we can loop and compare each element of the ArrayCollection collection to get the correct item that we want. Obveriously, performance is going to hurt and it is not a wise method of search. Can we create an index for the key field of each item? Or any other class offering such a feature?

    Thank you

    When you say "a clue" are you talking like one in a table of database index?  That is something that can speed up a search?

    I'm trying to understand your desire and I think that what I hear, is that you have an ArrayCollection collection contains a number of objects.   When you want to find a particular object, you have found a way to locate the desired instance to browse each item in the collection ArrayCollection and ask "this element is equal to the key of the object I'm looking for?   I think that you are concerned by the amount of time it can take.

    Go back decades to my knowledge of computer science, this is an o(n) algorithm where n is the number of items in the table.

    Now, if there was an 'index' (ala databases) on the data, so if this index have been sorted, you would be able to find your match in O (log n)

    You can pay an O (n log n) cost the sort index when the data structure is created, but if you have a large number of research, then it can pay for itself.

    I'm not aware of any function that will help you on this out of the box (but that doesn't mean not there does not exist, only that I don't know about it.)

    I would like to also truthly ask yourself "is it worth the cost?   How many items you will have a typical table?  How often do you locate an entry in this table?

    Neil

  • How insert/DML data in the table when the data in the related table changes

    Hello guys!

    I came across a problem that I need to get fixed. Because I don't know how to start and get it resolved I wanted to ask you for your expertise.

    The scenario is as follows:

    I have a table 'a' in my 10g database and a view "ab" which combined table 'a' with 'b' table in a view. However, the 'b' table is a table in another schema Manager database. and accessible (read only right) via a database link.

    Now here it is: whenever the data changes in table "b", for example 2 new sets of data is inserted, I need to insert automatically the 2 values of these 2 sets of data in my table "a". Same procedure for update and delete in table "b".

    The action that inserts data into the table 'a' must be initialized in my database, I have limited access to the other. Can I somehow use a trigger my reviews of "ab" to insert data into the table "a"? Or is it possible to use the "change notification procedure database" using the view as the reference?

    Desperately need help and example of all suspicion/code greatly appreciated. I am very new to Oracle and not very fond of PL/SQL routines. So please be so kind as to give me more details.

    Thanks in advance - I hope you have any ideas how I can get this problem resolved.

    Sebastian

    >

    ... it does not, since the DDL operations are not permitted on the remote databases (ORA-02021). I can't create the trigger on a view either. :-(
    So what ways are left to insert data into the table 'a' when the related table changes?

    Please, help if you have an idea!

    Yes,
    You can't perform the DDL (create the trigger...) on remote databases as you can see...
    Try to create this trigger in the local database that will make DML (insert into...) on the remote database.

        CREATE OR REPLACE TRIGGER local_forward_pt_after_insert
         AFTER INSERT
             ON N2K_INV_PT
             FOR EACH ROW
    
         BEGIN
             -- Insert records into table "a"
             INSERT INTO TBL_PUNKTDATEN@remote_database_sid
              ( INT_NUMMER,
                STR_GEBIET
                 )
             VALUES
              ( :new.INT_INV_PT_NR,
                :new.GEBIET );
         END;
    

    Thank you

    Good luck

  • If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?

    If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?
    (sometimes, someone answers my question, and I want to mark it as the solution and am not yet quite ready for the thread be closed...)

    If you still experience this issue, you can return to this thread.
    But, you must clear the flag solved .

  • I have phone i6, when I connect the Wi - Fi, it was connected, but in case of auto-lock, when I open the auto lock or if I m not used 2 or 3 minutes more, he will ask the password for Wi - Fi.

    I have phone i6, when I connect the wi - fi, it was connected, but when the automatic locking has occurred or if I'm not used the phone minutes 2 or 3, after that I'll use the phone, once again, it will ask the password for wi - fi.

    What is an i6 iPhone? There are:

    iPhone 6

    iPhone 6 +.

    iPhone 6 s

    iPhone 6s +.

  • How can I disable all the related links?

    I never get tired to find the related link info. they pop up whenever I go to another site - I want to get rid of it - please help!

    Sounds like an extension not desired may have snuck on your system, perhaps as a ride-along with some free software.

    Try disabling all extensions essential or unknown here (when in doubt, turn off):

    Firefox orange (or the Tools menu) button > addons > Extensions category (in the left column, click on Extensions)

    Typically, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Which closes down?

  • Sync error: download of files didn't: "customer number: ask the too big body."

    1328917629619 Sync.Engine.AdblockPlus DEBUG Uploading reports omitted: "customer number: ask too big body."
    In the case of 2 computer Win 7 and Win XP 1 computer sync'd. Without the block, add more being sync had everything works.

    Hello!

    This is a problem with the sync engine add Block more. It seems they have questions on their servers.

    Try asking the same question in their forum: https://adblockplus.org/forum/

    Good luck!

Maybe you are looking for