Calling more than single colums by selecting from listdown menu?

how to call and display many colums after just selecting one info from a listdown menu? my system should display the whole one row of the training info...here's my code...thanx in advance for any helps....
<code>
<%
     if(tajuk_training!=null)
          String sql     = "SELECT * FROM TRAINING_HEAD WHERE TH_STATUS_ = 'APPROVE' ";     
          try
               PreparedStatement pstmt = conn.prepareStatement(sql);
               pstmt.setString (1,tajuk_training);
               ResultSet rset = pstmt.executeQuery ();
               rset.next();
               desc=rset.getString("TT_DESC");
          catch(Exception e)
%>
</code>

I really need help urgently....hope there will be somebody out there willing to help me...thanx a lot....

Similar Messages

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • Method called more than once - and dies with EXC_BAD_ACCESS error

    Hi,
    In my app, I have 4 views with their respective viewControllers. In the appDelegate.m, I provide methods that allows to switch to any of these views. Following is code for switching to the editView:
    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    The view is not switched - and moreover, this method is called more than once; and the app dies with EXCBADACCESS!
    2009-08-23 14:54:40.648 iNotate[2128:20b] Album (before): x= 0 y=20 width=320 height=460
    2009-08-23 14:54:40.653 iNotate[2128:20b] Album (after): x= 0 y= 0 width=320 height=480
    warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable
    (gdb) bt
    #0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
    #1 0x00008661 in -[FirstView editAction] (self=0x546a30, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
    #2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
    #3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
    #4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
    #5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
    #6 0x30a67917 in -[UIWindow sendEvent:] ()
    #7 0x30a56fff in -[UIApplication sendEvent:] ()
    #8 0x30a561e0 in _UIApplicationHandleEvent ()
    #9 0x31565dea in SendEvent ()
    #10 0x3156840c in PurpleEventTimerCallBack ()
    #11 0x94a713c5 in CFRunLoopRunSpecific ()
    #12 0x94a71aa8 in CFRunLoopRunInMode ()
    #13 0x31566600 in GSEventRunModal ()
    #14 0x315666c5 in GSEventRun ()
    #15 0x30a4eca0 in -[UIApplication _run] ()
    #16 0x30a5a09c in UIApplicationMain ()
    #17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
    Current language: auto; currently objective-c
    (gdb) continue
    2009-08-23 14:54:55.885 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
    (gdb) bt
    #0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
    #1 0x00008661 in -[FirstView editAction] (self=0x5457b0, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
    #2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
    #3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
    #4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
    #5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
    #6 0x30a67917 in -[UIWindow sendEvent:] ()
    #7 0x30a56fff in -[UIApplication sendEvent:] ()
    #8 0x30a561e0 in _UIApplicationHandleEvent ()
    #9 0x31565dea in SendEvent ()
    #10 0x3156840c in PurpleEventTimerCallBack ()
    #11 0x94a713c5 in CFRunLoopRunSpecific ()
    #12 0x94a71aa8 in CFRunLoopRunInMode ()
    #13 0x31566600 in GSEventRunModal ()
    #14 0x315666c5 in GSEventRun ()
    #15 0x30a4eca0 in -[UIApplication _run] ()
    #16 0x30a5a09c in UIApplicationMain ()
    #17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
    (gdb) continue
    2009-08-23 14:55:22.493 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
    Program received signal: “EXCBADACCESS”.
    (gdb) continue
    What's happening here?
    Sam!

    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    }<---- is this } matched elsewhere?

  • More than 1 Hint in Select

    Hi
    Is possible put more than a hint in Select ? How can I do ?

    Well, I support what was said by Mark... partially.
    Indeed, hints should be avoided whenever possible. However, I wouldn't claim that hinting is something that should be avoided at all cost.
    How about ALL_ROWS and FIRST_ROWS hints?
    How about DYNAMIC_SAMPLING hint?
    Should we avoid using APPEND hint, after all?
    In my opinion, we need to understand that:
    1. There are hints that have nothing to do with CBO decisions (APPEND, for example). They can't really hurt.
    2. There are hints that sometimes help CBO to make better decisions (DYNAMIC_SAMPLING). I wouldn't call them "bad" as well.
    3. Hints to change optimizer goal (like FIRST_ROWS, ALL_ROWS) - again, they are harmless if applied properly.
    And finally:
    4. Hints that force optimizer to use some fixed access path, join method - in other words to restrict optimizer's search space. These ones are surely bad. They should be used very rarely and considered a "path of last resort".
    But then again - before applying such hints we must understand the nature of underlying problem, the underlying cause of bad execution plans. If we blindly hint one query, it's very likely that we'll need to hint many other queries as the problem tends to re-appear in many places of application code.
    And by the way - Tom uses similar categorization of hints, too:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:23566649273765#47839217291071
    Kind regards.

  • Every time I login, I have to select Country. It takes more than one attempt to select one.

    Every time I login, I have to select Country. It takes more than one attempt to select one. What could be done to save it so I don't have to select it repeatedly?

    Is this PSE 12? You should not be logging out. In PSE 12 log in = activate. When you log out you are deactivating PSE. Just leave it logged in.

  • No flickr share sheet when more than 99 photos are selected

    flickr share sheet does not appear when more than 99 photos are selected. So does Facebook, Airdrop and others except only "add to iPhoto". They all show up when >100 photos are selected but for more they don't
    2010 MacBook Pro 15", Yosemite

    *<100 not >100

  • -setFence:count: called more than once per transaction

    I am getting following error, any body have any idea what it is?
    -setFence:count: called more than once per transaction
    Debugger stopped.
    Program exited with status value:101.
    Thanks in Advance
    Ravi

    I am getting the same error...
    T'is usly a m'ry error.
    Use the debugging/testing tools in the latest Xcode to track down suspects, etc.

  • Cannot display more than 16 significant digit numbers from Oracle

    The WebI Report cannot display more than 16 significant digit numbers from an Oracle data type field.
    This occurs for both an ODBC and native driver connection to Oracle.
    The data is defined by Number Data Type in Oracle, and view correctly in Universe, but display incorrectly in WebI report which created by InfoView.
    I know BOE XIR2 has this behavior, but it seems that XI3.0 and XI3.1 also have this problem.
    If this behavior in XI3.0 and XI3.1 perform by design? or it's a bug? and Why?
    Thanks!

    Hi Sarah,
    Precision limitation of a Web Intelligence filter constant :
    In an Oracle database, a Number field type can store up to 38 digits. When creating a Web Intelligence report in the Java Panel, a condition is specified for this field (that is represented in the universe as a number), and a constant number is entered for its value, only up to 15 digits of precision are retained.
    For example, if 1234567890123456789 is entered, the value becomes 1234567890123460000.
    Or, if you have a column in database which has a number like 123.123456789012345678 it will display only 123.123456789012.
    Cause
    The reason for this limitation is that Java Panel represents a number internally as a Double field type with only 15 digits precision. This is by design.
    Resolution
    The only workaround is to change the field type to a Character field; however, doing so means losing the ability to perform calculations and/or sorting on the field.
    This issue has been raised as an Enhancement Request and given Track ID # ADAPT00908702.
    Regards,
    Deepti Bajpai

  • How do I add more than 10 options to the drop down menu?

    Presently, I'm only able to give ten options but many of my items have 20-30 options.How do I add more than ten options to the drop down menu?

    BrazenChick wrote:
    Presently, I'm only able to give ten options but many of my items have 20-30 options.How do I add more than ten options to the drop down menu?
    It depends on the type of option. If each option has a separate price, then I don't know of a way to add more than 10 options since those options with the prices are encoded into the button id. (Well, you could encode the information yourself with PayPal's API, but that is way more involved than I've been willing to tackle.) If you have more than 10 options such as color, scent, etc that don't affect the price, then you can edit the code you have added to your website to add additional items in the list. For example, suppose you had options "red" and "green", the relevant part of the code would look something like this: <select name="os0">
    <option value="red">red </option>
    <option value="green">green </option></select> If you want to add the option "blue", you would insert the line : <option value="blue">blue </option> before the closing </select> tag. More than 10 options won't be saved in the PayPal button creator, but it will work just fine in your website since this type of option isn't encoded in the id.

  • I just connected my Mac Mini running OS 10.6.8 to a IG 32' monitor. What resolution should I select from the menu?

    I just connected my wife's Mac Mini running OS 10.6.8 to an IG 32' monitor. What resolution should I select from the menu in order to provide maximum screen appearance? My wife has AMD and a visual acuity of 20/400 with central scotonata.

    In System Preferences:Displays you have an option to show
    Displays Prefs in the title bar above the screen - where she can
    iteratively adjust to her liking. Higher screen resolutions, ironically,
    result in smaller characters so adjust to suit. Below, Displays is
    4th from L.
    All best, Tom

  • Can more than one song be selected for slideshow on IPhoto? If so how

    Am trying to put together slideshow of granddaughter's birthday party but want to use more than one song as have a lot of photos.

    Thank you for sharing your expertise. I have taken that and tried to create a document on how to do this. You will see some different/additional comments. My idea is to share it with everyone once it is finalized. I am about ready to try and walk through all the steps for real but would ask you to read this over before I commit several hours more to this project. Any comments are appreciated. I am concerned about steps 9 through 13. Not sure i have it right. Any comments will be appreciated. Maury
    ++++++++++++++++++++++++++++++++
    How to create a Slideshow on DVD
    with music
    using iPhoto and iTunes
    as input sources
    1. Select, crop, and fix slides needed from the iPhoto library. Put them into a newly named folder. (Not a slide show.)
    2. Import this folder into iMovie using KenBurns ON.
    3. Add any necessary transitions between various segments of resulting movie.
    (This should be the finished visual project. Using this write down the exact timing needed for stop/start each segment and the total length of the movie.)
    4. Go to iTunes and select various tunes/songs/music desired.
    5. Go to Amadeus and open a new file. (This single will end up the same length as the visual project).
    6. Open JACK to connect iTunes to Amadeus.
    7. Choose a tune, find the correct snippet of music and adjust to stop/start times from 3 above. Move your snippet to Amadeus. Use cross fade so one snippet will blend into the next one. Load these in the correct order of the slideshow segments.
    (Note: Music purchased from the iTunes Store is "protected" in ACC and will no render into another format. This means it cannot be used in this example. A major inconvenience.)
    8. Your result will be string of snippets strung together in proper order and in total making up a single file the same length as your slideshow.
    9. Paste this new music file into the iMovie.
    10, Close iMovie.
    11. Open iDVD, select your theme and leave the menu window open.
    12. Open the iMovie project file (Control-click on it and select Show Package Contents) and navigate to the Shared Movies/iDVD folder.
    13. Drag the .mov file in there into the open iDVD window being sure not to drop it into any menu drop zones.
    (You'll know if you are in a drop zone (if there are any) since a text link appears with the same name as the movie file you're dragging.)
    (This allows iDVD to do the rendering thus eliminating two renderings on the same file which reduces image quality......)
    14 Save the project to Disk Image instead of burning directly to disk.
    15. Open the disk image and launch DVD Player.
    This will let you check out the finished project with DVD Player before committing to disk. You'll be able to check out the audio sync, typos etc.
    16. When you are ready to burn to disk use File>Disk Utility.
    (See: Burning a disk image file on a CD or DVD in Mac OS X.) The first step, saving to Disk Image is the encoding process and takes the longest time. Often it will seem like it's hung on the audio encoding but let it go on and on, as it often is the longest part of the encoding process.
    17. This should be the finished product.
    18. Snail Mail DVD to adorable grandchild and wait for parents to call saying it made them both cry. (Of course, this implies you are a grandparent.)
    Credits: Old Toad and Maury56
    Software: iLife 06 (iPhoto, iTunes, iMovie, and iDVD); DVD Player; Amadeus; and Jack.
    +++++++++++++++++++++++++++++++++
    About item 16, is there any way to tell the difference between "hung up" and "encoding" while it is going on?
    Maury
    PowerMac G4   Mac OS X (10.4.6)  

  • Wcf Data Service fails when more than 8properties  in the 'select=' portion

    Hi:
    I am using WCF Data Service and Oracle
    EF Provider is ODAC11.2 Release 4
    Wcf Data Service fails when more than 8 properties are specified in the 'select=' portion of the URI
    here is my code
    var q = from c in this.ctx.SALESORDER_ITEM
    select new
    c.SORDERDETAILID,
    c.IID,c.DMFLAG,c.OWNERID,c.SKUID,c.SKU_ID,c.TRADENO,c.SOURCEID,c.SORDERID
    excetion:
    InvalidOperationException: An error occurred for this query during batch execution. See the inner exception for details
    The inner exception is null, but the DataServiceClientException states: Value cannot be null Parameter name: value
    the exception is thrown in base.OnStartProcessingRequest(args) method (overridden).
    Here is the call stack as well:
    at System.Data.Services.WebUtil.CheckArgumentNull[T](T value, String parameterName)
    at System.Data.Services.Internal.ProjectedWrapper.set_PropertyNameList(String value)
    at lambda_method(Closure , Shaper )
    at System.Data.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)
    at System.Data.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()
    at System.Data.Services.Internal.ProjectedWrapper.EnumeratorWrapper.MoveNext()
    at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService)
    at System.Data.Services.DataService`1.HandleNonBatchRequest(RequestDescription description)
    at System.Data.Services.DataService`1.HandleRequest()
    Is there a max number of properties in $select statement
    I think may be it is oracle provider's problem ,but i don't konw how to debug it Can anyone help me
    Any help is greatly appreciated

    I believe the null/empty string issue is unrelated to the 8 column issue, at least for ODP.NET. For example, let's take the original query in the OBE:
    http://.../yoursvcfile.svc/EMPLOYEES?$select=EMPLOYEE_ID,FIRST_NAME,LAST_NAME,SALARY,DEPARTMENT_ID,DEPARTMENT,EMAIL,PHONE_NUMBER,MANAGER_ID
    Let's make all the columns selected not nullable. You can do this with the Oracle Dev Tools. Specifically, PHONE_NUMBER and FIRST_NAME are the only nullable fields. I make them non-nullable and re-run the query and the same error occurs. Thus, these values should never be made null. Moreover, in all 107 rows, none of these row values consist of empty strings anyway.
    Looking into the problem further, WCF DS is calling methods in the System.Data.Services.Internal namespace.
    http://msdn.microsoft.com/en-us/library/system.data.services.internal.aspx
    Specifically, we see your issue when the ProjectedWrapperMany method is called. You will notice that there is ProjectedWrapper0, ProjectedWrapper1...ProjectedWrapper8 methods also present in the same namespace. As soon as the number of columns exceeds 8, ProjectedWrapperMany is called and we see the error. We're going to ask MS to help analyze the issue since this is an .NET-internal method being called.

  • Syncing more than one handset query, hello, from London

    My wife and I each have iphones, my wife's is a new 5, but when syncing with itunes, it attempted a complete download of all my apps and music collection.  I then checkmarked the ones she'd like and unchecked all of my 'blokes' apps, that's fine. BUT, when I sync my 3GS, will it keep the iphone5 selection, or is itunes clever and detect that I have different tastes and reset to me original check/unchecked list? 
    She's big on streisand, and i prefer US '80s rock.  Many thanks in advance to the nice Apple Community.

    Do you have more than one photo album or folder available under the Photos tab for your iPhone sync preferences with iTunes to select, or do you have a single album or folder selected for sync photos from?
    If you manually manage photo storage on your PC, create what will be a parent folder to store the named folders of photos that you want transferred to your iPhone. Place the folders of photos in the newly created parent folder. Select the parent folder under the Photos tab for your iPhone sync preferences with iTunes followed by a sync. The folders of photos within the parent folder will be transferred to your iPhone as seprate albums. To add a new album to your iPhone, place the folder of photos in the parent folder on your PC followed by a sync. To remove an album from your iPhone, move the folder of photos out of the parent folder on your PC followed by a sync.

  • Wanted to catch more than one record in selected rows

    Hi all,
    I am using the following function to catch the selected rows.
    CALL METHOD w_grid->get_selected_rows
            IMPORTING
              et_index_rows = i_selected_rows.
    it is catching only one row.
    but i want to catch more than one record.
    for example i will select more than one record from the grid and press the approve button. so that the status will change in the database.
    but what is happening is if i select 2 or more records it is approving only first record. because in the i_selected_rows only first row is catching. what i have to do to catch other select rows also.
    thanking u.
    regards,
    giri.

    Hi,
    CALL METHOD w_grid->get_selected_rows
    IMPORTING
    et_index_rows = i_selected_rows[] ."<<<< try to put these into []
    please not open multiple threads

  • How can I print more than one slide per page from the iPad????

    Im having problems printing from the iPad. I want to print more than one slide in one peace of paper. 3, 6, 9 ...
    Can any one help?

    Start the print process and click on the Custom layout.  At the bottom you can set the size of the image desired and see how many photos can be placed on the page size selected.
    OT

