Pl/sql(help me please)

I have a problem.
When I read from a file I must respect the following rules:
The only characters admitted are :
Number: from 0 till 9
Alphanumeric:
Blank and A....Z (capital letters).
(The not capital letters and the letters with accent are deleted.)
The special letters: ! ‘’ % $ & ’ ( ) * +, - . / : ; < = > ?
All the others characters will be replaced by blanks.
How could I realize,easily this thing.
Yours,
Virginia

declare
abc VARCHAR2(1000);
in_file utl_file.file_type;
BEGIN
in_file :=utl_file.fopen('TEST_DIR','test.txt','R');
loop
  utl_file.get_line(in_file,abc);
  dbms_output.put_line('Line:'||abc);
  abc := translate(abc,trim(translate(abc,'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!"%$',' ')),' ');
  dbms_output.put_line(abc);
  exit when abc is null;
end loop;
  utl_file.fclose(in_file);
EXCEPTION
when no_data_found then
  null;
END ;
Line:abc.?
abc
Line:+-/def.abc
defabc
Line:ghi/*+12345
ghi 12345
PL/SQL procedure successfully completed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • SQL HELP , URGENT PLEASE

    Hi,
    I want some help in writing a SQL Query .Its besically a hierarchical query. Let me lay down the table structure first to explain my requirements better.
    PORP_TABLE(NODE_LEVEL int, WBS_ID int, WBS_NUMBER varchar(60), LFT int,RGT int)
    SELECT NODE_LEVEL, WBS_ID, LFT,RGT FROM PROPOSAL_WBS PW WHERE PROPOSAL_REV_ID = 7000
    (SAMPLE DATA)
    NODE WBS
    LEVEL WBS_ID NUMBER LFT RGT
    0 7055 ROOT 1 24
    1 7056 1 2 5
    1 7088 2 6 9
    2 7057 1.1 3 4
    2 7089 2.1 7 8
    2 7091 3.1 11 14
    2 7103 3.2 15 16
    2 7105 4.1 19 20
    1 7090 3 10 17
    3 7092 3.1.1 12 13
    1 7104 4 18 23
    2 7106 4.2 21 22
    ALLOCATION_DETAIL( WBS_ID int, COST_ID int, PERIOD Date, AMOUNT Float)
    sample data
    WBS_ID , COST_ID , PERIOD , AMOUNT
    7057 100 01-jan-2005 5000
    7057 100 01-feb-2005 2000
    7057 100 01-mar-2005 1000
    7057 100 01-apr-2005 6000
    7057 100 01-may-2005 3000
    7057 100 01-jun-2005 45000
    7106 100 01-mar-2005 8000
    7106 100 01-apr-2005 7000
    7106 100 01-may-2005 9000
    Now the PORP_TABLE has got the parents and childs. Only the leaf nodes in the hierarchy has the values stored in the ALLOCATION_DETAIL table. Now here is the scenario
    In the example 7055 is the root WBS . The Leaf WBS are the one with max extension in the wbs number ( in this case it is 1.1, 2.1, 3.1.1, 3.2, 4.1 and 4.2)
    Now the Starting period for each leaf node in the ALLOCATION_TABLE could be differrent . What that means is WBS 1.1 could start in Jan -2003 and WBS 3.1 Could be Jul-2005 . So the ending perios are also differrent for differrent WBS . Some can span 2 years some can 5 years.
    So how to write a query so it retrieves the value for all the Wbs starting from the MIN ( PERIOD ) upto the MAX(PERIOD), and it should roll up also. Now there is No connect by Prior or any analytic functions available for this . THIS NEEDS TO BE DONE ONLY THROUGH TRADITIONAL SQL STATEMENT . And NO DB FUNCTIONS CAN BE USED .
    Now if the WBS is a parent node then it should have the sum of all its child nodes for the COST category.
    SO THE RESULT SET SHOULD BRING LIKE THIS
    WBS_NUMBER, PERIOD_NUMER, COST_CATEGORY , AMOUNT
    ROOT
    1
    1.1
    2
    2.1
    3
    3.1
    3.1.1
    3.2
    4
    4.1
    4.2
    ......

    Hi,
    <br>Read String Aggregation Techniques</br>
    <br>HTH,</br>
    <br>Nicolas.</br>

  • SQL help needed please

    Hi - using asp/vbscript/access
    I struggle with a small SQL issue and hope that someone can
    assist me;
    I have one db table, lets call it "test".
    Coloumns are ID, SubID, Name
    ID holds the uniqe ID and headline for each record ( Name).
    SubID holds the content linked to the corresponding ID.
    Something like this;
    ID1 - Shoe sizes
    ID2 / SubID 1 - 40
    ID3/ SubID 1 - 41
    ID4/SubID 1 - 42
    ID5 - Shoe Colors
    ID6/SubID 5 - Red .......and so on.
    I now try to display all the ID and SubID records in the same
    order as the input;
    SELECT *
    FROM test
    WHERE ID = SubID
    This gives no result. Any idea how to display this?
    Kind regards,
    Bjørn.

    I'm trying to figure out how you made that table. If ID is an
    autonumber,
    how is the data under one record something like a title and
    under another
    one, a number? That isn't possible.
    What exactly are you trying to accomplish?
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "btn" <[email protected]> wrote in message
    news:e9t94r$lcn$[email protected]..
    > Hi - using asp/vbscript/access
    >
    > I struggle with a small SQL issue and hope that someone
    can assist me;
    >
    > I have one db table, lets call it "test".
    > Coloumns are ID, SubID, Name
    > ID holds the uniqe ID and headline for each record (
    Name).
    > SubID holds the content linked to the corresponding ID.
    >
    > Something like this;
    >
    > ID1 - Shoe sizes
    > ID2 / SubID 1 - 40
    > ID3/ SubID 1 - 41
    > ID4/SubID 1 - 42
    > ID5 - Shoe Colors
    > ID6/SubID 5 - Red .......and so on.
    >
    > I now try to display all the ID and SubID records in the
    same order as the
    > input;
    >
    > SELECT *
    > FROM test
    > WHERE ID = SubID
    >
    > This gives no result. Any idea how to display this?
    >
    > Kind regards,
    >
    > Bj?rn.
    >

  • How to set the CLASSPATH for an  Sql Server 2005 database... help me please

    Hello! Guys I want to access a Sql Server 2005 database from Java.I've downloaded the JDBC 2.0 driver from Microsoft.I've copied the sqljdbc4.jar file to C:\Java\jdk1.6.0_14\db\lib.And I've added this to the classpath C:\Java\jdk1.6.0_14\db\lib\sqljdbc4.jar.The classpath variable is defined as a user variable.Well the point is that I get that nasty exception:Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver.So if you know how to help me,please do so.Thank you :)

    Hi Timo,
    My jdev version is 10.1.3.3.0, this is for R12. By PR i mean to say process request and PFR process form request in the controller.
    In the Process request of the controller, i am finding the checkbox bean and assigning the firepartialaction for it.
    Later in the process form request for the fired event, i am trying to handle the rendered property of the messagetextinput. Is this a right approach?
    my code below
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    OAMessageCheckBoxBean oamessagecheckboxbean = (OAMessageCheckBoxBean)oawebbean.findChildRecursive("X_FLAG");
    if(oamessagecheckboxbean != null)
    oapagecontext.writeDiagnostics(this, "Message check box Bean found:", 1);
    FirePartialAction firepartialaction = new FirePartialAction("change");
    oamessagecheckboxbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, firepartialaction);
    oamessagecheckboxbean.setFireActionForSubmit("change", null, null, true);
    oapagecontext.writeDiagnostics(this, "setting fire event", 1);
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    oapagecontext.writeDiagnostics(this, "Inside Process Form Request", 1);
    if("change".equals(oapagecontext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAMessageTextInputBean bean = (OAMessageTextInputBean)oawebbean.findChildRecursive("X_NUMBER");
    if(bean!=null){
    bean.setRendered(Boolean.TRUE);}
    Thanks,
    Malar

  • Help me please~ non-static variable rs cannot be referenced ...

    i make counter
    but this error occurrence
    only i doing resultset make and closed
    why non-static variable rs ....
    i am sorry i don't speak English ...
    help me please..
    error message
    non-static variable rs cannot be referenced from a static context
    source
    ===============================================
    package jjaekim;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Count{
              Statement stmt;
              ResultSet rs;
              ResultSet rs2;
              Connection conn;
              //DBPoolManager dbpm;
         public static String add(HttpServletRequest request){
              try{
                        int year =0;
                        int month=0;
                        int date =0;
                        int hour =0;
                        int min     =0;
                        int week =0;
                        String str_date=new String();
                        String str_time=new String();
                        String referer_url     =request.getHeader("Referer");
                        String infomation     =request.getHeader("User-Agent");
                        String ip               =request.getRemoteAddr();
                        int access_date=0;
                        int access_time=0;
                        Calendar cal     =Calendar.getInstance();
                        year               =cal.get(cal.YEAR);
                        month               =cal.get(cal.MONTH) + 1;
                        date               =cal.get(cal.DATE);
                        hour               =cal.get(cal.HOUR_OF_DAY);
                        min                    =cal.get(cal.MINUTE);
                        week               =cal.get(cal.DAY_OF_WEEK);
                        access_date          =(month*100)+date;
                        access_time          =(hour*100)+min;
                        if(access_date<1000)
                             str_date="0"+new Integer(access_date).toString();
                        else
                             str_date=new Integer(access_date).toString();
                        if(access_time<100)
                             str_time="0"+new Integer(access_time).toString();
                        else
                             str_time="0"+new Integer(access_time).toString();
                   }catch(Exception e){
                        //System.out.print("Exc"+e.getMessage());
                        //return false;
                   finally{
                             if(rs!=null){
                                  try{     rs.close();}catch(Exception e){}
                             if(rs2!=null){
                                  try{     rs2.close();}catch(Exception e){}
                             if (stmt!=null){
                                  try{     stmt.close();}catch(Exception e){}
                             //if (conn!=null){
                                  try{     conn.close(); }catch(Exception e){}
                        //return back;
    /*     public static void main(String[] args)
              System.out.println("Hello World!");

    Hello jjaekim,
    if rs is a class variable (the same value for all objects),
    try this (more likely to be the right solution) :
    static ResultSet rs;
    instead of :
    ResultSet rs;
    if rs has a different values in different objects,
    then you should add the object name when using it like this :
    myObject.rs or this.rs

  • SQL Help adding totals to cols..

    Hi All,
    We have a sql report that we need some help finishing please.
    The report display col data as rows and we need to total up the values at the end of the report.
    The table is as follows:
    desc all_positions
    Name                                                                     Null?    Type
    OFFICE_TYPE_DESCRIPTION                                                           VARCHAR2(60)
    POSITION_ABBREVIATION                                                             VARCHAR2(10)
    POSITION                                                                          VARCHAR2(60)
    SD                                                                                VARCHAR2(43)
    HIRED                                                                             NUMBER
    OPEN                                                                              NUMBERThe SQL select is:
    SELECT  SD
              ,SUM(open) total_open
              ,SUM(hired) total_hired
              ,COUNT(decode(a.position_abbreviation, 'POS-1', 1, NULL))   "Position 1 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-2', 1, NULL))      "Position 2 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-3', 1, NULL))   "Position 3 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-4', 1, NULL))   "Position 4 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-5', 1, NULL))   "Position 5 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-6', 1, NULL))   "Position 6 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-7', 1, NULL))   "Position 7 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-8', 1, NULL))   "Position 8 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-9', 1, NULL))   "Position 9 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-10', 1, NULL))  "Position 10 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-11', 1, NULL))  "Position 11 Header/Description"     
              ,COUNT(decode(a.position_abbreviation, 'POS-12', 1, NULL))  "Position 12 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-13', 1, NULL))  "Position 13 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-14', 1, NULL))  "Position 14 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-15', 1, NULL))  "Position 15 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-16', 1, NULL))  "Position 16 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-17', 1, NULL))  "Position 17 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-18', 1, NULL))  "Position 18 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-19', 1, NULL))  "Position 19 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-20', 1, NULL))  "Position 20 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-21', 1, NULL))  "Position 21 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-22', 1, NULL))  "Position 22 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-23', 1, NULL))  "Position 23 Header/Description"
    FROM ALL_POSITIONS a
    GROUP BY SD
    order by SD;There are 23 distinct values for "position_abbreviation" and we go through them individually working out the counts.. The report displays as follows:
    SD         TOTAL_OPEN TOTAL_HIRED Position 1 Header/Descript Position 2 H Position 3 Header         Position 4 Header   Position 5 Header/Description  ...etc all the way to the last position
    SD-10               6         816                          1            1                         1                  1                              1 
    SD-11              14         777                          0            1                         1                  1                              0 
    SD-12              59         770                          0            1                         1                  1                              0
    SD-13               2         975                          0            1                         0                  1                              0
    SD-14              78         726                          1            1                         0                  1                              0 
    SD-15              14         604                          1            1                         1                  1                              0
    SD-16             113         651                          0            1                         1                  1                              1  How can we total up cols at the end of the report? For example the report will display like the following:
    SD         TOTAL_OPEN TOTAL_HIRED     Position 1 Header/Desc Position 2      Position 3 Header/desc  Position 4 Header         Position 5 Header/Desc   ...etc all the way to the last position
    SD-10               6         816                          1            1                         1                  1                              1 
    SD-11              14         777                          0            1                         1                  1                              0 
    SD-12              59         770                          0            1                         1                  1                              0
    SD-13               2         975                          0            1                         0                  1                              0
    SD-14              78         726                          1            1                         0                  1                              0 
    SD-15              14         604                          1            1                         1                  1                              0
    SD-16             113         651                          0            1                         1                  1                              1 
    Total             286        5319                          3            7                         5                  7                              2Thanks in advance for your help.
    Regards
    Edited by: rsar001 on Nov 29, 2011 6:08 AM

    As Frank said....use rollup
    check below
    SELECT  nvl(SD,'Total')
              ,SUM(open) total_open
              ,SUM(hired) total_hired
              ,COUNT(decode(a.position_abbreviation, 'POS-1', 1, NULL))   "Position 1 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-2', 1, NULL))      "Position 2 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-3', 1, NULL))   "Position 3 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-4', 1, NULL))   "Position 4 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-5', 1, NULL))   "Position 5 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-6', 1, NULL))   "Position 6 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-7', 1, NULL))   "Position 7 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-8', 1, NULL))   "Position 8 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-9', 1, NULL))   "Position 9 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-10', 1, NULL))  "Position 10 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-11', 1, NULL))  "Position 11 Header/Description"     
              ,COUNT(decode(a.position_abbreviation, 'POS-12', 1, NULL))  "Position 12 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-13', 1, NULL))  "Position 13 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-14', 1, NULL))  "Position 14 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-15', 1, NULL))  "Position 15 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-16', 1, NULL))  "Position 16 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-17', 1, NULL))  "Position 17 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-18', 1, NULL))  "Position 18 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-19', 1, NULL))  "Position 19 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-20', 1, NULL))  "Position 20 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-21', 1, NULL))  "Position 21 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-22', 1, NULL))  "Position 22 Header/Description"
              ,COUNT(decode(a.position_abbreviation, 'POS-23', 1, NULL))  "Position 23 Header/Description"
    FROM ALL_POSITIONS a
    GROUP BY rollup(SD)
    order by SD;Edited by: newbie on Nov 29, 2011 6:20 AM

  • Can not reconncet to jdbc as different user, Help me please.

    Some one help me please.
    I want to reconnect to jdbc as different user, but my program can not work. My source code as below :
    public String connect(String MCH1)
    {ApplicationModule  MYAM =Configuration.createRootApplicationModule
    ("mypackage3.Mypackage3Module","Mypackage3ModuleLocal");
        Transaction  myTrans = MYAM.getTransaction();
        String URL="jdbc:oracle:thin@charie";
        String user ="MCH1";
        String password ="MCH1";
    //   myTrans.disconnect();
    //   myTrans.disconnect(false);
    //   myTrans.disconnect(true);
        myTrans.connect(URL,user,password);
        if(!(myTrans.isConnected()))
        { System.out.println("Completed Connection");
          lberrmsg.setText("Completed Connection");}
    else {System.out.println("Incompleted Connection");
          lberrmsg.setText("Incompleted Connection");}
    The first time, I tried to do not disconnect the current connection, after run I had encounter the error message
    as oracle.jbo.AlreadyConnectedException: JBO-25201: Already connected to a database.
    The next time and later time , I tried to disconnect the current connection by default
    myTrans.disconnect();
    myTrans.disconnect(false);
    myTrans.disconnect(true);
    after run I had encount[i]Long postings are being truncated to ~1 kB at this time.

    Hi Hussein,
    ran adpatch and got the same error
    i will try the note.
    Thanks,
    Enter the password for your 'SYSTEM' ORACLE schema:
    ...Unable to connect.
    AutoPatch error:
    The following ORACLE error:
    ORA-01017: invalid username/password; logon denied
    occurred while executing the SQL statement:
    CONNECT SYSTEM/*****
    AutoPatch error:
    Unable to connect to 'SYSTEM'; password may be invalid.

  • Help! (please :) I have a 1GB iPod that's loaded with music for which my computer can no longer find the original files-due to external mass storage crash during recent move. Is there a way to import iPod music back into my iTunes library on computer???

    Help! (please I have a 1GB iPod that's loaded with music for which my computer can no longer find the original files-due to external mass storage crash during recent move. Is there a way to import iPod music back into my iTunes library on computer???

    Or If there is any purchased music then you can try to transfer purchases
    http://support.apple.com/kb/ht1848
    If you're in the US you can reload purchased music
    http://support.apple.com/kb/ht2519

  • I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    Cannot see what files ? Music (synced music should appear in the iPod app), films/TV shows (Videos app), documents ... ?

  • Apple iPad 3. BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Can anyone help me please.

    BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Apple iPad 3. Can anyone help me please.

    All resolved at last
    Deleted the SMTP setting
    Recreated the SMTP using the same settings
    Able to send emails now
    No logic - as usual - just a bug!

  • HELP. ............Hi folks hope some one can help me please.Having a problem in Bridge I open my images in ACR,  as I open files in a folder and lets say they are labeled in yellow  they are all going back to  the camera raw default , in other words no ma

    HELP. ............Hi folks hope some one can help me please.Having a problem in Bridge I open my images in ACR,  as I open files in a folder and lets say they are labeled in yellow  they are all going back to  the camera raw default , in other words no matter what work I have done, inc cropping they  all go back to ,as they came out of camera. What on earth is happening? I am on PS CS6. I might point out everything was working normally up to  yesterday, when this first started.
    I recently changed computer to 64bit from 32bit, not sure if this causing  the problem or not. Any help would be appreciated.

    Robert,
    Would you be so kind to rephrase your question with concise, precise information and without any "let's say that" hypotheticals?  Sorry, I can't quite follow you.
    Also please give exact versions of Photoshop CS6 (13.what.what), of Bridge and of your OS.
    Thanks.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Help needed please.. how do I remove my credit card from itunes? just discovered over $450 of charges when I looked at my email... Kids had no clue they were using our money and not their gift cards

    Help needed please.... I just discovered over $450 charges to my credit card from Itunes. The kids had no idea they were using our credit card and not their itunes gift cards and 4 year old just clicks on anything! I didnt save my credit card details so am a bit miffed at this... I cant find anywhere in itunes to remove it. Edit.. but not remove. Editing does not remove it.. HELP

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Accepted forms of payment  >  http://support.apple.com/kb/HT5552
    Changing Account Information  >  http://support.apple.com/kb/HT1918

  • Help needed please, with Iphone stuck with apple picture and progress bar after software update attempted

    Help needed please, everytime I try to update the software version on my iphone it comes up with a message saying it could not be completed and is now frozen with the apple picture and progress bar on it. Do I unplug it and hope the macbook pro sees it again, I also stupidly did not back up before starting the download which I realise I will have to go back to the previous back up. This keeps happening, everytime I do this type of update, I'm starting to think I should just give up on updating my software on the Iphone. I thought it was happening because I was using a window based computer to do the updates, this time I used my Macbook Pro. Please somebody help

    ljm17 wrote:
    ...This keeps happening, everytime I do this type of update, I...
    Then you should know what you need to do... If you don't remember...
    See Here  >  http://support.apple.com/kb/HT1808

  • Can anyone help me, please

    Hello again:
    Please run my coding first, and get some view from my coding.
    I want to add a table(it is from TableRenderDemo) to a JFrame when I click on the button(from DrawCalendar) of the numer 20, and I want the table disply under the buttons(from DrawCalendar), and the table & buttons all appear on the frame. I added some code for this problem(in the EventHander of the DrawCalendar class), but I do
    not known why it can not work.Please help me to solve this problem.
    Can anyone help me, please.
    Thanks.
    *This program for add some buttons to JPanel
    *and add listeners to each button
    *I want to display myTable under the buttons,
    *when I click on number 20, but why it doesn't
    *work, The coding for these part are indicated by ??????????????
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.GridLayout;
    public class DrawCalendar extends JPanel {
         private static DrawCalendar dC;
         private static TestMain tM;
         private static TableRenderDemo myTable;
         private static GridLayout gL;
         private static final int nlen = 35;
        private static String names[] = new String[nlen];
        private static JButton buttons[] = new JButton[nlen];
         public DrawCalendar(){
              gL=new GridLayout(5,7,0,0);
               setLayout(gL);
               assignValues();
               addJButton();
               registerListener();
        //assign values to each button
           private void assignValues(){
              names = new String[35];
             for(int i = 0; i < names.length; i++)
                names[i] = Integer.toString(i + 1);
         //create buttons and add them to Jpanel
         private void addJButton(){
              buttons=new JButton[names.length];
              for (int i=0; i<names.length; i++){
                   buttons=new JButton(names[i]);
         buttons[i].setBorder(null);
         buttons[i].setBackground(Color.white);
         buttons[i].setFont(new Font ("Palatino", 0,8));
    add(buttons[i]);
    //add listeners to each button
    private void registerListener(){
         for(int i=0; i<35; i++)
              buttons[i].addActionListener(new EventHandler());          
    //I want to display myTable under the buttons,
    //when I click on number 20, but why it doesn't
    //work
    private class EventHandler implements ActionListener{
         public void actionPerformed(ActionEvent e){
         for(int i=0; i<35; i++){
    //I want to display myTable under the buttons,
    //when I click on number 20, but why it doesn't
    //work
         if(i==20){  //???????????               
              tM=new TestMain(); //???????
              tM.c.removeAll(); //??????
              tM.c.add(dC); //???????
              tM.c.add(myTable); //????
              tM.validate();
         if(e.getSource()==buttons[i]){
         System.out.println("testing " + names[i]);
         break;
    *This program create a table with some data
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableColumn;
    import javax.swing.DefaultCellEditor;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TableRenderDemo extends JScrollPane {
    private boolean DEBUG = true;
    public TableRenderDemo() {
    // super("TableRenderDemo");
    MyTableModel myModel = new MyTableModel();
    JTable table = new JTable(myModel);
    table.setPreferredScrollableViewportSize(new Dimension(700, 70));//500,70
    //Create the scroll pane and add the table to it.
    setViewportView(table);
    //Set up column sizes.
    initColumnSizes(table, myModel);
    //Fiddle with the Sport column's cell editors/renderers.
    setUpSportColumn(table.getColumnModel().getColumn(2));
    * This method picks good column sizes.
    * If all column heads are wider than the column's cells'
    * contents, then you can just use column.sizeWidthToFit().
    private void initColumnSizes(JTable table, MyTableModel model) {
    TableColumn column = null;
    Component comp = null;
    int headerWidth = 0;
    int cellWidth = 0;
    Object[] longValues = model.longValues;
    for (int i = 0; i < 5; i++) {
    column = table.getColumnModel().getColumn(i);
    try {
    comp = column.getHeaderRenderer().
    getTableCellRendererComponent(
    null, column.getHeaderValue(),
    false, false, 0, 0);
    headerWidth = comp.getPreferredSize().width;
    } catch (NullPointerException e) {
    System.err.println("Null pointer exception!");
    System.err.println(" getHeaderRenderer returns null in 1.3.");
    System.err.println(" The replacement is getDefaultRenderer.");
    comp = table.getDefaultRenderer(model.getColumnClass(i)).
    getTableCellRendererComponent(
    table, longValues[i],
    false, false, 0, i);
    cellWidth = comp.getPreferredSize().width;
    if (DEBUG) {
    System.out.println("Initializing width of column "
    + i + ". "
    + "headerWidth = " + headerWidth
    + "; cellWidth = " + cellWidth);
    //XXX: Before Swing 1.1 Beta 2, use setMinWidth instead.
    column.setPreferredWidth(Math.max(headerWidth, cellWidth));
    public void setUpSportColumn(TableColumn sportColumn) {
    //Set up the editor for the sport cells.
    JComboBox comboBox = new JComboBox();
    comboBox.addItem("Snowboarding");
    comboBox.addItem("Rowing");
    comboBox.addItem("Chasing toddlers");
    comboBox.addItem("Speed reading");
    comboBox.addItem("Teaching high school");
    comboBox.addItem("None");
    sportColumn.setCellEditor(new DefaultCellEditor(comboBox));
    //Set up tool tips for the sport cells.
    DefaultTableCellRenderer renderer =
    new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for combo box");
    sportColumn.setCellRenderer(renderer);
    //Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = sportColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer)headerRenderer).setToolTipText(
    "Click the sport to see a list of choices");
    class MyTableModel extends AbstractTableModel {
    final String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    final Object[][] data = {
    {"Mary ", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Angela", "Lih",
    "Teaching high school", new Integer(4), new Boolean(false)}
    public final Object[] longValues = {"Angela", "Andrews",
    "Teaching high school",
    new Integer(20), Boolean.TRUE};
    public int getColumnCount() {
    return columnNames.length;
    public int getRowCount() {
    return data.length;
    public String getColumnName(int col) {
    return columnNames[col];
    public Object getValueAt(int row, int col) {
    return data[row][col];
    * JTable uses this method to determine the default renderer/
    * editor for each cell. If we didn't implement this method,
    * then the last column would contain text ("true"/"false"),
    * rather than a check box.
    public Class getColumnClass(int c) {
    return getValueAt(0, c).getClass();
    * Don't need to implement this method unless your table's
    * editable.
    public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    if (col < 2) {
    return false;
    } else {
    return true;
    * Don't need to implement this method unless your table's
    * data can change.
    public void setValueAt(Object value, int row, int col) {
    if (DEBUG) {
    System.out.println("Setting value at " + row + "," + col
    + " to " + value
    + " (an instance of "
    + value.getClass() + ")");
    if (data[0][col] instanceof Integer
    && !(value instanceof Integer)) {
    //With JFC/Swing 1.1 and JDK 1.2, we need to create
    //an Integer from the value; otherwise, the column
    //switches to contain Strings. Starting with v 1.3,
    //the table automatically converts value to an Integer,
    //so you only need the code in the 'else' part of this
    //'if' block.
    try {
    data[row][col] = new Integer(value.toString());
    fireTableCellUpdated(row, col);
    } catch (NumberFormatException e) {
    JOptionPane.showMessageDialog(TableRenderDemo.this,
    "The \"" + getColumnName(col)
    + "\" column accepts only integer values.");
    } else {
    data[row][col] = value;
    fireTableCellUpdated(row, col);
    if (DEBUG) {
    System.out.println("New value of data:");
    printDebugData();
    private void printDebugData() {
    int numRows = getRowCount();
    int numCols = getColumnCount();
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + data[i][j]);
    System.out.println();
    System.out.println("--------------------------");
    *This program for add some buttons and a table on JFrame
    import java.awt.*;
    import javax.swing.*;
    public class TestMain extends JFrame{
    private static TableRenderDemo tRD;
         private static TestMain tM;
    protected static Container c;
    private static DrawCalendar dC;
         public static void main(String[] args){
         tM = new TestMain();
         tM.setVisible(true);
         public TestMain(){
         super(" Test");
         setSize(800,600);
    //set up layoutManager
    c=getContentPane();
    c.setLayout ( new GridLayout(3,1));
    tRD=new TableRenderDemo();
    dC=new DrawCalendar();
    addItems();//add Buttons to JFrame
    private void addItems(){
         c.add(dC); //add Buttons to JFrame
         //c.add(tRD); //add Table to JFrame     

    Click Here and follow the steps to configure your Linksys Router with Version FIOS.

  • In the previous version, the menu table in table options, there is an option that gives me the option: the Return key moves to next cell. I do not see this option in the new number. can you help me please?

    in the previous version  of Number, the menu table in table options, there is an option that gives me the option: the Return key moves to next cell. I do not see this option in the new number. can you help me please?

    Hi silvano,
    If you use a regular pattern when entering values, press enter (return) after entering the last value in a row. That will take you to the first Body Cell of the next row.
    Start in Cell B2
    1 Tab 2 Tab 3 Enter
    4 Tab 5 Tab 6 Enter
    7 Tab 8 Tab 9 Enter
    Now you are ready to type into B5 .
    Another way that some people find easier is to enter one column at a time
    Start at B2
    1 enter
    4 enter
    7 enter
    etc.
    Now start with C2.
    Use whatever suits your work flow.
    Regards,
    Ian.

Maybe you are looking for

  • Use presentation variable in date filter

    Hi, I have a Date presentation variable pvEffDt whose value is set in a dashboard prompt. How do I access this variable in a Date between filter? I actually need data for chosen date's previous month (weird, why don't I choose the previous month itse

  • Poor Bluetooth performance with all aluminum Mac Pro

    The all aluminum case for pre-mavericks Mac Pro is the primary reason for poor antenna performance of Bluetooth. Aluminum, being a good conductor, acts as a reflector of EMF forming what is known as a Faraday Cage, essentially trapping emissions with

  • Best uses for a Pismo?

    Hi folks, Been quite a bit since I posted to the PBG3 boards, but as you can see, I've been keeping up with things. I got a MacBook Pro last month. Very good system, to say the least. Should hold up 3-4 years, maybe more, given the stuff I use it for

  • Distributed environment with Open ESB

    Hello, I know that JBI specification 1.0 have not distributed runtime defined. Then Open ESB distribute his environment through JMS BC. JMS BC have two roles (consumer and provider), and this received or send normalized messages from/to NMR and conve

  • Re: photo elements 10 installation

    I am trying to install adobe premiere and adobe photoshop on my iMac which the box says it is compatible with. I get the following errors wd036 payload cannot be installed due to dependant operation failure dw050 smart sound 3 install failed