Take the JTable Challenge !

The concept:
Server side return search result to client.
if it is the first record, (#1);
call cl*** to create JTable and all other
user
insertRow(); function to update
*********problem
here is my code.
please guide me and teach me what i suppose to do if i want to "insert" row for all not #1 record.
to my JTable.
MSR = new mcSearchResult();
if (totalRecord.endsWith("#1"))
     System.out.println("First record");
     System.out.println("1 " + totalRecord);
     MSR.populateSearchResult(totalRecord);
     TAB.mDoc.displayPanel.add(MSR);
     //MSR.insertRow();<------if place it here, it works*********
else
     MSR.insertRow();<----------java.lang.NullPointerException ??*********               
     System.out.println("Following record");
     System.out.println(totalRecord);                              }
@ MSR class
public void insertRow(){
int mc =resultHolder.getRowCount();
System.out.println(mc);
tModel.insertRow(mc, new String [] {"insertRow","insertRow","insertRow","insertRow","insertRow","insertRow","insertRow"});
public void populateSearchResult(String totalRtn)
System.out.println("Populate : " + totalRtn);
String s1=null,s2=null,s3=null,s4=null,s5=null,s6=null,s7=null;
StringTokenizer rsCut = new StringTokenizer(totalRtn, "�");
try
     String hdr = rsCut.nextToken().trim();//header
     s1 = rsCut.nextToken().trim();//owner
     s2 = rsCut.nextToken().trim();//fname
     s3 = rsCut.nextToken().trim();//dcreate
     s4 = rsCut.nextToken().trim();//type
     s5 = rsCut.nextToken().trim();//cate
     s6 = rsCut.nextToken().trim();//desc
     s7 = rsCut.nextToken().trim();//hits
     //tModel.fireTableDataChanged();
     //resultHolder.validate();
     //resultHolder.repaint();
catch(NoSuchElementException nsex)
     System.err.println("NO ELEMENT " + nsex);
Object [][] data =
          {s1,s2,s3,s4,s5,s6,s7}
     String[] columnNames = { "File Owner", "File Name", "Date Created",
     "File Type", "File Category","Description", "Total Views",
     tModel = new DefaultTableModel(data, columnNames);
resultHolder = new JTable(tModel);
resultHolder.setPreferredScrollableViewportSize(new Dimension(482, 188));
JScrollPane tableScroller = new JScrollPane(resultHolder);
tableScroller.setBounds(0,0,812,388);
getContentPane().add(tableScroller);
}

Where is the nextFile.swf located? If it is online—then
have you created a crossdomain policy file?
i.e. www.flashoptimist.com/crossdomain.xml
<?xml version="1.0"?>
<!--
http://www.flashoptimist.com/crossdomain.xml
-->
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
Just copy:
http://www.punchkickinteractive.com/crossdomain.xml
TO:
http://www.YOURDOMAIN.com/crossdomain.xml
There is no Flash code needed. Flash automatically looks for
this file when loading data from a different domain. Flash also
restricts to subdomains as well—if you are reading from
subdomains within the same server you will need duplicate files:
http://www.YOURDOMAIN.com/crossdomain.xml
http://test.YOURDOMAIN.com/crossdomain.xml
etc.
Let me know if this fixes the problem. A great example of why
this is needed is youtube.com. (
http://www.youtube.com/crossdomain.xml).
None of the Flash video players pulling youtube.com movies would
work if this single file was deleted.

Similar Messages

  • Take the myFICO Fitness Challenge 2015

    Happy New Year to the myFICO Forums Community!
    Can you believe we’re entering our sixth  year of the myFICO Fitness Challenge? If you have financial goals for the New Year, the myFICO Fitness Challenge is the place for you!
    What’s the myFICO Fitness Challenge?
    To take part in the myFICO Fitness Challenge, simply post an introductory note, and state your financial goals for the coming year. Are you hoping to raise your FICO Score? Buy your first home? A new car? Get that coveted rewards card? Tell us about what you hope to achieve, and what reaching those financial goals will mean to you. As the year progresses, check back here to report on your progress, talk about hurdles you encounter, or simply reach out for support and encouragement from your fellow Fitness Challengers.
    Monthly Check-Ins
    To help you stay on track we encourage you to stop by for monthly check-ins for 2015. On the first day of each month, myFICO will post a monthly check-in thread for you to talk about your progress, successes, speedbumps, etc. Participation in these monthly check-ins is optional - but encouraged!
    First time Challenger?
    If you’re new to the myFICO Fitness Challenge, then welcome! To begin, set up your official  MyFICO Siggy signature on your Profile page (Go to My Settings=>Personal Profile=>Personal Information). Then just reply to this topic, telling us a little about your financial situation, your goals, and how you plan to achieve them during the coming year.
    Returning Challenger?
    Welcome back! Please be sure to update your myFICO Fitness Challenge signature so it directs to the current challenge. You can also tell us about your results in MyFICO Fitness Wrap Up 2014!   

    Hello! Starting out for 2015 after about 7 years of just letting everything go after some really hard personal times.  Have a lot of work to do.  Several old accounts for small amounts dropping off 2015-2016 ;  No active revolving credit, use or open accounts as of 12/14 when we finally looked, only an open mortgage. Joint activity in this house as both of us, husband and wife, are pretty much in the same boat.  We had a series truly traumatic experiences and are hoping to rebound.  We are now used to purchasing solely on a cash basis so, using credit only as a tool to build our credit score should be no problem since for the past 7 years if we could not pay cash, we just waited til we could for everything. Goal:  Develop some lines of credit to start overshadowing the bad while working to get rid of the bad;  650 score by June 2015 first target Ultimate Goals:   Refinance mortgage before these low rates rise :  Maintain 720+ for both of us Steps Taken:  Since 12/16 did secure some starting credit lines to have a rebuild base: 1 - Fingerhut $500cl 2 - CapOne Quicksilver $300cl 3 - CapOne Platinum $300cl 4 - Walmart Store Card Auth User on spouse's new $300cl (they denied me, not sure why so took a hard hit there) Spouse since Nov 2014 has added: 1 - New Car Loan $27k 2 - Fingerhut $600cl 3 - WalMart Store Card $300cl 4 - CapOne Quicksilver $300cl 5 - CapOne Platinum $300cl 6 - CreditOne $300cl 7 - First Progress secured $300 (before she even imagined she would get unsecured approvals) 8 - Kay Jewelers $6000cl (really surprised with instore approval on this) Paid off one small collection we didn't know about from VZWireless now going back to VZ as we never stopped being a customer and they really screwed us up by not transferring balance when we went from personal to business account. Lots and lots of research reading on his forum as well as some other sites like Credit Karma etc:  using and paying to see movement in scores; PTD options; etc Pulled all credit reports ;  currently outlining plan for deletion of bad accounts;  all realy small amounts I could pay but need to invest the time to get PTD not just paid.Some start falling off on their own in Feb 2015 so, need to start a priority plan on who stays on longest and get rid of them. Hoping by joining and continuing on the forums for guidance we will keep the momentum to aggressively clean this up quickly and not just let the old stuff roll off over the next 14 months. Good luck everyone!!

  • Problem in printing the JTable values

    Dear Friends,
    I have to print the JTable values (on paper using print dialogue box).
    I'm using jtableObj.print to print the table values. But jtableObj.print takes more time to print the table values because it prints the values as a image(approximately 5 mins to print 10 pages).
    My code is ,
    boolean complete = tableObj.print(mode, header, footer, showPrintDialog, null, interactive,
                                  null);Could anyone please tell me how to reduce the time?
    Thanks in advance

    Hi again,
    1. what problem are u facing ?
      (there is no sapscript symbol / system symbol
       for finding out the length )
      (In abap u can use strlen)
    2.  data and gets trimmed
       what is the meaning of it ?
    3. do u mean to say that  !
      ABCDEF                     123 45
      GEF                        123 45
      is getting pritned like
      ABCDEF 123 45  ?
      GEF  123 45
    4. If so , then use TABS
    5. This happens because SPACE
       is different in different varlues of
       ABCDEF and GEF !
    regards,
    amit m.
    Message was edited by: Amit Mittal

  • :D The Joker Challenge

    <b>UPDATED: Date extended to 10th October!</b>
    The last few weeks have been interesting. Twice, during discussions with customers (minor problem handling in OSS) we were told that they are going live with their own developed BSP application, rollout always to more than 10000 users! We only hear about this when an OSS problem ticket is opened. Seldom do we know about the projects being done with BSP. Real life "war" stories are always the best!
    This afternoon, while watching the Three Musketeers with my daughter, Mark was penning the <a href="/people/mark.finnern/blog/2004/09/17/the-three-sdn-musketeers version</a> of this epic story. One thing led to another. Doing some back of the envelope calculations with the input <a href="https://www.sdn.sap.com/sdn/index.sdn?page=crp_prize2.htm">cool geeky prizes</a> and my position as <a href="https://www.sdn.sap.com/sdn/index.sdn?content=http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fSDN!2fiViews!2fcom.sap.sdn.folders.pointsrewardsystem!2fcom.sap.sdn.crp.iviews.topcontributors&contenttype=url">Top Contributors</a>, gave the output anything from an iPod up to a <b>HP iPAQ!</b>
    Let us use this joker card!
    In the next week I will work very hard to answer questions in the BSP forum (and beg for points earned!). In addition, I will try to complete one more weblog (even although Thomas snagged my next topic!). With this, I am gunning to have one prize at the end of the week.
    With this prize, I would like to sponsor the joker challenge. I am interested to know what people are doing with BSP. I am asking for people to write weblogs about the work they have done with BSP. <b>I will transfer my prize to the best weblog!</b> See rules below.
    This means, that you can start today with zero points, write one weblog, and be catapulted right to the top prize (assuming I can hold the position one more week)! An HP iPAQ is winking.
    The game is on!
    regards, brian
    <u><b>RULES</b></u> (To ensure a fair challenge!)
    o) I am offering a prize which I do not yet have. I can not guarantee that I will get any prize, or which one. All I can say is that I will in this week work very hard to stay at the top. This will require that everyone in the forum take the time to review answered questions and assign the marks. However, the final risk is (unfortunately) with you.
    o) <b>The deadline for submissions is the 10th of October</b> [updated!](we accept all weblogs with this date stamp). Yes, this is after the SDN competition close. If you wish to also earn marks with the SDN challenge, then the deadline is still upcoming Friday. Important is just that I earn points until this Friday to get the prize. Then you know what prize is up for grabs and have more time to write!
    o) Speaking of writing, here is expectations (and the mininal requirements):
    -- Must be written in English.
    -- You must have permission from the company owning the BSP application to write the weblog
    -- The title must be of the form "BSP In Action: ...". The "..." can be any sub-title of your choosing.
    -- In the introduction section, the company must be explicitly named, including geographical data and a company logo. This is important so that we see that these are real world stories! (If this is not acceptable for your company, email me, and we can negotiate to remove this contraint!)
    -- It must be a weblog of a minimum two A4 pages (when printed)
    -- Very important: it must contain a minimum of three screenshots. Grey out any confidential information.
    -- The text should give an high level overview of the problem (vaguely if confidential),  should discussion some sizing numbers (number of users, number of BSPs, developers,  application servers, etc). The most important section will be decisions taken section. Typical examples: "we used MVC, because..."; "we decided to go stateless as..."; "we did not use HTMLB, but our own HTML to achieve...."; "interesting aspects are the use of IGS, ...". If you were not a developer of the BSP application, we will accept as alternative a section describing in some detail the functionality of the application. Typical examples: "allows us to enter weekly data...", "give good statistic information..."; "have this nice feature ... that  ....", etc.
    -- Code samples are not required
    -- We do not require a life demo or link.
    o) Judging: Only weblogs with the title "BSP in Action: ..." dated between today and maximum 3rd October will be accepted. If you have difficulty to quickly get your weblog online, email me ([email protected]) a Word document in time to place it online for you. The actual winning decision will be made by three colleagues that are real BSP experts. I will not decide! In addition, any remarks on this thread (and this thread only) about any of these weblogs will also be included into making a final decision. So getting as many other people as possible to give favourable comments on your weblog in this thread is definitely going to help you! Please understand that I do not have the infrastructure to handle an online voting, etc. I trust in the opinion of my three colleagues and the noise here! The decision is final and not negotiable!
    o) What/how will be judged: the size/importance of the project will play no role. The quality of the writing will not be judged. The most important criteria will be the detail of the information presented. The more you tell, with the more detail, the higher your chances are. Screenshots will also be weight heavily! Both positive and negative aspects will be weighted equally. We are interested in the true "war" stories, and can handle the heat in the kitchen. A happy end would be nice
    o) Who can participate? Effectively anyone. What is <b>NOT</b> allowed, is to write about BSP applications developed at SAP. Also <b>NOT</b> acceptable are weblogs
    about modifications to such SAP developed BSP apps. Accepted will be weblogs about any BSP applications developed done by or for customers. As author of the weblog, it is not required that you actually participated in the BSP developed. You can be an user of the application, a tester, someone that helped in the design, anyone! We are interested in the scope of the developments. What is also perfectly acceptable, is that (SAP) consultants write about BSP applications developed at/for customers (only with their express permission!). It is also quite acceptable that more than one person write about the same BSP development (just don't spoil the working atmosphere with your colleagues:). It would be nice if those people already on track to win a price not participate, but this is only asked and not explicitly prohibted.
    o) What to do if I just stumbled into this forum and we have never before developed any BSP applications? For this, we will also accept all weblogs that write about development using other SAP technologies. For example applications developed in SAP Enterprise Portal, or using Web Dynpro for Java, or even acceptable is an application developed in SAPGUI. However, this must be an application developed at and for a customer, and not any SAP development! The above rules for judging still apply! Most important is that you still use the title format "BSP In Action: ...".  We leave the "...." open for your imagination and will see how you bend it to fit:)
    o) Finally, please accept that I have exactly this one prize (which I must still earn!) for the challenge. Unfortunately only one person can win. However, in the end everyone will win, as there is nothing more interesting than reading how other people tackled problems and made a success!
    <b><i>So start writing today: given that at least three screenshots are required, it should not be difficult to fill at least two pages!</i></b>

    Last night the Joker Challenge quietly came to an end. This morning I peeked into SDN and into my mailbox.
    At a first glance, it does not seem that all that many weblogs made it into SDN. But looks can be slightly deceiving in this case. Officially three articles were published, over which I am very happy. In addition, I have received two additional descriptions by email, which can unfortunately not be shared. One text was rejected by the "owning" company (all top secret, I was not even told the name!). For one project, the consultant gave me a live demo, and then I could quickly help with some debugging. One or two were promised, but I suspect exchanged for a good holiday stateside (would have been my decision as well!). So, even if it has not been possible to share everything, I have definitely learned a lot about what is been done with BSP out there. Which makes me achieve my goals.
    Three "BSP in Action" weblogs have been published. Each one has been excellent to read, and has shown the time and effort that was invested into both the BSP development, and the writing of these weblogs.
    Thomas Jung opened the dance with <a href="/people/thomas.jung3/blog/2004/09/20/bsp-in-action-kimball-international">BSP in Action: Kimball International</a>. This was a very impressive piece of writing and especially that "will code ABAP for food" photo made me wonder whether it is time to learn Java. Gracefully, Thomas has declined to participate, as he had <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/sdn%20at%20sap%20teched%2004%20san%20diego%20_%20a%20new%20experience.article">already hauled away a 21" LCD flat-screen monitor</a>. The final <a href="/people/mark.finnern/blog/2004/10/06/well-deserved was given by Mark!
    Days later, Stefan Riedel-Seifert followed this up with <a href="/people/stefan.riedel-seifert/blog/2004/09/23/bsp-in-action-mmmendresshauser">BSP in Action: MMM@Endress+Hauser</a>. And although we have known about this project for a long time, this was the first time that we have actually "seen" it. We spend hours ogling at the screenshots. A few emails later, and we were richer a number of bits and pieces of coding. We actually learned a thing or two! Hopefully soon, Stefan will write a new weblog, to show us a few more of his tips and tricks (handling of Excel!).
    About the last entry, <a href="/people/ulli.hoffmann2/blog/2004/10/11/bsp-in-action-strategic-freight-procurement-with-basf-epilog">BSP in Action: Strategic Freight Procurement with BASF EPILOG</a>, which reached my mailbox last night, I was also very happy. We have known Ulli already a very long, probably since his and our first BSP days. As external consultant he has even worked a while for the BSP-team and certainly knows his stuff! (About that new 640 logon application he did, we must still write a weblog. It has many new features and should soon replace the old SYSTEM application as standard. Unfortunately only in 640.) The EPILOG project has everything in it that a good B2B application should have. Write once, save money every day.
    I would not like to write to much about each weblog, more than to say I have thoroughly enjoyed reading them. And I also hope that the rest of the forum did share the pleasure (even although comments have been rare?). Each of these three weblogs have shown beyond doubt that BSP is an enabling technology with which to develop industrial strength applications.
    This morning I have requested the three judges to make the final call. At least, with Thomas already happy with his 21" screen, it reduced to only two excellent weblogs in the running. I am glad that I did not have to make the final call. And as was expected, it took hours of deliberation (hopefully they did not had to flip a coin:).
    And the winner is: .....Stefan Riedel-Seifert!
    A thorough interrogation of the judges showed that it was a close call. In the end, they were swayed by the "work of love" (their words). The E+H development was done using only hand-written HTML (started in 610 days before the HTMLB library), and really shows the BSP power to achieve pixel-perfect rendering!
    To everyone that has participated, both in the weblogs published and the private ones received, I wish to say thank you! I have enjoyed these "war" stories to the maximum.
    regards, brian

  • How to edit the JTable columns

    Hi all,
    please help me on this..
    I created one Jtable with 0-9 columns(10 columns)and
    I put only the 9th(last column) column is editable.
    the problem is if I enter any text message in 9th column
    and press another column then immediatly dissapears the
    9th column text...
    please tell me how to solve this problem .. because I want to take the
    9th column text to another Object....
    please send the solution anyone knows..
    public boolean isCellEditable(int row, int col){
    if(col == 9){
    return true;
    }else{
    return false;
    }

    If things go wrong while trying to edit table cells there is a good chance that you hit one of the many well known or even a new bug. These bugs are highly version dependent. So in any question please include the jdk version you are using and a very exact description of what you are seeing.
    Here I assume that by "press another column" you mean "click the mouse in the header region"?
    If so that's one of the well known, long-standing and not yet solved problems: jTable does cancel any edit on any notification from the columnModel - and due to suboptimal implementation of the tableHeaderUI even a single click does fire such a notification.
    There is some debate about how to handle the situation but no easy or totally satisfying approach - your best bet is to search the bug parade (and google) for partial solutions and their pros and cons.
    Greetings
    Jeanette

  • How to highlight the row from the JTable then remove

    hi !!
    i'm using an abstract model in making a table....
    and having a button up and down and delete also!!
    how can i highlight the row when i click down and up!!!
    and when selected or highlighted i can press the button delete ...
    then the data is removed!!!
    pls... i need it!!
    tnx...

    Table row selection should take care of it. By default table rows can be selected.
    The getSelectionModel() method on the JTable gives you access to the row selection model. You can set that either to allow one at a time or multiple selection, and when your delete button is pressed, you access that selection model to decide which rows to delete.
    Add a ListSelectionListener so you can enable or disable your delete button as rows are selected or deselected. JTable will take care of the highlighting.

  • 15" i7 Macbook Pro from early 2011.takes the mac laptop two or three tries to boot successfully. It would turn on, show gray screen, shut down, turn on again, show gray screen, shutdown, and then turn on, show gray screen, before it can finally get

    Hello All,
    I have a 15" i7 Macbook Pro from early 2011. The past few weeks, it has been getting increasingly difficult to get on my computer. It takes the mac laptop two or three tries to boot successfully. It would turn on, show gray screen, shut down, turn on again, show gray screen, shutdown, and then turn on, show gray screen, before it can finally get to the dark gray log-in screen. Even when I finally get logged in to start working, thinking it would be okay now, it shuts down randomly.
    I've ruled out the possibility of a software problem because I've just done a clean re-install of Mac OS X Mavericks on my computer just yesterday.
    I did upgrade the RAM recently, about a month and a half ago, from 4GB to 16GB, I went to the apple store four days after that upgrade to have them do a hardware test, and clean the inside of my laptop, which helped with previous heat issues. When they did the hardware test, the hardware was all registered as fine from their system.
    I've tried resetting the SMC, PRAM, and doing the internet recovery hardware test, but to no avail. I thought I could at least find out what parts needed to be replaced from the hardware test but it seems that when the hardware test is almost finished, the computer just shuts down, So I am unable to see the results.
    My computer is also having battery issues, under battery condition, it says "replace now," parts have been ordered, waiting for arrival. But if the battery health is low, it should still boot up fine, it would just hold a significantly less charge.
    Could this be a hard drive issue?
    Has anyone had similar symptoms and how was it resolved?
    Does anyone know what I can do to alleviate this issue?
    I haven't had time to take it to Apple because I'm currently taking a 21 credit semester academically. I'm an art and design student so my computer is basically the bane of my existence. Help! Any constructive advice is welcomed!
    Thank you so much for your input!
    -Christina C.

    Problem description:
    The Hard Disk is failing.
    EtreCheck version: 2.0.11 (98)
    Report generated November 4, 2014 at 7:59:28 AM EST
    Hardware Information: ℹ️
      MacBook Pro (15-inch, Early 2011) (Verified)
      MacBook Pro - model: MacBookPro8,2
      1 2.2 GHz Intel Core i7 CPU: 4-core
      16 GB RAM Upgradeable
      BANK 0/DIMM0
      8 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      8 GB DDR3 1600 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 3000 - VRAM: 512 MB
      Color LCD 1440 x 900
      AMD Radeon HD 6750M - VRAM: 1024 MB
    System Software: ℹ️
      OS X 10.9.5 (13F34) - Uptime: 0:3:43
    Disk Information: ℹ️
      TOSHIBA MK7559GSXF disk0 : (750.16 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      HDV4 (disk0s2) /  [Startup]: 749.30 GB (712.10 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/Application Support/Avast/components/fileshield/unsigned
      [loaded] com.avast.AvastFileShield (2.1.0 - SDK 10.9) Support
      /Library/Application Support/Avast/components/proxy/unsigned
      [loaded] com.avast.PacketForwarder (1.4 - SDK 10.9) Support
    Launch Agents: ℹ️
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.avast.userinit.plist Support
    Launch Daemons: ℹ️
      [invalid?] com.adobe.SwitchBoard.plist Support
      [loaded] com.avast.init.plist Support
      [loaded] com.avast.uninstall.plist Support
      [loaded] com.avast.update.plist Support
      [invalid?] com.perion.searchprotectd.plist Support
    User Launch Agents: ℹ️
      [invalid?] com.avast.home.userinit.plist Support
      [loaded] com.google.keystone.agent.plist Support
      [invalid?] com.jdibackup.ZipCloud.autostart.plist Support
    User Login Items: ℹ️
      None
    Internet Plug-ins: ℹ️
      AdobePDFViewer: Version: 10.1.1 Support
      QuickTime Plugin: Version: 7.7.3
      JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
      Default Browser: Version: 537 - SDK 10.9
    User Internet Plug-ins: ℹ️
      TroviNPAPIPlugin: Version: 1.0 - SDK 10.9 Support
      Google Earth Web Plug-in: Version: Unknown
    Safari Extensions: ℹ️
      Avast Online Security
      Trovi Search for Safari
    3rd Party Preference Panes: ℹ️
      None
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          16% mds
          7% WindowServer
          1% loginwindow
          1% fontd
          1% com.avast.daemon
    Top Processes by Memory: ℹ️
      120 MB com.avast.daemon
      86 MB Google Chrome
      52 MB Finder
      52 MB WindowServer
      41 MB Google Chrome Helper
    Virtual Memory Information: ℹ️
      13.45 GB Free RAM
      1.34 GB Active RAM
      944 MB Inactive RAM
      1.43 GB Wired RAM
      1.11 GB Page-ins
      0 B Page-outs

  • How can I take the part that parses the .XML file and make it a procedure.

    CREATE OR REPLACE PACKAGE BODY XMLSTUD6 AS
    Author: Jimmy Harris
    Created: 5/25/2006
    Purpose: 1.This package has an XML file initialized to a variable called DOC .
              2.It will then take the values from the XML file and insert them into a PL/SQL table.
              3.From the PL/SQL table it will insert values into the STUDENTS table.
              4.After step four above, the STUDLOAD procedure will insert (Sequence,Status, .XML file, USER, SYSDATE, ERROR_Message
                             into the AUDIT_XMLSTUD table regardless if insert status was successfull or not status is indicated by either an Y or
              NO and the original XML filed that was currently processed, the date and user who executed the procedure.
              If the status was NO then it will insert the Oracle SQLERRM massage, into the REASON_FOR_ERROR column.
                             If status is Y then REASOK_FOR_ERROR IS NULL.
                             5,Make sure you embed the xml file with an inner and outer ' ' ie: ' the whole .xml file string ' as the input
                             parameter into the STUDLOAD procedure.
    This package excepts the whole .XML file as a CLOB as an input parameter, so that the end-user will not have
                                  modify the code.      
    Modification History:     1.6/09/2006 JImmy Harris Modified code, added the Function "WORD_CONVERTER1" to accept the requested text data and
    return a coded value back to our Welligent system.     
                                  2. Was advised that a front end type of functionality was not neccesary for this issue so I removed the INSERT_XML_FILE,
                                  UPDATE_XML_FILE and the INSERT_XML_file.
    FUNCTION WORD_CONVERTER1 (v_domain IN VARCHAR2 := null,
    v_incoming IN VARCHAR2 := null) RETURN VARCHAR2 IS
    v_well VARCHAR2(32);
    v_editdd BOOLEAN;
    v_code VARCHAR2(32);
    CURSOR C_conv_wrd IS
    SELECT WELL
    INTO v_code
    FROM CONVERSION_TABLE
    WHERE DOMAIN = UPPER(TRIM(v_domain))
    AND INCOMING = UPPER(TRIM(v_incoming));
    BEGIN
    OPEN c_conv_wrd;
    LOOP
    FETCH c_conv_wrd INTO v_code;
    EXIT WHEN c_conv_wrd%NOTFOUND;
    END LOOP;
    CLOSE c_conv_wrd;
    RETURN v_code;
    END WORD_CONVERTER1;
    PROCEDURE STUDLOAD (DOC CLOB) IS
    v_parser xmlparser.Parser;
    v_doc xmldom.DOMDocument;
    v_nl xmldom.DOMNodeList;
    v_n xmldom.DOMNode;
    v_mm NUMBER;
    v_dd NUMBER;
    v_yyyy NUMBER;
    v_DATE DATE;
    v_race VARCHAR2(1);
    v_eth VARCHAR2(1);
    v_prim_lang VARCHAR2(1);
    v_house_lang VARCHAR2(1);
    v_gender VARCHAR2(1);
    TYPE stuxml_type IS TABLE OF STUDENTS%ROWTYPE;
    s_tab stuxml_type := stuxml_type();
    v_success VARCHAR2(200);
    v_failure VARCHAR2(200);
    l_error_code varchar2(200);
    BEGIN
    -- Create a parser.
    v_parser := xmlparser.newParser;
    xmlparser.setValidationMode(v_parser, FALSE);
    -- Parse the document and create a new DOM document.
    SYS.XMLPARSER.PARSECLOB ( v_parser, DOC );
    v_doc := SYS.XMLPARSER.getDocument(v_parser);
    -- Free resources associated with the Parser now it is no longer needed.
    xmlparser.freeParser(v_parser);
    -- Get a list of all the STUD nodes in the document using the XPATH syntax.
    v_nl := xslprocessor.selectNodes(xmldom.makeNode(v_doc),'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent');
    -- Loop through the list and create a new record in a table collection for each STUD record.
    FOR stud IN 0 .. xmldom.getLength(v_nl) - 1 LOOP
    v_n := xmldom.item(v_nl, stud);
    s_tab.extend;
    -- Use XPATH syntax to assign values to he elements of the collection.
    s_tab(s_tab.last).STUDENT_LAST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/LastName');
         s_tab(s_tab.last).STUDENT_FIRST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/FirstName');
         s_tab(s_tab.last).STUDENT_MI :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/MiddleName');
         v_dd := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Day');
         v_mm := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Month');
    v_yyyy := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Year');
         v_DATE := TO_DATE(v_mm||' '||v_dd||' '||v_yyyy,'MMDDYYYY');
         s_tab(s_tab.last).STUDENT_DOB := v_date;
         s_tab(s_tab.last).STUDENT_STREET :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/Street');
         s_tab(s_tab.last).STUDENT_APART_NO :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ApartmentNumber');
         s_tab(s_tab.last).STUDENT_COUNTY :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/County');
         s_tab(s_tab.last).STUDENT_STATE :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/State');
         s_tab(s_tab.last).STUDENT_ZIP :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ZipCode');
    v_race := WORD_CONVERTER1('RACE',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Race')));
         v_eth := WORD_CONVERTER1('EHTNICITY',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Ethnicity')));
         v_prim_lang:= WORD_CONVERTER1('PRIMARY_LANG',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/PrimaryLanguage')));
         v_house_lang:= WORD_CONVERTER1('SECONDARY_LANG',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/HouseholdLanguage')));
         v_gender := WORD_CONVERTER1('GENDER',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Gender')));
    s_tab(s_tab.last).STUDENT_RACE := v_race;
         s_tab(s_tab.last).STUDENT_ETHNIC := v_eth;
         s_tab(s_tab.last).STUDENT_PRI_LANG :=v_prim_lang;
         s_tab(s_tab.last).STUDENT_SEC_LANG := v_house_lang;
         s_tab(s_tab.last).STUDENT_GENDER :=v_gender;
    END LOOP;
    FOR stud IN s_tab.first..s_tab.last LOOP
    INSERT INTO STUDENTS (SHISID, SSN, DOE_SCHOOL_NUMBER,PATIENT_TYPE, TEACHER, HOMEROOM,STUDENT_LAST_NAME, STUDENT_FIRST_NAME, STUDENT_MI,STUDENT_DOB,
    STUDENT_BIRTH_CERT, STUDENT_COMM,STUDENT_MUSA, STUDENT_FAMSIZE, STUDENT_FAMINCOME,STUDENT_UNINSURED, STUDENT_LUNCH, STUDENT_ZIP,STUDENT_STATE,
    STUDENT_COUNTY, STUDENT_STREET,STUDENT_APART_NO, STUDENT_PHONE, STUDENT_H2O_TYPE,STUDENT_WASTE_TRT, STUDENT_HOME_SET, STUDENT_NONHOME_SET,
    STUDENT_GENDER, STUDENT_RACE, STUDENT_ETHNIC,STUDENT_PRI_LANG, STUDENT_SEC_LANG, STUDENT_ATRISK,EMER_COND_MEMO, ASSIST_DEVICE_TYPE,
    SCHOOL_ENTER_AGE,STUDENT_CURR_GRADE, S504_ELIG_DATE, S504_DEV_DATE,S504_REV_DATE, STUDENT_504, STUDENT_IEP,IEP_EXP_DATE, GRAD_CLASS, TYPE_DIPLOMA,
    GRADE_RETAIN, LIT_PASS_TEST_MATH, LIT_PASS_DATE_MATH,LIT_PASS_TEST_WRITE, LIT_PASS_DATE_WRITE, LIT_PASS_TEST_READ,LIT_PASS_DATE_READ, SPEC_ED_ELIG,
    SPEC_ED_CODE,TRANSPORT_CODE, TRANSPORT_NO, PRIME_HANDICAP,PRIME_HANDICAP_PERCENT, PRIME_HANDI_MANAGER, FIRST_ADD_HANDI,FIRST_ADD_HANDICAP_PERCENT,
    FIRST_ADD_HANDI_504, FIRST_ADD_HANDI_504_DATE, SECOND_ADD_HANDI, SECOND_ADD_HANDICAP_PERCENT, MED_EXTERNAL_NAME, INS_TYPE, INS_PRI, INS_NAME,
    INS_MEDICAID_NO, ELIGDATE, INS_PRIV_INSURANCE, INS_APPR_BILL, INS_APPR_DATE, INS_PARENT_APPR,INS_POL_NAME, INS_POL_NO, INS_CARRIER_NO,
    INS_CARRIER_NAME, INS_CARRIER_RELATE, INS_AFFECT_DATE, INS_COPAY_OV, INS_COPAY_RX, INS_COPAY_AMBUL,INS_COPAY_EMER, INS_COPAY_OUTPAT,STUDENT_INACTIVE,
    PHYS_ID, ENCOUNTERNUM,USERID,MODDATE, STUDENT_ID, S504_DISABILITY,CHAPTER1, WELLNESS_ENROLL, SCHOOL_OF_RESIDENCE,INITIAL_IEP_DATE, CALENDAR_TRACK,
    USA_BORN,ALT_ID, FUTURE_SCHOOL, IEP_LAST_MEETING,IEP_LAST_SETTING, IEP_LAST_REFER_EVAL, THIRD_ADD_HANDI,LEP, GIFTED, IEP_EXIT_REASON,
    CASE_MANAGER_ID, INTAKE_NOTES, CALLER_PHONE,CALL_DATE, CALLER_RELATIONSHIP, CALLER_NAME,BUSINESS_PHONE, FAX, EMAIL,HIGHEST_EDUCATION, INTAKE_DATE,
    SERVICE_COORDINATOR, DISCHARGE_DATE, DISCHARGE_REASON, DISCHARGE_NOTES,INTAKE_BY, INTAKE_STATUS, IEP_LAST_SERVED_DATE,IEP_APC_DATE, IEP_EXIT_DATE,
    ADDRESS2, LEGAL_STATUS, RELIGION, EMPLOYMENT_STATUS, TARG_POP_GROUP1, TARG_POP_GROUP2, MARITAL_STATUS,THIRD_ADD_HANDI_PERCENT, LAST_INTERFACE_DATE,
    SERVICE_PLAN_TYPE,CURRENT_JURISDICTION, FIPS, BIRTH_PLACE_JURISDICTION,BIRTH_PLACE_HOSPITAL, BIRTH_PLACE_STATE, BIRTH_PLACE_COUNTRY,
    OTHER_CLIENT_NAME, SIBLINGS_WITH_SERVICES, PERM_SHARE_INFORMATION,PERM_VERIFY_INSURANCE, REFERRING_AGENCY, REFERRING_INDIVIDUAL,AUTOMATIC_ELIGIBILITY,
    INTAKE_IEP_ID, FUTURE_SCHOOL2,FUTURE_SCHOOL3, TRANSLATOR_NEEDED, TOTAL_CHILDREN_IN_HOME,REFERRED_BY, FAMILY_ID, SCREENING_CONSENT_FLAG,PICTURE_FILE,
    DUAL_ENROLLED, DOE_SCHOOL_NUMBER2)
    VALUES (123456789025, null,null ,null,null,null ,s_tab(stud).STUDENT_LAST_NAME,s_tab(stud).STUDENT_FIRST_NAME,s_tab(stud).STUDENT_MI,
    s_tab(stud).STUDENT_DOB,null ,null,null ,null,null,null,null,s_tab(stud).STUDENT_ZIP,s_tab(stud).STUDENT_STATE ,s_tab(stud).STUDENT_COUNTY,
    s_tab(stud).STUDENT_STREET,s_tab(stud).STUDENT_APART_NO,null,null,null ,null , null,
    s_tab(stud).STUDENT_GENDER ,s_tab(stud).STUDENT_RACE , s_tab(stud).STUDENT_ETHNIC,
    s_tab(stud).STUDENT_PRI_LANG ,s_tab(stud).STUDENT_SEC_LANG, null, null ,null , null,
    null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
    null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
    null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
    null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
    null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
    null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null, null,null );
    END LOOP;
    INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
    VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,DOC,'Y',NULL,SYSDATE);
    HTP.HTMLOPEN;
    v_success:= 'The values from the .XML file have been successfully inserted into the STUDENTS table in the Oracle Database.';
    htp.bold(v_success);
    HTP.HTMLCLOSE;
    COMMIT;
    -- Free any resources associated with the document now it that it is no longer needed.
    xmldom.freeDocument(v_doc);
    EXCEPTION
    WHEN OTHERS THEN
    l_error_code := SQLERRM;
    INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
    VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,nvl(DOC,TO_CLOB('No .XML file entered, user pressed button without entering correct information.')),'NO',l_error_code,SYSDATE);
    HTP.HTMLOPEN;
    v_failure:= 'The attempt made to insert files to the Student table has failed because,'||l_error_code;
    htp.bold(v_failure);
    HTP.HTMLCLOSE;
    COMMIT;
    END STUDLOAD;
    PROCEDURE UPDSTUDLOAD (DOC CLOB) IS
    v_parser xmlparser.Parser;
    v_doc xmldom.DOMDocument;
    v_nl xmldom.DOMNodeList;
    v_n xmldom.DOMNode;
    v_mm NUMBER;
    v_dd NUMBER;
    v_yyyy NUMBER;
    v_DATE DATE;
    v_race VARCHAR2(1);
    v_eth VARCHAR2(1);
    v_prim_lang VARCHAR2(1);
    v_house_lang VARCHAR2(1);
    v_gender VARCHAR2(1);
    TYPE stuxml_type IS TABLE OF STUDENTS%ROWTYPE;
    s_tab stuxml_type := stuxml_type();
    v_success VARCHAR2(200);
    v_failure VARCHAR2(200);
    l_error_code varchar2(200);
    BEGIN
    -- Create a parser.
    v_parser := xmlparser.newParser;
    xmlparser.setValidationMode(v_parser, FALSE);
    -- Parse the document and create a new DOM document.
    SYS.XMLPARSER.PARSECLOB ( v_parser, DOC );
    v_doc := SYS.XMLPARSER.getDocument(v_parser);
    -- Free resources associated with the Parser now it is no longer needed.
    xmlparser.freeParser(v_parser);
    -- Get a list of all the STUD nodes in the document using the XPATH syntax.
    v_nl := xslprocessor.selectNodes(xmldom.makeNode(v_doc),'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent');
    -- Loop through the list and create a new record in a table collection for each STUD record.
    FOR stud IN 0 .. xmldom.getLength(v_nl) - 1 LOOP
    v_n := xmldom.item(v_nl, stud);
    s_tab.extend;
    -- Use XPATH syntax to assign values to he elements of the collection.
    s_tab(s_tab.last).STUDENT_LAST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/LastName');
         s_tab(s_tab.last).STUDENT_FIRST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/FirstName');
         s_tab(s_tab.last).STUDENT_MI :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/MiddleName');
         v_dd := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Day');
         v_mm := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Month');
    v_yyyy := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Year');
         v_DATE := TO_DATE(v_mm||' '||v_dd||' '||v_yyyy,'MMDDYYYY');
         s_tab(s_tab.last).STUDENT_DOB := v_date;
         s_tab(s_tab.last).STUDENT_STREET :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/Street');
         s_tab(s_tab.last).STUDENT_APART_NO :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ApartmentNumber');
         s_tab(s_tab.last).STUDENT_COUNTY :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/County');
         s_tab(s_tab.last).STUDENT_STATE :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/State');
         s_tab(s_tab.last).STUDENT_ZIP :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ZipCode');
    v_race := WORD_CONVERTER1('RACE',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Race')));
         v_eth := WORD_CONVERTER1('EHTNICITY',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Ethnicity')));
         v_prim_lang:= WORD_CONVERTER1('PRIMARY_LANG',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/PrimaryLanguage')));
         v_house_lang:= WORD_CONVERTER1('SECONDARY_LANG',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/HouseholdLanguage')));
         v_gender := WORD_CONVERTER1('GENDER',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Gender')));
    s_tab(s_tab.last).STUDENT_RACE := v_race;
         s_tab(s_tab.last).STUDENT_ETHNIC := v_eth;
         s_tab(s_tab.last).STUDENT_PRI_LANG :=v_prim_lang;
         s_tab(s_tab.last).STUDENT_SEC_LANG := v_house_lang;
         s_tab(s_tab.last).STUDENT_GENDER :=v_gender;
    END LOOP;
    FOR stud IN s_tab.first..s_tab.last LOOP
         UPDATE STUDENTS
         SET
         STUDENT_LAST_NAME = s_tab(stud).STUDENT_LAST_NAME,
         STUDENT_FIRST_NAME = s_tab(stud).STUDENT_FIRST_NAME,
         STUDENT_MI = s_tab(stud).STUDENT_MI,
         STUDENT_DOB = s_tab(stud).STUDENT_DOB,
         STUDENT_ZIP = s_tab(stud).STUDENT_ZIP,
         STUDENT_STATE = s_tab(stud).STUDENT_STATE,
         STUDENT_COUNTY = s_tab(stud).STUDENT_COUNTY,
         STUDENT_STREET = s_tab(stud).STUDENT_STREET,
         STUDENT_APART_NO = s_tab(stud).STUDENT_APART_NO
         WHERE SHISID = 123456789025;
    END LOOP;
    INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
    VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,DOC,'Y',NULL,SYSDATE);
    HTP.HTMLOPEN;
    v_success:= 'The updated .XML file has been successfully saved to the STUDENTS table in the Oracle Database.';
    htp.bold(v_success);
    HTP.HTMLCLOSE;
    COMMIT;
    -- Free any resources associated with the document now it that it is no longer needed.
    xmldom.freeDocument(v_doc);
    EXCEPTION
    WHEN OTHERS THEN
    l_error_code := SQLERRM;
    INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
    VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,nvl(DOC,TO_CLOB('No .XML file entered, user pressed button without entering correct information.')),'NO',l_error_code,SYSDATE);
    HTP.HTMLOPEN;
    v_failure:= 'The attempt made to insert files to the Student table has failed because,'||l_error_code;
    htp.bold(v_failure);
    HTP.HTMLCLOSE;
    COMMIT;
    END UPDSTUDLOAD;
    PROCEDURE DELSTUDLOAD (DOC CLOB) IS
    v_parser xmlparser.Parser;
    v_doc xmldom.DOMDocument;
    v_nl xmldom.DOMNodeList;
    v_n xmldom.DOMNode;
    v_mm NUMBER;
    v_dd NUMBER;
    v_yyyy NUMBER;
    v_DATE DATE;
    TYPE stuxml_type IS TABLE OF STUDENTS%ROWTYPE;
    s_tab stuxml_type := stuxml_type();
    v_success VARCHAR2(200);
    v_failure VARCHAR2(200);
    l_error_code varchar2(200);
    BEGIN
    -- Create a parser.
    v_parser := xmlparser.newParser;
    xmlparser.setValidationMode(v_parser, FALSE);
    -- Parse the document and create a new DOM document.
    SYS.XMLPARSER.PARSECLOB ( v_parser, DOC );
    v_doc := SYS.XMLPARSER.getDocument(v_parser);
    -- Free resources associated with the Parser now it is no longer needed.
    xmlparser.freeParser(v_parser);
    -- Get a list of all the STUD nodes in the document using the XPATH syntax.
    v_nl := xslprocessor.selectNodes(xmldom.makeNode(v_doc),'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent');
    -- Loop through the list and create a new record in a table collection for each STUD record.
    FOR stud IN 0 .. xmldom.getLength(v_nl) - 1 LOOP
    v_n := xmldom.item(v_nl, stud);
    s_tab.extend;
    -- Use XPATH syntax to assign values to he elements of the collection.
    s_tab(s_tab.last).STUDENT_LAST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/LastName');
         s_tab(s_tab.last).STUDENT_FIRST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/FirstName');
         s_tab(s_tab.last).STUDENT_MI :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/MiddleName');
         v_dd := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Day');
         v_mm := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Month');
    v_yyyy := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Year');
         v_DATE := TO_DATE(v_mm||' '||v_dd||' '||v_yyyy,'MMDDYYYY');
         s_tab(s_tab.last).STUDENT_DOB := v_date;
         s_tab(s_tab.last).STUDENT_STREET :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/Street');
         s_tab(s_tab.last).STUDENT_APART_NO :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ApartmentNumber');
         s_tab(s_tab.last).STUDENT_COUNTY :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/County');
         s_tab(s_tab.last).STUDENT_STATE :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/State');
         s_tab(s_tab.last).STUDENT_ZIP :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ZipCode');
    END LOOP;
    FOR stud IN s_tab.first..s_tab.last LOOP
         DELETE FROM STUDENTS
         WHERE SHISID = 123456789025;
    END LOOP;
    INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
    VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,DOC,'Y',NULL,SYSDATE);
    HTP.HTMLOPEN;
    v_success:= 'The .XML file has been successfully deleted from the STUDENTS table in the Oracle Database.';
    htp.bold(v_success);
    HTP.HTMLCLOSE;
    COMMIT;
    -- Free any resources associated with the document now it that it is no longer needed.
    xmldom.freeDocument(v_doc);
    EXCEPTION
    WHEN OTHERS THEN
    l_error_code := SQLERRM;
    INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
    VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,nvl(DOC,TO_CLOB('No .XML file entered, user pressed button without entering correct information.')),'NO',l_error_code,SYSDATE);
    HTP.HTMLOPEN;
    v_failure:= 'The attempt made to insert files to the Student table has failed because,'||l_error_code;
    htp.bold(v_failure);
    HTP.HTMLCLOSE;
    COMMIT;
    END DELSTUDLOAD;
    END XMLSTUD6;

    Try opening the problem files using a text editor or file viewer to see what the first few bytes contain. All valid FM binary files for FM 11 will contain <MakerFile 11.0> in the first bytes of the file.
    When updating books, it's sometimes better to just to create a new book file and add the files to that.
    When renaming files in a book, changes at the system level will break any links/cross-references between files, so it's always best to use the Rename option in the Book file to change FM file names. This will maintain the correct linkages.

  • How to take the movies off of iPhoto and move them to my external hard drive

    My hard drive in the computer is dying. I am using time machine to back up everything to my external hard drive. However, I am not sure it will take the movies from my iphoto.
    1. When I try and export my movies from Iphoto to my external hard drive it only allows me to export as jpeg not .mov
    2. When i just drag them the whole movies is not there.
    I really need help to do this asap as my computer keeps freezing and clicking now more often.
    Thank you

    To export a movie you must export it as kind is original otherwise you get the single frame JPEG preview
    and you should backup the entire iphoto library by dragging it intact as a single entity to a hard drive formatted Mac OS extended (journaled)
    LN

  • How to take the back of all the Projects from PWA 2007 to PWA 2012

    I had already created projects in PWA 2007 and i want to take the backup of all the projects in PWA 2013 .how to do that .Please reply soon.

    Hi,
    assuming you want to use Project Server 2013 (there is no 2012).
    If you want to get everything from 2007 into 2013, you should perform a migration:
    https://technet.microsoft.com/en-us/library/ee662496(v=office.15).aspx,
    https://technet.microsoft.com/en-us/library/ff603507(v=office.15).aspx, and
    https://technet.microsoft.com/en-us/library/ff603507(v=office.15).aspx#section3
    If you only need to get certain projects, you can save them as local file from 2007 and re-save them to 2013.
    Does that help?
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

  • I use a bluetooth headset with iPhone 5 but when I ask Siri to read my email she says I must unlock my phone first.  If I take the phone out of my pocket I might as well just read the email then.  Is there a way to fix this?

    I use a bluetooth headset with iPhone 5 but when I ask Siri to read my email she says I must unlock my phone first.  If I take the phone out of my pocket I might as well just read the email from the phone screen.  Is there a way to fix this so the phone doesn't have to be unlocked?

    Apple, as I'm sure you know, now manage official phone 'unlocks' directly rather than the Newtork doing so.
    When a GSM Network Provider buys a consignment of iPhone's they are locked to that carrier and may only be officially unlocked if said carrier requests it. If so, it is Apple who do this, via iTunes.
    I am therefore inclined to think that part of the any generic iTunes syncing process involves the transmission of key hardware data, including IMEI, to Apple whenever the handset is synced.
    If this is the case and, as each iTunes account is linked to a credit card, were Apple to maintain a database of genuinely stolen phones (ones reported to Police) they could advise said Police force when a stolen phone stuck its metaphorical head over the parapets once again? They would be able to identify the name & address of the new user.
    I have spoken to the Police here in Ireland today and they regularly engage with Apple on such matters.
    This may not be tracking as we know it Jim, (not using GSM Triangulation or GPS) but it's arguably even more targetted and leaves an indelible fingerprint of guilt on the thief.
    The laws here are simple in this regard, if you are in possession of stolen property, knowlingly or otherwise, you forfeit the goods once the Police show up. Whether you get prosecuted depends on whether you stole the goods or were duped into purchasing them.

  • How to take the values from a  String ( CSV   values).

    Hi All,
    I am passing csv String to a procedure as in parameter,but I have to take the values from a csv String one by one.Please let me know Is there any StringTokenizer function in oracle to take values like in java. Here is my javacode.
    import java.util.StringTokenizer;
    public class Sample {
         public static void main(String[] args) {
              String s="one,two,three,four,five";
              StringTokenizer stringTokenizer=new StringTokenizer(s,",");
              System.out.println( stringTokenizer.countTokens());
              System.out.println(stringTokenizer.hasMoreTokens());
              while(stringTokenizer.hasMoreTokens()){
                        System.out.print(stringTokenizer.nextToken());
    o/p: one two three four five

    Something based around one of these two methods should assist...
    select substr( the_string 
                  , decode( level, 1, 1, instr(the_string,',',1,level-1)+1)
                  , decode( instr(the_string,',',1,level), 0, length(the_string), instr(the_string,',',1,level) - decode( level, 1, 0, instr(the_string,',',1,level-1))-1)
                  ) the_value
                  from ( select '10,12,20,30,30,3,12,12,56' the_string
                         from dual
                  connect by level < length(replace(translate(the_string,'01234567890','00000000000'),'0')) + 2
    or
    SQL> select REGEXP_SUBSTR ('a,b,c,d,e', '[^,]+', 1, level) from dual connect by level<=5
      2  /
    REGEXP_SU
    a
    b
    c
    d
    e
    SQL>

  • Billing - iTunes doesn't try and take the money from my a/c. It takes me to the generic support home page instead.

    I had a problem with my bank account going overdrawn a few weeks ago (caused by a 3rd party taking money from my a/c and putting it overdrawn). An amount of $1.06 is showing as owed on my iTunes billing. There is money in my bank account now. When I try to download an update or a free app I get redirected to update my billing info. My debit card is the same number as before, the only difference is there is money in the acccout now. For some reason when I update my billing info using the same card number instead of Apple trying to take the $1.06 out of my account it directs me to the iTunes support home page which shows all the differnt countries flags.
    From what I can see there are no answers to my specific problem in the forums and as far as I know Apple doesn't offer a human being to talk with to get it sorted.
    Does anybody have any ideas how I could resolve this? I'm very frustrated with it that's for sure.

    If you mean that you are getting a message to contact iTunes Support then you can do so via this link and ask them for help : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    But as far as I know debit cards are no longer accepted as a valid payment method - they are not listed on this page and there have been a number of posts recently about them being declined

  • I had thought AT&T was bad but Verizon now TAKES THE CAKE!!!

    Been nightmarish as all I want is a dial tone and internet!!!! Verizon doesn't seem to want or be able to do that!!! 
    About 3 weeks ago or so,  the nice young man standing on my porch convinced me (again after a previous nightmare experience) to switch to FIOS as the copper lines would soon be unserviceable. Scheduled for FIOS install and agreed to a noon to Pm arrival of the Tech. Online the service ticket changes previously listed  arrival to  4-Pm then it changes to 5-Pm. Tech calls at 6m say tied up in traffic and will take 40 mins to arrive. I had to leave so I told him forget it and finally got a call a few days later and put order on hold to explore my options as I was fed up with Verizon. So at this point a couple of hours on the phone and a days wages lost because had to take off from work and the nice lady says to insist on a Verizon tech. next time and not a contractor?!?!?
    Now here on the 6/11 NO DIALTONE but DSL OK. Now with over an hour on the phone I finally get to a point of placing a service order. This was after telling them OVER 10 TIMES I AM ON COPPER>>>NOT FIOS. after numerous transfers and then to the "copper dept" I set a service call for 8-11am on 6/12. (remember I now have said COPPER over 10 times). Patricia calls from service to verify and she was very snarky & snotty and did not want to hear COPPER! So on Wed AM guess who shows up??? A FIOS TECH!!!! Can't help me! Online and all the rep's saying FIOS, FIOS ,FIOS and I keep saying COPPER, COPPER, COOPER!
    Now....another HOUR + after all the xfers and holds on the phone, I finally get through that I need a COPPER tech. and one is scheduled for this AM between 8-noon. The tech calls at 9:20 and I explain the situation to him. He checks it out an calls me back and says that he can't help me as they disconnected my COPPER because the account shows FIOS (remember FIOS NEVER installed). The tech (Jose) was decent to deal with and instructs me that I need to CANCEL FIOS and tell them I have a phone on copper and to re-activate on copper and there was nothing he could do. I pleaded with him to please fix it from his end so I didn't have to go through more Verizon phone nightmare but alas he was unable to help. I don't curse but I am thinking about it and will soon be doing it profusely after my ensuing encounter with Verizon.
    This now takes the cake!!!! So I call and go through all the gyrations explaining the issue and end back up in the sales Dept. Get this now....here it comes......I now have to cancel ALL service and open a totally new account. I now have to Re-establish credit and this after being a customer with the same phone number for OVER 40 YEARS and always paid the bill even with the Verizon billing screwups during the years!!!! I now am REALLY **bleep** as I have to give my DOB and SSN over the phone which I really protest as I am an existing customer with Verizon wireless too!!! I went round and round with the very nice and patient lady (Angela) and asked if there were any way to go to a Dept. head or someone in authority to wave a magic wand and just simply AUTHORIZE the RE-ESTABLISHMENT of the service I had up to the 11th? She tells me nobody has a magic wand and this is the way the system works. Now to add to this I reminded her that I had wireless and had a "One bill" and Uh-Oh....this adds another layer of complexity to the situation and they might not be able to do it,
    So now bottom line now as a result of dealing with the monolith Verizon and going with their suggestion and where one hand doesn't know what the other is doing. I have lost THREE DAYS OF WORK and numerous HOURS of Verizon phone hell and still have no dial tone over a simple PAIR OF WIRES!!! I am an innocent VICTIM of of gross incompetence. I know just on little customer out of the millions they have isn't important but Verizon has lost sight of customer service and have forgotten that it is easier to retain a customer than to re-gain them. They forget that a disgruntled customer can influence 10 others. I have growing business needs and be assured I won't be looking at Verizon and this will also extend to those I consult. At this point I am on a search of my options to get Verizon out of my life forever.

    Hi FishonRB,
    Please go to your profile page for the forum by clicking on your name, and look at the top of the middle column where you will find an area titled "My Private Support Cases". There you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis, as the agent may be waiting for information from you before they can proceed with any actions. Please keep all correspondence regarding your issue in the private support portal

  • HT5622 I keep getting a pop up about signing into an Icloud account. It won't take the password. I tried to log in on pc and sign in and screwed up on my security questions and it's kicked me out.. how long til I can try again?

    I am in iphone **** or better icloud ****. When I try to go ointo settings on the phone a signin prompt pops up continuously with one apple id. I think i've made it that i have a separate icloud and apple id. I am trying to delete the icloud id. I made all the passwords the same so that there should be no problem but the phone won't still take the password. So when i went in again, looking to see if I could delete the icloud, i screwed up answering my security questions and am now unable to enter that icloud id. How long til I can again? Secondly, since the phone won't accept any password, I have tried to delete it. When I do that, it come up with a request for that same password to shut of the locator service. What the heck? I'm frustrated. I just can't get the hang of apple software and itunes seems to be just as bad for me.  Any suggestions appreciated ( aside from stomping on it, I've considered it). Tried to take the battery out but not for me, mere mortal, thought might reset. Got sim card out. Whooopeeee.

    It sounds like you have the Find my iphone Activation lock for sure. Go to www.icloud.com/find and see if you put in that Apple ID that is coming up and yoru password to see if you are able to sign into the account that way to turn it off. If you are unable to, you will have to contact AppleCare by phone (chat cannot handle account lock outs or forgotten password due to not being able to verify your identity) and see if they can reset it. And are you sure the Apple ID that is coming up yours?

Maybe you are looking for