Regarding Navigation buttons

Dear All,
I tried following code for use Navigation buttons. But it not working. It gives error "Object reference not set to instance of an object" Can anybody tell me what is wrong in that or any file want to include for that or is there another method for use Navigation buttons?
Plz suggest me how to solve this error ?
if (pVal.MenuUID == "1282" || pVal.MenuUID == "1288" || pVal.MenuUID == "1289" || pVal.MenuUID == "1290" || pVal.MenuUID == "1291")
                if (pVal.BeforeAction == false)
                        try
                            switch (pVal.MenuUID)
                                case "1288":
                                   // oForm.DataBrowser.BrowseBy = "PR_Date";
                                    oRecordSet.MoveNext();
                                    //// If reached EOF show next
                                    if (oRecordSet.EoF == true)
                                        oRecordSet.MoveLast();
                                    break;
                                case "1289":
                                    oRecordSet.MovePrevious();
                                    //// If reached EOF show previous
                                    if (oRecordSet.EoF == true)
                                        oRecordSet.MoveFirst();
                                    break;
Regards,

Dear Friend,
Plz suggest me any solution. How to use that one. Is there is another code plz give me ?
It's urjant. How to solve it ?
Regards

Similar Messages

  • Print, Export and Page Navigation Buttons in the Report

    When I view a report through CR4E, the generated report has 3 buttons namely Print, Export and Page Navigation buttons. But when I click on either of the buttons I get a 'null pointer exception'. This is a critical error as I am unable to navigate past the first page. Do I have to add code to these buttons? If not, why am I getting an error? Kindly solve my problem as soon as possible.

    <p>Looking at your code it appears that you are storing the ReportSource in session prior to passing in the ResultSet. This will create a problem when a postback is made on  the viewer page (which all of the viewer actions do). If you look at the sample code which is generated when you use the JSP Page Wizard you will notice that the ResultSet is passed to the ReportClientDocument object prior to it being stored in session. Then, when the page is called again this object is retrieved and the ReportSource is used by the viewer. You can quickly run the test using one of our sample reports to see what I am talking about. The code below was generated using the Consolidated Balance Sheet.rpt and did not experience any problems doing any of the viewer actions.</p><%@page import="com.businessobjects.samples.JRCHelperSample,<br />com.crystaldecisions.report.web.viewer.CrystalReportViewer,<br />com.crystaldecisions.reports.sdk.ReportClientDocument,<br />com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,<br />com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,<br />com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,<br />java.sql.Connection,<br />java.sql.DriverManager,<br />java.sql.ResultSet,<br />java.sql.SQLException,<br />java.sql.Statement"%><%<br /><br /><br />    try {<br /><br />        String reportName = "Sample Reports/Consolidated Balance Sheet.rpt";<br />        ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);<br /><br />        if (clientDoc == null) {<br /><br />            clientDoc = new ReportClientDocument();<br />            <br />            // Open report<br />            clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br /><br />  <br />            {<br />                // **** POPULATE MAIN REPORT ****<br />                {<br />                     // Connection Info for fetching the resultSet<br />                    String connectStr = "jdbc:derby:classpath:/Xtreme";<br />                    String driverName = "org.apache.derby.jdbc.EmbeddedDriver";<br />                    String userName = "dbuser";        // TODO: Fill in database user<br />                    String password = "dbpassword";    // TODO: Fill in valid password<br /><br />                    String query = "SELECT CUSTOMER_NAME FROM APP.CUSTOMER WHERE COUNTRY = &#39;Australia&#39;";<br /><br />                    <br />                    String tableAlias = "FINANCIALS";        // TODO: Change to correct table alias<br /><br />                     <br />                    JRCHelperSample.passResultSet(clientDoc, fetchResultSet(driverName, connectStr, userName, password, query),<br />                        tableAlias, "");<br />                }<br /><br /><br />            }<br />        <br />            // Store the report document in session<br />            session.setAttribute(reportName, clientDoc);<br /><br />        }<br /><br /><br />            {<br />                // Create the CrystalReportViewer object<br />                CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();<br /><br />                //    set the reportsource property of the viewer<br />                IReportSource reportSource = clientDoc.getReportSource();                <br />                crystalReportPageViewer.setReportSource(reportSource);<br /><br />                // set viewer attributes<br />                crystalReportPageViewer.setOwnPage(true);<br />                crystalReportPageViewer.setOwnForm(true);<br /><br />                // Process the report<br />                crystalReportPageViewer.processHttpRequest(request, response, application, null); <br /><br />            }<br />            <br /><br />    } catch (ReportSDKExceptionBase e) {<br />        out.println(e);<br />    } <br />    <br />%><%!<br />// Simple utility function for obtaining result sets that will be pushed into the report.  <br />// This is just standard querying of a Java result set and does NOT involve any <br />// Crystal JRC SDK functions. <br /><br />    private static ResultSet fetchResultSet(String driverName,<br />            String connectStr, String userName, String password, String query) throws SQLException, ClassNotFoundException {<br /><br />        //Load JDBC driver for the database that will be queried    <br />        Class.forName(driverName);<br /><br />        Connection connection = DriverManager.getConnection(connectStr, userName, password);<br />        Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);<br /><br />        //Execute query and return result sets<br />        return statement.executeQuery(query);<br /><br />}%><p>Try using the code generated from the wizard to see if it works for you as well. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

  • Document Numbering Series and navigation buttons in SBO

    Hi there,
    A new set of document numbering is created for new financial year.
    e.g. SO11-100001 is for financial year 2011 and SO12-100001 is for financial year 2012.
    Due to this setup, we have encountered a problem to use SAP navigation button to search between documents such as when I continue to click u201CNEXTu201D button, the documents would be popup in following sequence:
                    SO11-100001  SO12-100001  SO11-100002  SO12-100002  u2026u2026
    Is there a way to just navigte through SO12 series documents only?
    If I use series grouping under "Authorizations", this will totally block the previous year's documents. There may still be open docuemnts from last year and therefore, using "Authorizations" is not a wise option.
    If there is a workaround, kindly share with me.
    Thanks,
    Yadana

    hi Yadana
    in that case u can create a user query displaying the fields u want on the basis on the period indicator i.e. 2011 & 2012
    hope this would suffice your concern
    Regards,
    Manish

  • Content Player navigation buttons not working for everyone

    Hi,
    Some of the participants are experiencing the issue with Content Player navigation buttons 'Continue' , 'End Test' etc..
    We suspect it is because of the version of Java runtime environment on thier PC after eliminating the browser cache, or IE version issues.
    Could anyone please tell me what are the supported Java versions for proper functioning of LSO600 Content player?
    We are on ECC 6.0, LSO600 and SAP portal version EP7.
    Any help is highly appreciated.
    Thanks,
    Jaya

    Hello Jaya,
    java supported version is more than JRE 1.4.2._07
    and IE is IE6 and IE7
    LSO supports Java 1.4.02_07 to java 1.6
    Browsers:
    Micorsoft IE6 and IE7.
    Firefox from 2.2
    If there is more than one Java version on the pc, try forcing the browser to use a certain version of Java by going to the control panel -> Java -> in java control panel go to -> java tab -> Click view in Java Applet run time settings -> Select one of the JRE to enable it and force the browser to use this version of Java.
    Regards,
    Manny

  • Create Notification Navigation Button not working in Order Objects Tab

    Hi Gurus,
    I am having an issue in Order --> Objects tab. I want to create notification for additional  technical objects for the order. When I enter the technical object details and press enter, a "Create Notification" navigation button gets activated for that line item. But when I press that button, nothing happens. On the other hand if a select multiple line items and then press "Create Notification" button at the bottom of the line items, I am able to create notifications for the selected line items.
    Can someone help me suggest what can be the problem or suggest a Note which might restore the functionality of the "Create Notification" navigation button at the line item level.
    Thanks in advance for the help.
    Best Regards
    Vikas Hali

    Vishal,
    I dont think the Notification Create Button from line item is pretty much dependent on the Customization Settings or any sap note concerning this has not been as yet brought into my notice. In my system, this is working appropriately. The problem with this which i can think of is either an authorization issue or you should raise an oss for this.
    Regards,
    Usman

  • Creating navigation button for an iWeb websites

    I have a website I created using the hosting company's templates. I'd like to create a new website using iWeb. Regarding the basic navigation buttons, there is one button that will say, "Services" that should bring you to the main services page and also give you the option to click on a series of services. In other words, the buttons for the individual servcies should appear when you click on the mains service button. Is this possible and if so how?
    BTW, I have read that there is a new version of iLife coming out soon. Does anyone know when?
    Thanks,
    Bob
    MacBook Mac OS X (10.4.10)

    in your main timeline's first frame add your button and in the properties panel assign an instance name (eg, btn) and use:
    stop();
    btn.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event):void{
    play();

  • BUG OR IMPROVMENT: navigation buttons

    Hi
    When we use the first and last button on navigation button the behavior isn't correct.
    The last record button goes to the maximum DocNum not to the maximum DocEntry, and in the first record button has the same behavior.
    This occurs when we have several series for the same document.
    It will be usefull if we solve this little issue.
    Regards
    Vasco
    Edited by: Vasco Silva on Mar 17, 2010 3:41 PM

    Gordon
    When i am search a sales order for example, if i select the series and then click on the last record the system doesn't go to the last document of the series selected. It goes to the document with the biggest doc number.
    Regards,
    VS

  • Capturing navigation button click event

    Hi,
    Is it possible to capture the navigation button click events on a system form?For example when the goods receipt form is open and i click on navigation button on the tool bar.
    Can help with some sample codes?
    Thanks.
    Satish.

    Hi,
    Here you´ve got an example from the UI API help file.
    Private Sub SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)
        If pVal.MenuUID = "1288" Or _
            pVal.MenuUID = "1289" Or _
            pVal.MenuUID = "1290" Or _
            pVal.MenuUID = "1291" Then
          If pVal.BeforeAction = False Then
              Select Case pVal.MenuUID
                '// Under the If clause, check each item if it was clicked
                Case "1288"
                    oRecordSet.MoveNext
                    '// If reached EOF show last
                    If oRecordSet.EOF = True Then
                        oRecordSet.MoveLast
                    End If
                Case ...
                End Select
            End If
        End If
    End Sub
    To know the current form, you can use the ActiveForm property.
    Regards,
    Ibai Peñ

  • Can't see the page navigation button in flash model?

    Can't see the page navigation button in flash model? how to do it?
    Thanks in advanced!

    Hello Wei Liu,
    For both WD and flash you have the following connectors: start, end, signal in, signal out, data store and user data.
    In WD you have in addition navigate.
    In flash you have popup signal and timer.
    See also SAP Note No. 936547.
    Best regards,
    Shay

  • Non-appearing navigation buttons

    Please help...
    I have finally gotten my website published to the server, but
    the Flash navigation buttons that are in my site are not appearing
    on the pages. If you want to see what I'm talking about, please go
    to .
    www.keystonemtkg.com/index3.html
    Thanks

    but the Flash
    > navigation buttons that are in my site are not appearing
    on the pages.
    I see them at
    http://www.keystonemtkg.com/index3.html
    Win XP Pro/IE7.
    Have you cleared your browser cache?
    Regards
    John Waller

  • How to keep db session when navigating with a navigation button?

    Helllo,
    I have created a navigation button on an existing page (personalization). The destination URI = OA.jsp?page=/xxxe/oracle/apps/ar/webui/ShippingReportPG. In the existing (oracle) page, a tempory table is used. However, when navigating to my new page, the data in the temporary table does not seem to be available anymore. How can I show the data of the temporary table in my new page? Is there a possiblity to keep the same db session? Is it possible with the 'retainAM=Y' option?
    I tried with 'retainAM' in the destination URI and changed the AM of the page to the right AM, but nevertheless it did not seem to be retained. Any ideas?
    Thanks for your help.
    Best regards,
    Guy
    Edited by: user4790528 on Oct 9, 2008 3:47 AM
    Edited by: user4790528 on Oct 9, 2008 5:12 AM
    Edited by: user4790528 on Oct 9, 2008 5:47 AM

    Hi,
    Thanks for your reply!
    When navigating to my new page a new db session is started (with my own AM), but I would like to keep the same db-session and AM in my new page so that the temporary table can be used. There is no specific flush-code because it is standard Oracle functionality that the data is only visible within 1 db session. Any idea how I can retain the AM?
    Thx
    G

  • 6110 navigator button - new function?

    Can any tell me how to reprogram the "navigator button" to activate another program ... example a different mapping program.
    Regards
    Craig

    As far as I know, you can´t assign new function to that button.

  • How do I create more than one navigation button in Adobe Fireworks CS6?

    Hi guys, 
    Apologies if this comes across as very stupid question. I am a complete beginner with Adobe Fireworks and I'm in the process of creating my first website and I have got to the stage where I want to create navigation buttons and the book I have recommends using Adobe Fireworks so I have downloaded. My problem I have encountered is after I have created my first two state button what is the next step to create another two state button which has the identical size and colour of the previous two state button?
    Here is a brief rundown of the steps I have done to do the first two state button:
    1) Edit-Insert-New Button
    2) Chose the rectangle and then specified the width and height of the button and chose my stroke and fill colour
    3) Centred the button and used the text tool to put the button as a 'Home' button for my website. I then went on Window and Align in order to centre the text on the button
    4) I went on Select-Select All and then went on Windows-States to open the states panel. I right clicked on state 1 which is Up and clicked on copy to states. I then selected the next state radio button and clicked OK.
    5) I selected State 2 and slightly modified it by changing the colour of the text.
    6) I then clicked the back button to return to the main window.
    After this what step should I take to create my another button which has the same size, colour and text style as I have created for the first button? I tried just repeating these steps again but when I do step 1 it creates a new fireworks document which means I have to create the buttons size, colour, text style from scratch.
    Your help would be greatly appreciated guys and once again I do apologise if this comes across as a silly question.
    PS Please could you let me know if the steps I have taken to create the 1st two state button are correct

    Initially you need to configure via the provider's own web based control panel multiple e-mail accounts. If they don't have one, work it out with their customer support to have three distinct mail accounts. Then you can setup multiple logins by adding new accounts to mail. Since mail checks all accounts per Mac OS X user account simultaneously, it probably is best to use different usernames on the same internet provider. If you don't want mail to show all the information from all three mail accounts simultaneously, configure Apple menu -> System Preferences -> Accounts to have multiple users on your computer, and configure each of the internet service provider accounts for each separaet user on Mac OS X.
    Message was edited by: a brody

  • Adding Navigation Buttons for Users of PDF Documents

    The default for Acrobat Reader (and even the Pro version)
    seems to leave the Forward and Back navigation buttons OFF the
    Acrobat Reader tool bar. You have to deliberately go into the Tools
    - Customize Tools menu and turn on these two buttons in order for
    them to appear in the tool bar. This creates problems for readers
    of your PDF documents if the readers of your documents aren't very
    computer savy. If you have links in your PDF document so readers
    can navigate around, not having the Forward and Back buttons up on
    the tool bar as a default makes these links almost useless. The
    reader has to know how to turn these two buttons on and some
    readers may not have a clue how to do that.
    My question: Is there a way to put 2 navigation buttons on a
    reader's toolbar AUTOMATICALLY when they open your document--ie,
    something embedded in the PDF doc that automatically turns these
    buttons on for the reader so they don't have to do it
    themselves?

    Thank you for your post. These forums are specific to the
    Acrobat.com website and its set of hosted services, and do not
    cover the Acrobat family of desktop products. Please visit the
    following forums for any questions related to the Acrobat family of
    desktop products:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/

  • How can I replace navigation buttons with obvious ones?

    Here's the web page:  http://josephskibell.com/. I've just taken over this website for a friend and opened it in Dreamweaver but the code is such that the existing four little square navigation buttons at the top of the page don't show up in design view (these change the book images).  The client wanted some more "obvious" buttons there because people are not understanding that those little squares are buttons.  Arrows may work better.  Can anyone advise?
    thanks

    Open scroll_buttons.css.
    The image sprite used is here:
    http://josephskibell.com/images/navigator.png
    My advice is to make a bigger sprite and change height and width sizes in your CSS code.
    More on CSS Sprites.
    http://alt-web.com/DEMOS/CSS-Sprites.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

