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

Similar Messages

  • Triger for display next record in oracle forms

    hai all,
    i want to do
    when new form opened i have to add new reord that is empty new form also my new rownum will be displayed.
    now i getting first record.
    like:
    GROUP_ROWNUM:     1
    GROUP_ID:      120130
    GROUP_NAME aaaaaaaaa
    need like:
    GROUP_ROWNUM:     7
    GROUP_ID:
    GROUP_NAME
    that can be done by
    trigger for display next record in oracle forms?
    or through property seting?
    thanks in adv,
    rcs
    --------

    YES, this block is base on the DB table
    through defualt navigational button i can go to next,last,new record
    but i want create seperate form for new entry, in that i want to display
    old rownum
    formula to get rownum automatically (i am not at all typing it is system generated)
    even though i created column group_rownum for rownum
    (i can't be typing)
    LAST_RECORD;
    NEXT_RECORD; also not getting the next rownum
    i hope now understand me
    any posible way?
    thank you for your good input
    i.e.
    SQL> DESC GROUP_MSTR1;
    Name Null? Type
    GROUP_ID NOT NULL NUMBER(10)
    GROUP_NAME NOT NULL VARCHAR2(30)
    SQL> select * from GROUP_MSTR1;
    GROUP_ID GROUP_NAME
    123 AAAAAA
    124 BBBBBBBB
    125 CCCCCCCCC
    126 DDDDDDDD
    1 eeeeeeee
    2 FFFFFFFFF
    3 ggggggg
    7 rows selected.
    SQL> select rownum, GROUP_ID, GROUP_NAME from GROUP_MSTR1;
    ROWNUM GROUP_ID GROUP_NAME
    1 123 AAAAAA
    2 124 BBBBBBBB
    3 125 CCCCCCCCC
    4 126 DDDDDDDD
    5 1 eeeeeeee
    6 2 FFFFFFFFF
    7 3 ggggggg
    7 rows selected.
    -------------

  • Creating next/previous buttons problem

    I am creating next & previous buttons on my main scene. I have created a scrolling photo gallery as well as a random button to randomly select images. I have a photos layer that has 15 images tagged in the AS "img1" "img2"....hopefully this all makes sense so far.
    What script can I use to easily create a next_btn. This is what I currently have
    next_btn.onRelease = function() {
        photos.gotoAndStop("img"+1);
        photos.fader.gotoAndPlay(2);
    "img"+1 goes to the "img1" however I would like it to go to the next img instead of always go to img1. I've tried _currentframe+10 (images are 10 frames apart) and some others but cannot seem to get it to work.
    I would like this to work along with the random button so that when a random image is clicked, the person can click the next button and get to the next image.
    Current script in...
    random_btn.onRelease = function(){
        var picNum:Number
        picNum = Math.ceil(Math.random()*15);
        photos.gotoAndStop("img"+picNum);
        photos.fader.gotoAndPlay(2);
    next_btn.onRelease = function() {
        photos.gotoAndStop("img"+1);
        photos.fader.gotoAndPlay(2);
    if you need any clarification let me know! thanks!

    i'll try to explain this simplier.
    scene 1 (layers)
    inside layers
    AS
    next back btn
    random btn
    photos
    displays images when clicked on from photo gallery
    scrolling photo gallery
    photo gallery + buttons for gallery
    i'm looking to create a simple < > prev and next image buttons.
    My current script from above (original post) hasn't worked out.
    random_btn.onRelease = function(){
        var picNum:Number
        picNum = Math.ceil(Math.random()*15);
        photos.gotoAndStop("img"+picNum);
        photos.fader.gotoAndPlay(2);
    next_btn.onRelease = function() {
        photos.gotoAndStop(picNum+1);
        photos.fader.gotoAndPlay(2);
    I'll take out the random_btn if need be to create just a regular next button and previous button. (i'll worry about tracking the scrolling image gallery later...one issue at a time)
    Thanks again.

  • 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

  • Robohelp 10 unable to create next/previous buttons in new TOC folder

    Suddenly I'm unable to create next/previous buttons in new TOC folder. I create folder, add pages, go to Browse sequence editor, create new Browse Sequence, generate Multiscreen HTML & when it's through no browse sequence in shown ie no next/previous buttons. Help?

    Hi there
    Silly question here. If you double-click the Responsive recipe in your Single Source Layouts folder, then click the Content section in the left panel, is/are your Browse Sequence(s) selected?
    If not, perhaps that's the problem?
    Cheers... Rick

  • 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).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Next Record in System Form

    Hi All,
    How I can move to next record (when a condition applies)?
    In other words I need the object (or sample code) that perfoms the "Next Record" in navigation menu.
    Thanks All,
    Vangelis

    Hello,
    use following statement
            SBO_Application.ActivateMenuItem("1288")
    where SBO_Application is the UI API application object.
    Rahul

  • When I move to the next record on a form it shows the entries for the previous record even though the record is actually null

    I have a form that logs fibre analysis for asbestos analaysis. Let's say I am analysisng 2 samples. I log all the details for the first sample and hit save. Now I use the scroll button to move to the next sample. When the screen refreshes all the entries for the first sample are still showing on the screen. But these are just phantom entries, when I look at the back-end database there are of course no entries against the second sample. This does not occur with any other browser.
    I have tried clearing the cache to no avail.
    Any ideas?

    Is Firefox filling the form via the cache or via saved form data?
    If this data still gets filled when "Remember search and form history" is disabled the Firefox fills it from the cache.
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": "Remember search and form history"
    In such a case a hard refresh via Ctrl + F5 might help to reset the form data.

  • Creating a 'CANCEL' button on Forms 5.0

    I would like to have a 'cancel' button right next to my 'save'
    button on a forms 5.0 application.
    The save button will:
    DO_KEY(COMMIT_FORM);
    I want the cancel button to rollback all changes to the last
    commit by that users. The problem is I don't know what code to
    place there...it seems if I use a SQL rollback that it clears
    the form...I guess this is because the button is associated with
    an anonymous datablock.
    Any help would be greatly appreciated,
    Also does anyone know of any forms templates that are around
    which may already have navigation and form control built-in....I
    would like to roll-out some templates to my team, but would like
    to get some ideas first.
    Thanks in advance...please help,
    Dennis
    P.S. I am, as you can tell by the question, just getting my feet
    wet with the Oracle Developer Toolset...can anyone recommend any
    web-resources like this discussion group that I should check
    out. I am already aware of comp.databases.oracle.tools Thanks.
    null

    Dennis,
    You cannot rollback once you have commit data unless you use
    POST (and savepoints) instead of Commit. I do not recommend
    going down this path as it can cause some major headaches down
    the road. I know it is nice to have feature but it adds some
    major time and headaches to the Project. For Templates, take a
    look at forms Demos for free stuff. For $$ stuff, Try Design
    Assist by Seeristic's. This is a product designed for Oracle
    Designer Generators but can be used by Developer only Teams. It
    has the best features I have seen. Also take a look at Peter
    Koletzke's Web Site. He, along with Paul Dorsey, has presented a
    paper on how to use templates to develop faster. I don't
    remember the address but you probably can find it if you do a
    Search on the web. (Paul's website is http://www.dulcian.com,
    Peter's Work Address is http://www.mvsn.com)
    Sunil
    daniel jensen (guest) wrote:
    : Dennis Hancock (guest) wrote:
    : : I would like to have a 'cancel' button right next to my
    'save'
    : : button on a forms 5.0 application.
    : : The save button will:
    : : DO_KEY(COMMIT_FORM);
    : : I want the cancel button to rollback all changes to the last
    : : commit by that users. The problem is I don't know what code
    : to
    : : place there...it seems if I use a SQL rollback that it
    clears
    : : the form...I guess this is because the button is associated
    : with
    : : an anonymous datablock.
    : : Any help would be greatly appreciated,
    : : Also does anyone know of any forms templates that are around
    : : which may already have navigation and form control built-
    : in....I
    : : would like to roll-out some templates to my team, but would
    : like
    : : to get some ideas first.
    : : Thanks in advance...please help,
    : : Dennis
    : : P.S. I am, as you can tell by the question, just getting my
    : feet
    : : wet with the Oracle Developer Toolset...can anyone recommend
    : any
    : : web-resources like this discussion group that I should check
    : : out. I am already aware of comp.databases.oracle.tools
    : Thanks.
    : If you look in Help, there is a built-in called POST with will
    : save changes without commiting the information to the
    database.
    : That might help you out.
    null

  • Problem in populating next record in Tabular Form

    on my Tabular form i have fields like :
    VOY_REF, VISIT_NUM, FM_PORT_CODE, TO_PORT_CODE
    when the user enter the visit number 2 i wanted to populate TO_PORT_CODE as 2nd visit's FM_PORT_CODE.
    my code is working fine when every visit been saved before entering the next visit.
    is there any way out without saving every row the user can enter all the visits and commit_form at the end?
    WHEN-VALIDATE-ITEM Trigger
    IF :TT_VOY_SCHEDULE.VISIT_NUM > 1 THEN
         DECLARE
              FMPORT VARCHAR2(5);
              CURSOR C1 IS
                  SELECT TO_PORT_CODE
                     FROM TT_VOY_SCHEDULE
                     WHERE VISIT_NUM = :TT_VOY_SCHEDULE.VISIT_NUM - 1
                     AND VOY_REF   = :TT_VOY_SCHEDULE.VOY_REF;
         BEGIN
              OPEN C1;
              FETCH C1 INTO FMPORT;
              :TT_VOY_SCHEDULE.FM_PORT_CODE := FMPORT;
              CLOSE C1;
         END;
    END IF;

    basically i'm directly calling the TO_PORT_CODE value from the table TT_VOY_SCHEDULE. after commiting the Form only the data gets saved in the table. so when i call TO_PORT_CODE from the table it gives wrong detail.
    that why once i enter a row i save the data so the table get updated. then i enter the 2nd line the information populate correct.
    on your code you mean to say that i don't need to use cursor?

  • 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.

  • 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.

  • Upload Button in forms

    Hi,
    I had created a push button in forms 10g if i click that button it should open a browse window so that i can select the image and display it in the forms can anybody tell me what is the plsql code that is to be written in when-button-click trigger

    dear bobby
    this property of button on form is available on 10g forms onwards, using webutility.
    have u installed the webutil...................
    teefu.

  • Cannot add new records through VC form when consuming IP write back query

    I have created a planning application in IP and created a Form in VC (CE 7.1). I am not able to create new records in VC Form and save it back to the cube like the traditional excel form on IP does. I have attached a document with every step that i did as a screen shot in designing my model. The writing back of data using the Form works if i have preexisting data in the planning cube and if i am only changing the values of the existing data records it works great. I could consume the planning functions that i created and they work well within VC. But if i want to create new records in a empty planning cube it gives me error unlike planning in excel analyser lets me save it back to the cube. I have tested the same query in Excel Analyser and created new records and saved it back in the cube. Any help on this is greatly appreciated.
    [http://www.mediafire.com/?sharekey=f1bc9aa662da6a86d956df2962098fcbe04e75f6e8ebb871]
    Thanks.
    Edited by: BI GUYS on Sep 28, 2009 2:00 PM

    Hi PradeeP,
    1. The BI Query itself has to support the entries of new lines. This is described in note 1149346.
    However, if the Query allows entering new lines in the BEx Analyzer, then this prerequisite is fulfilled.
    2. In the BI Query wizard in VC in the u201CChoose Presentationsu201D step, you have to include  the key presentation for the characteristics.
    If 1 and 2 are fulfilled and you still have the problem, it is strange...
    Does the problem also occur if you create new records in a cube that already shows some data in the table view?
    Regards,
    Talia

  • Button for next recording in the database

    Hello,
    I currently testing Adobe LiveCycle to create a PDF form with data link to a database (Access).
    The goal of my form is for the manager of each of our site to write variable about the paycheck of each employe. So first I create my AccessDatabase with a simple structure :
    N : Auto Number
    Matricule : Employe ID
    Nom : Name
    Prenom : First Name
    Service : Service (Accounting...)
    HeureMensuelBase : Contract hour information for the mouth
    HeureSemBase : Contract hour information for the week
    Mois : Mouth
    Annee : Year
    NbrHeureMensuelW : Write the number of hour the employe work this mouth
    NbrHeureSupp25pc : Extra hour paid 25% more
    NbrHeureSupp50pc : Extra hour paid 50% more
    NbrHeureSupp100pc : Extra hour paid 100% more
    NomPrime : Name of a special gratification
    MontantPrime : Amount of a special gratification
    So after, I create my ODBC connexion and insite AdobeLiveCycle, Data View, Create a connexion > Next > ODBC String connexion > SQL Request > SELECT * FROM Table_Access; > Next > Finish. Great I retreive all my fields. If I preview the PDF I can correctly see the first record of my database.
    My goal is to create two differents buttons to navigate inside :
    NEXT with the follow code :
    formulaire1.#subform[0].Next::click - (JavaScript, client)
    xfa.sourceSet.DataConnection.next();
    PREV with the follow code :
    formulaire1.#subform[0].Prev::click - (JavaScript, client)
    xfa.sourceSet.DataConnection.previous();
    If i try to preview it, unfortunatly no button works.
    I follow this video : http://www.youtube.com/watch?v=C56_Cz-aE0c
    I  see the Adobe FAQ too : http://help.adobe.com/en_US/livecycle/11.0/DesignerHelp/WS107c29ade9134a2c-1f4d3e3c12a7df3 f73e-8000.2.html
    Could help me ? Adobe Support don't want help me because I use a trial version for the moment (logical because my CTO wan't valide LiveCycle do the job before paid for it). Sorry for my english it's not my mother tongue.

    I'm not alone in the same situation : http://forums.adobe.com/thread/793214
    Please support help us

Maybe you are looking for

  • HDMI port not working on my 760GM Mainboard

    I think the problem is the PCI Express GeoForce 8400 Video Card is turning off my 760GM mainboard integrated HDMI port.  Is there a way to work around this or do I need to replace the card with one that had an HDMI port in it?

  • Bridge Searches and Keyword suggestions

    In Bridge CS3, changing the search target, eg from filename to keyword, dumps any search items already entered and replaces it with 'Enter Text'. This is seriously irritating if you have already entered the search string and have the wrong field sele

  • Itunes comes up an the store works but the library does not

    tried to update itunes that failed,, have uninstalled an reinstalled,, itunes wont come up,, when i use a restore point to go to an older version itunes comes up,, but,,, the store works,, when i try to go to my library it is stuck on my movies,, if

  • Retain data in String Display untill new data is delivered in RS-232

    I am using Labview 8.6 on Windows XP OS and acquiring signal from RS-232 through COM1 port to which I have connected non NI instrument. My instrument sends data for flash of second and it displayed into String Indicator for flash of second. How to ho

  • HELP! Deskjet 3050 on MAC

    i got this printer and cannot get it to connect wireless. it goes through the steps but when it ask me to put in the network password for my internet i do and it says it cant be accepted. why is this? what am i doing wrong ?? my security is WEP