Problem with displaying records from the database in a table ui element

Hi,
Iam creating an application which retrieves data from an oracle database. Iam able to connect to the database and retrieve the data in a result set. Then I try to set these values in a context node as follows,
while (resultSet.next()) {
String name = result.getString(1);
String EmpId = result.getString(2);
IEmpNode node = wdContext.nodeEmp();
IEmpElement el = node.createEmpElement();
el.setName(name);
el.setEmpId(EmpId);
node.addElement(el);
where the context structure is emp(node)
                               ---name(attribute)
                               ---empId(attribute)
Then I have bound the node emp to a table ui element.If I try to deploy this it comes up with Internal Server error.
But if try this way, without creating a node, only with attributes name and empId,
wdContext.currentContextElement.setName(name);
wdContext.currentContextElement.setEmpId(EmpId);
and binding the attributes to inputfields in the view, Iam able to see the last record in the database table.
So where am I going wrong while using the table ui element?
Regards,
Rachel

Hi
Try this
//Create the node in outer of while loop and bind to Table UIElement
IEmpNode node = wdContext.nodeEmp();
while (resultSet.next()) {
String name = result.getString(1);
String EmpId = result.getString(2);
IEmpElement el = wdContext.createEmpElement();
el.setName(name);
el.setEmpId(EmpId);
node.addElement(el);
Kind Regards
Mukesh

Similar Messages

  • Problem with deleting record from the report.

    This is my first post here, just to let you know I just started playing with Apex.
    Here we go:
    I have a page with report where the link to the record I have changed with ULR to the javascript:
    javascript:doDelete(#RECORD_ID#)
    I have created javascript in the HTML Header of the page
    <script>
    function doDelete(id) {
    if (confirm("Are you sure you want to delete selected record?"))
    $x('P3_DEL_ID').value=id;
    doSubmit('DELETE');
    </script>
    and finally created a process for the page On Submit - After Computations and Validations.
    declare
    var_id number := :p3_del_id;
    begin
    commit;
    Delete from mytable where record_id = var_id;
    commit;
    end;
    I don't get error messages but record is not deleted.
    Thanks for help in advance.
    Robert

    Robert,
    That's the problem. With that type selected, change the value in the textbox to just: DELETE
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to fetch records from the database into a combo box?

    Hi:
    I&acute;m really new with ABLBPM and I&acute;m trying to fetch records from the database to display them into a combo box as valid values for a presentation but I&acute;m using a dynamic method with this code:
    <em>for each row in SELECT campo1, campo2 from TABLE</em>
    <em>do</em>
    <em>solicitudes[] = [row.campo1, row.campo2]</em>
    <em>end</em>
    <em>return solicitudes
    </em>And the debugger says that SQL instructions can be used only in fuctions and procedures that are executed on the server.
    Do you know another way to do it?
    P.D. Sorry for my terrible english
    Greetings

    Hi Steve,
    Thank you, your idea is perfect, but when I try to run the screenflow where the combo should be filled I get this error:
    fuego.lang.ComponentExecutionException: No se ha podido ejecutar correctamente la tarea.
    Motivo: 'java.lang.NullPointerException'.
         at fuego.web.execution.InteractiveExecution.setExecutionError(InteractiveExecution.java:307)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:166)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.webdebugger.servlet.DebuggerServlet.redirect(DebuggerServlet.java:136)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:85)
         at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
         at fuego.web.execution.servlet.ServletExternalContext.processAction(ServletExternalContext.java:110)
         at fuego.webdebugger.servlet.DebuggerExecution.dispatchComponentExecution(DebuggerExecution.java:64)
         at fuego.web.execution.InteractiveExecution.invokePrepare(InteractiveExecution.java:351)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:192)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
         at fuego.webdebugger.servlet.DebuggerServlet.doDebug(DebuggerServlet.java:148)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:82)
         at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    Any ideas??
    Thanks and greetings

  • How to get first 10 records from the database using JSP

    i want ot get first 10 records from the database and then after clicking the next button in the page,it must show the next precceding 10 records from the database.i am getting the first 10 records .but how to post to the same page to get another preceeding 10 record.

    Search the forums - this has been asked a lot. I usually recommend experimenting with tops and order bys until you're satisfied.
    Kind regards,
      Levi

  • How to delete the child record from the database

    how to delete a parent and child record from the database can we do it in the servlet and my database is oracle

    I'm not sure I understand the question but you could certainly use the JDBC API from within your servlet to access and modify a DB. You could also use an EJB layer to access your DB and accomplish the same tasks.

  • I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?

    I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?
    ronald1094

    Try #5.
    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Fetching 3 laks records from the database

    Hi All,
    I have a requirement that if we are fetchin 3 lakks records from the database, can we fetch the records in a single span of time ,if yes then how?
    If no, then we have to fetch the recods multiple times but since for the first time it is fetching 1 lakh records and for the next time how the bpel engine know that it has to fetch 1000001 record.
    Can anybody came this type of scenario. Please guide me on this.
    Regards,
    Ch

    There are some options given here @ http://myexperienceswithsoa.blogspot.com/2010/06/db-adapter-polling-tricks.html
    Check them out.
    But if you reading so much of data at once, you better have the necessary infrastructure to handle the load like memory, jvm tuning, etc ...
    If there is a limitation, you will need to assess your polling record count to be may 10K or so to strike a balance on the performance.
    Hope this helps.
    Thanks,
    Patrick

  • I have a problem with your purchase from the App Store

    I have a problem with your purchase from the App Store
    To understand the problem as well as view images on a flow
    https://www.icloud.com/photostream/#A7GI9HKK27lHY

    You will need to do what it says, contact iTunes Support. These are user-to-user support forums, if you thought you were contacting Apple by posting here. Go here:
    http://www.apple.com/emea/support/itunes/contact.html
    to contact the iTunes Store.
    Regards.

  • Performance problem with selecting records from BSEG and KONV

    Hi,
    I am having performance problem while  selecting records from BSEG and KONV table. As these two tables have large amount of data , they are taking lot of time . Can anyone help me in improving the performance . Thanks in advance .
    Regards,
    Prashant

    Hi,
    Some steps to improve performance
    SOME STEPS USED TO IMPROVE UR PERFORMANCE:
    1. Avoid using SELECT...ENDSELECT... construct and use SELECT ... INTO TABLE.
    2. Use WHERE clause in your SELECT statement to restrict the volume of data retrieved.
    3. Design your Query to Use as much index fields as possible from left to right in your WHERE statement
    4. Use FOR ALL ENTRIES in your SELECT statement to retrieve the matching records at one shot.
    5. Avoid using nested SELECT statement SELECT within LOOPs.
    6. Avoid using INTO CORRESPONDING FIELDS OF TABLE. Instead use INTO TABLE.
    7. Avoid using SELECT * and Select only the required fields from the table.
    8. Avoid nested loops when working with large internal tables.
    9. Use assign instead of into in LOOPs for table types with large work areas
    10. When in doubt call transaction SE30 and use the examples and check your code
    11. Whenever using READ TABLE use BINARY SEARCH addition to speed up the search. Be sure to sort the internal table before binary search. This is a general thumb rule but typically if you are sure that the data in internal table is less than 200 entries you need not do SORT and use BINARY SEARCH since this is an overhead in performance.
    12. Use "CHECK" instead of IF/ENDIF whenever possible.
    13. Use "CASE" instead of IF/ENDIF whenever possible.
    14. Use "MOVE" with individual variable/field moves instead of "MOVE-
    CORRESPONDING" creates more coding but is more effcient.

  • Display Image from the database but prevent it from refreshing on every pages

    Hi there,
    I can see there are many discussions around this but my query is slightly different. I'm writing this on behalf of one of my developers. (sorry for my ignorance on techie stuff.. :-))
    A logo is being displayed on a few pages, which is called from the database. However, the problem is that  - this logo refreshes every time when you traverse to each page causing a performance issue or sometimes slow loading of the image.
    My question is - how do we stop it from loading on each page from the database?.  I would rather load once when the main page loads initially and then maintain this on other pages too.
    We can keep this logo on a file system (FS)  and display it via CSS/HTML/frame but since we want to keep it flexible/dynamic where a user can upload a new one whenever it changes and hence DB seems to be the suitable option (in my opinion).
    Can someone please help?
    If you need any further info around the coding how it is being done at present, pls let me know.
    Thank you

    read this http://docs.oracle.com/cd/B28359_01/appdev.111/b28393/adlob_tables.htm#g1017777
    you can cache lobs in the database too
    you can also upload the pic in your file system using utl_file package and then put the image in the working directory mentioned in i.war
    you can then reference the image and it will not be stored in the database and will be cached
    Regards,
    Vishal
    Oracle APEX 4.2 Reporting | Packt Publishing
    Vishal's blog

  • Algorithm to retrieve link of records from the database efficiently

    Hi,
    I have some records in database related to supply chain.
    e.g. N1 supplies item I1 to Node N2 is represented as N1 I1 N2.
    Now I want to find all parent nodes or say chain of nodes supplying to particular node in an efficient way.
    Currently I am using recursion but for each recursion 1 query fires & performance drops considerably. Can you suggest me the efficient way to do it?
    Regards,
    Veena

    depending on how large the dataset in the database is, you could just select all the data from the database in one go, add it all to a collection and perform you analysis on the collection. This would save a considerable amount of time as database roundtrips are expensive.
    If you dataset from the database is too large to fit in memory in one go you could select data in say rows of 1000 at a time and/or use a local disk cache instead of a remote DB query every time.

  • Adding a record from the database to radiobutton

    hi everyone
    i am trying to retrive the records from the ms Access database and add it to the radiobuttons.
    i did retrieve the data from the database and added it to the table and then added it to the radiobutton but the view of it is not clear.
    if anyone can give suggestions on it , it will be helpful
    thank you

    Can you elaborate on "but the view of it is not clear." ? Does it mean it looks blur on your monitor?? or it has been trying to hide at the corner of your screen??

  • Problems with iMovie downloaded from the App Store

    I downloaded iMovie 11 from the App Store Yesterday. When I try to use it I get this message, "Missing QuickTime Component." "The QuickTime component necessary to view, edit, import and export MPEG2 movies is not installed." "It is included with the iMovie installed, Please re-install." I have tried to re-download it from the App Store and then get the message "Installed." I have searched the Apple site for information as to how to accomplish this to no avail. I have looked at the iMovie Help files all to no avail. Can anyone please tell me what to do to fix this. When installing from the App Store you do not seem to get a standard installer.
    Thanks to anyone who can help fix this problem.
    Mike

    When installing from the App Store you do not seem to get a standard installer.
    True.
    I have found that the physical possession of the software on a DVD or CD is a better way to go.
    In the event you have a computer problem and must rebuild your system or reinstall software, it is always easier to do so if you have the physical media in your possession.
    I would spend a few dollars more and purchase the iLife 11 disc.

  • I am having problems with video playback from the Internet such as you tube on my iPad. What's up?

    I am having trouble with video playback from the Internet such as you tube. What's up?

    Your video playback will also depend on your net speed. If you have slow internet, you will stream video slow. If your video stops and starts, you can try pausing it for a minute or so and then try to watch. Let more of it buffer before you try to watch.
    Sometimes your connection is so slow you literally play faster than it buffers, which means it stops and stutters continually

  • How to Display the Image Rather Than the Link of a Dreamweaver Record From the Database

    I wanted the image rather than the link to appear on my page. The link is from my database which is
    imported from a .csv file.

    You use the link as the value of the src attribute of an <img> tag:
    <img src="<?php echo $row_getDetails['image_link']; ?>" alt="My image">

Maybe you are looking for

  • List item problem in oracle forms 6i

    Hello, I've 10 test filed, in-front of each text field there are 10 list item (separate list item) for each list item element list is given below Route Customer name Delivery date Delivery Time Delivery Session Expected received Actual Received Fresh

  • Move clips from timeline to event sub folder?

    Aloha, Is there a way to move clips in the timeline that I have cleaned into a sub folder in an event library? I come from a non FCP background and still trying to wrap my mind/workflow around the FCP formula.  Generally I clean clips and drop "some"

  • 'Connection Error' Sample RTMP video used to work, now no longer works?!

    Hello All, I had FMS 3.5 developer package installed on my server installed about a month ago. I used to be able to go to the /webroot/ page to see the sample RTMP video play and it worked great. Today, I go to view that page and find that it no long

  • My iPad screen is locked

    My iPad screen is locked and won't respond to any touch commands.  Password protect has not been enabled.  At the top of my screen a lock icon is displayed.  Can someone tell me what happened?

  • Font on the screen is OK but printer enlarges the font

    The font size on the screen is OK and is changeable but when printing the font size is too big and entire text is truncated.