Where to place Resultset Code

Hi,
I am using MySQL and I've programmed a next and a previous button, but I'm not getting the pointer to move through the rs properly. I believe that this directly attributable to where I have coded the Resultset. At present the Next and Previous buttons both use the same inner class called NextRecord. NextRecord's constructor is where I have coded the resultset but I think this is the problem. When either button (see ButtonPanel class) is activated it starts a new instance of NextRecord (I think). While I appear to be completely inarticulate, I really need some insight to better structure my code. Here is the code:
import java.sql.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
import java.util.*;
import java.text.*;
class InputGridTest1 extends JFrame {
    private DataPanel screenvar;
    private JTextArea msgout;
    private Connection dbconn;
    private ButtonPanel control;
    private int testCount;
     InputGridTest1 () {     // 1
        super("Using MySQL");
        setSize(600, 500);  // width, height
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        // Set up GUI environment
        Container mainForm = getContentPane();          
        screenvar = new DataPanel();                    
        msgout = new JTextArea( 8, 40 );               
        mainForm.setLayout( new FlowLayout() );
        mainForm.add( new JScrollPane( screenvar ) );     
        mainForm.add( new JScrollPane( msgout ) );
       // Set up database connection
       try {
          String url = "jdbc:mysql://xx.xxx.xx.xxx/test?  user=abc&password=efg";
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          dbconn = DriverManager.getConnection( url );
       catch ( ClassNotFoundException cnfex ) {
       // process ClassNotFoundExceptions here
       cnfex.printStackTrace();
       msgout.append( "Connection unsuccessful\n" +
       cnfex.toString() );
       catch ( SQLException sqlex ) {
       // process SQLExceptions here
      sqlex.printStackTrace();
      msgout.append( "Connection unsuccessful\n" +
      sqlex.toString() );
      catch ( Exception excp ) {
     // process remaining Exceptions here
    excp.printStackTrace();
    msgout.append( excp.toString() );
     // Add Find, Add, Update, and Clear buttons
     ButtonPanel controls = new ButtonPanel( dbconn, screenvar,   msgout);
     mainForm.add(controls);
     }     // 1
    public static void main(String[] arguments) {
        InputGridTest1 gridTest1 = new InputGridTest1();
        gridTest1.show();
    class NextRecord implements ActionListener {     // 100
       private DataPanel screenvar;
       private JTextArea msgout;
       private Connection dbconn;
       ResultSet rs = null;
       public NextRecord( Connection dbc, DataPanel scv, JTextArea msg ) {
       dbconn = dbc;
       screenvar = scv;
       msgout = msg;
       try {     // 2
          Statement statement =dbconn.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
          String query = "SELECT * FROM addresses ";
          msgout.append( "\nSending query: "   +
          dbconn.nativeSQL( query ) + "\n" );
          rs = statement.executeQuery( query );
//NOTE: is this part of the problem?
    //             statement.close();
          } // 2
          catch ( SQLException sqlex ) {     // 3
          msgout.append( sqlex.toString() + sqlex.getMessage() );
          }     // 3
          }     // 200
          public void actionPerformed( ActionEvent e ) {     // 300
               String command = e.getActionCommand();
               if (command.equals("Next")){
                 try {
                    rs.next();
                 catch ( SQLException sqlex ) {
                 msgout.append( "\n*** Next: This does not work!   ***\n" );
                 display(rs);
               if (command.equals("Previous")){
                 try {
                 rs.previous();
                 msgout.append("Ivebeenevaluated!");
                 catch ( SQLException sqlex ) {
                 msgout.append( "\n*** Previous: This does not work!  ***\n" );
                 display(rs);
                }     // 300
            public void display( ResultSet rs ) { // 100
               try {
                   int recordNumber = 1;
                   if ( recordNumber == 1 ) {
                   screenvar.first.setText( rs.getString( 1 ) );
                   screenvar.last.setText( rs.getString( 2 ) );
                   screenvar.address.setText( rs.getString( 3 ) );
                   screenvar.city.setText( rs.getString( 4 ) );
                   screenvar.state.setText( rs.getString( 5 ) );
                   screenvar.zip.setText( rs.getString( 6 ) );
                else
                msgout.append( "\nNo record found\n" );
               catch ( SQLException sqlex ) {
               msgout.append( "\n*** Phone Number Not In Database   ***\n" );
}     // 100
// end of working code
class DataPanel extends JPanel {     // This class needs to be at end
   JTextField id, first, last, address, home, city, state, zip,
      country, email, fax;
   JLabel lfirst, llast, laddress, lhome, lcity, lstate, lzip,
     lcountry, lemail, lfax;
   public DataPanel() {
     // Label panel
      JPanel labelPanel = new JPanel();
      labelPanel.setLayout(new GridLayout( 10, 1 ) );
     lfirst = new JLabel( "First Name:", 0 );
     labelPanel.add( lfirst);
     llast = new JLabel( "Last Name:", 0 );
     labelPanel.add( llast);
     lhome = new JLabel( "Phone:", 0 );
     labelPanel.add( lhome);
     laddress = new JLabel( "Address:", 0 );
     labelPanel.add( laddress);
     lcity = new JLabel( "City:", 0 );
     labelPanel.add( lcity);
     lstate = new JLabel( "State:", 0 );
     labelPanel.add( lstate);
     lzip = new JLabel( "Zip Code:", 0 );
     labelPanel.add( lzip);
     lcountry = new JLabel( "Country:", 0 );
     labelPanel.add( lcountry);
     lemail = new JLabel( "Email:", 0 );
     labelPanel.add( lemail);
     lfax = new JLabel( "Fax Number:", 0 );
     labelPanel.add( lfax);
      // TextField panel
      JPanel screenvarPanel = new JPanel();
      screenvarPanel.setLayout(
         new GridLayout( 10, 1 ) );
      id = new JTextField( 20) ;
       first = new JTextField( 20 );
      screenvarPanel.add( first );
      last = new JTextField( 20 );
      screenvarPanel.add( last );
       home = new JTextField("Enter number-click Find", 20);
       screenvarPanel.add( home );
       address = new JTextField( 20 );
      screenvarPanel.add( address );
      city = new JTextField( 20 );
      screenvarPanel.add( city );
      state = new JTextField( 20 );
      screenvarPanel.add( state  );
      zip = new JTextField( 20 );
      screenvarPanel.add( zip );
      country = new JTextField( 20 );
      screenvarPanel.add( country );
      email = new JTextField( 20 );
      screenvarPanel.add( email );
      fax = new JTextField( 20 );
      screenvarPanel.add( fax );
      setLayout( new GridLayout( 1, 2 ) );
      add( labelPanel );
      add( screenvarPanel );
class ButtonPanel extends JPanel {     // This class needs to be at end
   public ButtonPanel( Connection dbc, DataPanel scv,
      JTextArea msg ) {
      setLayout( new GridLayout( 1, 4 ) );
       JButton nextRec = new JButton( "Next" );
       nextRec.addActionListener( new NextRecord( dbc, scv, msg ) );
       add( nextRec );
       JButton prevRec = new JButton( "Previous" );
       prevRec.addActionListener( new NextRecord( dbc, scv, msg ) );
       add( prevRec );
       JButton exit = new JButton( "Exit" );
          exit.addActionListener(new ActionListener() { // 1
               public void actionPerformed(ActionEvent e) {     // 2
                 msgout.append( "\n*** This is the Exit Button ***\n" );
                 System.exit(0);
               }     // 2
       });     // 1
       add( exit );
}

Thank you for your reply. I am still pretty new to Java and while I understand conceptually what you are saying, I am having a hard time putting it into practice. So I am hoping that you will bear with me and give me the benefit of your experience. I have created a new object called myConnection which will contain the ResultSet and the next and previous methods. I am lost when it comes to the ButtonPanel constructor, where I have to put a reference to the myConnection object, and how to get the actionlisteners to activate. When I implement actionlistener with myConnection I get an error message that refers to the abstract nature of the object becuase there is no actionperformed() there. Do the next() and previous() methods need to be called by the actionperformed()?
Thanks,
Steve (newbies arghhh!!)
//BEGIN connection object
class myConnection {
     private DataPanel screenvar;
     private JTextArea msgout;
     private Connection dbconn;
     ResultSet rs = null;
     public myConnection( Connection dbc, DataPanel scv, JTextArea msg ) { // 200
    dbconn = dbc;
    screenvar = scv;
    msgout = msg;
          try {     // 2
                  Statement statement =dbconn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                String query = "SELECT * FROM addresses ";
               msgout.append( "\nSending query: "   +
                  dbconn.nativeSQL( query ) + "\n" );
               rs = statement.executeQuery( query );
                 rs.last();
                 statement.close();
              } // 2
         catch ( SQLException sqlex ) {     // 3
                     msgout.append( sqlex.toString() + sqlex.getMessage() );
                  }     // 3
     }     // 200
      public void next() {
          rs.next();
          display(rs);
      public void previous() {
          rs.previous();
          display(rs);
      public void display( ResultSet rs ) { // 100
         try {
            int recordNumber = 1;
            if ( recordNumber == 1 ) {
               screenvar.first.setText( rs.getString( 1 ) );
               screenvar.last.setText( rs.getString( 2 ) );
               screenvar.address.setText( rs.getString( 3 ) );
               screenvar.city.setText( rs.getString( 4 ) );
               screenvar.state.setText( rs.getString( 5 ) );
               screenvar.zip.setText( rs.getString( 6 ) );
            else
               msgout.append( "\nNo record found\n" );
       catch ( SQLException sqlex ) {
          msgout.append( "\n*** Phone Number Not In Database ***\n" );
// BEGIN button class
class ButtonPanel extends JPanel {     // This class needs to be at end
   public ButtonPanel( Connection dbc, DataPanel scv,
      JTextArea msg ) {
      setLayout( new GridLayout( 1, 4 ) );
//  this is where I need to refer to the myConnection class
// I'm lost here
       JButton nextRec = new JButton( "Next" );
       nextRec.addActionListener( new myConnection( dbc, scv, msg ) );
       add( nextRec );
       JButton prevRec = new JButton( "Previous" );
       prevRec.addActionListener( new myConnection( dbc, scv, msg ) );
       add( prevRec );

Similar Messages

  • Where to place java code in webdynpro for communicating between views

    Hi Friends,
    Where should I put the Java code on click of button for the action.
    I can out in init() method, or in teh onActon methods.
    I think suppose I have two views view1 and view2
    on click of one button on view1, user shoudl see results on another view.
    for that I think best is to put data accesing logic for view2--in onAction of view1 itself.

    I've been looking at my examples,  you can do it either way.  In one example, I have coded the logic in the Inbound Plug method on the Result view.  In another example, I am doing the logic in the onAction method when the user presses the button on the Start view.
    I'm thinking it may be better to do it in the onAction method, but it really depends on the overall functionality of the application.
    Regards,
    Rich Heilman

  • Where to Place Custom Java Code

    We are planning on adding customized Java code to Identity Manager 8; XPRESS will be used to call the customized Java code.
    Questions:
    1) Where does this customised code reside in the Java Application Server (Glassfish)?
    2) Does the customized Java code have to be packaged in a JAR file?
    Many thanks for your help.

    You would deploy custom Java code along with the IDM war/ear file. Classes go in the WEB-INF/classes/ folder, JARs in WEB-INF/lib/ and that is application server independant.
    Class files or JARs? Do you have any build process for your IDM, like the custom build environment CBE, then the source files might end up as class files; if you are using a seperate build environment for those custom classes, then packaging them in a JAR would be the way to go.
    Generally speaking, using a JAR for your custom code is neater; whether a class in classes/com/foo/bar/Foo.class or in lib/myfoobars.jar takes precedence over the other is up to the class loader and depending on your application server and its settings, the behavior might vary - so be careful about mixing use of those locations.

  • Where to put java code - Best Practice

    Hello. I am working with the Jdeveloper 11.2.2. I am trying to figure out the best practice for where to put code. After reviewing http://docs.oracle.com/cd/E26098_01/web.1112/e16182.pdf it seemed like the application module was the preferred spot (although many of the examples in the pdf are in main methods). After coding a while though, I noticed that there were quite a few libraries imported, and wondered whether this would impact performance.
    I reviewed postings on the forum, especially Re: Access service method (client interface) programmatically . This link mentions accessing code from a backing bean -- and the gist of the recommendations seems to be to use the data control to drag it to the JSF, or use the bindings to access code.
    My interest lies in where to put java code in the first place; In the View Object, Entity Object, and Am object, backing bean.....other?
    I can outline several best guesses about where to put code and the pros and cons:
    1. In the application module
    Pros: Centralized location for code makes development and support more simple as there are not multiple access points. Much like a data control centralizes services, the application module can act as a conduit for different pieces of code you have in objects in your model.
    Cons: Everything in one place means the application module becomes bloated. I am not sure how memory works in java -- if the app module has tons of different libraries are they all called when even a simple query re-execute method is called? Memory hog?
    2. Write code in the objects it affects. If you are writing code that accesses a view object, write it in a view object. Then make it visible to the client.
    pros: The code is accessed via fewer conduits (for example, I would expect that if you call the application module from a JSF backing bean, then the application module calls the view object, you have three different pieces of code --
    conts: The code gets spread out, harder to locate etc.
    I would greatly appreciate your thoughts on the matter.
    Regards,
    Stuart
    Edited by: Stuart Fleming on May 20, 2012 5:25 AM
    Edited by: Stuart Fleming on May 20, 2012 5:27 AM

    First point here is when you say "where to put the java code" and you're referring to ADF BC, the point is you put "business logic java code" in the ADF Business Components. It's fine of course to have Java code in the ViewController layer that deals with the UI layer. Just don't put business logic in the UI layer, and don't put UI logic in the model layer. In your 2 examples you seem to be considering the ADF BC layer only, so I'll assume you mean business logic java code only.
    Meanwhile I'm not keen on the term best practice as people follow best practices without thinking, typically best practices come with conditions and people forget to apply them. Luckily you're not doing that here as you've thought through the pros and cons of each (nice work).
    Anyway, back on topic and off my soap box, as for where to put your code, my thoughts:
    1) If you only have 1 or 2 methods put it in the AppModuleImpl
    2) If you have hundreds of methods, or there's a chance #1 above will morph into #2, split the code up between the AppModuleImpl, ViewImpl and ViewRowImpls. Why? Because your AM will become overloaded with hundreds of methods making it unreadable. Instead put the code where it should logically go. Methods that work on a specific VO row go into the associated ViewRowImpl, methods that work across rows in a VO go into the ViewImpl, and methods that work across VOs in the associated AppModuleImpl.
    To be honest which you ever option you choose, one thing I do recommend as a best practice is be consistent and document the standard so your other programmers know.
    Btw there isn't an issue about loading lots of libraries/imports into a class, it has no runtime cost. However if your methods require lots of class variables, then yes this will have a memory cost.
    On a side note if you're interested in more ideas around how to build ADF apps correctly think about joining the "ADF EMG", a free online forum which discusses ADF architecture, best practices (cough), deployment architectures and more.
    Regards,
    CM.

  • Architecture question...where to put the code

    Newbie here, so please be gentle and explicit (no detail is
    too much to give or insulting to me).
    I'm hoping one of you architecture/design gurus can help me
    with this. I am trying to use good principals of design and not
    have code scattered all over the place and also use OO as much as
    possible. Therefore I would appreciate very much some advice on
    best practices/good design for the following situation.
    On my main timeline I have a frame where I instantiate all my
    objects. These objects refer to movieClips and textFields etc. that
    are on a content frame on that timeline. I have all the
    instantiation code in a function called initialize() which I call
    from the content frame. All this works just fine. One of the
    objects on the content frame is a movieClip which I allow the user
    to go forward and backward in using some navigation controls.
    Again, the object that manages all that is instantiated on the main
    timeline in the initialize() function and works fine too. So here's
    my question. I would like to add some interactive objects on some
    of the frames of the movieClip I allow the user to navigate forward
    and backward in (lets call it NavClip) . For example on frame 1 I
    might have a button, on frame 2 and 3 nothing, on frame 4 maybe a
    clip I allow the user to drag around etc. So I thought I would add
    a layer to NavClip where I will have key frames and put the various
    interactive assets on the appropriate key frames. So now I don't
    know where to put the code that instantiates these objects (i.e.
    the objects that know how to deal with the events and such for each
    of these interactive assets). I tried putting the code on my main
    timeline, but realized that I can't address the interactive assets
    until the NavClip is on the frame that holds the particular asset.
    I'm trying not to sprinkle code all over the place, so what do I
    do? I thought I might be able to address the assets by just
    providing a name for the asset and not a reference to the asset
    itself, and then address the asset that way (i.e.
    NavClip["interactive_mc"] instead of NavClip.interactive_mc), but
    then I thought that's not good since I think there is no type
    checking when you use the NavClip["interactive_mc"] form.
    I hope I'm not being too dim a bulb on this and have missed
    something really obvious. Thanks in advance to anyone who can help
    me use a best practice.

    1. First of all, the code should be:
    var myDraggable:Draggable=new Draggable(myClip_mc);
    myDraggable.initDrag();
    Where initDrag() is defined in the Draggable class. When you
    start coding functions on the timeline... that's asking for
    problems.
    >>Do I wind up with another object each time this
    function is called
    Well, no, but. That would totally depend on the code in the
    (Draggable) class. Let's say you would have a private static var
    counter (private static, so a class property instead of an instance
    property) and you would increment that counter using a
    setInterval(). The second time you enter the frame and create a new
    Draggable object... the counter starts at the last value of the
    'old' object. So, you don't get another object with your function
    literal but you still end up with a faulty program. And the same
    goes for listener objects that are not removed, tweens that are
    running and so on.
    The destroy() method in a custom class (=object, I can't
    stress that enough...) needs to do the cleanup, removing anything
    you don't need anymore.
    2. if myDraggable != undefined
    You shouldn't be using that, period. If you don't need the
    asset anymore, delete it using the destroy() method. Again, if you
    want to make sure only one instance of a custom object is alive,
    use the Singleton design pattern. To elaborate on inheritance:
    define the Draggable class (class Draggable extends MovieClip) and
    connect it to the myClip_mc using the linkage identifier in the
    library). In the Draggable class you can define a function unOnLoad
    (an event fired when myClip_mc is removed using
    myClip_mc.removeMovieClip()...) and do the cleanup there.
    3. A destroy() method performs a cleanup of any assets we
    don't need anymore to make sure we don't end up with all kinds of
    stuff hanging around in the memory. When you extend the MovieClip
    Class you can (additionally) use the onUnLoad event. And with the
    code you posted, no it wouldn't delete the myClip_mc unless you
    program it to do so.

  • Need to have option to place html code in body tag

    right now one can place code in the head tag but not the body tag.  that is a needed feature.  for example, to use a counter, like with statcounter.com, you have to place the code in the body tag (at the end they say).  that is not an option with muse.  i am told you need to use an external editor to do that.  I don't want to do that. should be able to do it through muse.  any chance of this being added soon?
    thank you,
    Victoria

    But then won't I have to parse through the entire HTML document to find out where it is linking to?

  • Ignoring the customization of Business Place & Section Code for South Korea

    Hi All,
    We are in the process of upgrading from R/34.0B to ECC6.0.
    with reference to withholding tax customization, as per ECC6.0 we have to maintain business places & section codes to post any FI document, where every time we have to enter Business Place for posting.
    But our requirement is to ignore the customization and want to go ahead with posting FI document without inputting business place or section code is there any way to by-pass this customization?
    Thanx in Advance
    Regards
    Kumar

    This is a funtional question..
    Wrong forum
    regards
    Juan

  • Where to place HTMl files in  tomcat while executing Servlets examples ?

    Hi,
    I'm learning servelets (HttpServlets). in that input is given through html files.now i dont know where to place that html file in apache tomcat server
    This is my Directry Structure
    Java's ---- C:\Program Files\Java\jdk1.5.0\bin
    Tomcat's--C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ThreeParams extends HttpServlet
    public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Reading Three Request Parameters";
    String docType ="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +"Transitional//EN\">\n";
    out.println(docType +"<HTML>\n" +"<HEAD><TITLE>" + title + "</TITLE></HEAD>\n" +"<BODY BGCOLOR=\"#FDF5E6\">\n" +"<H1 ALIGN=\"CENTER\">" + title + "</H1>\n" +"<UL>\n" +" <LI><B>param1</B>: "+ request.getParameter("param1") + "\n" +" <LI><B>param2</B>: "+ request.getParameter("param2") + "\n" +" <LI><B>param3</B>: "+ request.getParameter("param3") + "\n" +"</UL>\n" +"</BODY></HTML>");
    }HTML code ---
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD><TITLE>Collecting Three Parameters</TITLE></HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H1 ALIGN="CENTER">Collecting Three Parameters</H1>
    <FORM ACTION="ACTION="C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\root\WEB-INF\classes.ThreeParams">
    First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
    Second Parameter: <INPUT TYPE="TEXT" NAME="param2"><BR>
    Third Parameter: <INPUT TYPE="TEXT" NAME="param3"><BR>
    <CENTER><INPUT TYPE="SUBMIT"></CENTER>
    </FORM>
    </BODY></HTML>
    {code}
    servlet code is compiling without any errors, now where should i place the class file and html file in tomcat to execute this program..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    webapps\yourapplicationname\WEB-INF\

  • I have a complaint about my mac book pro being slippery. Why do these expensive computers that we as consumers purchase if you set them on a couch slip off no matter where you place them on the couch?

         Hi, my Mac Book Pro 15 inch lap top if i set it on the couch no matter where I place it slips off and luckily so far I have caught it before it falls onto the floor and gets ruined, of which I am super afraid of, due to what I initially paid for it as the consumer. Also, the couch is not made of slippery material at all. Also, when using it on my lap while watching tv, and multi tasking while doing my college homework, it even slides off of my lap at times. Why is it called a lap top then when it's not working as one? Are we to wear rubber pants that grip your products? Also, Why do you place on your Apple website that in one area a satin cover is available in the teal color, and then in another area it's discontinued? I believe it would be simpler if Apple would just remove the product all together from the purchasing website once any product becomes discontinued. Also, I was sitting here at home waiting for a reply about the satin cover in teal no longer being available period or that it has shipped, but yet I ended up calling Apple altogether myself and finding this all out that the only available color is the black. It would've been nice to have recieved an e-mail or a phone call on why it wasn't going to be shipped, or shipping instead of having to do customer services job and doing the leg work myself. Also, why is it that no one also even tells a consumer about the classes that were offered to a new consumer for 14 days after purchase of paying the $99.00s to learn about their macs of any kind? If I had known about such a program, I surely would've signed right up for it. Now I am being told that I can only take one clas at a time or something?!? I seriously wish I was told about this as a consumer of the Mac Book Pro 15 inch, because I would've purchased that offer right away, and now I am stuck and can no longer do it. Also I have had my computer since October of last year. So, I am in college as becoming a graphic designer within a degree of an Associates of Science and am now still struggling to learn the computer, and the programs I pruchased as well at the time of purchase, along with an Epson printer, the magic mouse, and the one year warranty. As for this all, I do believe that Apple needs to make a better bottom to the Mac Book Pro's within a much better quality for the price we pay as consumers, and all other lap tops and/or Notebooks in making them slide proof. The tiny rubber spots on the bottom of the lap tops or any Apple computer similar to mine just needs a better quality improvement to us consumers I spent good money on this purchase, I think now I deserve a rubberised protective cover for free for the slipperyness, and also since I was never told about the program for the classes of which a consumer  was to pay $99.00s for, I think as a good paying quality consumer for Apple's products, I now deserve these classes for free as well.
    Sincerely,
    Kim

    Hi shldr2thewheel,
         it has been a while since we have last spoke, I would like to let you know, I am still working on getting used to the switch from windows to a Mac/Apple system. I do have a new question for you, I did purchase In Design CS5.5 through journeyed.com through Cuyahoga Community College of which I attend as a student, is there a way to purchase an online book through iTunes to learn that as well? Also, you know me, the struggling student, I would also, when and if the book can be purchased through the iTunes, would need to know if you do know of a much easier book for struggling students like myself and at a reasonable price as well for the In Design CS5.5 program. Our campus bookstore had closed early, and, so did the colleges library and our local library here where I do live, so, I cannot go to either place to purchase a book or to take out a book, plus cash funds are low at this moment as well but, I do have money left on the iTunes account to use, if it can be used. So, can it be used, the iTunes money, towards finding a low priced online book? I am in great need of assistance as I have a project due for my one course for this Tuesday, September 4, 2012.
    Sincerely in need of help once again,
    Kim

  • Where to put javascript code?

    Hello,
    I am trying to set some columns in a list as "read-only" and is using the following code:
    <script type=”text/javascript”>
    function SetReadOnly()
    var elements=document.getElementById(’4_ctl00_ctl00_TextField’);
    elements.readOnly=true;
    _spBodyOnLoadFunctionNames.push(“SetReadOnly()”);
    </script>
    But I am not sure where to put the code in. Should I put it in the space in Content Editor Web Part,
    or through a link to a txt file, or in "Edit HTML"? I've tried them but none works.
    Thanks a lot!
    Patrick

    You can try this:
    1) Open your Sharepoint List. Go to List edit view.
    2) On right side of Ribbon you will find "Form Web Parts" option as shown in figure.
    3) Choose your List form which you want to edit.
    4) Now you can add web part in new window.
    5) Add Content Editor Web part.
    6) In content editor web part add the path of your "txt" file in which you have written your script, for eg.
    <!DOCTYPE html>
    <html>
    <body>
    <script type=”text/javascript”>
    function SetReadOnly()
    var elements=document.getElementById('4_ctl00_ctl00_TextField');
    elements.readOnly=true;
    _spBodyOnLoadFunctionNames.push("SetReadOnly()");
    </script>
    </body>
    </html>
    I haven't tried this method so I am not sure but hope it works...:D
    ***If my post is answer for your query please mark as answer***
    ***If my answer is helpful please vote***

  • TDS Business place & Secotion code issue

    hai,
    In FB60 we are making entry with TDS. Here business place and section code is required to fillup. If it is not maintained at the time of posting, then there will be a problem in Remittance challan creation. If we call the document which was not maintained business place & section code, it will display but not able to make the payment for this document. In this case how can make the payment for this document.
    govind.

    Hi,
    If you don't want to post tds for all transactions when u r using fb60,f-43 or f-48 then you can remove the tax type and tax codes at the time of pop up appeared for with holding tax, then system won't deduct any tds.
    Otherwise, if u r using validation, u can change the message type from error to warning.  Then system will allow u to post the data with business place or section code.
    It's not possible to anybody to cover all scenarios, if the users following all the steps properly there was no need to go for options like required entry or validation.
    To overcome this kind of problem, they should adjust something.  Otherwise this kind of problem will continue in future also.
    all the best
    Prasad

  • Where do i enter code

    I am hung up when it says to enter code from my Apple TV remote into iTunes.  I cannot find where to enter the code.

    There is no code to enter.
    Why do you believe there is?

  • How do I get an image to stay where I place it without pinning it?

    Whenever I place my logo in the top left corner it winds up in the middle. Not sure why this is doing this but I can correct this error if I pin it. Then it stays exactly where I place it, but then it does not scrolll with the rest of the page, because it is pinned. Thank you!

    Hi Russ,
    Ideally, Image should stay where you placed it. Please send your .muse file to [email protected], add this forum link and refer it to me.
    Regards,
    Aish

  • Where to place ORDER BY clause when a query includes UNION

    I have a query that has UNION in it. could you please tell me where to place the ORDER BY clause. Because it's throwing an error if i place the ORDER BY clause at the end

    Because you are using the UNION set operator, you need to either specifically list your columns or use positional notation.
    Without a set operator we can order by the column name without specifically listing it:
    SQL> select * from dual
      2  order by dummy;
    D
    X
    1 row selected.This doesn't work once you introduce a set operator:
    SQL> ed
    Wrote file afiedt.buf
      1  select * from dual union all
      2  select * from dual union all
      3  select * from dual
      4* order by dummy
    SQL> /
    order by dummy
    ERROR at line 4:
    ORA-00904: "DUMMY": invalid identifierSo you need to either use positional notation:
    SQL> ed
    Wrote file afiedt.buf
      1  select * from dual union all
      2  select * from dual union all
      3  select * from dual
      4* order by 1
    SQL> /
    D
    X
    X
    X
    3 rows selected.Or, specifically list or alias the columns you are projecting:
    SQL> ed
    Wrote file afiedt.buf
      1  select dummy from dual union all
      2  select dummy from dual union all
      3  select dummy from dual
      4* order by dummy
    SQL> /
    D
    X
    X
    X
    3 rows selected.
    SQL> ed
    Wrote file afiedt.buf
      1  select dummy as d from dual union all
      2  select dummy as d from dual union all
      3  select dummy as d from dual
      4* order by d
    SQL> /
    D
    X
    X
    X
    3 rows selected.cheers,
    Anthony

  • Marking green screen video to know where to place background images

    My students want to create short green screen movies using a number of background photos that will change as they talk about their topic. How can they mark their green screen video so they will know where to place each photo?  We are using iMovie 11.  Thanks

    If that's the case.  You don't need green screen at all.
    You can shoot the students framed in such a way as to allow room for the photos and then use Picture in Picture.
    Here's a how-to from the MacMost site.  It's for iMovie '09 but is essentially the same for iMovie '11.
    http://macmost.com/imovie-picture-in-picture.html
    Post back if you have further questions.
    Matt

Maybe you are looking for