Import from sl-script

Hi,
I was looking for a method to import a mapping or other objects from sql-script and found this nice sample:
http://blogs.oracle.com/warehousebuilder/newsItems/viewFullItem$132
unfortunately it seems to deal with an older version of OWB and I can't find such an import function in 10.2.x
can somebody tell me how to import an easy sql-script into OWB ?
Actually I am looking to build an easy DML-statement as a mapping, but can't find a method how to force the mapping performing only this particular operation like 'delete'.
1 idea was to use lookup operator to do something easy like this:
delete from tab_A
wehre TAB_A.col1 in (select col2 from tab_B)
But in OWB even easy things become pretty complicate and I can't find, how OWB must be driven to do such an easy operation.
thanks for any hint, LaoDe

Hi LaoDe,
you may access source records with lookup operator - you can link fields from source table and from lookup operator to the same input group of any operator (for example FILTER or JOIN, etc.).
In your case I recomend you to use splitter with three output groups:
1) first group - for matched records for update TAB_A (condition - primary key of lookup table IS NOT NULL);
2) second group - for not matched records for insert into TAB_ERR (condition - primary key of lookup table IS NULL);
3) third group - for not matched records for delete from TAB_A (condition - primary key of lookup table IS NULL).
So you should use TAB_A in this mapping three times (as source, as target for update, as target for delete).
Don't forget to set target order loading (delete operation from TAB_A must be last).
And maybe set Commit control to Correlated.
Regards,
Oleg

