CAML Query help using recursiveall and date filter together

Hello,
Please let me know what is wrong with the query below,
<View Scope='RecursiveAll'>
<Query>
<Where>
<Leq>
<FieldRef Name='Modified'/>
<Value Type='DateTime' IncludeTimeValue='FALSE'>date value</Value>
</Leq>
</Where>
</Query>
</View>
Above query returns zero items, it should return 3 items in my current scenario.
If I do just the folllowing, three items are returned
<View Scope='RecursiveAll'>
<Query>
</Query>
</View>
I need date filter to work with recursiveall . Not sure what is wrong with the query
Student For Life

Hi,
Per my understanding, you might want to use “RecursiveAll” with date filter in your CAML query statement.
I suggest you take the code demo below which writes in Server Object Model for a try in your environment to see if it can work for you:
using (SPSite oSiteCollection = new SPSite("http://yoursite"))
using (SPWeb web = oSiteCollection.RootWeb)
SPList list = web.Lists["List1"];
SPQuery qry = new SPQuery();
qry.Query =
@" <Where>
<And>
<Leq>
<FieldRef Name='Modified' />
<Value Type='DateTime'>2015-03-07T12:00:00Z</Value>
</Leq>
<Eq>
<FieldRef Name='FSObjType' />
<Value Type='Integer'>0</Value>
</Eq>
</And>
</Where>";
qry.ViewFields = @"<FieldRef Name='Title' />";
qry.ViewAttributes = "Scope='RecursiveAll'";
SPListItemCollection items = list.GetItems(qry);
foreach (SPListItem item in items)
Console.WriteLine(item["Title"]);
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Expert secrets for using RMAN and Data Pump by kamran agayev and Aman Sharm

    Hi ,
    Is this book available in INDIA:
    Expert secrets for using RMAN and Data Pump by kamran agayev and Aman Sharma
    How can i get this book in India.
    Thanks,
    Alok
    Edited by: user12141893 on 6 Apr, 2012 11:25 AM
    I tried to buy this book online from rampant's official site but shipping cost was more than cost of book.
    Book is not available on Flipkart and Amazon also

    Helios,
    OP can send a mail to me too :-) .
    OP,
    We are in talks with the publisher. In India, the book would be by another partner publisher and details of it I shall be updating when would be available. Thanks for the interest in our book.
    Aman....
    PS: This is a technical forum and is not meant for such topics. Please discuss by communicating with Kamran and me over email personally. Let's keep the forum for the very purpose it is meant for-technical discussions.

  • Error while using REMAP_TABLE and WHERE clause  together in IMPDP

    I am trying to move some records from a very large table to another small table.
    I am facing trouble while using REMAP_TABLE and WHERE clause together in IMPDP.
    Problem is data filter is not getting applied and all records are getting imported.
    here is how I have simulated this. please advice.
    CREATE TABLE TSHARRHB.TMP1
      A  NUMBER,
      B  NUMBER
    begin
    Insert into TSHARRHB.TMP1
       (A, B)
    Values
       (1, 1);
    Insert into TSHARRHB.TMP1
       (A, B)
    Values
       (2, 2);
    COMMIT;
    end;
    expdp system/password TABLES=tsharrhb.TMP1 DIRECTORY=GRDP_EXP_DIR DUMPFILE=TMP1.dmp REUSE_DUMPFILES=YES LOGFILE=EXP.log PARALLEL=8
    impdp system/password DIRECTORY=GRDP_EXP_DIR DUMPFILE=TMP1.dmp LOGFILE=imp.log PARALLEL=8 QUERY='TSHARRHB.TMP1:"WHERE TMP1.A = 2"'  REMAP_TABLE=TSHARRHB.TMP1:TMP3 CONTENT=DATA_ONLY
    Import: Release 11.2.0.1.0 - Production on Fri Dec 13 05:13:30 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_FULL_01":  system/********@GRD6.RBSG DIRECTORY=GRDP_EXP_DIR DUMPFILE=TMP1.dmp LOGFILE=SSD_93_TABLES_FULL_EXP.log PARALLEL=8 QUERY=TSHARRHB.TMP1:"WHERE TMP1.A = 2" REMAP_TABLE=TSHARRHB.TMP1:TMP3 CONTENT=DATA_ONLY
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "TSHARRHB"."TMP3"                           5.421 KB       2 rows
    Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at 05:13:33
    here I am expecting only 1 record to get imported but both the records are getting imported. please advice.

    The strange thing compared to your output is that I get an error when I have table prefix in the query block:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_FULL_01":  system/******** DUMPFILE=TMP1.dmp LOGFILE=imp.log PARALLEL=8 QUERY=SYSADM.TMP1:"WHERE TMP1.A = 2" REMAP_TABLE=SYSADM.TMP1:TMP3 CONTENT=DATA_ONLY
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    ORA-31693: Table data object "SYSADM"."TMP3" failed to load/unload and is being skipped due to error:
    ORA-38500: Unsupported operation: Oracle XML DB not present
    Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 1 error(s) at Fri Dec 13 10:39:11 2013 elapsed 0 00:00:03
    And if I remove it, it works:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_FULL_01":  system/******** DUMPFILE=TMP1.dmp LOGFILE=imp.log PARALLEL=8 QUERY=SYSADM.TMP1:"WHERE A = 2" REMAP_TABLE=SYSADM.TMP1:TMP3 CONTENT=DATA_ONLY
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SYSADM"."TMP3"                             5.406 KB       1 out of 2 rows
    Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at Fri Dec 13 10:36:50 2013 elapsed 0 00:00:01
    Nicolas.
    PS: as you can see, I'm on 11.2.0.4, I do not have 11.2.0.1 that you seem to use.

  • HOW TO USE LOGICAL AND OR CONDITION TOGETHER

    Please do not post subject in ALL CAPITALS
    Hi All there,
    How to use logical and or condition together
    I wanted to use logical AND OR condition together in where clause of Select Query.
    eg where xyz and or abc
    Regards
    Sagar
    Edited by: Matt on Mar 17, 2009 1:05 PM
    Edited by: Matt on Mar 17, 2009 1:05 PM

    hi,
      You cannot use the logical and  or condition together at the same time in SQL statement. Sachin is correct while using the and and or in the same condition. You can get the data using or condition in SQL statement, and then use the delete statement of internal table using the end condition. please find the following code for the same.
    select *
      from dtab
    where cond1 eq 'A1'
         or cond2 eq 'A2'.
    if sy-subrc eq 0.
      delete itab where cond1 eq 'A1' and 'A2'.
    endif.
    regards,
    Veeresh

  • Has anyone had success using SharePoint and FrameMaker 10 together using CMS?

    Has anyone had success using SharePoint and FrameMaker 10 together using CMS?

    Thanks for reminding to at least update the results thus far.
    Update 4:
    I did get quite a bit of support initially although slowly over a period of a month or so. After Adobe FM support and my SharePoint systems engineer reviewed how FM10 was setup on my computer (which I am the admin for our department’s SP site) and how it interfaces with our SharePoint 2010 Enterprise Edition, there was two conclusions:
    Basically Adobe FM Support said that FM10 did not support claims-based authentication and they can no longer help me. They said it will work with FM11 when it comes out.
    My SP Systems Engineer, said that FM10 is connecting to SP 2010 just fine but that the FM10 has a software glitch that causes FM10 lose control when executing checkout procedure within FM10. I can checkout and edit that same file in SP with no problems.
    About a month later, I upgraded to FM11 and ran into the same problem. I attempted to get Adobe FM Support to help and they said they will look into and get back to me. That was in July and I have not heard anything more from them, and to be honest, my schedule has been extremely busy the last 5 months that I have not had time to pursue it any further.
    Needless to say, I was very disappointed with the SP interface and, overall, the lackluster support I received from Adobe. Having a working SP interface was one of the criteria for purchasing TCS3.5 (and subsequent upgrade) in the first place.
    One thing of note, we migrated from SP 2007 to SP 2010 in February 2011 and, at the time of Adobe support, I still had access to my SP 2007 site. FM10 and FM11 had to no issues working with SP2007. Unfortunately, SP 2007 is not an option for me anymore.
    Also, another observation of FM10/11 not working with SP 2010, it seems that FM10/11 is automatically configured to work with SharePoint Drafts folder locally when connecting to the SharePoint library. This worked just fine with SP 2007 but SP 2010 does not use SharePoint Drafts folder locally the same way (the programming changed, don’t recall where I saw it, probably when searching this issue online)  and I suspect that is one of the main issues why it does not work correctly.
    So at this time, I have not found a working solution to this problem.

  • Query help - Using Alias in column equation

    Hi All,
    I have selected some data as an alias and would like to refer to the alias in another equation column. I cannot figure out how to do this correctly.
    Here is my full query below, with a NULL called '3 Mnth Average' column because I am unsure how to reference the Alias and data type correctly for the required equation.
    For example, I want to return the '3 Mnth Average' result being the '3 Mnth Total' Alias divided by 3.  ('3 Mnth Total'  / 3).... Every time I try... i fail.
    Any help would be most appreciated.
    Best regards,
    John
    SELECT T0.ITEMCODE, T0.ITEMNAME,
    Cast((T0.ONHAND - T0.IsCommited) As INT) As 'Available',
    Cast(T0.ONHAND As INT) As 'In Stock', Cast(T0.IsCommited As INT) As 'Committed',
    Cast((SELECT SUM(T1.[Quantity]) FROM INV1 T1 WHERE T1.ITEMCODE = T0.ITEMCODE
    AND DATEPART(mm,T1.[DocDate])  >= DATEPART(mm,getdate())-3
    AND DATEPART(mm,T1.[DocDate]) <= DATEPART(mm,getdate())) As INT) As '3 Mnth Total',
    (NULL) As '3 Mnth Average',
    CAST ((SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) As INT) AS 'JAN QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'FEB QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 3 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'MAR QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 4 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'APR QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 5 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'MAY QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 6 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'JUN QTY',
    CAST ((SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 7 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) As INT) AS 'JUL QTY',
    CAST ((SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 8 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS INT) AS 'AUG QTY',
    CAST ((SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 9 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) As INT) AS 'SEP QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 10 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'OCT QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 11 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'NOV QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 12 AND T1.ITEMCODE =
    T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'DEC QTY'
    FROM dbo.OITM T0
    LEFT JOIN dbo.INV1 T1 ON T1.ItemCode = T0.ItemCode
    WHERE T0.SellItem = 'Y'
    GROUP BY T0.ItemCode, T0.ItemName, T0.OnHand, T0.IsCommited, YEAR(T1.DOCDATE)
    HAVING YEAR(T1.DOCDATE) = YEAR(GETDATE())
    ORDER BY T0. ITEMCODE

    Hi John,
    If you are not using temporary table, you have to rewrite complete formula to get 3 month average. There is no way to reference within the same query.
    Thanks,
    Gordon

  • Problem using Dust and Scratches filter in Photoshop CS6

    Using the 64-bit extended CS6 version under Win 8/64.  Am I not using the filter correctly, or is this a limitation regarding its use?
    I duplicate a layer and apply the filter.  I then add a white mask and invert it to get black.  I change the layer blending mode to either darken or lighten, depending on the requirements at hand.  I use the paint brush to remove the spotting and it works.  However, if I add a new layer and then go back to the Dust and Scratches layer, the paint brush further modify the layer.  I need to create a new layer and start all over again.
    I am finding that if I convert the layer for smart filter use, I cannot use the paint brush.  The layer needs to be rasterized, again.
    Thanks,
    Steve

    I am painting with a white brush - onto a black mask.  The purpose is to only apply the Dust and Scratches filter to specific areas.
    The brushing will apply the filtered effects when I create the layer, apply the filter, and apply the black mask.  The brushing no longer works if I create a new layer and then return to the layer with the Dust and Scratches filter.  The problem is similar, I think, to if one were applying an effect with the history brush, close the file, and reopen it.  The history brush won't be helpful because the history is lost..  In this case of applying the filter to a layer with a mask, the history brush isn't used and I would have guessed that the layer would allow re-use of the filter and brush.
    Steve

  • PLease help! GUI and Data Structure

    Hey guys,
    It's for my school project.
    I have to write codes for GUI program for a order form.
    I'm pretty much done with layout and stuff, but I couldn't figure out how to give some regulation(?) on some of the field.
    For instantce, I have to regulate a user to type only two letter abbreviation on state(address) field and the Zip field has to be either 5 digit form or XXXXX-XXXX.
    I Also have to include code to filter the user input and display error message if they enter wrong information.
    Second, how to use actoinevent stuff?
    There are three product type: a,b, and c. If "a" be chosen, then the product name associating the "a" product has to be shown on the product name field(I used ComboBox), and the price for that product(for instance a-1) has to be shown on the price field.
    Third, It sounds stupid question, but how to display current date on the java program using API?
    Fourth, I have to load some of the order from external files(maybe text files) and display into the screen.
    Here is the code
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.ListSelectionEvent;
    class orderFormGUI extends JFrame {
         private JButton bSave, bExit, bLoad;
         private JLabel labelTitle;
         private JTextField fieldFName, fieldLName, fieldStreet, fieldCity,
                   fieldState, fieldZip;
         private JLabel labelFName, labelLName, labelStreet, labelCity, labelState,
                   labelZip;
         private String[] st = { "CA", "TX", "OR", "UT", "NM", "NY", "NY", "GA",
                   "IL", "TN", "MN", "WY" };
         private JComboBox comboPType, comboPName;
         private JLabel labelComboPType, labelComboPName;
         private String[] ct = { "Copmuter", "Printer", "Monitor" };
         private String[] cn = { "CMP1100", "CMP1500" };
         private String[] pn = { "PR500", "PR1000" };
         private String[] mn = { "D4000", "D8000" };
         private String[] x;
         private JTextField fieldTotalPrice, fieldProductPrice;
         private JLabel labelTotalPrice, labelProductPrice;
         private JTextField filedQty;
         private JLabel labelQty;
         private JTextField fieldOrderDate, fieldDeliveryDate;
         private JComboBox comboDeliveryOptions;
         private String[] dO = { "5 Days", "10 Days" };
         private JLabel labelOrderDate, labelDeliveryOptions, labelDeliveryDate;
         private ArrayList orderArray;
         private DefaultListModel lmodel;
         public void initComponents() {
              bSave.setActionCommand("Save");
              bLoad.setActionCommand("Load");
              bExit.setActionCommand("Exit");
              bSave.addActionListener(new ButtonListener());
              bLoad.addActionListener(new ButtonListener());
              bExit.addActionListener(new ButtonListener());
         public void ClearFields() {
              // Set all text fields to blank
              fieldFName.setText("");
              fieldLName.setText("");
              fieldStreet.setText("");
              fieldCity.setText("");
              fieldState.setText("");
              fieldZip.setText("");
         public orderFormGUI() {
              orderArray = new ArrayList();
              bSave = new JButton("Save");
              bLoad = new JButton("Load");
              bExit = new JButton("Exit");
              // set up labels and field size for GUI
              labelTitle = new JLabel("Order Form");
              fieldFName = new JTextField("", 30);
              labelFName = new JLabel("First Name: ");
              fieldLName = new JTextField("", 30);
              labelLName = new JLabel("Last Name: ");
              fieldStreet = new JTextField("", 12);
              labelStreet = new JLabel("Street: ");
              fieldCity = new JTextField("", 12);
              labelCity = new JLabel("City: ");
              fieldState = new JTextField("", 2);
              labelState = new JLabel("State: ");
              fieldZip = new JTextField("", 9);
              labelZip = new JLabel("Zip Code: ");
              comboPType = new JComboBox(ct);
              chooseProductName();
              labelComboPType = new JLabel("Product Type");
              comboPName = new JComboBox();
              labelComboPName = new JLabel("Product Name");
              fieldProductPrice = new JTextField("");
              labelProductPrice = new JLabel("Product Price: ");
              fieldTotalPrice = new JTextField("", 12);
              labelTotalPrice = new JLabel("Total Price: ");
              filedQty = new JTextField("", 12);
              labelQty = new JLabel("Quantity: ");
              fieldOrderDate = new JTextField("", 12);
              labelOrderDate = new JLabel("Order Date: ");
              comboDeliveryOptions = new JComboBox(dO);
              labelDeliveryOptions = new JLabel("Delivery Options: ");
              fieldDeliveryDate = new JTextField("", 12);
              labelDeliveryDate = new JLabel("Delivery Date: ");
              TextFieldHandler handler = new TextFieldHandler();
              fieldState.addActionListener(handler);
              // Construct GUI and set layout
              JPanel mine = new JPanel();
              mine.setLayout(null);
              mine.add(labelTitle);
              labelTitle.setBounds(150, 30, 100, 15);
              mine.add(fieldFName);
              fieldFName.setBounds(88, 80, 220, 21);
              mine.add(labelFName);
              labelFName.setBounds(16, 80, 134, 21);
              mine.add(fieldLName);
              fieldLName.setBounds(88, 110, 220, 21);
              mine.add(labelLName);
              labelLName.setBounds(16, 110, 134, 21);
              mine.add(fieldStreet);
              fieldStreet.setBounds(88, 150, 220, 21);
              mine.add(labelStreet);
              labelStreet.setBounds(16, 150, 134, 21);
              mine.add(fieldCity);
              fieldCity.setBounds(88, 180, 220, 21);
              mine.add(labelCity);
              labelCity.setBounds(16, 180, 134, 21);
              mine.add(fieldState);
              fieldState.setBounds(88, 210, 220, 21);
              mine.add(labelState);
              labelState.setBounds(16, 210, 134, 21);
              mine.add(fieldZip);
              fieldZip.setBounds(88, 240, 220, 21);
              mine.add(labelZip);
              labelZip.setBounds(16, 240, 134, 21);
              mine.add(comboPType);
              comboPType.setBounds(120, 280, 220, 21);
              mine.add(labelComboPType);
              labelComboPType.setBounds(16, 280, 134, 21);
              mine.add(comboPName);
              comboPName.setBounds(120,310, 220, 21);
              mine.add(labelComboPName);
              labelComboPName.setBounds(16, 310, 134, 21);
              mine.add(fieldProductPrice);
              fieldProductPrice.setBounds(120, 340, 220, 21);
              fieldProductPrice.setEditable(false);
              mine.add(labelProductPrice);
              labelProductPrice.setBounds(16, 340, 134, 21);
              mine.add(filedQty);
              filedQty.setBounds(120, 370, 220, 21);
              mine.add(labelQty);
              labelQty.setBounds(16, 370, 134, 21);
              mine.add(fieldOrderDate);
              fieldOrderDate.setBounds(120, 430, 220, 21);
              fieldOrderDate.setEditable(false);
              mine.add(labelOrderDate);
              labelOrderDate.setBounds(16, 430, 134, 21);
              mine.add(comboDeliveryOptions);
              comboDeliveryOptions.setBounds(120, 460, 220, 21);
              mine.add(labelDeliveryOptions);
              labelDeliveryOptions.setBounds(16, 460, 134, 21);
              mine.add(fieldDeliveryDate);
              fieldDeliveryDate.setBounds(120, 490, 220, 21);
              fieldDeliveryDate.setEditable(false);
              mine.add(labelDeliveryDate);
              labelDeliveryDate.setBounds(16, 490, 134, 21);
              mine.add(fieldTotalPrice);
              fieldTotalPrice.setBounds(120, 520, 220, 21);
              fieldTotalPrice.setEditable(false);
              mine.add(labelTotalPrice);
              labelTotalPrice.setBounds(16, 520, 134, 21);
              mine.add(bSave);
              bSave.setBounds(16, 550, 100, 21);
              mine.add(bLoad);
              bLoad.setBounds(130, 550, 100, 21);
              mine.add(bExit);
              bExit.setBounds(250, 550, 100, 21);
              this.setContentPane(mine);
              this.pack();
              this.setTitle("Order Form);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              setSize(380, 630);
         public void chooseProductName(){
              if ((ct).equals(ct[0])){
                   comboPName = new JComboBox(cn);
              }else if (ct.equals(ct[1])){
                   comboPName = new JComboBox(pn);
              }else if (ct.equals(ct[2])){
                   comboPName = new JComboBox(mn);
         public void comboPNameChanged(ItemEvent event){
              if (event.getStateChange() == ItemEvent.SELECTED);
         private void setTestData() {
              orderArray.add(makeOrder("1-100-1000"));
              orderArray.add(makeOrder("1-100-1001"));
              orderArray.add(makeOrder("1-100-1002"));
              for (Order temp : orderArray) {
                   if (temp.getOrder().equals("1-100-1000")) {
                        temp.setfName("a");
                        temp.setlName("s");
                        temp.setstreet("4802 Alaska Ave");
                        temp.setcity("Cypress");
                        temp.setzip("90630");
         private Order makeOrder(String order) {
              Order temp = new Order(order);
              return temp;
         private void loadDate(){
         String fn;
         JFileChooser fc = new JFileChooser();
         if(fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION){
              fn = fc.getSelectedFile().getName();
         if( !new File("objdata.dat").exist() ) {
              setTestData();
              for (Order temp: orderArray());
                   lmodel.addElement(temp.getOrder());)
         class Order {
              String orderid, fName, lName, street, city, state, zip;
              public Order(String order) {
                   orderid = order;
              public String getOrder() {
                   return orderid;
              public String getfName() {
                   return fName;
              public void setfName(String fName) {
                   this.fName = fName;
              public String getlName() {
                   return lName;
              public void setlName(String lName) {
                   this.lName = lName;
              public String getstreet() {
                   return street;
              public void setstreet(String street) {
                   this.street = street;
              public String getcity() {
                   return city;
              public void setcity(String city) {
                   this.city = city;
              public String getzip() {
                   return zip;
              public void setzip(String zip) {
                   this.zip = zip;
         private class TextFieldHandler implements ActionListener {
              public void actionPerformed(ActionEvent event) {
                   String string = " ";
                   if (event.getSource() == fieldState)
                        string = String.format("%s " + "is not correct form.", event
                                  .getActionCommand());
                   JOptionPane.showMessageDialog(null, string);
                   // System.out.println("Please use two letter abbreviation.");
    public class Main {
         public static void main(String[] args) {
              JFrame window = new orderFormGUI();
              window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              window.setVisible(true);
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Cross-posted:
    http://forum.java.sun.com/thread.jspa?messageID=10019967

  • Need help using list item as filter[WRONG POST PLS IGNORE]

    SORRY WRONG POST...
    Edited by: cjtjaime on Oct 8, 2010 12:33 AM

    sir i tried the code and it says: FRM-41003: This function cannot be performed here.
    what im really want to do is that after retrieving the dates from a push button, (remember yesterday where you help me retrieving multiple data).... i have a list_item where it has the elements JAN,FEB,MAR,APR,MAY.
    and then after selecting different month from the list_item the values that ive retrieve will be filter according to the value in the list_item
    it looks something like this:
    stud_id = 1001
    time_in
    01-JAN-10
    02-JAN-10
    03-JAN-10
    01-FEB-10
    02-FEB-10
    03-FEB-10
    after selecting FEB from the list_item it will goes like this
    time_in
    01-FEB-10
    02-FEB-10
    03-FEB-10
    thanks..
    -charles

  • Need query to list columns and data

    Hi all,
    I am having a requirement that to compare two identical rows based on empno and list the columns and data which columns are varied.
    SQL> select * from emp1 where empno=7369;
         EMPNO ENAME      JOB              MGR HIREDATE           SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980       2000                    20
          7369 SMITH      PRO             7788 17-DEC-1980       2100                    20if we see above data - columns mgr,sal and job have different data but same having same employee number
    Now i want to display the columns which are having different values for a given perticular employee having identical rows with employee number
    Note : in my original table i have 300 columns around. above explained is sample example for understanding
    thanks
    krishna.

    Hi,
    If you want a variable number of columns, depending on the data found, then you'll have to use dynamic SQL.
    I suggest you don't do that. I recommend String Aggregation , that is, concatenating the variable number of items into one big string column, formatted so that ir looks like differenct columns. That is, you might get output like this:
    EMPNO MISMATCHED_DATA
          JOB       MGR       SAL
    7369 CLERK     7902      2000
    7369 PRO       7788      2100Notice that the output consists of 3 rows and 2 columns.
    The 1st row displayed serves as a header. (The actual header has the actual, generic column name, mismatched_data.)
    Here's one way to get output like that:
    VARIABLE  data_width     NUMBER
    EXEC      :data_width := 10;
    WITH     unpivoted_data          AS
         SELECT       e.empno
         ,       DENSE_RANK () OVER ( PARTITION BY  e.empno
                                      ORDER BY          e.ROWID
                             )                    AS r_num
         ,       c.column_name
         ,       c.column_id
         ,       RPAD ( COALESCE ( CASE  c.column_name
                                        WHEN  'ENAME'       THEN  e.ename
                                    WHEN  'JOB'       THEN     e.job
                                    WHEN  'MGR'       THEN  TO_CHAR (e.mgr)
                                  WHEN  'HIREDATE'       THEN  TO_CHAR (e.hiredate, 'DD/MM/YYYY HH:MI:SS AM')
                                -- ... more columns in your real problem
                            END
                          , CASE  c.column_name
                                WHEN  'SAL'       THEN     TO_CHAR (e.sal)
                                WHEN  'COMM'         THEN  TO_CHAR (e.comm)
                                WHEN  'DEPTNO'    THEN  TO_CHAR (e.deptno)
                            END
                   , :data_width       -- maximum column width
                   )                         AS d
         FROM    emp1               e
         JOIN       user_tab_columns     c  ON     c.table_name     = 'EMP1'
         WHERE     e.empno     IN (7369)        -- any 1 or more empnos
    ,     got_val_cnt     AS
         SELECT     u.*
         ,     COUNT (DISTINCT d) OVER ( PARTITION BY  empno
                                        ,              column_name
                             )      AS val_cnt
         FROM    unpivoted_data     u
    ,     discrepancies     AS
         SELECT  v.*
         FROM     got_val_cnt     v
         WHERE     val_cnt     > 1
    ,     relevant_columns     AS
         SELECT DISTINCT  column_name
         ,           DENSE_RANK () OVER ( ORDER BY  column_id)     AS c_num
         FROM     discrepancies
    SELECT       d.empno
    ,       REPLACE ( SYS_CONNECT_BY_PATH ( NVL ( d
                                         , RPAD (' ', :data_width)
                             , '~'
                  , '~'
                ) AS mismatched_data
    FROM            discrepancies          d     PARTITION BY ( d.empno
                                              , d.r_num
    RIGHT OUTER JOIN  relevant_columns     r     ON         r.column_name = d.column_name
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     r.c_num          = 1
    CONNECT BY     r.c_num          = PRIOR r.c_num + 1
         AND     d.empno          = PRIOR d.empno
         AND     d.r_num          = PRIOR d.r_num
        UNION ALL
    SELECT    NULL          AS empno
    ,       REPLACE ( SYS_CONNECT_BY_PATH ( RPAD (column_name, :data_width)
                                   , '~'
                , '~'
                )     AS mismatched_data
    FROM      relevant_columns
    WHERE       CONNECT_BY_ISLEAF     = 1
    START WITH     c_num          = 1
    CONNECT BY     c_num          = PRIOR c_num + 1
    ORDER BY  empno          NULLS FIRST
    ;You can specify any number of empnos to be included in the report.
    You really want a CASE expression that has a WHEN clause for every column in your table, but CASE expressions have a maximum of (I believe) 128 WHEN clauses. If you really have 300 rows, you'll have to break that down into smaller groups. In the query above, I used 2 CASE expressions in a COALESCE function, where each of the CASE expressions had no more than 4 WHEN clauses. You may have to use 3 CASE expressions, each with 100 WHEN clauses.
    This solution does not assume there are exactly 2 rows per empno; there can be any number.
    If all the rows for an empno are completely identical, that empno will not be included in the output. This includes the situation where a given empno is unique.
    Again, you can get separate columns for each mismatched item, using dynamic SQL, but it's even more convoluted than the query above.

  • ADF View Object query to use Oracle  LONG data type

    Hi,
    I'm using a view object that uses Oracle LONG data type.The following exception is thrown
    *"java.sql.SQLException: Stream has already been closed"* and it is not fetching the correct data.
    I have searched in many forums,they suggested to use LOB instead of LONG as LONG is deprecated. But in my case I can't avoid using LONG as some of my legacy applications using the same DB.
    Please suggest me a way
    Thanks in Advance
    Felix

    Thanks for your reply Arun,
    I have solved this problem using the solution suggested by this blog [AskTom-Link|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:839298816582]
    In the above blog link,they have suggested to convert Long to Varchar by functions and asked to use this function in the column.
    Thank you all guys who have seen this post.
    Regards,
    Felix

  • Using Skype and Data Charges

     Does using Skype use MBs against data plan? I went to use for first time and had to turn off WI FI for it to work and switched to 3g  when I used it

    roachman55 wrote:
     Does using Skype use MBs against data plan? I went to use for first time and had to turn off WI FI for it to work and switched to 3g  when I used it
    Yes, data used over 3G counts as data against your allowance.

  • Help - EXIF time and date not working correctly

    I am a long time Lightroom user and am trying out Aperture 2.1. I like it a lot but I just found a serious problem. I'm importing some old photos into my Aperture library, by referencing the files in an existing folder. The time and date for some of the files gets messed up. When I view these files in LR the time and date is fine. When I look at the "date created" in the Finder, the time is also messed up. For a photo shoot I did in Europe, the time for some images has the right date & time when converted to US time, but for some images it has the right date & time but as if it were in the US time zone. The files are all Nikon NEFs.
    Also, when I view the files in the Aperture import dialog box they are in the right order. But when they get imported and I'm looking at them in Aperture they are in the wrong order.

    OK, I give up. Turns out that after one successful import where the dates were ok, subsequent imports have the dates messed up again - whether in Quick or Normal mode. I also tried importing to a new collection, and also tried importing after rebuilding the library (via command-option click in the dock). Still hving this problem.

  • Cannot use styleName and fontStyle property together in Label?

    Hi All,
    I am using Label component with the following attributes set,
    see code 1)
    but in my CSS I defined the style myStyle as below see code
    2)
    Here I am trying to use embed a font and use the style in the
    Label.
    I want the other styles to be given seperately like italic
    and bold using "fontStyle" and "fontWeight" properties of a Label.
    see code 3)
    The problem here is that,
    If I introduce any of these "myStyle" is not working. I mean
    that the font which I embeded is not implemented. Its taking its
    own default font. But If I remove fontStyle and fontWeight
    "myStyle" is working properly.
    I hope I had made my problem clear.
    Any help would be appreciated.
    Thanks.

    "COKFlex" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi Amy and Greg, Thanks for your replies.
    >
    > Yes I knew that I can use the fontstyle and fontwidth in
    my CSS. Before I
    > proceed next, let me explain you about my requirements
    and why I am using
    > embedded fonts.
    >
    > My requirement is to have all the font related styles as
    configurable from
    > an
    > Xml file like .
    >
    > <Text>
    > <Forecolor>#FFFFFF</Forecolor>
    > <Backcolor>#000000</Backcolor>
    > <Fontname>TimesNewRoman</Fontname>
    > <Fontsize>30</Fontsize>
    > <Fontstyle>normal</Fontstyle>
    > <Fontweight>normal</Fontweight>
    > </Text>
    >
    > Which I can read at run time and apply the styles.
    >
    > Ok Now I am coming to the need to using embedded fonts.
    If I didnt embed
    > the
    > fonts the text displayed in my application are not
    smooth. But its smooth
    > if I
    > use embedded fonts. {It is possible if we install the
    fonts from the
    > Windows CD
    > [Control Panel->Regional Language and
    Setting->Language Tab->Supplementary
    > Language support] options>} But I observed that few
    system doesnt have
    > that
    > installations. So the fonts which I am trying to use in
    the configuration
    > xml,
    > even though the system has that font, its not appearing
    smoothly in my
    > application.
    >
    > ok, so next I decide how I make the embedded fonts as
    configurable. I gave
    > the
    > fontname as the stylename and give that stylename in the
    configuration xml
    > as I
    > mentioned in my previous post.
    >
    > And I implemented that using styleName="<value read
    from the config xml>"
    > which inturn refers the stylename I used in the CSS for
    the embedded font.
    >
    > As I mentioned earlier, all the styles I want it to be
    configured, I
    > cannot
    > give italic or bold in the CSS style instead it has to
    be read from my
    > config
    > XML.
    >
    > So I decided to use the fontStyle and fontWeight
    properties of the Label.
    > So
    > then the problem comes, if I use stylename and fontstyle
    together,
    > fontStyle is
    > actually overriding the styleName's embedded font and
    applying style as
    > italic
    > but not with the embedded font which ultimately results
    in not giving me a
    > smoother display.
    You can actually change the CSS declaration itself. But I
    think you will
    also need to embed the other forms of the font if you want to
    use them.
    HTH;
    Amy

  • Query on STRIP Using DISKUTIL and Data Safty Issues

    Here is an interesting (probably DUMB) question based on my current RAID config:
    7x500GB (RAID5 - one hdd can go down and no issue) = Vol#1
    7x500GB (RAID5 - one hdd can go down and no issue) = Vol#2
    The above using Diskutil I have made on STRIP Vol#1+Vol#2 = RAID50.
    From the above what are my chances of loosing data based on following three senarios:
    1. what if one of the controller fails, will I still see the entire volume
    2. what if one of the controller fails, will I loose everything on RAID50 (STRIP)?
    3. what if one of the controller fails, I replace the controller with a new one, will I get my data back?
    Please advice the above?
    Thanks

    >1. what if one of the controller fails, will I still see the entire volume
    You will lose access to the entire volume. The data will be intact but you cannot access the volume (on either controller) until the failed controller is replaced.
    >2. what if one of the controller fails, will I loose everything on RAID50 (STRIP)?
    No. Your data will be intact. You just can't access it.
    >3. what if one of the controller fails, I replace the controller with a new one, will I get my data back?
    Yes. The replacement controller can read the RAID configuration from the drives. Replacing the failed controller will restore access to your volume.
    Just for the record I have over a dozen XServe RAIDs (including one of the very first revisions using 180GB drives) all working 24/7 in a production network and have never lost a controller, power supply, or any other component other than one (or maybe two) failed disks. In my experience the failure rate is very low.

Maybe you are looking for

  • OIM Database Connector User not created

    I am using OIM 9.1.0.0 with connector pack 9.0.4.1. When I run trusted recon i see the new user appear in the recon manager, but the user is not created. When I open the event and click on Create User the user is created. But before this the recon ev

  • Showing path of tree which is in table

    Hello Everyone, Can you examine this link? http://www.adp-gmbh.ch/ora/sql/connect_by.html I worked this query in this hiearchical tree table: SELECT child, SYS_CONNECT_BY_PATH(lchild, '/') "Path" FROM test_connect_by START WITH parent is null CONNECT

  • Possible issue: multitouch interface/drag targets AIR 3.8.0.1430 Windows 8

    Noticed an issue with touch interface when compiling using AIR SDK 3.8.0.1430 (latest SDK and testing using latest AIR Windows player-both 3.8.0.1430). Testing on Windows 8 Pro desktop with full multitouch screen. Touch fails to work using  SWF compi

  • Automatically numbering database records

    I have a database in AW 6 and would like each record numbered so that I can count records. I saw that I can do this for entering new records, but have already set up and imported most data. I would like the numbers not linked to each specific record

  • Manage Devices url not coming up on clients

    After configuring OS X server. I try to access the URL for enrollment, the site will not coming up. Say cannot connect to server. Anyone have this issue?