OM Actions - PP03 Next Record Button is Disabled (Shift + F7) ?

Hi
In PP03 - OM actions
After exceuting 1001 and 1001 next i want to skip 1007 infotype
but Next record button is disabled.
when i hit back button it behaves as next record button(Shift +F7)
can anyone throw light on this please.
Edited by: raj sap hr on Sep 15, 2008 1:43 AM

have u checked the order in which the IT's are listed in T778M or OOMT

Similar Messages

  • Next record button GUI & database

    hello,
    I have a GUI that connects to a database and in the GUI I have a file menu that has first, last, prev, next on it. I want the user to be able to select either one of these words or on the image of these that are in a tool bar. i have two classes. it is a lot of code but i just need to figure out how to get to the next record under the action performed. Thank you for your time!!!
    Brian
    package Assignment2;
    import javax.swing.event.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.*;
    import java.util.Vector;
    import java.io.*;
    public class GUIDatabase extends JFrame implements ListSelectionListener, ActionListener {
    private String path = "c:/temp/assn2Files/";
    private JButton first, last, next, prev, save;
    private JTextField fn, mi, ln, t, s, y;
    private String[] title = {"analyst", "executive", "programmer", "project leader "};
    private JComboBox titleCombo = new JComboBox(title);
    private String[] department = {"Applications", "Payroll", "Accounting", "Marketing "};
    private JComboBox departmentCombo = new JComboBox(department);
    private JList pd;
    private String myArray[] = {""};
    private DbSource source = new DbSource("empdb", true);
    String action, selectedQName, selectedQDSN, selectedQString;
    private Vector vc, vc2, vc3, pdNames;
    private DbSource dbs = new DbSource("empdb", true);
    private DbSource dbs2 = new DbSource("empdb", true);
    private DbSource dbs3 = new DbSource("empdb", true);
    private DbSource dbs4 = new DbSource("empdb", true);
    public GUIDatabase() {
    super("Employee Interface");
    //set up menus
    JMenuBar menuBar = new JMenuBar();
    JMenu navMenu = new JMenu("Navigation");
    menuBar.add(navMenu);
    navMenu.add(ListeningMenuItem("First"));
    navMenu.add(ListeningMenuItem("Prev"));
    navMenu.add(ListeningMenuItem("Next"));
    navMenu.add(ListeningMenuItem("Last"));
    navMenu.add(new JSeparator());
    navMenu.add(ListeningMenuItem("Update employee record"));
    JMenu statsMenu = new JMenu("Statistics");
    menuBar.add(statsMenu);
    statsMenu.add(ListeningMenuItem("Employees per Department"));
    statsMenu.add(ListeningMenuItem("Employees per Project"));
    //menu goes on the root pane
    setJMenuBar(menuBar);
    //instantiates buttons with images instead of text
    first = new JButton(new ImageIcon(path + "First.gif"));
    last = new JButton(new ImageIcon(path + "Last.gif"));
    next = new JButton(new ImageIcon(path + "Next.gif"));
    prev = new JButton(new ImageIcon(path + "Prev.gif"));
    save = new JButton(new ImageIcon(path + "save.gif"));
    //tooltips for buttons
    first.setToolTipText("Go to First Record");
    last.setToolTipText("Go to Last Record");
    next.setToolTipText("Go to Next Record");
    prev.setToolTipText("Go to Prev Record");
    save.setToolTipText("Save File");
    //register frame to listen for buttons' action events
    first.addActionListener(this);
    last.addActionListener(this);
    next.addActionListener(this);
    prev.addActionListener(this);
    save.addActionListener(this);
    //set up toolbar and add componenets to it
    JToolBar myToolBar = new JToolBar();
    myToolBar.add(first);
    myToolBar.add(prev);
    myToolBar.add(next);
    myToolBar.add(last);
    myToolBar.add(save);
    add(myToolBar, BorderLayout.NORTH);
    //text fields
    JTextField fn = new JTextField(30);
    JTextField mi = new JTextField(30);
    JTextField ln = new JTextField(30);
    JTextField t = new JTextField(30);
    JTextField s = new JTextField(30);
    JTextField y = new JTextField(30);
    y.setEditable(false);
    //create the pd Jlist
    pdNames = new Vector();
    JList pd = new JList(pdNames);
    LabelComponent pdText = new LabelComponent("Project Description", pd);
    pd.addListSelectionListener(this);
    // pd = new JList(myArray);
    pd.setFixedCellHeight(20);
    pd.setFixedCellWidth(90);
    // pd.addListSelectionListener(this);
    //labels
    LabelComponent fnText = new LabelComponent("First Name", fn);
    LabelComponent miText = new LabelComponent("MI", mi);
    LabelComponent lnText = new LabelComponent("Last Name", ln);
    LabelComponent tCombo = new LabelComponent("Title", titleCombo);
    LabelComponent tText = new LabelComponent("Telephone", t);
    LabelComponent sText = new LabelComponent("Salary", s);
    LabelComponent dCombo = new LabelComponent("Department", departmentCombo);
    LabelComponent yText = new LabelComponent("Years in Service", y);
    // LabelComponent pdText = new LabelComponent("Project Description", pd);
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(9, 2, 1, 15));
    p1.add(fnText);
    p1.add(miText);
    p1.add(lnText);
    p1.add(tCombo);
    p1.add(tText);
    p1.add(sText);
    p1.add(dCombo);
    p1.add(yText);
    pdText.add(pd);
    // pdText.setEditable(false);
    //set layout for frame
    setLayout(new BorderLayout());
    add(p1, BorderLayout.EAST);
    add(myToolBar, BorderLayout.NORTH);
    add(pdText, BorderLayout.SOUTH);
    //set up the frame properties
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setSize(470, 550);
    setLocationRelativeTo(null);
    setVisible(true);
    if (dbs2.isConnected()) {
    boolean two = dbs2.processQuery("select e.FirstName, e.middlename, e.lastname, e.title, e.workphone, format(e.salary, 'currency'), d.departmentname, e.yearsinservice from employees e, departments d", false);
    if (two) {
    vc = new Vector();
    while (dbs2.nextRecord()) {
    vc.addElement(dbs2.getField(4));
    titleCombo = new JComboBox(vc);
    if (dbs3.isConnected()) {
    boolean three = dbs3.processQuery("select distinct(departmentname) from departments", false);
    if (three) {
    vc2 = new Vector();
    while (dbs3.nextRecord()) {
    vc2.addElement(dbs3.getField(1));
    departmentCombo = new JComboBox(vc2);
    if (dbs4.isConnected()) {
    boolean four = dbs4.processQuery("select projectdescription from projects", false);
    if (four) {
    vc3 = new Vector();
    while (dbs4.nextRecord()) {
    vc3.addElement(dbs4.getField(1));
    pd.setListData(vc3);
    if (dbs.isConnected()) {
    boolean one = dbs.processQuery("select * from employees, departments", false);
    if (one) {
    while (dbs.nextRecord()) {
    fn.setText(dbs.getField(2));
    mi.setText(dbs.getField(3));
    ln.setText(dbs.getField(4));
    titleCombo.setSelectedItem(dbs.getField(5));
    t.setText(dbs.getField(6));
    s.setText(dbs.getField(7));
    departmentCombo.setSelectedItem(dbs.getField(9));
    y.setText(dbs.getField(8));
    //project descriptions method
    /* public Vector getProjectDescription() {
    String pdSQL = "Select projectDescription from projects;";
    source.processQuery(pdSQL, true);
    //create new vector for list of project descriptions
    pdNames = new Vector();
    while (source.nextRecord()) {
    pdNames.addElement(source.getField(3));
    return pdNames;
    JMenuItem ListeningMenuItem(String label) {
    JMenuItem mi = new JMenuItem(label);
    mi.setActionCommand(label);
    mi.addActionListener(this);
    return mi;
    public void valueChanged(ListSelectionEvent e) {
    throw new UnsupportedOperationException("Not supported yet.");
    /*public void valueChanged(ListSelectionEvent e) {
    //set text boxes, state combo box
    String infoSQL = "select * from employees";
    if (source.processQuery(infoSQL, false)) {
    while (source.nextRecord()) {
    fn.setText(source.getField(1));
    mi.setText(source.getField(2));
    ln.setText(source.getField(3));
    t.setText(source.getField(4));
    // s.setSelectedItem(source.getField(5));
    y.setText(source.getField(6));
    // pd.setText(source.getField(7));
    throw new UnsupportedOperationException("Not supported yet.");
    // class for a labeled component*/
    class LabelComponent extends JPanel {
    JLabel l;
    public LabelComponent(String s, Component c) {
    setLayout(new BorderLayout());
    l = new JLabel(s);
    l.setHorizontalAlignment(SwingConstants.CENTER);
    add(l, BorderLayout.WEST);
    add(c, BorderLayout.EAST);
    public void actionPerformed(ActionEvent e) {
    //get command
    // String command = e.getActionCommand();
    // action = e.getActionCommand();
    try {
    if (e.getSource() == first){
    // new dialog(this);
    source.firstRecord();
    /*if (command.equals("Save")) {
    String updateSQL = "UPDATE Employees"
    + " SET first_name = '" + fn.getText() + "',"
    + " middle_name = '" + mi.getText() + "',"
    + " last_name = '" + ln.getText() + "',"
    + " title = '" + titleCombo.getSelectedItem().toString() + "',"
    + " work_phone = '" + t.getText() + "'"
    + " salary = '" + s.getText() + "'"
    + " department = '" + departmentCombo.getSelectedItem().toString() + "'"
    + " yearsinservice = '" + y.getText() + "'";
    // + " projectdescription = '" + pd.getSelectedItem().toString() + "'"
    // + " WHERE Customer_ID = " + IDText.getText();
    /* source.processUpdate(updateSQL);
    pd.setListData(getProjectDescription());
    } catch (Exception a) {
    System.out.println(a.toString());
    throw new UnsupportedOperationException("Not supported yet.");
    public static void main(String args[]) {
    DbSource dbs = new DbSource("empdb", true);
    if (!dbs.isConnected()) {
    System.out.println("Connection Error: " + dbs.getErrorMessage());
    System.exit(1);
    GUIDatabase m = new GUIDatabase();
    m.setVisible(true);
    m.setLocationRelativeTo(null);
    m.setDefaultCloseOperation(EXIT_ON_CLOSE);
    PHP Code:
    package Assignment2;
    import java.sql.*;
    public class DbSource {
    public ResultSet rs;
    public ResultSetMetaData rsmd;
    public String error;
    public Connection con;
    public DbSource(String b, boolean a) {
    try {
    String dataSource;
    // connect to ODBC database
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //Evaluate connection type
    if (a) {
    dataSource = "jdbc:odbc:" + b;
    } else {
    dataSource = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=" + b;
    //get connection
    con = DriverManager.getConnection(dataSource, null, null);
    } catch (Exception e) {
    error = e.toString();
    public boolean isConnected() {
    //test for connection validity
    boolean x;
    try {
    if (con == null || con.isClosed()) {
    x = false;
    } else {
    x = true;
    return x;
    } catch (SQLException e) {
    error = e.toString();
    return false;
    public boolean processQuery(String sqlSelect, boolean s) {
    //process sql statement passed along with whether to allow bidirectional scrolling
    try {
    Statement stmt;
    if (s) {
    stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    }else{
    stmt = con.createStatement();
    //Formulate ResultSet
    rs = stmt.executeQuery(sqlSelect);
    //ResultSet MetaData
    rsmd = rs.getMetaData();
    catch (SQLException e) {
    error = (e.toString());
    rs = null;
    return false;
    return true;
    public int processUpdate(String sqlStatement) {
    // process Update
    try {
    int nbr = 0;
    Statement stmt = con.createStatement();
    nbr = stmt.executeUpdate(sqlStatement);
    return nbr;
    } catch (SQLException e) {
    error = e.toString();
    return -1;
    public boolean nextRecord() {
    //proceed to next record
    try {
    if (rs.next()) {
    return true;
    } else {
    return false;
    } catch (SQLException e) {
    error = e.toString();
    return false;
    public boolean prevRecord() {
    //move cursor back one record
    boolean a = false;
    try {
    if (rs.previous()) {
    a = true;
    return a;
    } catch (SQLException e) {
    error = e.toString();
    System.out.println("Start of File");
    return false;
    public boolean firstRecord() {
    // move cursor to first record
    try {
    rs.first();
    return true;
    } catch (SQLException e) {
    error = e.toString();
    System.out.println("End of File");
    return false;
    public boolean lastRecord() {
    //move cursor to last record in result set
    try {
    rs.last();
    return true;
    } catch (SQLException e) {
    error = e.toString();
    System.out.println("End of File");
    return false;
    public String getField(int x) {
    //get field from result set
    try {
    String a = rs.getString(x);
    return a;
    } catch (Exception e) {
    error = (e.toString());
    return null;
    public String getFieldName(int x) {
    //get field name in result set
    try {
    String a = rsmd.getColumnName(x);
    return a;
    } catch (SQLException e) {
    error = e.toString();
    return null;
    public String getFieldType(int x) {
    //get field type from meta data in result set
    try {
    String a = rsmd.getColumnTypeName(x);
    return a;
    } catch (SQLException e) {
    error = e.toString();
    return null;
    public int getFieldCount() {
    //get count of columns from metadata result set
    try {
    int a = rsmd.getColumnCount();
    return a;
    } catch (SQLException e) {
    System.out.println(e.toString());
    return -1;
    public void close() {
    //close connection
    try {
    con.close();
    } catch (SQLException e) {
    public String getErrorMessage() {
    return error;
    public String[] getTables() {
    //get table metadata info
    try {
    DatabaseMetaData dbmd = con.getMetaData();
    String[] tables = {"TABLE"};
    rs = dbmd.getTables(null, null, null, tables);
    int nbrRows = 0;
    while (rs.next()) {
    nbrRows++;
    String[] tblNames = new String[nbrRows];
    rs = dbmd.getTables(null, null, "%", tables);
    nbrRows = 0;
    while (rs.next()) {
    tblNames[nbrRows] = rs.getString(3);
    nbrRows++;
    return tblNames;
    } catch (Exception e) {
    error = e.toString();
    return null;
    public String resultSetToXML() {
    //turn result set to XML formatting
    String rsToXML = "";
    try {
    rsmd = rs.getMetaData();
    // begin to write XML document
    rsToXML += ("<?xml version="1.0\"?>\r\n");
    // Root node
    rsToXML += ("<ResultSet>");
    // get metadata into XML document
    rsToXML += (" <MetaData>");
    for (int i = 1; i <= getFieldCount(); i++) {
    rsToXML += (" <Column>" + getFieldName(i) + "</Column>");
    rsToXML += (" </MetaData>");
    // get data into XML document
    rsToXML += (" <Data>");
    while (rs.next()) {
    rsToXML += (" <Row>");
    for (int i = 1; i <= getFieldCount(); i++) {
    rsToXML += (" <" + getFieldName(i) + ">"
    + rs.getString(i)
    + "</" + getFieldName(i) + ">");
    rsToXML += (" </Row>");
    rsToXML += (" </Data>");
    rsToXML += ("</ResultSet>");
    } catch (Exception e) {
    error = e.toString();
    return rsToXML;
    }

    805487 wrote:
    it is a lot of code but i just need to figure out how to get to the next record under the action performed. Thank you for your time!!!It's too much code and it's unformatted. Put tags on both sides of the code (check that it works with the preview button), then ask an exact question (none of those "I don't know what to do" ones).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Create NEXT RECORD button on form

    I want to create a NEXT RECORD and PREVIOUS RECORD button on my form. how do I do this so that the buttons are function.

    Review the discussions at
    http://forums.oracle.com/forums/search.jspa?threadID=&q=get+next+record+process&objID=f137

  • Previous and Next Record

    Is there any additional code needed to replicate the functionality of the previous and next record buttons in the standard toolbar other than the built-ins that are provided? I'm getting some weird results by just using the built-ins. Thanks!

    Well, to give you and example, when I query the first record and then press the button that uses the previous_record built-in I get the message: at first record (same as the toolbar button). However, when I press the next record button, I'll eventually get the message: field must be entered (whereas, the toolbar button will bring up the message: record must be entered or deleted first). I was wondering why the next_record built-in would bring up a different message, and how to get my button to function the same way as the one in the toolbar.

  • Connecting to a database- next field button problem

    Hi,
    I really need help. I'm creating a template where the "First Name" and "Last Name" fields automatically populates when the user clicks a "connect" button. This button will then connect to their local database. I haven't been able to find a solution on how to do this. Does anyone know how to do this? Is there a way that a user can set up their own ODBC and then the pdf will connect to that database?
    I've tried using a dummy database and connecting that to the form and the first textfield works. However, I created a "Next record" button and I can't make this work to go to the next record.I'm using a MS access database.
    I tried this formcalc stmt but it doesn't work: xfa.sourceSet.{dataconnectionname}.next()
    Can anyone help me?
    Or know how I accomplish this?
    Any help would be greatly appreciated. Thanks

    Yes this is very doable. If you want to send your form and the database to [email protected] I will have a look.

  • Refresh page with data from the Next Record in the Table through a Button

    Scenario: Record of a table “prototype” is made up of 8 columns,
    key_col,
    text_col,
    label1_col, label2_col, label3_col,
    check1_col, check2_col, check3_col,
    I have created the following items on a page:
    a) A Display Only item that is populated through a SQL query
    “SELECT text_col from prototype where rownum=key_seq.NEXTVAL “.
    b) Hidden item for the database columns “label1_col, label2_col, label3_col”
    Source type for the hidden items is of type SQL query, Source expression is:
    Select label1_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label2_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label3_col from prototype where rownum=key_seq.NEXTVAL ;
    (key_seq is a sequence).
    c) Checkbox item for the database columns “ check1_col, check2_col,check3_col"
    d) The labels for the above checkbox items are &label1_col. , &label2_col. , &label3_col.
    I have created a Save button to save the state of the checkboxes; (STATIC:;1 )
    I want the page to be refreshed with the data from the next record (Fields text_col, label1_col, label2_col, label3_col) through a “ Next” Button.
    Can I please know how I can achieve this?
    Thanks in advance

    If you need the value that is entered in the textbox as the email body, then try this..
    <html>
    <HEAD>
    <title>WebForm1</title>
    <script language="javascript">
    function mailHTML() {
    var content=document.getElementById('textBox').value;
    location.href="mailto:?body="+encodeURI(content);
    </script>
    </head>
    <body>
    <form name="theform" id="theform">
    <div name="body1"/>
    <input type="text" value="Test" id="textBox"/>
    <input type="button" value="Send Email" onClick="mailHTML()"/>
    </div>
    </form>
    </body>
    </html>

  • Disable "Delete Record" button in the NavigatorBar

    Hi,
    I am working on a JSP application. For the security reason, I'd like to disable or get rid of the "Delete Record" button in the NavigatorBar. After several tries, I still couldn't figure out how to disable or get rid of the NAVIGATE_DELETE, NAVIGATE_COMMIT, and NAVIGATE_ROLLBACK.
    Does anyone have any idea about this?
    Thanks in advance.
    Rick

    Rick,
    In the NavigatorBar Bean:
    <jsp:useBean class="oracle.jbo.html.databeans.NavigatorBar" id="test" scope="request" >
    <%
    test.setShowNavigationButtons(true); test.setReleaseApplicationResources(false); test.initialize(pageContext,"jsp_grammar_GrammarModule.DeptView");
    test.render();
    %>
    </jsp:useBean>
    SET THIS TO FALSE
    test.setShowNaigationButtons(false);
    Instead use
    test.addButton(NAVIGATE_FIRST);
    test.addButton(NAVIGATE_NEXT);
    test.addButton(NAVIGATE_NEXT_PAGE);
    and put the buttons in you want to use. Look at BaseNavigator.java for all the buttons that are available.
    Good Luck,
    Joe

  • I have disabled the next/skip button in quizes and don't remember how I did it.

    I have disabled the next/skip button in quiz and don't remember how I did it. I need to reenable it. Oh yea Captivate 7.

    Thank you for responding.
    Not sure what you mean. The master question slide looks normal and the project question slide does as well. When I launch the project the Next/skip button is grayed out and I cannot click on it. In the properties it looks the same as the other buttons.

  • Disabling actions on a radio button

    Hello,
    I need your help for implementing this behavior on a radio button:
    disable any actions on a radio button (no selection is possible) until an event is generated.
    It means that this radio buttib still waits for an event for being activated on for another for being desactivated another time?
    Any help?

    This works fine for me:
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.RadioButton;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class DisabledRadioButtonExample extends Application {
        @Override
        public void start(Stage primaryStage) {
            final RadioButton choice1 = new RadioButton("Choice 1");
            final RadioButton choice2 = new RadioButton("Choice 2");
            final ToggleGroup tg = new ToggleGroup();
            tg.getToggles().addAll(choice1, choice2);
            choice2.setDisable(true);
            final Button enableButton = new Button("Enable");
            enableButton.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent event) {
                    choice2.setDisable(false);
                    // enable button has no use any more:
                    enableButton.setDisable(true);
            final VBox root = new VBox(5);
            root.getChildren().addAll(choice1, choice2, enableButton);
            primaryStage.setScene(new Scene(root, 300, 200));
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);
    Can you post a short, complete example which demonstrates the problem?

  • How to get next record using next  button

    my database is very large and i awnt to display results 1 page at a time by keeping next button.so when i click next i should get next record.
    help me out

    Re-direct this post under relevant Developer Tools Forums.
    http://forums.oracle.com/forums/category.jspa?categoryID=19
    Regards,
    Sabdar Syed.

  • I need to have both Next & Back buttons displayed for viewing 20 records at

    Hi Everybody,
    I have a JSP page which has 2 part: The header (Selection for search with the SEARCH button) and a search result table.
    Is it possible to remember the last record printed & start from the next record when I click on "Next" button? When I click on the "Next" button will it create new page? I need to have both Next & Back buttons displayed for viewing 20 records at a time.
    The current JSP is using "session.removeAttribute("XXXWorkItemVector") to print out records.
    I'm very new to JAVA and JSP, so please help me with my assignment and send me e-mail to [email protected]

    Check this:
    http://forum.java.sun.com/thread.jsp?forum=45&thread=188239
    This should be of help to you.

  • Button is disabled or not in the next page

    i have a scenario i have two JSP pages in which from the first we will be redirected to the second page. in the second page we have a save button. the save button will be disabled in some conditions. if the save button is disabled then we have to keep the first page as read only. we can't modify any feilds in that.
    thanks in advance.
    please help me its very urgetn for me.
    once again thanks alot in advacne.

    Just test those conditions in the 1st page as well.

  • PP03 - Previous record, cancel record

    Hi all,
    The button "prevous record" and "next record" are disable at tx PP03.
    And also the button cancel don't work, because it doesn't skip the next infotype.
    Any ideas?

    Hi,
    For eg. create object in a PD action:  The previous/next buttons are not available.  Edit object in a PD action:  The previous/next buttons are used to navigate between infotype records of the same infotype. Back/Exit/Cancel buttons:  These buttons all work the same and will just cancel the current infotype processing. The button and arrow for PD transactions differs from the behavior of the same using PA transaction such as PA40. Currently Back (F3), Exit (Shift+F3) and Cancel (F12) will just cancel
    the current infotype processing. This is how the application works for PD. Hope I could clarify your request,
    Kind regards
    Christine

  • Next / Previous button throwing an error. Please help

    I wrote this next previous button code and it is throwing an
    error. I don't understand why or what I am missing.
    I want it to show 4 records for a page. Here is my code and
    the error.
    Code:
    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfquery name="feat" datasource="#sitedatasource#"
    username="#siteUserID#" password="#sitePassword#" maxRows=4>
    SELECT feature.title AS ViewField1, feature.MYFile AS
    ViewField2, feature.ID AS ID
    FROM feature
    </cfquery>
    <cflock timeout="2" scope="application"
    type="READONLY">
    <cfset application.feat=feat>
    </cflock>
    <cfset MaxRows_feat=4>
    <cfset
    StartRow_feat=Min((PageNum_feat-1)*MaxRows_feat+1,Max(feat.RecordCount,1))>
    <cfset
    EndRow_feat=Min(StartRow_feat+MaxRows_feat-1,feat.RecordCount)>
    <cfset
    TotalPages_feat=Ceiling(feat.RecordCount/MaxRows_feat)>
    <cfset QueryString_feat=Iif(CGI.QUERY_STRING NEQ
    "",DE("&"&CGI.QUERY_STRING),DE(""))>
    <cfset
    tempPos=ListContainsNoCase(QueryString_feat,"PageNum_feat=","&")>
    <cfif tempPos NEQ 0>
    <cfset
    QueryString_feat=ListDeleteAt(QueryString_feat,tempPos,"&")>
    </cfif>
    <cflock timeout="2" scope="application"
    type="READONLY"><cfoutput query="feat"
    maxrows="4">#ViewField1#</cfoutput></cflock>
    <cfif PageNum_feat GT 1>
    <a
    href="#CurrentPage#?PageNum_feat=#Max(DecrementValue(PageNum_feat),1)##QueryString_feat#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Previous','','../img/previous-over.gif',1)"><img
    src="../img/previous.gif" alt="Previous Records" name="Previous"
    width="96" height="27" border="0" id="Previous" /></a>
    <cfif PageNum_feat LT TotalPages_feat>
    <a
    href="#CurrentPage#?PageNum_feat=#Min(IncrementValue(PageNum_feat),TotalPages_feat)##Quer yString_feat#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('next','','../img/next-over.gif',1)"><img
    src="../img/next.gif" alt="Next Record" name="next" width="96"
    height="27" border="0" id="next" /></a>
    The Error:
    Variable PAGENUM_FEAT is undefined.
    The error occurred in
    C:\Websites\x9vdzd\feature\featured.cfm: line 8
    6 : </cfquery>
    7 : <cfset MaxRows_feat=4>
    8 : <cfset
    StartRow_feat=Min((PageNum_feat-1)*MaxRows_feat+1,Max(feat.RecordCount,1))>
    9 : <cfset
    EndRow_feat=Min(StartRow_feat+MaxRows_feat-1,feat.RecordCount)>
    10 : <cfset
    TotalPages_feat=Ceiling(feat.RecordCount/MaxRows_feat)>
    I thought I had it defined! What am I missing?
    Thanks
    Phoenix

    that is strange... it should work fine - it does in my tests.
    here is somewhat updated & modified code to try. i have
    included
    comments to try and explain what is being done.
    basic logic is as follows:
    -form is submitted
    -check if file has been selected
    -try uploading new file
    -if new file upload succeeds, delete old file if it exists
    (as part of
    updating existing record, as new records obviously would not
    have any
    old image)
    -update/insert record data as necessary
    here's the code:
    <cfif isdefined("form.feat_OK")><!--- form submitted
    --->
    <!--- set file uploading vars --->
    <cfparam name="fileuploaded" type="boolean"
    default="false">
    <cfparam name="uploadedfile" default="">
    <cfset pathToFile = "c:\websites\x9vdzd\img\feature\">
    <!--- --->
    <cfif len(trim(form.MYFile))><!--- if a file has
    been selected --->
    <!--- try uploading new file --->
    <cftry>
    <cffile Action="upload" filefield="MYFile"
    accept="image/gif,
    image/jpg, image/jpeg, image/pjpeg"
    destination="#pathToFile" nameconflict="MAKEUNIQUE">
    <cfset fileuploaded = true>
    <cfset uploadedfile = cffile.serverfile>
    <cfcatch type="any">
    <!--- if upload did not suceed, reset file uploading vars
    --->
    <cfset fileuploaded = false>
    <cfset uploadedfile = "">
    <!--- this can be further enhanced by setting some var to
    hold error
    message and return it to user --->
    </cfcatch>
    </cftry>
    </cfif>
    <cfif form.id gt 0><!--- we are updating an
    existing record --->
    <!--- if new file upload was successful and the feature
    has an image
    associated with it - delete old image --->
    <cfif fileuploaded is true AND
    len(trim(form.oldimage))>
    <cfif FileExists(pathToFile & form.oldimage)>
    <cffile action="delete" file="#pathToFile &
    form.oldimage#">
    </cfif>
    </cfif>
    <cfquery datasource="#sitedatasource#"
    username="#siteUserID#"
    password="#sitePassword#">
    UPDATE feature
    SET
    feature.title=<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#form.title#">,
    feature.Body=<cfqueryparam cfsqltype="cf_sql_longvarchar"
    value="#form.PDSeditor#">,
    feature.MYFile=<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#uploadedfile#" null="#NOT fileuploaded#">
    WHERE ID = <cfqueryparam value="#form.ID#"
    cfsqlType="CF_SQL_INTEGER">
    </cfquery>
    <cfelse><!--- we are inserting a new record --->
    <cfquery datasource="#sitedatasource#"
    username="#siteUserID#"
    password="#sitePassword#">
    INSERT INTO feature
    (title, body, MYFile)
    VALUES
    (<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#form.title#">,
    <cfqueryparam cfsqltype="cf_sql_longvarchar"
    value="#form.PDSeditor#">,
    <cfqueryparam cfsqltype="cf_sql_varchar"
    value="#uploadedfile#"
    null="#NOT fileuploaded#">)
    </cfquery>
    </cfif>
    <!--- relocate user to previous page after insert/update
    --->
    <cflocation url="feature-manager.cfm">
    </cfif>
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • IPhone 3GS iOS 6.1.3 -  camera doesn't work. Shutter won't open & camera button becomes disabled. Pls advise what to do? I have already tried resetting the phone several times.

    iPhone 3GS iOS 6.1.3 -  camera doesn't work. Shutter won't open &amp; camera button becomes disabled. Pls advise what to do? I have already tried resetting the phone several times.

    Hello Kunmon,
    The following article provides some useful troubleshooting that can help get your iPhone's camera working correctly.
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    My issue is still not resolved. What do I do next?
    Contact Apple Support.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Cheers,
    Allen

Maybe you are looking for

  • Share my Itunes Library between my PC desktop and my PC Laptop

    What is the easiest way to share my complete Itunes library direstly between my PC desktop and my laptop? I do have an external hard drive that I can save it to first. Do I also need to authorize my laptop? Is there a cable such as an ethernet cable

  • IdeaPad U430 unmountable Boot Volume

    My Laptop is not working. When I turn it on, after Lenovo logo  I see a msg "Your PC ran in to a problem and need to restart...... search online for this error Unmountable Boot Volume." Then automatically PC go to Auto Repair but after few seconds th

  • A question about cluster of indicators

    Hi, Here is what I want to achieve: Three indicators, use cluster to change the display number Here is what I have done: 1). Creat three indicators on the front panel 2). Put them in a cluster 3). Create a local variable and change its attribute to r

  • Workflow Restart

    Hello, We are facing a problem with workflow approval. Once Shopping cart is available in the approvers inbox If approver is trying to save the shopping cart instead of approving it entire workflow getting restarted. Here I am explaining the problem

  • RFC LDAPRFC_BIND return code of -1

    RFC LDAPRFC_BIND, called from SAP FM LDAP_COMMONBIND, is generating a return code of -1.  Does anyone know what this return code signifies?