Maybe you are looking for

  • Photo folders not showing on ATV

    Hi, Just set up my new ATV yesterday, and overall I really like it. However, I do have one problem with photo syncing. I set up iTunes to sync all the contents of a folder on my iMac called "Photos". All 2,500 photos appear to have synced to the ATV.

  • Weblogic portal 10.3.1 framework and  UCM 10gR3 code works in Jdeveloper

    Hi All, We are using weblogic portal 10.3.1 framework and UCM 10gR3. Now we want to use Jdeveloper (because we can integrate site studio using plugin) instead of weblogic workshop. So my question is does the existing code works in Jdeveloper (because

  • My MacBook Is Very Problemic Power-Wise

    At random instances in the time I've had my MacBook (since September), I shut my MacBook down, but when I close the lid the sleep light goes on, and the battery runs dry. The only way I'm able to turn it back on after one of these instances is by rem

  • Gallery images not found.. BUGS!!

    I HAVE UPDATED TO PR1.3 ... I COPIED ALL THE IMAGE STO MY PC AND HARD RESET MY N9. NOW I COPIED BACK ALL THE IMAGES AND I CANNOT FIND THEM IN THE GALLERY.. ONLY NEWS IMAGES TAKEN USING CAMERA ARE FOUND.. AND THE IMAGES WHICH I DOWNLOAD ON MY N9 AND S

  • Adding provisioning profile to organization windows for os x application

    Hello Everyone,                         I'm working on 10.7.2 with iCloud beta 6 to create a test application to test iCloud functionality. I have created provisioning profile but i'm not able to add it in Organizer window.Can someone suggest me on t