Similar Messages

  • Import from DDL script - Why do I get domains for every column type?

    I've only been using Data Modeler for a day and my first task was to import a database definition from a DDL script.
    I noticed that every column definition resulted in the creation of a domain for the column type, with names like "VARCHAR_0_0_30" for a varchar2(30) type.
    Is there some way of avoiding the creation of domains in this way? I'd prefer to use domains only when they serve a more useful purpose such as validation by check constraints.

    Go to Preferences - > Data Modeler - > DDL and uncheck "Create Domains During Import" option.
    Ivan

  • Import From Camera problem

    I thought I'd try out the "Import From Camera" script as the first part of my workflow. I had a card with about 30 images on it taken with my Canon 1DMkII. I typically rename my files "YYMMDD_hhmmss", and although there is no explicit way to do this (EXIF Capture Date) with IFC it appeared that using the "modified date" option gave the same results.
    I ran the script and immediately encountered several errors - the script said that "One or more of the downloaded image filenames match filenames in the specified destination folder ..." I knew this wasn't the case since all images were taken at different times.
    Is there another way to use the EXIF date within IFC? Is this a script I can modify myself in some way?
    It does almost everything I want, but the renaming part is the deal-killer.
    Any thoughts would be appreciated.
    Thanks,
    Jeff

    Try using a card reader.  That way you can open the memory card as it were an external volume, select and drag the files in small groups to a folder on the Desktop. That way you can isolate those files that are causing the problem.
    If there are only a few files that won't cooperate you may have to sacrifice them so you can reformat the memory card using the camera and then test it with some test photos and videos.
    Is it just videos that won't copy?  See if you can determine which files are causing the problem.
    OT

  • [SAP Script] Recorder doesn't record "import from file - btn[23]" step

    Hi,
    I'm a total newbie in SAP script language.
    Iu2019m looking for some solution to import txt file with btn[23]. Whole procedure should look like this:
    006 click IMPORT FROM FILE u2013 btn[23]
    007 paste into textbox filepath "C:\Program lojalnosciowy\klienci.txt" and click OPEN
    008 click CONFIRM & LOAD - btn[8]
    Recorder doesnu2019t record step 007. Do you know how to fix it? Iu2019ve tried to add this line but I assume that ctxtDY_FILENAME is the wrong textbox name:
         007     MySession.findById("wnd[2]/usr/ctxtDY_FILENAME").text = "C:\Program lojalnosciowy\klienci.txt"
    SAP SCRIPT CODE:
    IsInput     ID     ScriptCode
    START     001     
         002     MySession.findById("wnd[0]/tbar[0]/okcd").text = "ZFOVERDUE"
         003     MySession.findById("wnd[0]").sendVKey 0
         004     MySession.findById("wnd[0]/usr/btn%_DD_KUNNR_%_APP_%-VALU_PUSH").press
         005     MySession.findById("wnd[1]/usr/tabsTAB_STRIP/tabpSIVA").select
         006     MySession.findById("wnd[1]/tbar[0]/btn[23]").press
         008     MySession.findById("wnd[1]/tbar[0]/btn[8]").press

    Hi shyha777,
    maybe it helps you if you look at the following link:
    Re: Pasting filename in a panel using script
    Regards,
    ScriptMan

  • Import bookmarks from json - scripts error

    New profile. Import bookmarks from json - scripts error. Why?
    From HTML - icons YES, import NO errors, tags NO(
    From JSON - icons NO(, import with errors, tags YES
    May be fix\repair\check places.sqlite, how?
    [img]http://i.imgur.com/jCrGYKp.jpg[/img]
    [img]http://i.imgur.com/5f8opcf.jpg[/img]
    [img]http://i.imgur.com/vnIpPZw.jpg[/img]

    Restoring a JSON backup with 12000 bookmarks can be quite a challenge.
    Maybe try this is a second profile and disable the timeout to see if it finishes.
    *http://kb.mozillazine.org/dom.max_chrome_script_run_time
    If it works then you can copy the places.sqlite file to the current profile folder.
    *http://kb.mozillazine.org/Profile_Manager
    *https://support.mozilla.org/kb/Managing+profiles

  • Importing from iMovie 06, lose capture dates

    When I import old iMovie 06 movies, the capture dates gets lost. Here is one of the original clips in iMovie 06:
    However, after importing in iMovie 11, the capture dates are lost.  I tried many variations, like import the iMovie 06 project, or cd to the *.iMovieProject directory and import the actual clips, etc.
    Now, good iMovie11 clips have the capture date imbedded in the file name (as in clip-2010-03-14 hh;mm;ss.dv).  However, the ones imported from iMovie 06 end up in iMovie 11 with simple names such as clip55.dv.  So it's not surprising I cannot see the capture dates in iMovie 11.
    So I looked inside the *.iMovieProject directory hoping to find the capture dates either in the file name or in a plist, but I couldn't (nothing in the plists below)
    ... Jan 23  2010 Cache/Thumbnails.plist
    ... Jan 23  2010 Cache/Timeline Movie Data.plist
    ... Jan 23  2010 Cache/Timeline Movie.mov
    ... Nov  8  2009 Media/Clip55.dv
    etc
    Finally, I opened Clip55.dv in QuickTime and looked at MovieInspector, but I could not see any capture date (similar to exif in jpegs).
    So obviously I missed them. My question is where in the iMovie 06 project can I find them?   If accessible, I can write a script to fix the clips imported in iMovie11 by changing their names. I tried it manually, and it worked.
    Thanks in advance

    Hi - Couple of things.
    Click on the offending clip that you imported from iMovie in your FCP Bin and type Command + 9 to see the item properties. Either report those item properties, or if easier, take a screen shot of the item properties and post that.
    Then click any where on the timeline you are having trouble with and type Command + 0 (Zero) to see the sequence settings. Either report those settings or take a screen shot of the Sequence Settings window and post that.
    In order for FCP to use the video without rendering, both the items properties of the source clip, and the sequence settings must match - and both must be within standard production parameters.
    Also, you can click on the source clip in the FCP Bin, then control-click on the clip and select Reveal in Finder from the drop down menu. Once that file is revealed, open it in Quicktime 7 and see if if plays correctly there.
    Hope this helps.
    MtD

  • How do I move a graphic-box in a document I imported from AppleWorks?

    I imported a book which I wrote in AppleWorks without problems into Pages '08. On one page of this book I had created a box, using the graphics tool, and moved it to the back so I could read the text inside it. It is now in the Pages '08 version of my book, but because of editing and additional writing which I've done, it appears on page 295, not 297 where it belongs. In AppleWorks I could simply select it and drag it into place. In Pages '08 I can't figure out how to select it. It's just there.
    Help desperately needed.

    Here is an AppleScript which, in a single call will
    • extract the embedded picture files
    • strip the annoying description of the 'background' pictures from the Index.xml file.
    So, we may open the Pages document, it will be free of the oddity and the picture files are available in the folder "importés_sétropmi" on the desktop.
    --(SCRIPT recupPictures]
    Save the script as an Application (Bundle Application if you want to use it on a MacIntel)
    Store it on the Desktop.
    Drag and drop the icon of a Pages document imported from AppleWorks on the script's icon.
    The script will move the embedded picture files in a folder named "importés_sétropmi" on the desktop.
    Then it will strip the Index.xml file from the block of datas describing the embedded pictures.
    Yvan KOENIG (FRANCE 7 juillet 2008)
    property typePages : "com.apple.iwork.pages.pages"
    property baliseDebut : "<sl:drawables>"
    property baliseFin : "</sl:drawables>"
    property return2 : return & return
    property line_Feed : ASCII character 10
    property line_Feed2 : line_Feed & line_Feed
    property monDossier : "importés_sétropmi"
    property withSeconds : true
    --=========
    on run (*
    lignes exécutées si on double clique sur l'icône du script application
    • lines executed if one double click the application script's icon *)
    tell application "System Events" to set docIwork to (choose file of type typePages)
    my commun(docIwork) (* un alias *)
    end run
    --=========
    on open (sel) (*
    sel contient une liste d'alias des élémentsqu'on a déposés sur l'icône du script (la sélection)
    • sel contains a list of aliases of the items dropped on the script's icon (the selection) *)
    set item1 to item 1 of sel
    tell application "System Events" to set typeID to (type identifier of item1) as Unicode text
    if typeID is not typePages then return
    my commun(item1) (* un alias *)
    end open
    --=========
    on commun(thePack)
    local typeID, p2d, p2dd, liste, path2Index, texteXML, lafin
    set p2d to path to desktop as Unicode text
    set p2dd to p2d & monDossier & ":"
    tell application "Finder"
    set liste to files of thePack whose name starts with "file"
    if liste is {} then return (* no picture file so nothing to do *)
    if exists folder p2dd then set name of folder p2dd to (monDossier & my horoDateur(modification date of (item p2dd)))
    make new folder at folder p2d with properties {name:monDossier}
    repeat with f in liste
    move f as alias to folder p2dd
    end repeat
    end tell -- to Finder
    try
    set path2Index to (thePack as Unicode text) & "Index.xml"
    set texteXML to my lis_Index(path2Index)
    if texteXML contains baliseDebut then
    set liste to my decoupe(texteXML, baliseDebut)
    set lafin to my decoupe(item 2 of liste, baliseFin)
    set texteXML to item 1 of liste & lafin
    if texteXML contains return2 then
    set texteXML to my recolle(my decoupe(texteXML, return2), return)
    end if
    if texteXML contains line_Feed2 then
    set texteXML to my recolle(my decoupe(texteXML, line_Feed2), line_Feed)
    end if
    my enregistre(texteXML, path2Index)
    end if
    on error error_message number error_number
    if the error_number is not -128 then my affiche(error_message)
    end try
    end commun
    --=========
    on affiche(msg)
    tell application "Finder"
    activate
    display dialog msg buttons {"Cancel"} default button 1 ¬
    giving up after 120
    end tell
    end affiche
    --=========
    on lis_Index(cheminXML0)
    local cheminXML0, cheminXMLgz, txtXML
    set cheminXMLgz to cheminXML0 & ".gz"
    tell application "System Events"
    if exists file cheminXMLgz then
    if exists file cheminXML0 then delete file cheminXML0 (*
    un curieux à pu dé-gzipper le fichier
    • someone may have gunzipped the file *)
    my expand(cheminXMLgz)
    set txtXML to my lisIndex_xml(cheminXML0)
    else if exists file cheminXML0 then
    set txtXML to my lisIndex_xml(cheminXML0)
    else
    error "Index.xml missing"
    end if
    end tell -- to System Events
    return txtXML
    end lis_Index
    --=========
    on expand(f)
    do shell script "gunzip " & quoted form of (POSIX path of (f))
    end expand
    --=========
    on lisIndex_xml(f)
    local t
    try
    set t to ""
    set t to (read file f)
    end try
    return t
    end lisIndex_xml
    --=========
    on enregistre(leTexte, nDoc)
    local aliasNDoc
    set aliasNDoc to nDoc as alias
    write leTexte to aliasNDoc starting at 0
    do shell script "gzip " & quoted form of POSIX path of aliasNDoc
    end enregistre
    --=========
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=========
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    (* =============
    • Build a stamp from the modification date_time
    on horoDateur(dt)
    local annee, mois, jour, lHeure, lesSecondes, lesMinutes
    set annee to year of dt
    set mois to month of dt as number (* existe depuis 10.4 *)
    set jour to day of dt
    set lHeure to time of dt
    set lesSecondes to (lHeure mod 60)
    set lHeure to round (lHeure div 60)
    set lesMinutes to (lHeure mod 60)
    set lHeure to round (lHeure div 60)
    if withSeconds is true then
    return "_" & annee & text -2 thru -1 of ("00" & mois) & text -2 thru -1 of ("00" & jour) & "-" & text -2 thru -1 of ("00" & lHeure) & text -2 thru -1 of ("00" & lesMinutes) & text -2 thru -1 of ("00" & lesSecondes)
    else
    return "_" & annee & text -2 thru -1 of ("00" & mois) & text -2 thru -1 of ("00" & jour) & "-" & text -2 thru -1 of ("00" & lHeure) & text -2 thru -1 of ("00" & lesMinutes)
    end if (*
    • Here, the stamp is "_YYYYMMDD-hhmm" or "_YYYYMMDD-hhmmss" *)
    end horoDateur
    --=========
    -- [/SCRIPT]
    Yvan KOENIG (from FRANCE lundi 7 juillet 2008 20:27:47)

  • Import From CSV File statement runs forever, no error, does not finish

    Hello,
    I am trying to import a CSV file in a JAVA program, with the following statement:
    IMPORT FROM CSV FILE '/debug/testdatabase/FILE.csv'
    INTO "JOSEPH"."TEST_TABLE"
    WITH COLUMN LIST IN FIRST ROW
    RECORD DELIMITED BY '\n'
    FIELD DELIMITED BY '\t' ERROR LOG '/debug/testdatabase/file.err'
    THREADS 10
    BATCH 10000
    I have two HANA instances on different machines A and B:
    Both machines run HANA version 1.00.74.00.389160 (NewDB100_REL), while the OS is
    SUSE Linux Enterprise Server 11.1 on machine A and
    SUSE Linux Enterprise Server 11.2 on machine B.
    The statement above runs fine on machine A and the rows are imported properly from JAVA as well as when executed from HANA Studio SQL console.
    If I copy the file to machine B and try the exact same statement with the same file, it does not finish (neither from JAVA nor from HANA Studio SQL console). There is no error either. It cannot be cancelled, only a HANA restart stops the statement. Also the sample file I use has only 2 rows, and memory does not seem to be a problem.
    I seem to have a similar problem to the one described here, but the answers there do not help me: http://scn.sap.com/thread/3396582 I specified the record delimiter, and I used a python script to check for any strange characters that are not supposed to be there, but didn't find any.
    If I copy the file to my windows PC and use the "File Menu -> Import -> SAP Hana Content -> Data from Local file" function, it imports the file correctly into B, but I need to be able to do it from JAVA.
    Machine A administration view:
    Machine B administration view:
    If you have any idea what might cause this behavior or where I can find more information on this problem please give me a hint.

    Hi Joseph,
    First from the pics, the revision of your SAP HANA instance is 73 instead of 74. Since I have no identical environment, I cannot test it for you. But can you try the simplest scenario? You can create a table with only one column table try to import a CSV file with only one row.
    Best regards,
    Wenjun

  • Importing From Flat File with Dynamic Columns

    HI
    I am using ssis 2008,i have folder in which I have Four(4) “.txt” files each file will have 2 columns(ID, NAME). I loaded 4
    files in one destination, but today I receive one more “.txt” file here we have 3 columns (ID, NAME, JOB) how can I get a message new column will receive in source. And how can I create in extra column in my destination table dynamically …please help me

    Hi Sasidhar,
    You need a Script Task to read the names and number of columns in the first row of the flat file each time and store it in a variable, then create a staging table dynamically based on this variable and modify the destination table definition if one ore more
    new columns need to be added, and then use the staging table to load the destination table. I am afraid there is no available working script for your scenario, and you need some .NET coding experience to achieve your goal. Here is an example you can refer
    to:
    http://www.citagus.com/citagus/blog/importing-from-flat-file-with-dynamic-columns/ 
    Regards,
    Mike Yin
    TechNet Community Support

  • IMPORT / EXPORT IN SCRIPTS

    Hi all.
    i have an issue in the scripts.
    is ir possible to use Import / export in scripts.
    If it is possible ,then how.
    can any body help me to solve this issue.
    Thanks,
    Eswar

    Hi,
    Use Report RSTXSCRP allows SAPscript objects (standard texts, styles, forms
    or device types to be transported between R/3 and a local or central  
    file.                                                                               
    Note: Texts, styles, and forms are client-specific! For export they are
    always read from the current client and for import they are always read
    to the current client. Device types are not client-specific so the    
    current client is not significant in the export/import of printer     
    definitions.
    Parameters to be specified:                                            
    The radio buttons Device type/Form/Style/Standard text select the      
    transport object to be imported or exported.                           
    Object name:  Name of the standard text, style, form, or device type.  
    Mode: Export means download to file, IMPORT means upload from file.    
    File system: Allows you to choose whether the file is read/written     
    locally (GUI file system) or on the application server (default        
    setting).                                                              
    Reward Points if it is Useful.
    Thanks,
    Manjunath MS.

  • Calling java from csh scripts

    I have recently come across certain projects where Java has being used as an alternative for scripting purposes. What I am trying to say here is that making calls to java programs from csh scripts and these Java programs are merely doing trivial/sql tasks which could have very well been carried out in a scripting language itself. and then Java calling some scripts so ending up with a chain of Java calling scripts which call Java and so on.
    It has been my understanding all along that such a design would not be something recommended, and there should be a separation of concerns and a clear demarcation between Java and the scripting code. What however I am struggling with is finding some articles or papers supporting this thought and I would greatly appreciate if some you have something you would like to share preferably an article, supporting or negating such a design.
    Edited by: kilyas on Mar 25, 2010 2:52 PM

    >
    Actually my original post was a reply to Saish. But thanks for the input. It's good to know that you extend TDD to scripting as well, but most of the scenarios I have come across thats not been the case. Whether thats the lack of test tools/libraries like JUnit or JMock for csh scripting or the user's frame of mind of getting things done, I am not sure.There's no need for such tools. Even in Java et al, test harnesses can be hand-whittled. JUnit is just Java code, after all. Test harnesses for scripts are no different. As an extremely basic example, you might a file that picks up everything from one directory, run a sed application against it, and dump the results in another directory. Writing tests for that is pretty easy; start with a couple of sample input files, and expected outs, apply your script, do a diff on the resut against the expected outs. Granted there isn't a nice UI to give you a green bar with shell scripts, but you can still get a list of pass/fail stats. Groovy scripts, of course, can be run in an actual JUnit runner.
    If you're finding it too hard to test scripts, like perhaps there are too many different flows of execution through the script, it's worth considering whether the task-at-hand is really a scripting job at all. The sweet spot for scripts is gluing together the stuff that performs all the complex logic.
    What are the best practices recommendations for such a scenario, I am sure there much be something about it or some pattern or anti pattern dealing with it and some review of such an implementation. Don't you think so?I hope so! I've been tasked with documenting a scripting standard written by another developer, finding references to cite and such-like. There do exist coding standards on the web for scripting, shouldn't be too hard to find something useful. As for reviews, I expect simple peer review by someone else who knows scripting is about as good as it's going to get.
    I'd add that logging plays an important part in scripting, just as it does in your "real" code

  • IMPORT FROM MEMORY ERROR

    When ever i run a driver program of Sap-Scrip i get an abend msg statin IMPORT FROM MEMORY ERROR: Program canceled. what should i do to get over this error...???

    Hi Kunal,
    Once again u check out the parameters u passed  correctly or not in FM.
    Give first &  next page in script layout.

  • Full Import from 8.1.5 to 9.2 errors

    Hi Guys
    We are running with WinNT SP6, I created a 9.2 database, carried out a full import from a 8.1.5 database, no problems.
    When I try to do a full import again into the 9.2 database, I get
    IMP-00019: row rejected due to ORACLE error 1
    IMP-00003: Oracle error 1 encountered
    ORA-00001: unique constraint (gs.table_name) violated
    I'm using FULL=Y IGNORE=Y DESTROY=N (as I did with the original successful full import into the same 9.2 database)
    I just want to be able to update the entire database with a more recent version of the data on the 8.1.5 database.
    What do I need to set to avoid these errors and import the new dmp file successfully?
    Can I just re-run the full import again on top of the 9.2 database after the unsuccessful full import?
    Many thanks in advance for any speedy responses!
    Cheers
    Ciaran

    The unique constraint violation happens because you have data in your 9.2 database. You are attempting to insert the same records again from your new export.
    To refresh the data in your 9.2 instance with more recent data from the 8.1 instance, you will need to truncate (or drop) all of the tables in the 9.2 instance before doing your import. I would also suggest that if you truncate the tables, you also drop all indexes, constraints and triggers. These can be re-built by the import, or manually from scripts after the import.
    TTFN
    John

  • Calling Java function from java script function

    Hello,
    I have a jsp in which on button click i am calling a java script function. now there is some data that i want to insert in a table on click of the same button. But in order to do that i need to write java code. but if i write java code inside the script function that is called on button click it doesnt work. what i understand is that i need to make a java function inside the jsp & call that from the script function. can someone tell me how to do that ?
    this is the code i have written
    function sendMail(iCount2)
         var eMailAddresses = "";
         var studRegId = "";
         for (var i=0; i <iCount2; i++)
              if(document.getElementById("chk" + i).checked)
                   eMailAddresses = eMailAddresses+document.frmQueryBuilder.hdnEmail.value+",";
                   studRegId = document.frmQueryBuilder.studRegId[i].value;
              <%     if(regTemp != "")
                        MakeConnection mc1 = new MakeConnection();
                        con1 = mc1.DBConnection();
                        String temp = "1";
                        System.out.println("inside the if loop for regTemp");
                        String query1 = "insert into studcompreg (studregid,compid) values(?,?)";
                        stmt1 = con1.prepareStatement(query1);
                        stmt1.setString(1,regTemp);
                        stmt1.setString(2,temp);
                        /*stmt1.setString(3,temp);
                        stmt1.setString(4,"01-jan-2005");*/
                        rsinst = stmt1.executeQuery();
              %>
         win = window.open('BackupMail.jsp?eMailAddresses='+eMailAddresses);

    <%@ page import = "Utils.*" %>
    <%@ page import = "java.sql.*" %>
    <%@ page import = "java.lang.String.*"%>
    <%@ page import = "java.text.*" %>
    <%@ page import = "java.util.*"%>
    <%
         String insertValues[] = new String[10];
         String regTemp = "";
         java.sql.Connection con1 = null;
         java.sql.ResultSet rs1 = null;
         java.sql.PreparedStatement stmt1 = null;
         java.sql.Statement stmtinst = null;
         java.sql.ResultSet rsinst = null;
         java.sql.Connection con = null;
         java.sql.PreparedStatement stmt = null;
         java.sql.ResultSet rs = null;
    %>
    <HTML>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <link rel="stylesheet" href="style.css" type="text/css">
    <script language = "javascript">
    /*Client side validations go here*/
    function submitForm()
         document.frmQueryBuilder.submit();
    function selectAll(iCount2)
         for (var i=0; i <iCount2; i++)
              document.getElementById("chk" + i).checked = true;
    function deselectAll(iCount2)
         for (var i=0; i <iCount2; i++)
              document.getElementById("chk" + i).checked = false;
    function sendMail(iCount2)
         var eMailAddresses = "";
         var studRegId = "";
         for (var i=0; i <iCount2; i++)
              if(document.getElementById("chk" + i).checked)
                   eMailAddresses = eMailAddresses+document.frmQueryBuilder.hdnEmail.value+",";
                   studRegId = document.frmQueryBuilder.studRegId[i].value;
                   document.frmQueryBuilder.temp.value ="newOne";
                   document.frmQueryBuilder.submit();
         win = window.open('BackupMail.jsp?eMailAddresses='+eMailAddresses);
    </script>
    </head>
    <BODY>
    <%
    int MaxCount = 15;
    int iCount1 = 0;
    int iCount2 = 0;
    int iCount3 = 0;
    String query = "";
    String eMailAddresses = "";
    StringBuffer sbMail = new StringBuffer();
    //String strValue[] = new String [MaxCount];
    //try
         String strCriteria [] = new String [10];
         String strCondition [] = new String [10];
         String strValue1 [] = new String [10];
         String strCombo [] = new String [10];
         for (iCount3 = 0; iCount3 < 10; iCount3 ++ )
              strCriteria[iCount3] = "";
              strCondition[iCount3] = "";
              strValue1[iCount3] = "";
              strCombo[iCount3] = "";
         if (request.getParameter ("txtAction") != null)
              //String nothing = request.getParameter("chk"+iCount2);
              //System.out.println("Value of checkbox : " +nothing);
              String strQuery[] = new String [MaxCount];     
              StringBuffer sb = new StringBuffer();
              String AccessQuery = "";
              String strTmpQuery = "";
              String strTmpRefType[] = new String [4];
              int QueryLen = 0;
              int ModifyLen = 0;
              int QueryLenNew = 0;
              String strTmpRefType1 = "";
              String strTmpRefType2 = "";
    String strTmpRefType3 = "";
         String strTmpRefType4 = "";
              strQuery[0] = "SELECT STUDREGID, NAME,STUDID,PROGRAM,BRANCH,CPI,EMAIL FROM STUDREGDTLS WHERE";
              sb.append(strQuery[0]);
              for (iCount3 = 1; iCount3 < 11; iCount3 ++)
                   iCount1++;
                   strCriteria[iCount3 - 1] = request.getParameter("criteria" + iCount1);
                   strCondition[iCount3 - 1] = request.getParameter("condition" + iCount1);
                   strValue1[iCount3 - 1] = request.getParameter("value" + iCount1);
                   strCombo[iCount3 - 1] = request.getParameter("combo" + iCount1);
              System.out.println("Loop"+iCount3);
                   if (!request.getParameter("criteria" + iCount1).equals("null"))
                        System.out.println("Started getting parameters");
                        strTmpRefType1 = request.getParameter("criteria" + iCount1);
                        if (request.getParameter("condition" + iCount1).equals("ANYWHERE"))
                                  System.out.println("Entered anywhere if of Anywhere");
                                  strTmpRefType2 = "LIKE";
                        else if (request.getParameter("condition" + iCount1).equals("STARTSWITH"))
                                       strTmpRefType2 = "LIKE";
                             else
                                  System.out.println("Anywhere & Startswith not selected");
                                  strTmpRefType2 = request.getParameter("condition" + iCount1);
                        if (request.getParameter("condition" + iCount1).equals("ANYWHERE"))
                                  strTmpRefType3 = "\'" + "%" request.getParameter("value" iCount1)+ "%" + "\'";
                        else if (request.getParameter("condition" + iCount1).equals("STARTSWITH"))
                                       strTmpRefType3 = "\'" request.getParameter("value" iCount1)+ "%" +"\'";
                             else if (request.getParameter("condition" + iCount1).equals("="))
                                            strTmpRefType3 = "\'" + request.getParameter("value" + iCount1)+ "\'";
                                            System.out.println(strTmpRefType3);
                                  else
                                            strTmpRefType3 = request.getParameter("value" + iCount1);
                        strTmpRefType4 = request.getParameter("combo" + iCount1);
                        System.out.println("Value of strTmpRefType2" +strTmpRefType2);     
                   strQuery[iCount3] = " upper(" strTmpRefType1 ") " strTmpRefType2 " upper(" strTmpRefType3 ") " strTmpRefType4 "";
                        System.out.println("Making Qyery"+iCount3);
                   sb.append(strQuery[iCount3]);
                   if (request.getParameter ("txtAction") != null)
                             MakeConnection mc = new MakeConnection();
                             con = mc.DBConnection();
                             QueryLen = sb.length();                         
                             ModifyLen = strTmpRefType4.length();
                             QueryLenNew = (QueryLen - ModifyLen);
                             sb.delete(QueryLenNew, QueryLen);
                             AccessQuery = sb.toString();
                             System.out.println(AccessQuery);
                             stmt = con.prepareStatement (AccessQuery);
                             rs = stmt.executeQuery();
    %>
    <table width="563" >
    <tr><td><DIV CLASS="windowtitle">Student Search</DIV></td></tr>
    <tr><td><DIV CLASS="udGroupBoxHdrDiv">Enter Search Criteria</DIV></td></tr>
    <tr><td CLASS="bgcol">
    <FORM name=frmQueryBuilder METHOD='POST'>
    <INPUT TYPE=hidden Name='txtAction' value='S'>
    <table >
    <%
         for(iCount1 = 1; iCount1 < 11; iCount1++)
                   System.out.println (strCriteria[iCount1-1]);
                   if(iCount1 == 9)
    %>                         <TR valign=top>
    <%
                   else
    %>                          <TR>
    <%
    %>
    <TD width="47"><LABEL CLASS="assoctext">Criteria </LABEL></td><td width="150">
              <SELECT NAME='<%="criteria" + iCount1%>' size="1">
    <OPTION VALUE='null'>- - - - - - - - - - - - - - - - -</OPTION>
         <OPTION VALUE='AGE' <%=strCriteria[iCount1-1].equals("AGE")?"selected":""%>>AGE</OPTION>
         <OPTION VALUE='BRANCH' <%=strCriteria[iCount1-1].equals("BRANCH")?"selected":""%>>BRANCH</OPTION>
         <OPTION VALUE='CPI' <%=strCriteria[iCount1-1].equals("CPI")?"selected":""%>>CPI</OPTION>
         <OPTION VALUE='DEPARTMENT' <%=strCriteria[iCount1-1].equals("DEPARTMENT")?"selected":""%>>DEPARTMENT</OPTION>
    <OPTION VALUE='DREAMCOMP' <%=strCriteria[iCount1-1].equals("DREAMCOMP")?"selected":""%>>DREAM COMPANY</OPTION>
    <OPTION VALUE='PROGRAM' <%=strCriteria[iCount1-1].equals("PROGRAM")?"selected":""%>>PROGRAM</OPTION>
    <OPTION VALUE='SKILLSET' <%=strCriteria[iCount1-1].equals("SKILLSET")?"selected":""%>>SKILL SET</OPTION>
    <OPTION VALUE='WORKEX' <%=strCriteria[iCount1-1].equals("WORKEX")?"selected":""%>>WORK EX</OPTION>
    </SELECT>
              </TD>
         <TD width="88">
              <SELECT NAME='<%="condition" + iCount1%>'>
                   <OPTION VALUE='<=' <%=strCondition[iCount1-1].equals("<=")?"selected":""%>><=</OPTION>
                   <OPTION VALUE='>=' <%=strCondition[iCount1-1].equals(">=")?"selected":""%>>>=</OPTION>
                   <OPTION VALUE='=' <%=strCondition[iCount1-1].equals("=")?"selected":""%>>EXACT MATCH</OPTION>
                   <OPTION VALUE='ANYWHERE' <%=strCondition[iCount1-1].equals("ANYWHERE")?"selected":""%>>ANYWHERE</OPTION>
                   <OPTION VALUE='STARTSWITH' <%=strCondition[iCount1-1].equals("STARTSWITH")?"selected":""%>>STARTS WITH</OPTION>
              </SELECT>
    </TD><TD width="38"><LABEL CLASS="assoctext">Value </LABEL></TD>
    <TD width="186"><INPUT NAME=<%="value" + iCount1%> value='<%=strValue1[iCount1-1]%>' size="20" >
    </TD>
    <TD width="187"><SELECT NAME='<%="combo" + iCount1%>'>
                   <OPTION VALUE='AND' <%=strCombo[iCount1-1].equals("AND")?"selected":""%>>AND</OPTION>
                   <OPTION VALUE='OR' <%=strCombo[iCount1-1].equals("OR")?"selected":""%>>OR</OPTION>
              </SELECT>
    </TD>
    </TR>
    <%
    %>
    </table>
    </td></tr>
    <tr><td align=center>
    <BR>
    <INPUT CLASS="butstyle" type="button" id="cmdSave" enableAlways = "0" value="Submit" onclick="return submitForm();" >
    </td></tr>
    </table>
    <table width="698">
    <tr><td colspan = 6><DIV CLASS="udGroupBoxHdrDiv">Students Matching the Required Crieria</DIV></td></tr>
    <TR>
         <TD CLASS="tblhdr" width="50"></TD><TD CLASS="tblhdr" width="155">Student Name</TD>     <TD CLASS="tblhdr" width="150">Student
    Id</TD><TD CLASS="tblhdr" width="150">Program</TD><TD CLASS="tblhdr" width="150">Branch</TD><TD CLASS="tblhdr" width="62">CPI</TD>
         </TR>
    <%          int i = 0;
         if (request.getParameter ("txtAction") != null)
                   while( rs.next())
    %>
    <%                         System.out.println("Entered Output Loop"+ rs.getString("Name"));
                             System.out.println("Entered Output Loop.........."+ rs.getString("Email"));     
                             sbMail.append(rs.getString("Email")).append(",");
                             regTemp = rs.getString("STUDREGID");
                             i++;
                             System.out.println("student reg id........."+regTemp);
                             System.out.println("value of i........."+i);
    %>                    
                   <TR CLASS="bgcol">
                             <TD width="25"><INPUT TYPE="checkbox" NAME='<%="chk" + iCount2%>' id='<%="chk" + iCount2%>' VALUE=""></TD>
                             <TD width="155"><INPUT NAME=txtName size=20 value='<%=rs.getString("NAME")%>'></TD>
                             <TD width="150"><INPUT NAME=txtStudId size=20 value='<%=rs.getString("STUDID")%>'></TD>
                             <TD width="150"><INPUT NAME=txtProgram size=20 value='<%=rs.getString("PROGRAM")%>'></TD>
                             <TD width="150"><INPUT NAME=txtBranch size=20 value='<%=rs.getString("BRANCH")%>'></TD>
                             <TD width="62"><INPUT NAME=txtCpi size=4 value='<%=rs.getString("CPI")%>'></TD>
                   </TR>
                             <INPUT type="hidden" NAME=hdnEmail value='<%=rs.getString("Email")%>'>
                             <INPUT type = "hidden" NAME = studRegId value = '<%=rs.getString("studRegId")%>'>
                             <INPUT type ="hidden" NAME =temp value ="">
    <%
                             iCount2++;
         eMailAddresses = sbMail.toString();
                   if (con != null)
                             con.close();
    //catch( Exception e)
              System.out.println ("ERROR " + e);
              if (con != null)
                        con.close();
    %>
    </table>
    <table width="698" align=center>
    <tr><td>
    <BR>
    <INPUT CLASS="butstyle" valign=top type="button" id="cmdSave" enableAlways = "0" value="Select All" onclick="return selectAll(<%=iCount2%>)" >
    </td>
    <td>
    <BR>
    <INPUT CLASS="butstyle" valign=top type="button" id="cmdSave" enableAlways = "0" value="Deselect All" onclick="return deselectAll(<%=iCount2%>)" >
    </td>
    <td>
    <BR>
    <INPUT CLASS="butstyle" valign=top type="button" id="cmdSave" enableAlways = "0" value="Send Mail" onclick="sendMail(<%=iCount2%>)" >
    </td>
    </tr>
    </table>
    </FORM>
    </BODY>
    </HTML>
    <%     System.out.println("value inside hidden var temp"+request.getParameter("temp"));     
         if((request.getParameter("temp") != null) && (request.getParameter("temp").equals("newOne")))
         //if(regTemp != null)
              MakeConnection mc1 = new MakeConnection();
              con1 = mc1.DBConnection();
              String temp = "1";
              System.out.println("inside the if loop for regTemp");
              String query1 = "insert into studcompreg (studregid,compid) values(?,?)";
              stmt1 = con1.prepareStatement(query1);
              stmt1.setString(1,regTemp);
              stmt1.setString(2,temp);
              /*stmt1.setString(3,temp);
              stmt1.setString(4,"01-jan-2005");*/
              rsinst = stmt1.executeQuery();
    %>

  • How to delete only events I previously imported from .ics files?

    I have a very frustrating problem. A few months ago I added a few .ics calendars and merged them with my main calendar on iCal. For example I added a list of dates of baseball games for my favorite team, a list of holidays in Britain, and a few other .ics files.
    Then tragedy struck: I synced my Blackberry to my Macbook and iCal and then somehow all the dates on the imported .ics became one day earlier. For example, valentine's day, which should be February 14, is on February 13 on my calendar. And Christmas is on December 24, rather than December 25.
    Strangely, all the events that I manually added (such as my business meetings), are correct and were never changed. Only the dates/events from the imported .ics files changed.
    I have waited a few months, but the frustration is just too much. I can not easily delete my main calendar, because it literally has hundreds of business meetings spread out over a 6-9 month period.
    So my question is this:
    a) Is there a way to move all the date back 1 day for only things imported from .ics? All these holidays and events are i a small purple oval at the top of each date, so they are definitely look different than the business meetings I entered, so I hope there is a way to selectively move them.
    b) Is there a way to delete all those events and then try re-importing them?
    Tks for your help!

    Right, I only have 1 calendar. Ok, I did this but nothing seems changed. Here is what I did:
    I followed your directions and it ran for about 4 min and I heard my fan starting up and my Macbook slowed. Then things got better and my iCal crashed. I forgot to close it before I ran this I received no error message, but nothing changed in iCal and all the One Day Events were still there.
    So I then had the iCal closed, and attempted all steps again. Again it ran for about 4min, things slowed on my computer to a crawl, then got better. Then the Apple error window opened and said again iCal quit unexpectedly (I had not started it in the first place, but I assume the script had to open it to do the work, right?).
    So now I'm back where I started -- it seems like the script was doing something but it didn't do anything to my one day events
    I REALLY appreciate your help!

Maybe you are looking for

  • "Remote" App Has Become Sluggish, Slow to Respond

    I've searched this and other forums and have yet to see the issue I'm having addressed. After successfully installing and using the iPhone "Remote" app to control my Apple TV, its performance has become erratic. While selecting and/or swiping actions

  • Is there an app for crossfade for Ipod touch

    I am having a party tonight and want my music to fade in and out.  Is there a way this can be done or an app that can be purchased?

  • Passing XMLType from Stored Procedure to Java

    I tried the above with 9.2.0.3 Stored Procedure as follows: create or replace procedure FORTE.USP_NGCCS_CN_VALIDATOR( doc_id NUMBER, cn_doc SYS.XMLTYPE) AS LANGUAGE JAVA NAME 'ngccsIntXML.CNValidation(int, oracle.xdb.XMLType)' Java Code as follows: i

  • Using the gain plugin on master outputs

    hello- i do a fair amount of orchestral composing in Logic and subsequently many of my compositions come out very quiet. now, im way too lazy to go in and adjust the levels on ALL my instrument tracks individually because i have a pretty tight deadli

  • Export or Save Pages document as a HTML

    I have created a document in pages and want to email it as an HTML rather than PDF. Is this possible? If so, how? Thanks.