Maybe you are looking for

  • ITunes spontaneously closes - no error message

    I've just started having recent - but consistent - problems on my WinXP system. iTunes runs, and can see my iPod Touch. I want to add video files to it. So I select File > Add Folder to Library. I navigate to the folder containing my videos. I click

  • Unable to create database backup

    Hello, Recently I requested access to database running on SQL 2008 R2. Now I'm dbo owner and can 'insert', 'update', 'delete' and etc. Currently I have to create a backup of the database but got this error: "The EXECUTE permission was denied on the o

  • To_date function now fails

    I have a package that ran successfully for years. This morning it fails with a ORA-01858: a non-numeric character was found where a numeric was expected. It fails on the to_date function ie to_date(SYSDATE,'RRRRMMDD'). Why is it failing now and did n

  • (iTunes error 1) Can't fix it

    Hello everyone, I have an iPhone 5 on iOS 7.0.4. The phone got washed in the water, but I took it for a repair. The phone was fixed but the SIM Card wasn't recognisable, so they told me to restore the phone. When I tried to restore it I got error (1)

  • Run Microsoft Fix It tool from the cmd line?

    I have a rampant issue across the network I manage where Java installations have been corrupted. The only way that I can seem to remove the corrupted installation is to run the Microsoft Fix It tool. Since it's somewhat impractical to do this manuall