Select boxes dependent on each other?

Hi is there a way to use selectboxes / textfileds that depend on each other.
select box 1. reads from database names
select box 2. this one is filled when a chiose from box 1 is selected.
(after a database question based on the result in box 1)
inupttextfields 1 and 2 are filled after a new database request based on the choise in select box 2.
pleased with different kind of answers. without javascripts adn also with use of
javascripts. (Im not so used with javascripts)
Plese give me a simple example and not just a link.
thanks.

Plese give me a simple example and not just a link.There is no simple example, because this is highly specific on your webpage implementation and database. search google for "javascript dynamic select box", or "javascript dynamic option lists". That should give you some examples.

Similar Messages

  • Three ComboBoxes Dependent on Each Other - Please Help

    I am trying to figure out how to make the data displayed in three ComboBoxes dependent on each other while not hard-coding business rules in "if" constructs, but instead use an ArrayCollection of invalid combinations.
    After compiling the following code and launching, the "$100.00" item in the Tariff ComboBox will be grayed out and inactive
    because its "valid" field is "false".
    QUESTION: what should be added to this application to support the following use cases of the ComboBoxes:
    1) If the user selects clothes and China in the Product and Source ComboBoxes, the "valid" field for the "$100.00" item in the "tariff" ArrayCollection changes to "true", so the "$100.00" item is black and active. Also, the "valid" field for the "none" item in the "tariff" ArrayCollection changes to "false", so the "none" item is gray and inactive.
    2) If after performing 1) above, the user selects Mexico Source ComboBox, the "valid" field for the "$100.00" item in the "tariff" ArrayCollection changes to "false", so the "$100.00" item is gray and inactive. Also, the "valid" field for the "none" item in the "tariff" ArrayCollection changes to "true", so the "none" item is black and active
    I do not want to hard-code these business rules using if() constructs in ComboBox change handlers. Instead, I want to use the "invalid" ArrayCollection below to enforce whatever invalid combinations are in that AC. This will enable a flexible system.
    I've been wracking my brain on this one so please help.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.collections.ArrayCollection;
          import mx.events.FlexEvent;
          /* The items in these ComboBoxes will be grayed out and inactive
             if their "valid" field is "false".
             After launching the application, open the "Tariff" ComboBox
             and notice the $100.00 item is grayed out and cannot be selected.
             QUESTION: what should be added to this application to support
                       the following use cases of the ComboBoxes:
             1) If the user selects clothes and China in the Product and
                 Source ComboBoxes, the "valid" field for the "$100.00" item
                 in the "tariff" ArrayCollection changes to "true", so the
                 "$100.00" item is black and active. Also, the "valid" field
                 for the "none" item in the "tariff" ArrayCollection changes
                 to "false", so the "none" item is gray and inactive
             2) If after performing 1) above, the user selects Mexico Source
                 ComboBox, the "valid" field for the "$100.00" item in the
                 "tariff" ArrayCollection changes to "false", so the "$100.00"
                 item is gray and inactive. Also, the "valid" field for the
                 "none" item in the "tariff" ArrayCollection changes to "true",
                 so the "none" item is black and active
             I do not want to hard-code these business rules using if() constructs
             in ComboBox change handlers. Instead, I want to use the "invalid"
             ArrayCollection below to enforce whatever invalid combinations
             are in that AC. This will enable a flexible system.
          [Bindable] private var product:ArrayCollection = new ArrayCollection([
            {label: "cars", valid: true},
            {label: "clothes", valid: true}
          [Bindable] private var source:ArrayCollection = new ArrayCollection([
            {label: "China", valid: true},
            {label: "Mexico", valid: true}
          [Bindable] private var tariff:ArrayCollection = new ArrayCollection([
            {label: "none", valid: true},
            {label: "$100.00", valid: false}
          [Bindable] private var invalid:ArrayCollection = new ArrayCollection([
            ["cars"],["China"],["$100.00"],
            ["clothes"],["China"],["none"],
            ["clothes"],["Mexico"],["$100.00"]
          [Bindable] private var currProduct:Object = new Object();
          [Bindable] private var currSource:Object = new Object();
          [Bindable] private var currTariff:Object = new Object();
          private function init():void{
            systemManager.addEventListener(FlexEvent.VALUE_COMMIT, sysMgrHandler, true);
          private function sysMgrHandler(evt:FlexEvent):void{
            if(evt.target is ComboBox){
              var tgt:ComboBox = evt.target as ComboBox;
              switch(tgt){
                case cbxOne:
                  if(tgt.selectedItem.valid == false){
                    tgt.selectedItem = currProduct;
                  break;
                case cbxTwo:
                  if(tgt.selectedItem.valid == false){
                    tgt.selectedItem = currSource;
                  break;
                case cbxThree:
                  if(tgt.selectedItem.valid == false){
                    tgt.selectedItem = currTariff;
                  break;
        ]]>
      </mx:Script>
      <mx:Label text="Tariff Calculator"/>
      <mx:Canvas width="{hb.width}">
        <mx:Label text="Product:" x="{cbxOne.x}"/>
        <mx:Label text="Source:" x="{cbxTwo.x}"/>
        <mx:Label text="Tariff:" x="{cbxThree.x}"/>
      </mx:Canvas>
      <mx:HBox id="hb">
        <mx:ComboBox id="cbxOne" dataProvider="{product}" open="currProduct=cbxOne.selectedItem;">
          <mx:itemRenderer>
            <mx:Component>
              <mx:Label text="{data.label}" color="{uint(data.valid==true?0x000000:0xCCCCCC)}"/>         
            </mx:Component>
          </mx:itemRenderer>
        </mx:ComboBox>
        <mx:ComboBox id="cbxTwo" dataProvider="{source}" open="currSource=cbxTwo.selectedItem;">
          <mx:itemRenderer>
            <mx:Component>
              <mx:Label text="{data.label}" color="{uint(data.valid==true?0x000000:0xCCCCCC)}"/>         
            </mx:Component>
          </mx:itemRenderer>
        </mx:ComboBox>
        <mx:ComboBox id="cbxThree" dataProvider="{tariff}" open="currTariff=cbxThree.selectedItem;">
          <mx:itemRenderer>
            <mx:Component>
              <mx:Label text="{data.label}" color="{uint(data.valid==true?0x000000:0xCCCCCC)}"/>         
            </mx:Component>
          </mx:itemRenderer>
        </mx:ComboBox>
      </mx:HBox>
    </mx:Application>

    It seems like you may want another layer of indirection here. Not necessarily another class (that's probably needed, but orthogonal), but it seems awkward that your "valid/invalid" flags are sitting there directly in the combobox data provider ACs.The items themselves aren't really valid or invalid: it's whether they are selectable in the comboboxes based on the state of the entire application. Instead of storing plain Objects in those ACs, I'd suggest something like
    class Validator {
      public var selectedSource:String;
      public var selectedProduct:String;
      public var selectedTarriff:String;
      public var invalid:ArrayList
      public function isValid(type:String,item:String):Boolean {
        // loop over invalid to determine whether this particular item is valid, given the
        // currernt combination of selected items
    class ValidatedItem {
      public var name:String;
      public var type:String;
      public var validator:Validator;
      public function get valid():Boolean {
        return validator.isValid(type, name);
    Then fill your combobox dataproviders with ValidatedItems instead of Objects. You'll need to instantiate the Validator once for the app and inject it into each item (a Dependency Injection infrastructure like Mate or SmartyPants can make this easier). You can use a Singleton instead if that's more your thing (I'm trying to de-Singleton my life).
    I think that you'll need to wire some extra binding to Validator since otherwise ValidatedItem won't update the valid property when the selected items on Validator change, but that's straigthforward.
    Is this the sort of approach you were thinking of?
    Maciek Sakrejda
    Truviso, Inc.
    www.truviso.com
    Truviso is hiring: http://www.truviso.com/company-careers.php?i=87

  • Responsive design - how do boxes go under each other

    Hello,
    I want to make a responsive animation, I can rescale the whole animation, but in this case the text will be very small.
    I have 4 boxes next to each other, and I what I would like to do, when I resize the browser at a point the boxes would go under each other. Is there a way to do this?

    Hi, Mandi-
    So what you're talking about is a feature that many are calling "adaptive layout."  While Animate doesn't do this natively, you might want to check out the EdgeCommons library, which will allow you to set symbols for different widths based on media queries.
    http://www.edgedocks.com/edgecommons
    Hope this helps,
    -Elaine

  • Connecting two m-audio box's with each other?

    Hi Everyone. I've got two M-Audio Solo box's. Is there any way i connect those two with each other so i can use both at the same time in GB?
    Many thanks!!!

    Just plug them in and create an aggregate device that consists of them. You can open Audio MIDI Setup utility and search its help for "Aggregate" to find out how, or if you want a step by step, here's a tut:
    http://thegaragedoor.com/tutorials/agg.html

  • How to deploy projects having dependancy on each other and other libraries

    I have two projects in my application i.e. model and viewController. Viewcontroller is dependant on model.
    I am using third party jar files in both of them. Now when i deploy the model it gets deployed but when i try to deploy viewcontroller. i get error..
    WARNING: DeployerRunnable.run NoClassDefFoundErrororacle.oc4j.admin.internal.DeployerException: NoClassDefFoundError
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:134)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: javax.faces.event.PhaseListener
         Dependent class: net.sf.jsfcomp.chartcreator.ChartListener
         Loader: s3view.root:0.0.0
         Code-Source: /F:/oracle/product/10.1.3/OracleAS_1/j2ee/home/applications/s3view/chartcreator-1.2.0-RC1.jar
         Configuration: manifest of /F:/oracle/product/10.1.3/OracleAS_1/j2ee/home/applications/s3view/s3model.jar
    The missing class is available from the following locations:
         1. Code-Source: /F:/oracle/product/10.1.3/OracleAS_1/j2ee/home/applications/s3view/s3view/WEB-INF/lib/jsf-api.jar (from WEB-INF/lib/ directory in F:\oracle\product\10.1.3\OracleAS_1\j2ee\home\applications\s3view\s3view\WEB-INF\lib)
         This code-source is available in loader s3view.web.s3view:0.0.0. This is a child of the dependent loader s3view.root:0.0.0.
         at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2247)
         at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1457)
         .....

    dependancies are already set.. project runs fine with embeded oc4j.. Problem is with deployment to Oracle AS 10g.

  • Place two selection screen BLOCKS  beside each other

    I want to place 2 selectio-screen blocks side by side instead of 1 below other.
    How to do that .?
    Please help.

    Just copy and paste and give the text elements with some texts.
    selection-screen begin of line.
      parameters session radiobutton group ctu.  "create session
      selection-screen comment 3(20) text-s07 for field session.
      selection-screen position 45.
      parameters ctu radiobutton group  ctu.     "call transaction
      selection-screen comment 48(20) text-s08 for field ctu.
    selection-screen end of line.
    selection-screen begin of line.
      selection-screen comment 3(20) text-s01 for field group.
      selection-screen position 25.
      parameters group(12).                      "group name of session
      selection-screen comment 48(20) text-s05 for field ctumode.
      selection-screen position 70.
      parameters ctumode like ctu_params-dismode default 'N'.
                                          "A: show all dynpros
                                          "E: show dynpro on error only
                                          "N: do not display dynpro
    selection-screen end of line.
    selection-screen begin of line.
      selection-screen comment 3(20) text-s02 for field user.
      selection-screen position 25.
      parameters: user(12) default sy-uname.     "user for session in batch
      selection-screen comment 48(20) text-s06 for field cupdate.
      selection-screen position 70.
      parameters cupdate like ctu_params-updmode default 'L'.
                                          "S: synchronously
                                          "A: asynchronously
                                          "L: local
    selection-screen end of line.
    selection-screen begin of line.
      selection-screen comment 3(20) text-s03 for field keep.
      selection-screen position 25.
      parameters: keep as checkbox.       "' ' = delete session if finished
                                          "'X' = keep   session if finished
      selection-screen comment 48(20) text-s09 for field e_group.
      selection-screen position 70.
      parameters e_group(12).             "group name of error-session
    selection-screen end of line.
    selection-screen begin of line.
      selection-screen comment 3(20) text-s04 for field holddate.
      selection-screen position 25.
      parameters: holddate like sy-datum.
      selection-screen comment 51(17) text-s02 for field e_user.
      selection-screen position 70.
      parameters: e_user(12) default sy-uname.    "user for error-session
    selection-screen end of line.
    selection-screen begin of line.
      selection-screen comment 51(17) text-s03 for field e_keep.
      selection-screen position 70.
      parameters: e_keep as checkbox.     "' ' = delete session if finished
                                          "'X' = keep   session if finished
    selection-screen end of line.
    selection-screen begin of line.
      selection-screen comment 51(17) text-s04 for field e_hdate.
      selection-screen position 70.
      parameters: e_hdate like sy-datum.
    selection-screen end of line.
    selection-screen skip.
    selection-screen begin of line.
      selection-screen comment 1(33) text-s10 for field nodata.
      parameters: nodata default '/' lower case.          "nodata
    selection-screen end of line.
    selection-screen begin of line.
      selection-screen comment 1(33) for field smalllog.
      parameters: smalllog as checkbox.  "' ' = log all transactions
                                         "'X' = no transaction logging
    selection-screen end of line.
    Regards
    Gopi

  • Multiple Select boxes in one form

    Does anyone know if it is possible to have multiple select
    boxes inside one form? I have six different select boxes that are
    generated by six separate queries. The action page for all six
    select boxes is the same so I just want one submit button so users
    don't get confuse. I don't want to cluster up the page with submit
    buttons but I may resort to that option.
    My problem is the select boxes generate a number and when
    that number is submitted I want to pass two other variables with it
    to the action page. I tried putting a "Form" tag around the 6
    select boxes. Inside each select box I tried to add an "Input
    type="hidden"" and give thte name and values that I needed. That
    worked for the first select box but when I tried the second select
    box it used the hidden values for the first select box.
    If anyone can help, I would greatly appreciate it. Or if you
    have any other suggestions I am open to any.
    Thanks

    Paross1,
    I wasn't thinking about that and you gave me a great idea.
    Here is how I changed my select boxes.
    <cfform
    action="Resolution_History.cfm?year=#year#&sessiontype=#sessiontype#&btype=res"
    name="form">
    <select name="SRINPUT">
    <option value="">SR
    <CFOUTPUT Query="findSR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <select name="HRINPUT">
    <option value="">HR
    <CFOUTPUT Query="findHR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <select name="SCRINPUT">
    <option value="">SCR
    <CFOUTPUT Query="findSCR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <br>
    <select name="HCRINPUT">
    <option value="">HCR
    <CFOUTPUT Query="findHCR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <select name="SJRINPUT">
    <option value="">SJR
    <CFOUTPUT Query="findSJR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <select name="HJRINPUT">
    <option value="">HJR
    <CFOUTPUT Query="findHJR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <INPUT TYPE="Submit" VALUE="Submit" alt="submit
    button">
    </cfform>
    On the action page I need the below IF statement to work so
    it will set the variables. It isn't working at this time. Its not
    bringing the values of billnumber, houseorig or the billtype.
    Do you have any thoughts? I know it is close. I need to set
    all of the inputs to input4 to generate my queries.
    <cfif form.srinput gt 0>
    <cfset houseorig eq "s">
    <cfset billtype eq "r">
    <cfset srinput eq input4>
    <cfelseif form.hrinput gt 0>
    <cfset houseorig eq "h">
    <cfset billtype eq "r">
    <cfset hrinput eq input4>
    <cfelseif form.scrinput gt 0>
    <cfset houseorig eq "sc">
    <cfset billtype eq "r">
    <cfset scrinput eq input4>
    <cfelseif form.hcrinput gt 0>
    <cfset houseorig eq "hc">
    <cfset billtype eq "r">
    <cfset hcrinput eq input4>
    <cfelseif form.sjrinput gt 0>
    <cfset houseorig eq "sj">
    <cfset billtype eq "r">
    <cfset sjrinput eq input4>
    <cfelse>
    <cfset houseorig eq "hj">
    <cfset billtype eq "r">
    <cfset hjrinput eq input4>
    </cfif>

  • Why do I have cc and cc2014 both in my list of apps in creative cloud? Can I delete the older and keep the newer or does one depend on the other?

    I have a list of both CC and CC2014 in all my programs on my Creative Cloud 'dashboard'.
    Do I need to keep them all, do they depend on each other, or can I delete the CC and just keep 2014?
    PS: I have never yet found the CSS panel where you can choose different settings in Dreamweaver CC and CC2014 - it looks entirely different from CS6. Can you tell me where to locate that or is it gone?

    http://blogs.adobe.com/jkost/2014/06/installing-the-2014-release-of-creative-cloud.html
    This messages says (at least some) CC 2014 programs use NEW plugins https://forums.adobe.com/thread/1499663
    -so do not uninstall the older CC programs if you use plugins in your programs until you are sure you have plugins that work in CC2014
    If you are sure you don't need the old CC programs
    -http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    -read reply #3 about the ORDER of uninstalling & installing https://forums.adobe.com/thread/1242671
    For program specific questions you need to ask in that forum
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • How to import DDL for multiple tables referencing each other?

    Hello people,
    I'm having a non-trivial problem. I need to copy a few tables from one machine to another, both 10g. Just DDL, data copying is not necessary. When I export the DDL to an SQL file using Oracle SQL Developer, the resulting file is refused at the import (again, SQL Developer). The problem is that every table references some other table(s), so every single "create table" command is refused, because the needed table is has not been created yet. What's the best solution to be applied here?
    Maybe I can draw a parallel to adding packages in Debian. When you have two packages, A and B, and they depend on each other, you cannot install them using "dpkg -i A && dpkg -i B" nor the other way around. Both calls to the dpkg will fail, due to the missing respective package. However, installing them in one command ("dpkg -i A B") is the right way. This is EXACTLY what I'd love to do with Oracle. Tell it to wait a bit, to make sure that ALL of the necessary tables are specified, and then create them virtually at once. Can it be achieved with transaction management?
    Thanks a lot for any help.

    Use exp/imp or expdb / impdp
    They will only enable constraints after all tables are imported.

  • How can I select and enlarge the entire doc,ge on a page, reducing the surrounding boarder.  I can move the difference text boxes about independently of each other but the outer most boarders of the main template block appear to be fixed.

    How can I select adn enlarge the entire document/image on a page, reducing the the surrounding boarder?  I can move the different text and image boxes around independently of each other but the outer most boarders of the main template block appear to be fixed.  I thought I would be able to enlarge or reduce my document from 'page layout' but this does not seem possible.

    Inspector > Document > Document Margins
    The word is border. Boarders are the Harry Potters of this world.
    Peter

  • Problem in populating 2nd combo box depending upon the selection of 1st

    Hi all,
    I have 2 combo boxes on my jsp page ,say continent and country . obviously the data in 2nd box is dependant on selection made in the 1st . I'm using MySQL with tomcat 5.0.7 . and JSP.
    The first combo box in one form and the 2nd in another. After submitting first i 'm populating the second combo also.
    But the problem is after submitting the first form the page gets refreshing and i can't see the selected continent in the first combo box.
    The javascript code used follows:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    some one pls help me asap !

    Hi Reegz,
    that's what i'm also doing and i'm successfull till populating the second combo box but how do I keep the previous inputs on the page and reload the page based on the change of a selection box?
    Is their any mistake in the javascript code:
    Here is the code:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    Pls help me...

  • 3 cfgrids on one page.  Columns from grid 1,2 and 3 are swapping the first select box from each grid.

    ColdFusion 11, hot fix 3 installed but did not help. There are no binds.
    This one has been driving me crazy and I have finally figured out that it is the first column in each grid where there is a select box via "valuesdisplay" that is the issue. Select box results are switching grids!
    Example of how it is coded to display:
    Grid 1 - gridcolumn should have a dropdown with 1,2,3
    Grid 2 - gridcolumn should have a dropdown with a,b,c
    Grid 3 - gridcolumn should have a dropdown with x,y,z
    However, the results in the dropdowns in the grids are:
    Grid 1 - x,y,z (should be 1,2,3)
    Grid 2 - 1,2,3 (should be a,b,c)
    Grid 3 - a,b,c (should be x,y,z)
    This only happens with the first dropdown for each grid. Any other columns with dropdowns do not have any issues and do not swap out to the wrong grid.
    Sample of my code from the grids:
    Grid 1:
    <cfgrid name = "evalgrid"
      height="200"
      autowidth="no"
      font="arial" fontsize="12"
      query = "getevalfinal"
      SORT="Yes"
      selectmode="edit"
      format="html"
      insert="yes"
      delete = "#deletevalue#">
      <CFGRIDCOLUMN NAME="numberofschools" HEADER="numberofschools"
      HEADERALIGN="LEFT" DATAALIGN="LEFT"
      BOLD="Yes" ITALIC="No"
      SELECT="Yes" DISPLAY="Yes"
      HEADERBOLD="Yes" HEADERITALIC="No"
      VALUES = " ,NA,1,2,D"
      VALUESdisplay = "Blank,NA,1,2,D" valuesDelimiter=","
      width=50>
    </cfgrid>
    Second Grid:'
    <cfgrid name = "SecondGrid"
      height="100" width="700"
      font="arial" fontsize="12"
      query = "getsecurity"
      SORT="Yes"
      selectmode="edit"
      format="html"
      insert="yes"
      delete = "#deletevalue#"
      autowidth="yes"
      >
      <CFGRIDCOLUMN NAME="userrole" HEADER="userrole"
      HEADERALIGN="LEFT" DATAALIGN="LEFT"
      BOLD="Yes" ITALIC="No"
      SELECT="Yes" DISPLAY="Yes"
      HEADERBOLD="YES" HEADERITALIC="No"
      VALUES = "#olduserrole#"
      VALUESdisplay = "#olduserrole#" valuesDelimiter=","
      WIDTH=300
      font="arial" fontsize="12">
    </cfgrid>
    In the above code, userrole values end up being in the wrong grid where numberofschools values should be and vice versa.
    Appreciate any help!
    B.

    You may find this article useful: [http://balusc.blogspot.com/2007/10/populate-child-menus.html].

  • With a wired keyboard and a 2014 iMac I cannot select multiple items which are not next to each other

    I have recently changed from Windows 7 desktop to a new iMac running Mavericks.  I have chosen a wired keyboard as I like  the usual Delete key function.
    I cannot find out how to select several items which are not next to each other (e.g. words in Pages).  The well known method in Windows, which is repeated in the the Apple Finder Help screen, does not work.  Would be grateful for advice

    Hi JBowfin,
    If I am understanding your question correctly, I believe that I have an article that will address this question for you:
    Mac OS X 10.0: Use Command Key to Select Multiple Items in List and Column Views
    http://support.apple.com/kb/TA20396
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Selecting duplicates within a time period of each other? [SOLVED]

    Using Oracle 9i 9.2.0.6.0
    I'm trying to return all the rows in a table where the entries are the same and within a certain amount of time of each other (15 seconds or less). The time is not stored as a date, but rather as a number, seperate from the date column. What makes an entry a duplicate is based on a combination of columns in the table.
    If the table is:
    store_id   customer_id   product_id   date_started   time_started
    101 12345 001 2008/09/14 153412
    101 22345 001 2008/09/14 153413
    102 12222 021 2008/09/14 161005
    102 12222 040 2008/09/14 161120
    102 33355 555 2008/09/14 171244
    102 33355 555 2008/09/14 171244
    300 70012 313 2008/09/14 111502
    300 70012 313 2008/09/14 111503
    300 70012 313 2008/09/14 111504
    300 54321 424 2008/09/14 153412
    I would want to return
    102 33355 555 2008/09/14 171244
    102 33355 555 2008/09/14 171244
    300 70012 313 2008/09/14 111502
    300 70012 313 2008/09/14 111503
    300 70012 313 2008/09/14 111504
    I can't seem to wrap my head around how to do this. Any suggestions?
    Edited by: user10269852 on Sep 16, 2008 1:27 PM
    Edited by: a small rabbit on Sep 18, 2008 7:49 AM

    SQL> with t as (
      2             select '101' store_id,'12345' customer_id,'001' product_id,to_date('2008/09/14','YYYY/MM/DD') date_started,153412 time_started from dual union all
      3             select '101','22345','001',to_date('2008/09/14','YYYY/MM/DD'),153413 from dual union all
      4             select '102','12222','021',to_date('2008/09/14','YYYY/MM/DD'),161005 from dual union all
      5             select '102','12222','040',to_date('2008/09/14','YYYY/MM/DD'),161120 from dual union all
      6             select '102','33355','555',to_date('2008/09/14','YYYY/MM/DD'),171244 from dual union all
      7             select '102','33355','555',to_date('2008/09/14','YYYY/MM/DD'),171244 from dual union all
      8             select '300','70012','313',to_date('2008/09/14','YYYY/MM/DD'),111502 from dual union all
      9             select '300','70012','313',to_date('2008/09/14','YYYY/MM/DD'),111503 from dual union all
    10             select '300','70012','313',to_date('2008/09/14','YYYY/MM/DD'),111504 from dual union all
    11             select '300','54321','424',to_date('2008/09/14','YYYY/MM/DD'),153412 from dual
    12            )
    13  select  store_id,
    14          customer_id,
    15          product_id,
    16          date_started,
    17          time_started
    18    from  (
    19           select  t1.*,
    20                   case
    21                     when lead(datetime_started) over(partition by store_id,customer_id,product_id order by datetime_started) - datetime_started <= 15 then 1
    22                     when datetime_started - lag(datetime_started) over(partition by store_id,customer_id,product_id order by datetime_started) <= 15 then 1
    23                     else 0
    24                   end indicator
    25             from  (
    26                    select  t.*,
    27                            to_date(to_char(date_started,'YYYYMMDD') || to_char(time_started,'000000'),'YYYYMMDDHH24MISS') datetime_started
    28                      from t
    29                    ) t1
    30          )
    31    where indicator = 1
    32  /
    STO CUSTO PRO DATE_STAR TIME_STARTED
    102 33355 555 14-SEP-08       171244
    102 33355 555 14-SEP-08       171244
    300 70012 313 14-SEP-08       111502
    300 70012 313 14-SEP-08       111503
    300 70012 313 14-SEP-08       111504
    SQL> SY.

  • How to select multiple nodes, which are not next to each other,  in a tree?

    The following code suppose to allow user select any combination of nodes (because of DISCONTIGUOUS_TREE_SELECTION), however, I can only select nodes which are next to each other. Can some one told me how to make this DISCONTIGUOUS_TREE_SELECTION work?
    Thank you very much!
    import javax.swing.*;
    import javax.swing.tree.*;
    public class TestTree extends JFrame {
    public TestTree() {
    super();
    setBounds(0,0,500,500);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JTree tree = new JTree();
    getContentPane().add(tree);
    TreeSelectionModel model = new DefaultTreeSelectionModel();
    model.setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
    tree.setSelectionModel(model);
    public static void main(String [] args) {
    TestTree test = new TestTree();
    test.show();

    In Windows you hold down the Ctrl key while clicking on the nodes you want to select. Don't know the equivalent in other environments.

Maybe you are looking for