How can I get in a String a text.... ?

How can I get in a String a text in database,
I tried =result.getString("fieldName") but don�t
work.
Tiago ticdd

try this:
String text = results.getString(columnIndex);
or loop thru the ResultSetMetaData as follows:
String text = results.getString(resultSetMetaData, columnName);
function getColumnIndex(ResultSetMetaData rsmd, String columnName){
     int numCols = rsmd.getColumnCount();
     for (i=1; i <= numCols; i++){           
          if(rsmd.getColumnName(i).equalsIgnoreCase(columnName)){
               return i;
     return -1;

Similar Messages

  • How can i get getwayed url string using pluggable nav in news portlet?

    hi.
    How can i get getwayed url string using pluggable nav in news portlet?
    A code just like below is what I want.
    <param value="param=http://.../portal/server.pt/gateway/PTARGS_.../http/...">
    I tryed the following, but didn't work as I wanted.
    1.<param value="<pcs:valueexpr='var'/>">
    -> transformed. but I want the prefix 'param=' in the enquoted string's too.
    2. <param value="param=<pcs:valueexpr='var'/>">
    -> not transformed.
    Any idea?
    Hiroyuki

    Hi all,
    We have HPROF functionality in our latest roadmap, so you will see that feature in our next major release called JRockit R28.
    I recommend, above from the MemLeak documentation suggested by Makiey, the following information on how to use JRockit tools.
    Performance Tuning & Profiling:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_02.html
    Using JRockit tools:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_03.html
    Diagnostics & Troubleshooting
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_04.html
    Best Regards,
    Tuva
    JRockit PM

  • How can I get a time stamp on text message without turning on "read"???

    How can I get a time stamp on text message iPhone 5 IOS 7? (Without having to send read receipt)

    You can make the "Visit Date" column visible in the Bookmarks Manager (Library) via "Views > Show Columns"
    * Bookmarks > Organize Bookmarks
    *http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox

  • How can I get the content of a text element to insert in a different block

    I have two blocks. The first one (block_control) is a non based block with a text element (EXERCICE). When I go to the second block (block_data) and I want to insert a new record, I need in my record the value of EXERCICE who is in the first block (block_control). How can I get this balue if I want to be able to do an execute_query too on the second block ? Because if I use pre-block or post-block or when-new-record-instance trigger to make the content of EXERCICE follow from block_control to block_data in a hidden field, I can't execute_query.
    Thank's

    First , when you want to insert a record in the second block , override the default commit_form processing and create a commit-form trigger which is called by a button to commit your form. The when-button-pressed trigger of this button should be : do_key('commit_form'); . And you create the key-commit trigger on the second block. Inside the key-commit trigger write this :
    :second_block.item_name := name_in('block_control_name.exercice');
    commit_form;
    In this way you get the exercice data into your record.
    Secondly, in the post-query trigger of the second block, set the exercice column of the second block to the exercice column of the block_control.
    And that's it.

  • How can you get out of a group text

    How can you stop a group message text?

    There is no feature to do so on the phone.
    You will have to ask the group to create a new text and removing you in the list.

  • How can I copy a long string of texts from my iPhone 4s to a word document?

    I need to copy a long string of texts to a word document on my PC.

    One method would be to use 3rd party software. The following is one example but there may be better/cheaper or even free options: http://www.wideanglesoftware.com/touchcopy/

  • How can I get Data in String Array from TABLE

    hi all
    I have table in MS Access databse called Login with two coulmn (User, Password),
    I want to get all the User Name in a string[] called USER,
    (LIKE USER = {"AA","BB","CC",........"zz"};
    i made somthing like this
    public class User_Name
    final String driver = Login_Dialog.T_driver.getSelectedItem().toString();
    final String url = Login_Dialog.T_URL.getSelectedItem().toString();
    final String user = Login_Dialog.T_User.getText().toString();
    final String password = new String(Login_Dialog.T_Password.getPassword());
    static Connection connection;
    static Statement statement;
    static String sql;
    static ResultSet rs = null;
    static String[] User ;
    public String User_Name()
    try
    //Load Driver
    Class.forName(driver);
    // Make Connection
    connection=DriverManager.getConnection(url,user,password);
    // Create Statement
    statement = connection.createStatement();
    sql = "SELECT User FROM Login" ;
    // Create Resultset
    rs = statement.executeQuery(sql);
    ResultSetMetaData MD = rs.getMetaData();
    int C_N = MD.getColumnCount();
    if(rs.next())
    for(int i = 2 ; i<=C_N ; i++)
    User = rs.getString(2);
    statement.close();
    rs.close();
    connection.close();
    return User;
    catch(ClassNotFoundException cnfex) {
    //show message
    JOptionPane.showMessageDialog((Component) null,
    "Failed to load driver..."+
    "\n"+cnfex.getMessage(),
    "Error...",
    JOptionPane.ERROR_MESSAGE,
    UserDatabase.Error_Icon);
    catch(SQLException sqlex){
    //show message
    JOptionPane.showMessageDialog((Component) null,
    "Unable to connect to Database..."+
    "\n"+sqlex.getMessage(),
    "Error...",
    JOptionPane.ERROR_MESSAGE,
    UserDatabase.Error_Icon);
    but i can get any thing so plz anybody send me a code for this one or help me out
    Thanx
    Regards
    Satinderjit

    in for loop, try;
    user[i] = rs.getString(2);

  • BC4J HOW Can I GET the CONNECTION String

    hi everyone
    I'm using Jdev 3.2. In my BC4J prooject I want to get the current connection String used by the application module to connect to database.
    can some one help me please.
    Ghassen

    I don't know what's really the problem, but I recomplie the same code and I receive the same error.
    I added also the import statement: import oracle.dacf.dataset.connections.NamedConnection.
    and I receive the same error message.
    can that be a mising library problem?
    ghassen
    null

  • How can I get Mail to double-space text?

    I've tried everything I can think of to get Mail to display text with double-spaced lines, ie, with blank lines between every line.  (I need to do this to meet submission requirements for my work).  BTW, I'm talking about  a string of up to 60,000 characters including spaces, so some form of copy and paste is the only way I can see to go.  I've tried: (1) pasting duble-spaced text created by Word in a .doc file into mail messages, (2) ditto by TextEdit in an .rtf file that displays and prints doble-spaced, but shows up in Mail single-spaced with things like centering misssing, too, (3) ditto by TextEdit in a .txt file that displays sngle-sapced.    Everything shows up in Mail single-spaced, and I've never been able to find a way within Mail itself to format single-spaced text with space between the lines.  Is this an intrinsic omission?

    Why not just use a white fill for fields completed on a computer?

  • How can I get Lion to show password text in plain characters?

    In all earlier versions of the Mac OSX, I had the option of showing at least new passwords in plain text instead of dots. Was an advantage over Windoze.
    I also had the option NOT to show password text.
    Since I moved up to Lion, all passwords show as dots. I find no option to do otherwise. Can this be changed?

    I have the same problem.  Does anyone have an answer?

  • How can I get a large amount of text in imovie?..look inside, I'll explain

    Ok....say I have:
    'Roy Lichtenstein was born October 27, 1923, in New York City. He describes his childhood as quiet and uneventful. His father was a realtor, and his mother was a housewife. Art was not taught at the school he attended, but when he was 14, he began taking Saturday-morning classes at the Parsons' School of Design.'
    I want to insert it into imovie in between clips in black. I have my black clip, length x, but there doesn't seem to be any TITLE functions that accomodate placing a large amount of text that all appears at the same time and doesn't move, etc.
    the best solution i've come up with is to use the music video setting which basically gives me what I want except for the fact that all the text is on one half of the screen and the longest you can use this funtion is for 10 seconds! it's a compromise I don't really want to make when it seems like there should be a simple solution that maybe I'm just not seeing which lets me transfer text from appleworks or wherever to fill the screen with text so that it looks 'normal'.

    create that chart with any pic processor and import via iPhoto... so, you could even add a "scrolling"
    and:
    a pic processor gives you a much higher control about typography...
    beware, that a TV is no computer monitor - it isn't made for "reading", has a much smaller res, interlaces video, ..

  • How can I get rid of 130+ unread texts that are actually read?

    My iPhone isn't recognizing when I have read a text message. It's up to 130 now and it's taking up all the storage on my phone. Everything is running slow and I have tried restarting and resetting my phone, closing all the apps I had open before doing either of these. Idk what else to do but now my phone isn't even receiving or sending messages consistently. It's an iPhone 4 and I have had it updated to iOS7 for a few weeks now.

    in yoru inbox click "edit" - click "mark all" - and click mark read
    LN

  • Using Export for Kindle, how can I get black body text to display inverse (white on black) on Kindle

    I'm using ID 5.5 on a Vista system.
    I've created a book file with some colored fonts and anchored gif images. Basic paragraph (body text) is black. The "Export to Kindle" mobi file displays fine on Kindle for PC and Kindle Previewer.
    Kindle PC alows viewing on white, sepia or black background. Works fine on white and sepia, but when the black color mode is selected (night viewing option) the black text does not display as white text. What can I do to have the black text automatically change to white?
    While trying to find a solution, I created an epub file of the book and, using Calibre, converted it to mobi. When this mobi file is loaded into Kindle PC, the black text does automatically change to white when viewed on the black screen. I would use this method of creating the mobi, but there are several other issues that make this process unsatisfactory (other text colors don't work well, image transparency losses, etc).
    So, how can I get the black to white text thing using only Export to Kindle?
    Jim

    Grayscale is probably the best (Settings>General>Accessibility>Grayscale)
    -Ethan
    EDIT: If you would like a black color scheme, use the suggestion in the reply above.

  • How can i get back a deleted text message

    how can i get back a very important text message i deleted by mistake.my phone is iphone 3g
    thank you

    I'm going to post what I found via Google. As I understand, it works for some, not for others, so I'm not vouching for this, so do it at your own risk:
    FACT: SMS messages remain on the iPhone after deletion. When “deleted” on the iPhone, they are technically hidden and marked for deletion. Text messages are then deleted only after sync with iTunes.
    In order to recover a deleted text message or messages, run through the following 4 easy steps:
    STEP 1:
    Make sure iTunes doesn’t automatically sync with iPhone when connected.
    STEP 2:
    Connect your iPhone to iTunes and Back up by selecting Preferences > Backup from iTunes, or right-click on your iPhone and choose back up.
    STEP 3:
    Restore your iPhone by selecting Restore under Preferences. Note that restoring the iPhone will restore the previous iPhone firmware. Your iPhone will be completely erased after the new firmware is installed. So make sure your back up is good!
    STEP 4:
    The final step will be to restore your iPhone from the back up you created on step 2. This will allow you to restore any data you have backed up, including the “deleted” text messages.
    That’s it!
    It’s important to distinguish between iPhone data restore and iPhone firmware restore.
    iPhone data restore allows you to restore data you have already backup on iTunes. This is your photos, video, text messages…etc.
    iPhone firmware restore is pretty much like a restore to factory switch. This will restore your iPhone to the previous firmware or system and no user data. This option is often recommended if your suspect that your iPhone OS or iOS is unstable.

  • How can i get default ringtones

    how can i get the default ring tones - text tones back?

    Are they not in your settings app under Sounds?
    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

Maybe you are looking for

  • Oracle Demantra 7.3.1.5.0 Installation Issue

    Dear All, I have a Win 7 64 Bit OS on my Laptop with 16 GB Memory and Core i7 Processor. I Downloaded both 32 bit and 64 Bit Windows based Oracle Demantra 7.3.1.5.0 versions from Oracle's E-delivery Successfully. Prior to the Installation of Oracle D

  • HR_INFOTYPE_OPERATION not working when called from Dynamic action

    Hi ,        Senario  : I would like to execute a form from dynamic action which creates a record in 0015 (Additional payment IT) .        I have writen the code as shown below am using FM HR_INFOTYPE_OPERATION . When i execute the program from se38 i

  • Seeburger help required for Supplier Invoice (EDI 810) and Dispatch Advice

    Hi All, Pls let me blog/steps for scenario for Supplier Invoice and Dispatch Advice using Seeburger. For Supplier Invoice I assume R/3 will send data to Vendor (810). 1. Pls let me know for R/3 to XI will we use INVOCE IDOC? 2. Pls let me know for R/

  • Error in SAProuter installation

    Hi to all, I have followed all step for install a saprouter, but i have the follow error message: (when i start the service in "Computer Management") "Could not start saprouter service on local computer Error 14001: This application has failed to sta

  • Animated banners crash Safari

    I put an animated .gif banner on my website. It looks great in Explorer on a PC, but it crashes Safari on an iPhone. You get thrown right back onto the Home screen.