SetActionListener checking date on DB

Hi All,
I want to set an action listener on my submit button, which it can check/validate data from DB first. for example: i want to insert "dataRow01" on "17 june 2008" then if i want to insert "dataRow02" on the same date (17 june 2008), i want to make it blocked or displaying alert page or something. So what value should i put on the setActionListener?
<af:commandButton text="Submit">
<af:setActionListener from="#{bindings.UserabsentableView1Date.inputValue}"
to="<What should I put here to check the DB??>"/>
</af:commandButton>
Thank you very much.
Regards,
Hadi Wijaya

i've tried to change the model. it works for one variable.
but i have 2 variable : username and date to check into DB,
one username cannot inserting data twice or more a day....mostly like that.
and i tried to use method validator (entity editor > validation > validation rule --> method validator)...which i can put a code from editor...but i have still a problem with this :
public boolean validateDateUsername(Date data, String usrname) {
                              +--------- what should i fill into ----------+
                               |                                                    |
                               V                                                  V
if( data != <check into DB> && username==<sessionScope.username> ) {
return true;
return false;
or do you have any suggestion?? or sample maybe?
i very confuse of this...
Thanks

Similar Messages

  • Check data in R/3

    hi all,
    i need help on the following issue:
    where i can check data of report in  R/3.
    Inventory Management --> Stock Overview: Materials Shift Consumption report, i tried using MCRP t-code in ECC but it shows only the drilldown data,
    i need to compare the shift consumption data with ecc and production system any t-code or pointer will be helpful
    any suggestion/help will be helpful.
    regards,
    laksh

    Check the below tcodes
    Stock Overview      By material By Plant By batch use tcode -MMBE      The stock overview provides you with an overview of the current stocks of a material at all places within plant  
    Stock requirement list      By material and By material planner ,use tcode-> MD04
    This report will help you to analyse material requirement plan considering stocks and future requirements.
    In repetitive manufacturing set up: - Production analysis ,Material consumption analysis,Product cost analysis -->      By plant,By material,By component used -->uset the transactions->     MCRP ,MCRK, MCP6
    These reports are extensively used for reporting purpose in the repetitive manufacturing environment

  • Terms of payment in IDoc E1EDK18 have been transferred: Check data

    hi Firends,
    In my scenario  , i have to convert incoming purchase order to sales order in my system . I am able to get message from partner and idoc is created to the message bt it contains error,
    tht is Terms of payment in IDoc E1EDK18 have been transferred: Check data
    related to this I had gone through note 388120 - Transfer of conditions and terms of payment.
    which says that i have to maintain tht entry in SMME tcode.
    My confusion here is, while I tested same scenario in development , and quality server , it was not giving any such error bt in prod system i m gettin this error.
    Also if some one knows more details abt this note ,let me know.
    Thanks ,
    Brijesh Soni

    Hi Brijesh,
      you are more likely to get a response for this query if you create a thread in the SD forum.
    Regards
      Kenny Scott
      XI/PI SDN Forum Moderator

  • How to check data in the cube

    for integration purpose, how can you go and check data in the cube and validate it against the query data ? i know we can go to corresponded infocube and right click "display data" but what's on the query is not available when i execute "display data"
    Thanks

    You can always use the similar set of Restrictions as used in RKF and get the value very close to what RKF is displaying.
    But getting the same values in CKF is a bit tough..I can suggest may be you can take few/1-2 examples and do the calculations manually and compare the query result and Infocube data.

  • Report designer - Check Data Provider button missing

    Hi,
    We are in Bi 7.0 Sp 17. I found out that reports designer with hierarchies don't offer the 'check data provider' button- In field catalog, over the query, right button. If report has a fixed structure button appears...
    I need it to refresh the dataprovider with new filter values set in the query
    Have you noticed this? Do you think it's a bug in report designer or can it be my sapgui version?
    Regards,
    Ruben

    Hi Ruben,
    I think I am correct in the following, it is my understanding that the Check Data Provider button only works on fixed (Static) structures not dynamic characteristics.  Therefore if you add in additional characteristics (dynamic) after you have inserted the dataprovider into the report designer then you will not be able to use the Check Data Provider button.
    Please see the following link for explanation.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/8a95791b1f22a8e10000000a1553f6/content.htm
    If you find additional help on this please share, as RD has caused lots of "challenges" and is still in development as far as I am concerned.  Be glad when its superceded.
    Regards
    Nick

  • Error: 0271: Real Time Clock Error - Check Date and Time settings.

    Hello all,
    I have lenovo T430s laptop that is configured with Bitlocker encruptions and TPM PIN entry. I don't think that has anything to do with the error msg I am getting but here it is. Error: 0271: Real Time Clock Error - Check Date and Time settings.
    Press Esc to continue or F1 to enter setup. I am unable to get into BIOS or even the login screen for Windows 7.
    Any advice would be appreciated.

    Thanks to everyone for the help.  Just want to close this out.  I had a IBM/Lenovo technician here today and he replaced the CMOS battery.  Upon the change, the computer is fine being reconnected to the dock (the three times I tried it).  So it has been resolved with the battery.  Surprised by the incompatibility claim because I am not having issues now.  Wondering if it's just a USB 2.0 vs. 3.0 thing (and Lenovo trying to sell more peripherals, of course).
    Thanks!

  • Service Check Data Source Module Events

    Hello,
    I seem to keep having this alert   the event number is 11771, i could really use some help here on how to fix this issue if possible.... these errors are being generated from SCE BY SCE
    Thanks,
    Danny
    Date and Time:
    2/4/2010 5:19:14 AM
    Log Name:
    Operations Manager
    Source:
    Health Service Modules
    Generating Rule:
    Collect Service Check Data Source Module Events
    Event Number:
    11771
    Level:
     Warning
    Logging Computer:
    sce01.xxxxxx.com
    User:
    N/A
    Description:
    Error getting state of service
    Error: 0x8007007b
    Details: The filename, directory name, or volume label syntax is incorrect.
    One or more workflows were affected by this.
    Workflow name: Microsoft.SQLServer.2008.DBEngine.FullTextSearchServiceMonitor
    Instance name: ESSENTIALS
    Instance ID: {023CAC69-7B83-207A-5F48-D808815B4919}
    Management group: SCE01_MG
    Event Data:
     View Event Data
    < DataItem type =" System.XmlData " time =" 2010-02-04T05:19:14.0140371-06:00 " sourceHealthServiceId =" 5B7CC866-45FF-A2AE-8D33-0AC661F68861 " >
    < EventData >
      < Data > SCE01_MG </ Data >
      < Data > Microsoft.SQLServer.2008.DBEngine.FullTextSearchServiceMonitor </ Data >
      < Data > ESSENTIALS </ Data >
      < Data > {023CAC69-7B83-207A-5F48-D808815B4919} </ Data >
      < Data > 0x8007007b </ Data >
      < Data > The filename, directory name, or volume label syntax is incorrect. </ Data >
      </ EventData >
      </ DataItem >

    also here's this weeks critical errors from SCE by SCE
    Date and Time: 2/24/2010 9:55:44 AM
    Log Name: Application
    Source: Windows Server Update Services
    Event Number: 13002
    Level: 1
    Logging Computer: sce01.xxxxxxxxxx.com
    User: N/A
     Description:
    Client computers are installing updates with a higher than 25 percent failure rate. This is not normal. 
    Event Data:
    < DataItem type =" System.XmlData " time =" 2010-02-24T09:55:44.1666165-06:00 " sourceHealthServiceId =" 5B7CC866-45FF-A2AE-8D33-0AC661F68861 " >
    < EventData >
      < Data > Client computers are installing updates with a higher than 25 percent failure rate. This is not normal. </ Data >
      </ EventData >
      </ DataItem >
    Date and Time: 2/24/2010 4:25:43 PM
    Log Name: Operations Manager
    Source: Health Service Modules
    Event Number: 11852
    Level: 2
    Logging Computer: sce01.xxxxxxxxxxxxxxxx.com
    User: N/A
     Description:
    OleDb Module encountered a failure 0x80004005 during execution and will post it as output data item. Unspecified error : Login timeout expired Workflow name: Microsoft.SystemCenter.SqlBrokerAvailabilityMonitor Instance name: sce01.xxxxxxxxxxx.com Instance ID: {5B7CC866-45FF-A2AE-8D33-0AC661F68861} Management group: SCE01_MG 
    Event Data:
    < DataItem type =" System.XmlData " time =" 2010-02-24T16:25:54.2642632-06:00 " sourceHealthServiceId =" 5B7CC866-45FF-A2AE-8D33-0AC661F68861 " >
    < EventData >
      < Data > SCE01_MG </ Data >
      < Data > Microsoft.SystemCenter.SqlBrokerAvailabilityMonitor </ Data >
      < Data > sce01.xxxxxxxxxxx.com </ Data >
      < Data > {5B7CC866-45FF-A2AE-8D33-0AC661F68861} </ Data >
      < Data > Login timeout expired </ Data >
      < Data > 0x80004005 </ Data >
      < Data > Unspecified error </ Data >
      </ EventData >
      </ DataItem >
    Date and Time: 2/24/2010 10:47:13 AM
    Log Name: Operations Manager
    Source: Health Service Script
    Event Number: 4001
    Level: 1
    Logging Computer: sce01.xxxxxxxxxxxxxxx.com
    User: N/A
     Description:
    GetSQL2008BlockingSPIDs.vbs : Cannot login to database [sce01.xxxxxxxxxxxxxxx.com][ESSENTIALS:master] . 
    Event Data:
    < DataItem type =" System.XmlData " time =" 2010-02-24T10:47:15.8121021-06:00 " sourceHealthServiceId =" 5B7CC866-45FF-A2AE-8D33-0AC661F68861 " >
    < EventData >
      < Data > GetSQL2008BlockingSPIDs.vbs </ Data >
      < Data > Cannot login to database [sce01.xxxxxxxxxxxxx.com][ESSENTIALS:master] . </ Data >
      </ EventData >
      </ DataItem >
    Date and Time: 2/24/2010 10:46:05 AM
    Log Name: Operations Manager
    Source: Health Service Modules
    Event Number: 11852
    Level: 2
    Logging Computer: sce01.xxxxxxxxxxxx.com
    User: N/A
     Description:
    OleDb Module encountered a failure 0x80004005 during execution and will post it as output data item. Unspecified error : [DBNETLIB][ConnectionOpen (PreLoginHandshake()).]General network error. Check your network documentation. Workflow name: Microsoft.SystemCenter.SqlBrokerAvailabilityMonitor Instance name: sce01.xxxxxxxxxxxxx.com Instance ID: {5B7CC866-45FF-A2AE-8D33-0AC661F68861} Management group: SCE01_MG 
    Event Data:
    < DataItem type =" System.XmlData " time =" 2010-02-24T10:47:14.1579111-06:00 " sourceHealthServiceId =" 5B7CC866-45FF-A2AE-8D33-0AC661F68861 " >
    < EventData >
      < Data > SCE01_MG </ Data >
      < Data > Microsoft.SystemCenter.SqlBrokerAvailabilityMonitor </ Data >
      < Data > sce01.xxxxxxxxxxxxxxxxxxx.com </ Data >
      < Data > {5B7CC866-45FF-A2AE-8D33-0AC661F68861} </ Data >
      < Data > [DBNETLIB][ConnectionOpen (PreLoginHandshake()).]General network error. Check your network documentation. </ Data >
      < Data > 0x80004005 </ Data >
      < Data > Unspecified error </ Data >
      </ EventData >
      </ DataItem >
    Date and Time: 2/24/2010 3:50:12 PM
    Log Name: Operations Manager
    Source: Health Service Modules
    Event Number: 31400
    Level: 1
    Logging Computer: sce01.xxxxxxxxxxxx.com
    User: N/A
     Description:
    An exception occured processing a group membership rule. The rule will be unloaded. Subscription ID: 1ac6ba80-bb85-4699-82a2-f3c584b06965 Rule ID: bb91657f-32db-4f72-2ed6-e7ac94f0e167 Group ID: b20e0f37-c8d3-afcc-e21e-473b019fd826 Group type name: Microsoft.Dynamics.AX.Management.Pack.DynamicsServer.Group Exception: Microsoft.EnterpriseManagement.Common.DataAccessLayerException: Invalid property name: IsDynamicsInstalledAttribute_CE6F4AC6_0A15_BE42_323A_65A3BC8AB307 at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.GetColumnDefinitionForProperty(String propertyName, QueryDefinition queryDefinition) at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParsePredicateWithProperty(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 typeContextId, XmlReader criteriaReader) at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParsePredicate(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 typeContextId, XmlReader criteriaReader) at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParseCriteria(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 managedTypeIdContext, XmlReader criteriaReader) at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.CreateCriteriaTextAndParameters(SqlCommand sqlCommand, QueryDefinition queryDefinition, XmlReader criteriaReader, XmlNamespaceManager xmlNamespaceManager) at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlCommandBuilder.CreateCriteria(SqlCommand sqlCommand, QueryDefinition queryDefinition, String criteriaXml, Dictionary`2 parameterValues) at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.CreateSqlCommandForSelectType() at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.QueryGenerator.ExecuteSnapshotQuery(MembershipRule membershipRule, DatabaseConnection databaseConnection) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.ExpressionEvaluatorForSnapshot.EligibleBySnapshotResults(MembershipRule membershipRule, DatabaseConnection databaseConnection) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.ExpressionEvaluatorForSnapshot.GetRelationshipChangesForSnapshot(MembershipRule membershipRule, Guid groupInstanceId, Guid groupTypeId, Guid relationshipId, IList`1 groupKeyNameValuePairs, DatabaseConnection databaseConnection) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.MembershipRuleEvaluator.EvaluateSnapshot(MembershipSubscription subscription, DatabaseConnection databaseConnection) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.MembershipCalculationManager.SnapshotCalculation(MembershipSubscription membershipSubscription, DatabaseConnection databaseConnection) 
    Event Data:
    < DataItem type =" System.XmlData " time =" 2010-02-24T15:50:12.2844774-06:00 " sourceHealthServiceId =" 5B7CC866-45FF-A2AE-8D33-0AC661F68861 " >
    < EventData >
      < Data > 1ac6ba80-bb85-4699-82a2-f3c584b06965 </ Data >
      < Data > bb91657f-32db-4f72-2ed6-e7ac94f0e167 </ Data >
      < Data > b20e0f37-c8d3-afcc-e21e-473b019fd826 </ Data >
      < Data > Microsoft.Dynamics.AX.Management.Pack.DynamicsServer.Group </ Data >
      < Data > Microsoft.EnterpriseManagement.Common.DataAccessLayerException: Invalid property name: IsDynamicsInstalledAttribute_CE6F4AC6_0A15_BE42_323A_65A3BC8AB307 at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.GetColumnDefinitionForProperty(String propertyName, QueryDefinition queryDefinition) at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParsePredicateWithProperty(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 typeContextId, XmlReader criteriaReader) at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParsePredicate(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 typeContextId, XmlReader criteriaReader) at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParseCriteria(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 managedTypeIdContext, XmlReader criteriaReader) at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.CreateCriteriaTextAndParameters(SqlCommand sqlCommand, QueryDefinition queryDefinition, XmlReader criteriaReader, XmlNamespaceManager xmlNamespaceManager) at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlCommandBuilder.CreateCriteria(SqlCommand sqlCommand, QueryDefinition queryDefinition, String criteriaXml, Dictionary`2 parameterValues) at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.CreateSqlCommandForSelectType() at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.QueryGenerator.ExecuteSnapshotQuery(MembershipRule membershipRule, DatabaseConnection databaseConnection) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.ExpressionEvaluatorForSnapshot.EligibleBySnapshotResults(MembershipRule membershipRule, DatabaseConnection databaseConnection) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.ExpressionEvaluatorForSnapshot.GetRelationshipChangesForSnapshot(MembershipRule membershipRule, Guid groupInstanceId, Guid groupTypeId, Guid relationshipId, IList`1 groupKeyNameValuePairs, DatabaseConnection databaseConnection) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.MembershipRuleEvaluator.EvaluateSnapshot(MembershipSubscription subscription, DatabaseConnection databaseConnection) at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.MembershipCalculationManager.SnapshotCalculation(MembershipSubscription membershipSubscription, DatabaseConnection databaseConnection) </ Data >
      </ EventData >
      </ DataItem >

  • Check Data Values, Generates Navigation Data steps taking more time

    Hi,
    In the Masterdata load to 0MAT_PLANT
    The step - "Updating attributes for InfoObject 0MAT_PLANT" used to take a Maximum if 23 minutes for a data package size of 100,000 records till three days ago with the constituent steps "Check Data Values","Process Time-Independent Attributes" and "Generates Navigation Data" taking 5,4 and 12 minutes respectively.
    For the last three days the step "Updating attributes for InfoObject 0MAT_PLANT" is taking 58-60 minutes for the same for data package size of 100,000 records with the constituent steps "Check Data Values","Process Time-Independent Attributes" and "Generates Navigation Data" taking 12,14 and 22 minutes respectively.
    Can anyone please explain what is needed to speeden the dataload back to its previous timing e.g. if  tables indexes need to built for 'P' or 'SID' table of Mat_plant.
    An explanation of why the delay could be happening in the above steps will be really great.
    regards,
    Kulmohan

    Hi Kulmohan Singh,
    I think there may be a difference between the first update and second update is the 100,000 records is
    already in your 0MAT_PLANT.
    If you update the 0MAT_PLANT in twice, The Modify statement should loop the Q table of
    0MAT_PLANT that was already have the 100,000 records in it,so the upload speed was slowly.
    Hope it helpful you.
    Regards,
    James.

  • Withholding infotype 210 using check date

    Hi
    Currently USTAX using Checkdate to determine IT0210 information ,how do we change this to period begindate/end date.
    example we have an employee who wants to change the excemptios based on apyperiod but system taking check date instead of period begindate for fed tax calculation.
    Please let me know how do i configure the dates?
    Regards
    Rajasekhar

    HI,
    check the value coming on the screens are properly.Use DIALOG_MODE as foreground and check whether all fields getting populated.
    Check any default values need to be populated.
    Regards,
    Manoj.

  • How to check data in physical standby database?

    Hi!
    I'm maintaining physical standby database system. everyday, i must check tranfer and apply progress. I known, it operate very good. No archive gap is found.
    But i want to check data in physical standby database that there is consistant with primary database, there isn't? What method do I use? How to do?
    thankS

    I hope the following will help
    Verifying the Physical Standby Database
    ==========================================
    Once you create the physical standby database and set up log transport services, you may want verify that database modifications are being successfully shipped from the primary database to the standby database.
    To see the new archived redo logs that were received on the standby database, you should first identify the existing archived redo logs on the standby database, archive a few logs on the primary database, and then check the standby database again. The following steps show how to perform these tasks.
    Step 1 Identify the existing archived redo logs.
    On the standby database, query the V$ARCHIVED_LOG view to identify existing archived redo logs. For example:
    SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
    2 FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# FIRST_TIME NEXT_TIME
    8 11-JUL-02 17:50:45 11-JUL-02 17:50:53
    9 11-JUL-02 17:50:53 11-JUL-02 17:50:58
    10 11-JUL-02 17:50:58 11-JUL-02 17:51:03
    3 rows selected.
    Step 2 Archiving the current log.
    On the primary database, archive the current log using the following SQL statement:
    SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
    Step 3 Verify that the new archived redo log was received.
    On the standby database, query the V$ARCHIVED_LOG view to verify the redo log was received:
    SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
    2> FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# FIRST_TIME NEXT_TIME
    8 11-JUL-02 17:50:45 11-JUL-02 17:50:53
    9 11-JUL-02 17:50:53 11-JUL-02 17:50:58
    10 11-JUL-02 17:50:58 11-JUL-02 17:51:03
    11 11-JUL-02 17:51:03 11-JUL-02 18:34:11
    4 rows selected.
    The logs are now available for log apply services to apply redo data to the standby database.
    Step 4 Verify that the new archived redo log was applied.
    On the standby database, query the V$ARCHIVED_LOG view to verify the archived redo log was applied.
    SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG
    2 ORDER BY SEQUENCE#;
    SEQUENCE# APP
    8 YES
    9 YES
    10 YES
    11 YES
    4 rows selected.

  • Help! Check data in MS Excel file(JDBC-ODBC)

    Hi guys,
    I wrote a program that can check data in MS Excel file.
    User can input a sentence like "1->2" ,"1->3" (one determine one), then the program can find the data which violate the integrity constrains(functional dependency).For example, if we have the functional dependency "TSeq_gi->TSeq_accver", the program looks for two or more tuples with the same "TSeq_gi" value but the different "TSeq_accver" value in Excel file. These tuples violate the integrity constraint. But now,I can't figure out how to modify this program to multiple determine one. (like 1 3->5 or 1 3 4 5->7) . 1 3 ->5 means: look for 1 and 3 have same value but 5 different. I get stuck. Can some experts help me?
    The code and Excel file are in below link. Download and play it! Thank you~~
    Karen.
    http://us.f1f.yahoofs.com/bc/665bbb4/bc/Java/code.zip?bf6cljAB_wgRYVQf
    PS: You need to set up JDBC ODBC driver in MS windows "Administrative Tools" first. Data Souce name is Test .
    Main logic class:
    class MyActionListener implements ActionListener{
    public void actionPerformed(ActionEvent e){
    if (e.getActionCommand()=="SEARCH")
         try{
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con1= DriverManager.getConnection("jdbc:odbc:Test");
         stmt2= con1.createStatement();
    input1 = new String(pathTf.getText());     
         main_loop: while(true){
    if (input1.equals("0")){     
              // break out of while(1)
              break main_loop;
         st= new StringTokenizer(input1," ,-=>");          
              while(st.hasMoreTokens()){
                   // analyze the input stream.
                   // Attention, the program didn't do the input value check.
                   input1= st.nextToken();
                   input2= st.nextToken();               
              query= "select "+ schema[Integer.parseInt(input1)-1]+ ","+ schema[Integer.parseInt(input2)-1]+ " from [Sheet1$]";     
              rs2= stmt2.executeQuery(query);     
              rowCounter= 0;
              list1.clear();
              list2.clear();
              list3.clear();
              while(rs2.next()){
                   // increase the row counter
                   rowCounter++;
                   // initial the flag
                   col1= rs2.getString(1);
                   col2= rs2.getString(2);               
                   // for the initalization
                   if (list1.isEmpty()){
                   list1.addElement(col1);
                   list2.addElement(col2);
                   row="Row 2";
                   list3.addElement(row);     
                   // compare weather exist dependance
                   else
                   for (int i=0;i<list1.size();i++){
                        // if col1 match with the first part of value in the list
                        if (((String)list1.get(i)).equals(col1)){
                             // The independence pair match
                             if (((String)list2.get(i)).equals(col2)){
                                  break;
                             else
                                  textArea.append("\n"+"Violate Integrity Constraints Found : "+" Row "+ (rowCounter+1)+ " not match with "+ list3.get(i)+".");
                                  System.out.println("\n"+" Row "+ (rowCounter+1)+ " not match with "+ list3.get(i)+".");      
                                  break;                    
                        // if col1 not match with any value, add a new record in list
                        else
                             list1.addElement(col1);
                             list2.addElement(col2);
                             row="Row "+ (rowCounter+1);
                             list3.addElement(row);
                   }// end of for
                   }//end of else
    }//end of while
    }//end of while(1): main_loop
         }catch(Exception ex){
         //System.err.println(ex);

    sorry~~I am new here!
    class MyActionListener implements ActionListener{
             public void actionPerformed(ActionEvent e){
                  if (e.getActionCommand()=="SEARCH")
                 try{
                          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                          con1= DriverManager.getConnection("jdbc:odbc:Test");
                          stmt2= con1.createStatement();
                          input1 = new String(pathTf.getText());
             main_loop: while(true){
                     if (input1.equals("0")){
                                 // break out of while(1)
                     break main_loop;
                      st= new StringTokenizer(input1," ,-=>");
                     while(st.hasMoreTokens()){
                                  // analyze the input stream.
                                     input1= st.nextToken();
                                     input2= st.nextToken();
                          query= "select "+ schema[Integer.parseInt(input1)-1]+ ","+ schema[Integer.parseInt(input2)-1]+ " from [Sheet1$]";
                     rs2= stmt2.executeQuery(query);
                     rowCounter= 0;
                     list1.clear();
                     list2.clear();
                     list3.clear();
                    while(rs2.next()){
                           // increase the row counter
                    rowCounter++;
                           // initial the flag
                    col1= rs2.getString(1);
                    col2= rs2.getString(2);
                           // for the initalization
                      if (list1.isEmpty()){
                          list1.addElement(col1);
                           list2.addElement(col2);
                            row="Row 2";
                          list3.addElement(row);
                        // compare weather exist dependance
                           else
                              for (int i=0;i<list1.size();i++){
                                // if col1 match with the first part of value in the list
                                     if (((String)list1.get(i)).equals(col1)){
                              // The independence pair match
                     if (((String)list2.get(i)).equals(col2)){
                         break;
                              else
                textArea.append("\n"+"Violate Integrity Constraints Found : "+" Row "+ (rowCounter+1)+ " not    match    with "+ list3.get(i)+".");
               System.out.println("\n"+" Row "+ (rowCounter+1)+ " not match with "+ list3.get(i)+".");
                            break;
                          // if col1 not match with any value, add a new record in list
                            else
                                 list1.addElement(col1);
                                 list2.addElement(col2);
                                 row="Row "+ (rowCounter+1);
                                 list3.addElement(row);
                       }// end of for
                   }//end of else
               }//end of while
            }//end of while(1): main_loop
                                 }catch(Exception ex){
                                     //System.err.println(ex);
                                     }

  • Oracle Alert - Last Checked Date

    Hi
    on R11i
    The Oracle user guide states "In the Last Checked field, Oracle Alert displays the last date that this exception condition was checked, if it has been checked.
    I have a few Qs:
    1. Is the Last Checked date field only updated if a scheduled (e.g. set to run every day) periodic alert is successfully run?
    2. Will it be updated if the alert runs successfully but does not send email as no data meets the alert condition?
    3. It appears to me that this field is not updated if a periodic alert with frequency of On Demand is run manually by clicking the Run button. Is this correct?
    4. If 3 is correct, is there anyway of finding out when an On Demand alert was run and by who? If not via the apps then a script.
    thanks for any help
    Sean

    I am using :DATE_LAST_CHECKED in the SQL statement in Oracle Alert Manager while creating an alert. I was wondering how the :DATE_LAST_CHECKED gets populated during runtime.
    Thanks,
    Naveen

  • PC Suite 7 – Data transfer not possible. Check dat...

    When I try to use (open, update, modify etc.) the “contacts list” in PC suite version 7.0.7, I always have the following error: “Data transfer not possible. Check data connection”. Instead the SMS list works fine. My phone is Nokia 6267.
    Anyone has a solution?
    Best Regards
    Bix123

    Hi everyone,
    I had the same problem for months with many PC Suite versions & both XP service packs until I tried a phone setting just for testing and everything worked out fine In my phone (3110c) under Settings / Connectivity / Data Transfer / PC Sync, I filled in a random User name & Password and voila!!! All contacts copied just fine!!! I hope this works with other models with the same menu as well. It looks that it's not a PC Suite problem after all (at least for me that is).
    Hope I helped you guys
    Spiros
    Greece

  • Error - Conditions in IDoc E1EDP05 have been transferred: Check data

    Hi
    I am procesing a ORDERS05 idoc .
    in foreground the document is posted but when i run the idoc in background i get the following error.
    <b>Conditions in IDoc E1EDP05 have been transferred: Check data
    </b>
    any idea why is such an error is occuring
    Thanks
    Nikhil

    Hi,
    I have same problem here 'Conditions in IDoc E1EDP05 have been transferred: Check data' while transfer PO to SO.
    I have tried in doing SMME, but it show me 'Client 800 has status 'not modifiable''.
    What I should do the next?
    Many Thanks.

  • How to check date of purchase

    How can i check date of purchasing of iphone in this website

    If you bought it from Apple, you can view your past purchases via your store account.

Maybe you are looking for

  • Why my sound button isnt working after upgrade to ios 6.1.3??

    I recently upgrade my ios. And found out after that there's a sound bug. My ihone sound isnt working at all... Can anyone help...?

  • Errors in Forte 3.5 -Upgrade issue

    hello , We are having a frequent disruption in the communication SO which has an externalConnection Class. Did anything change in 3.5? We did not have these errors in 3L! After these erros, we have a mutex locking problem which leaves our application

  • Firefox won't open site which Chrome opens fine

    I have a site which opens fine with Chrome browser, IE, Safari, Opera, but will not open with FF. Initially FF (and other browsers) is asking about security certificate which I add and save the exception. After that redirect should be performed and i

  • F4 help without FM and matchcode.

    Hi Sapiens, I want a field on selection screen name gender.On f4 help it should pop up with two possible value -Male or female.The functionality should not use any function module or matchcode or value table or check table.Could anyone tell how to ac

  • How do I convert photos from P/shop Album 2 to Elements 8

    I have all our photos on Photoshop Album 2 on a computer running on Windows XP.  I have purchased a new computer with Windows 7 and also Photoshop Elements 8.  Can I transfer photos to new computer and Elements 8 while keeping categories, tags etc?