Mouse hand over a block of multiple records help

Hello ,
i have add a bean i my form so that i could change the cursor to a hand when the mouse is over an item.
the problem that i have is that the block is a multiple record block i am showing 5 records.
so the mouse change only in the first record and not in the other records
has any one try to do the same and came with a solution?
or does anyone know how could i solve this problem?
thanks
ana

Hello Jan
i have this class
import java.awt.Graphics;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Font;
import oracle.forms.ui.VTextField;
import oracle.forms.properties.ID;
import oracle.forms.handler.IHandler;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.Cursor;
public class Hotlink
extends VTextField
private Cursor stdCursor;
private Font stdFont;
private int stdStyle;
private Color stdForeColor;
private Color stdBackColor;
public Hotlink()
super();
public void init(IHandler h)
super.init(h);
stdCursor = this.getCursor();
this.addMouseListener(new MouseAdapter()
public void mouseEntered(MouseEvent me)
if(getTextLength() > 0)
((VTextField)me.getSource()).setForeground(Color.red);
((VTextField)me.getSource()).setBackground(Color.lightGray);
setFont(stdFont.deriveFont(Font.BOLD));
setCursor(new Cursor(Cursor.HAND_CURSOR));
public void mouseExited(MouseEvent me)
if(getTextLength() > 0)
((VTextField)me.getSource()).setForeground(stdForeColor);
((VTextField)me.getSource()).setBackground(stdBackColor);
setFont(stdFont);
setCursor(stdCursor);
public void paint(Graphics g)
super.paint(g);
if (this.getTextLength() > 0)
FontMetrics metrics = getFontMetrics(getFont());
int strWidth = metrics.stringWidth(getText());
int yoffset = (int)(metrics.getHeight() * 0.95);
g.drawLine(0, yoffset, strWidth, yoffset);
public boolean setProperty(ID pid, Object value)
if(pid.getName().equals("FOREGROUND")) this.stdForeColor = (Color)value;
else if(pid.getName().equals("BACKGROUND")) this.stdBackColor = (Color)value;
else if(pid.getName().equals("FONT")) this.stdFont = (Font)value;
return super.setProperty(pid, value);
and i had make a jar with it inside the text item i have put the reference to this class the thing is that it work with the 1º record also

Similar Messages

  • Block with multiple records

    hi every one
    i've developed a form containing a multiple record block. i need that some functions to be done before i commit it.
    1. its primary key should b auto generated, usually i handle it by selecting max value(primary key field) from data base and adding one but in this case it wont work bcoz it wont go to database before i commit it. so it wont auto generate it.
    2. second problem is that there are some fields that must b filled but it should prompt the user to enter required fields when he press commit button.
    thanks in anticipation
    kabir

    Have you considered creating a sequence object for the primary key. If the datatype of the primary key is NUMBER then a sequence will auto generate the next value if you placed (:your_sequence.next_val) into the dafault value property of the text item.
    The second problem can be overcome by writing a When-Validate-Item trigger whereby the user will be prompted to the item that contained the required field that was not entered. You should however note that if a coulmn in your table is of the NOT NULL type then the form default behavior is to prompt user to enter the field.

  • Losing Mouse "hand" over buttons when publish for Web.

    Hi,
    I'm new to Flash. I'm publishing a web-site and I lose the "Hand" icon for the mouse over buttons after I publish and run the HTML=>Swf files from the Browser. When I "Test the movie" from flash I see the "Hand" over buttons just fine.
    Is there a publish setting that I'm missing which allows the hand to remain?
    Please help.
    Thanks,
    Jeff

    Hi, Had to work yesterday.
    At the moment I'm running/testing locally  (which may be the problem) from a flash secure directory on my desktop. So no link sorry.
    I think I need to look into setting up a test service with Yahoo or something. Any suggestions? I'm not really sure how to upload my completed website (.html and .swf files) to a service. That's a different topic/question. Any help along those lines is greatly appreciated.
    Anyway, I'm using safari 5.1.7 on my IMac. and Safari 6.0.3 on my Mac Pro. and Firefox 21.0 (primarily) or Internel Explorer (rarely) on my "windows" laptop.    The "Hand" works on all of these (files local to the respective computer) except the IMAC Safari 5.1.7 flash player 12.0 combination, which was my first test environment scenerio.
    I'm planning to do two things.
    1) Update my IMAC to Safari 6.0.
    2) Set up a test area with a service provider. This in itself may resolve the issue for the Safari 5.1.7. At least I'll be testing in a "real world" environment.
    So, thank you for your help with this. I think we can call it solved. If my testing on a true server shows the same results then I may shoot out another question. I think it is a nice goal to have our web site creations run on all platforms and browser comibations but is that realistic? If we test on as many combinations of the most recent software releases as we can with reasonable success what more can we do? I'd like to hear you opinion. Feel free to sent me an email.
    Would you like me to open a new question/discussion regarding the help finding and uploading files to a service provider?
    Thanks again,
    Jeff

  • Insert multiple records help

    Hello all! I have implemented a simple shoppingcart (not for commercial purposes) and I would like to help me with the following code. When a user makes shopping, the items appear in a table with the use of a java servlet with arraylist.. When the user checkouts, I want to call a servlet that it will enter the items of shoppingcart (multiple records) in a table in my db (I use mysql). I have tried to write the following code but it doesn't work. Can you give me some hints how to achieve this?
    Sorry for my possible error codes but I m new in programming and I m trying to find the way..
    Thanx a lot for your help,
    danny
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.ArrayList;
    public class Checkout extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    String[] itemsSelected;
    String[] priceSelected;
    String[] quantitySelected;
    itemsSelected = req.getParameterValues("productname");
    priceSelected = req.getParameterValues("price");
    quantitySelected = req.getParameterValues("quantity");
    // connecting to database
    Connection con = null;
    Statement stmt = null;
    PreparedStatement ps = null;
    try {
         //db connection
    String sql;
    sql = "INSERT INTO order (productname, price, quantity) VALUES (?,?,?)";
    ps = con.prepareStatement(sql);
    stmt = con.createStatement();
    for (int i = 0; i < itemsSelected.length; i++) {
    =
      ps.setString(1, itemsSelected[ i ]);
      ps.setString(2, priceSelected[ i ]);
      ps.setString(3, quantitySelected[ i ]);
           ps.executeUpdate();
       } catch (SQLException e) {
          throw new ServletException(e);
       } catch (ClassNotFoundException e) {
        throw new ServletException(e);
         } finally {
         try {
              if(stmt != null)
              stmt.close();
              if(ps != null)
              ps.close();
              if(con != null)
              con.close();
              } catch (SQLException e) {}
              out.close();
    }Message was edited by:
    danny44

    Well, after some tests I did, I understood that the variables have not be passed from the shoppingcart servlet to checkout. I declared the variables for 1 product (+productname+) ,not the array, as[b] hidden values in the shoppingcart servlet and when user clicked checkout button, checkout servlet was called and my db was updated succesfully. My problem is now, how all the products in the shopping cart can be successfully entered in the db because I receive only the last one product everytime I checkout. I think that I will probably have to declare the whole array of products and not the one string in my hidden values but I dont know how..
    If you have a solution to this, please help me.. I m new in java and I have read a lot to create my code and build my project so every help will be valuable for me to continue...
    Thanx again

  • Problem in UPDATE statement In Multiple Record Block

    Hi Friends,
    I have problem in update Statement for updating the record in multiple record data Block.
    I have two data Block the master block is single Record block and the 2nd data block is Multiple Record data Block.
    I am inserting the fields like category,and post_no for partiular job in single data block
    Now in second Multiple Record Data Block,i am inserting the multiple record for above fileds like no. of employees work in the position
    There is no problem in INSERT Statement as it is inerting all record But whenever i want to update particular Record (in Multiple Block) of employee for that category and Post_no
    then its updating all the record.
    my code is Bellow,
    IF v_count 0 THEN
    LOOP
    IF :SYSTEM.last_record 'TRUE' THEN
    UPDATE post_history
    SET idcode = :POST_HISTORY_MULTIPLE.idcode,
    joining_post_dt = :POST_HISTORY_MULTIPLE.joining_post_dt,
    leaving_post_dt = :POST_HISTORY_MULTIPLE.leaving_post_dt,
    entry_gp_stage = :POST_HISTORY_MULTIPLE.entry_gp_stage
    WHERE post_no = :POST_HISTORY_SINGLE.post_no
    AND category = :POST_HISTORY_SINGLE.category
    AND roster_no = :POST_HISTORY_SINGLE.roster_no;
    AND idcode = :POST_HISTORY_MULTIPLE.idcode;
    IF SQL%NOTFOUND THEN
    INSERT INTO post_history(post_no,roster_no,category,idcode,joining_post_dt,leaving_post_dt,entry_gp_stage)
    VALUES(g_post_no, g_roster_no, g_category, :POST_HISTORY_MULTIPLE.idcode, :POST_HISTORY_MULTIPLE.joining_post_dt,
    :POST_HISTORY_MULTIPLE.leaving_post_dt,:POST_HISTORY_MULTIPLE.entry_gp_stage);
    END IF;
    next_record;
    ELSIF :SYSTEM.last_record = 'TRUE' THEN
    UPDATE post_history
    SET idcode = :POST_HISTORY_MULTIPLE.idcode,
    joining_post_dt = :POST_HISTORY_MULTIPLE.joining_post_dt,
    leaving_post_dt = :POST_HISTORY_MULTIPLE.leaving_post_dt,
    entry_gp_stage = :POST_HISTORY_MULTIPLE.entry_gp_stage
    WHERE post_no = :POST_HISTORY_SINGLE.post_no
    AND category = :POST_HISTORY_SINGLE.category
    AND roster_no = :POST_HISTORY_SINGLE.roster_no;
    AND idcode = :POST_HISTORY_MULTIPLE.idcode;
    IF SQL%NOTFOUND THEN
    INSERT INTO post_history(post_no,roster_no,category,idcode,joining_post_dt,leaving_post_dt,entry_gp_stage)
    VALUES (g_post_no,g_roster_no,g_category,:POST_HISTORY_MULTIPLE.idcode,
    :POST_HISTORY_MULTIPLE.joining_post_dt,:POST_HISTORY_MULTIPLE.leaving_post_dt,:POST_HISTORY_MULTIPLE.entry_gp_stage);
    END IF;
    EXIT;
    END IF;
    END LOOP;
    SET_ALERT_PROPERTY('user_alert',ALERT_MESSAGE_TEXT, 'Record Updated successfuly' );
    v_button_no := SHOW_ALERT('user_alert');
    FORMS_DDL('COMMIT');
    CLEAR_FORM(no_validate);
    Please Guide me
    Thanks in advence

    As you do a loop over all the records in the block, of course every record is updated.
    Also, what you do is not the way is intended to be used. In general, you base a block on a table,then there is no need at all for writing INSERT's or UPDATE's. Forms also know's then, which records to be updated and which not.

  • Problem In Update Statement In Multiple Record Data Block

    Hi Friends,
    I have problem in update Statement for updating the record in multiple record data Block.
    I have two data Block the master block is single Record block and the 2nd data block is Multiple Record data Block.
    I am inserting the fields like category,and post_no for partiular job in single data block
    Now in second Multiple Record Data Block,i am inserting the multiple record for above fileds like no. of employees work in the position
    There is no problem in INSERT Statement as it is inerting all record But whenever i want to update particular Record (in Multiple Block) of employee for that category and Post_no
    then its updating all the record.
    my code is Bellow,
    IF v_count <> 0 THEN
    LOOP
    IF :SYSTEM.last_record <> 'TRUE' THEN
    UPDATE post_history
    SET idcode = :POST_HISTORY_MULTIPLE.idcode,
    joining_post_dt = :POST_HISTORY_MULTIPLE.joining_post_dt,
    leaving_post_dt = :POST_HISTORY_MULTIPLE.leaving_post_dt,
    entry_gp_stage = :POST_HISTORY_MULTIPLE.entry_gp_stage
    WHERE post_no = :POST_HISTORY_SINGLE.post_no
    AND category = :POST_HISTORY_SINGLE.category
    AND roster_no = :POST_HISTORY_SINGLE.roster_no;
    AND idcode = :POST_HISTORY_MULTIPLE.idcode;
    IF SQL%NOTFOUND THEN
    INSERT INTO post_history(post_no,roster_no,category,idcode,joining_post_dt,leaving_post_dt,entry_gp_stage)
    VALUES(g_post_no, g_roster_no, g_category, :POST_HISTORY_MULTIPLE.idcode, :POST_HISTORY_MULTIPLE.joining_post_dt,
    :POST_HISTORY_MULTIPLE.leaving_post_dt,:POST_HISTORY_MULTIPLE.entry_gp_stage);
    END IF;
    next_record;
    ELSIF :SYSTEM.last_record = 'TRUE' THEN
    UPDATE post_history
    SET idcode = :POST_HISTORY_MULTIPLE.idcode,
    joining_post_dt = :POST_HISTORY_MULTIPLE.joining_post_dt,
    leaving_post_dt = :POST_HISTORY_MULTIPLE.leaving_post_dt,
    entry_gp_stage = :POST_HISTORY_MULTIPLE.entry_gp_stage
    WHERE post_no = :POST_HISTORY_SINGLE.post_no
    AND category = :POST_HISTORY_SINGLE.category
    AND roster_no = :POST_HISTORY_SINGLE.roster_no;
    AND idcode = :POST_HISTORY_MULTIPLE.idcode;
    IF SQL%NOTFOUND THEN
    INSERT INTO post_history(post_no,roster_no,category,idcode,joining_post_dt,leaving_post_dt,entry_gp_stage)
         VALUES (g_post_no,g_roster_no,g_category,:POST_HISTORY_MULTIPLE.idcode,
              :POST_HISTORY_MULTIPLE.joining_post_dt,:POST_HISTORY_MULTIPLE.leaving_post_dt,:POST_HISTORY_MULTIPLE.entry_gp_stage);
    END IF;
    EXIT;
    END IF;
    END LOOP;
    SET_ALERT_PROPERTY('user_alert',ALERT_MESSAGE_TEXT, 'Record Updated successfuly' );
    v_button_no := SHOW_ALERT('user_alert');
    FORMS_DDL('COMMIT');
    CLEAR_FORM(no_validate);
    Please Guide me
    Thanks in advence

    UPDATE post_history
    SET idcode = :POST_HISTORY_MULTIPLE.idcode,
    joining_post_dt = :POST_HISTORY_MULTIPLE.joining_post_dt,
    leaving_post_dt = :POST_HISTORY_MULTIPLE.leaving_post_dt,
    entry_gp_stage = :POST_HISTORY_MULTIPLE.entry_gp_stage
    WHERE post_no = :POST_HISTORY_SINGLE.post_no
    AND category = :POST_HISTORY_SINGLE.category
    AND roster_no = :POST_HISTORY_SINGLE.roster_no;
    AND idcode = :POST_HISTORY_MULTIPLE.idcode;
    UPDATE post_history
    SET idcode = :POST_HISTORY_MULTIPLE.idcode,
    joining_post_dt = :POST_HISTORY_MULTIPLE.joining_post_dt,
    leaving_post_dt = :POST_HISTORY_MULTIPLE.leaving_post_dt,
    entry_gp_stage = :POST_HISTORY_MULTIPLE.entry_gp_stage
    WHERE post_no = :POST_HISTORY_SINGLE.post_no
    AND category = :POST_HISTORY_SINGLE.category
    AND roster_no = :POST_HISTORY_SINGLE.roster_no;
    AND idcode = :POST_HISTORY_MULTIPLE.idcode;These update statements are without where clause, so it will update all records.
    If it is specific to oracle forms then u may get better help at Forms section.

  • Retrive Multiple Records Into A database Block

    hi, all
    i would like to know if there is any document or references wich illustrait the way of retriving Multi records from a procedure built on database side into a database block using form 6i ??
    My Problem is : i create a procedure in the database which retrive a multiple records and the variable from procedure (out) are the same value from Form side (in). but it always fetch the whole records at the same record position in the block as the cursor raised on . i found a way explian how to mintain a set or record using a record type and create a table of that record type , but still don't' know how deal calling the procedure from the form side .
    Any advice of this issue will be greatfull and if sample of code provided will be better
    Thanks in Advance
    Regards
    Omar

    You can try something like this:
    PROCEDURE POPULATE_BLOCK IS
    cursor c1 is
    SELECT <your column names>
    FROM <your table name>
    where <your where condition>
    BEGIN
    open c1;
    go_block('<your block name');
    first_record;
    loop
    fetch c1 into
    :<your block name>.<your column name 1>,
    :<your block name>.<your column name 2>,
    etc,etc
    exit when c1%NOTFOUND;
    next_record;
    end loop;
    close c1;
    first_record;
    END;
    so your code might actually look something like this:
    PROCEDURE POPULATE_BLOCK IS
    cursor c1 is
    SELECT distinct
         a.pog_dept
         ,a.pog_number
         ,a.pog_level
         ,a.pog_id
    ,a.start_date
         ,a.transmit_date
    ,a.deactivate_date
         ,b.pog_description
    FROM pog_stores_msi a, pog_master_msi b
    where a.pog_dept = :b_main.bi_dept
    and a.pog_number = :b_main.bi_pog_number
    and a.pog_level = :b_main.bi_pog_level
    AND A.POG_ID = :B_MAIN.I_POG_ID
    and a.pog_dept = b.pog_dept
    and a.pog_number = b.pog_number
    and a.pog_id = b.pog_id;
    BEGIN
    open c1;
    go_block('b_main');
    first_record;
    loop
    fetch c1 into
    :b_main.bi_dept
    ,:b_main.bi_pog_number
    ,:b_main.bi_pog_level
    ,:b_main.i_pog_id
    ,:b_main.i_start_date
    ,:b_main.i_transmit_date
    ,:b_main.i_deactivate_date
    ,:b_main.i_pog_desc;
    exit when c1%NOTFOUND;
    next_record;
    end loop;
    close c1;
    END;
    Hope this helps,
    NumbNutz

  • ResultSet IView - eventing - hand over serveral records

    Hi experts,
    we use a standard resultset iview for connecting the repository with the EP - this works fine.
    In case of "eventing": is there a possiblity to hand over more than one record via EPCF-eventing to another IView on the same page?
    The target is an Visual Composer IView.
    I would be glad, if there is an quick and easy possibility.
    Thank you in advance for your answers.
    Karin

    Hi
    I am trying to Export the data from Result Set Iview to Excel using a Java Web dynpro application.
    I am passing an MDM search parameter but when I am trying to get the value ,its coming as null...
    This is what I am doing
    public void wdDoInit()
        //@@begin wdDoInit()
         wdThis.readSystemDtls();
         namespace = "urn:com.sap.tc.webdynpro.exporttocsv";
         eventname= "Export";
         WDPortalEventing.subscribe(namespace,eventname,wdThis.wdGetExportAction());
        //@@end
    public void onActionExport(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String value )
        //@@begin onActionExport(ServerEvent)
        wdComponentAPI.getMessageManager().reportSuccess("data"+value);
         int marked=value.indexOf("=");
         String srcValue=value.substring(marked+1);\wdContext.currentContextElement().setCatchedValue(srcValue);
         String targetValue=wdContext.currentContextElement().getCatchedValue();
         Search search = Search.deserialize(targetValue);
    Can you please help...

  • Sort multiple record block

    Hi,
    i want to sort a multiple record block by pressing a key on a non updatable field in the block.
    Example:
    i have a list of adresses in the block. Now i want to jump to all Adresses which starts with B.
    Does anybody know a solution ?
    Thanks in advance. MM

    No problem:
    When your records are ordered by the name (using block's order-by-clause),
    use a procedure like the following:
    procedure find_name(p_letter in varchar2) is
    begin
      go_block('BLOCK');
      loop
        exit when :system.last_record = 'TRUE' or :block.name >= p_letter;
        next_record;
      end loop;
    end;

  • How to Save Multiple Records In Data Block

    Hi All,
    I Have Two Blocks --> Control Block,Database Block
    Please Any Idea How to Save Multiple Records In Data Block when User changed Data in Control Block.
    Thanks For Your Help
    Sa

    Now i have to use each record of control block(ctl_blk) as where condition in data base block(dat_blk)and display 10 records from database table.>
    Do you want this coordination to be automatic/synchronized or only when the user clicks a button or something else to signal the coordination? Your answer here will dicate which trigger to put your code in.
    As to the coordination part, as the user selects a record in the Control Block (CB), you will need to take the Key information and modify the Data Block's (DB) "DEFAULT_WHER E" block property. The logical place to put this code is the CB When-New-Record-Instance (WNRI) trigger. You code will look something like the following:
    /* Sample WNRI trigger */
    /* This sample assumes you do not have a default value in the BLOCK WHER E property */
    DECLARE
       v_tmp_dw    VARCHAR2(250);
    BEGIN
       v_tmp_dw := ' DB_Key_Column1 = '||:CONTROL.Key_Column1||' AND DB_Key_Column2 = '||:CONTROL.Key_Column_2;
       Set_Block_Property('DATA_BLOCK', DEFAULT_WHER E, v_tmp_df);
       /* If you want auto coordination to occur, do the following */
       Go_Block('DATA_BLOCK');
       Execute_Query;
       /* Now, return to the Control Block */
       Go_Block('CONTROL_BLOCK');
    END;
    The Control block items are assigned with values in Form level (Key_exeqry).If your CD is populated from a single table, it would be better to create a Master - Detail relationship (as Abdetu) describes.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Can we create multiple records before navigation to that block

    Can we create multiple records and assign values in Forms, before navigation to that block (in a trigger ), and populate ?

    Hello,
    No you cannot. You need to be inside the block in order to use the Create_Record built-in.
    Francois

  • Multiple records in a non-DB block

    I have about 10 records in a non-DB block (B_main).
    I need to get all the records and insert them into a db table. How can I achieve this?
    Forms10 text fields inside Retek are appearing with a default 'Yellow' color. I tried setting them to grey....but they are
    still defaulting back to yellow when I run the form in the application. How can I change them to appear in grey?
    Thanks,
    Chiru

    I have about 10 records in a non-DB block (B_main).
    I need to get all the records and insert them into a db table. How can I achieve this?If you want to insert all the records into a DB-table, why do you use a non-DB-block for it? In that case you would have to do NO work, simply issue a COMMIT_FORM.
    With the non-DB-block you have to loop over the block like:
    FIRST_RECORD;
    LOOP
      INSERT INTO TAB (
        COL1,
        COLN
      ) VALUES (
        :BLOCK.COL1,
        :BLOCK.COLN
      EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
      NEXT_RECORD;
    END LOOP;But again, why not use a database-block?

  • HOW TO CREATE MULTIPLE RECORDS IN A NONE DATABASE BLOCK?

    I have a Form where I have a none database block with unbound items. The block
    has 10 records. In the when-new-block instance I run a query by which I would
    like to fill up the block with data. The code fragment looks like the
    following:
    begin
    declare
    tmp_curr_rec_id number;
    begin
    -- a hibak kiolvasasa
    for c_hibak in ( select h.*, h.rowid
    from hibak h
    where 1=1 -- WF - Ide kerul a szurofeltetel
    order by bejelentes_datum asc
    ) loop
    -- bemasoljuk az adatokat az unbound item-ekbe
    :mc_adat.ub_azonosito := c_hibak.azonosito;
    :mc_adat.ub_verzio_letrehozas_datum :=
    c_hibak.verzio_letrehozas_datum;
    :mc_adat.ub_bejelento := c_hibak.bejelento;
    :mc_adat.ub_bejelentes_datum := c_hibak.bejelentes_datum;
    :mc_adat.ub_wf_verzio_csomopont :=
    c_hibak.wf_verzio_csomopont;
    :mc_adat.ub_wf_utolso_esemeny_szoveg :=
    c_hibak.wf_utolso_esemeny_szoveg;
    :mc_adat.ub_hiba_leiras := c_hibak.hiba_leiras;
    :mc_adat.ub_hiba_hely := c_hibak.hiba_hely;
    :mc_adat.ub_rekord_jelleg := 'H';
    :mc_adat.ub_rowid := c_hibak.rowid;
    -- beallitjuk a rekordot-ot olyanra, mintha semmi nem valtozott
    volna
    -- nem szeretnenk a form bezaraskor mindenfele figyelmezteteseket
    -- olvasni a kepernyon
    tmp_curr_rec_id := get_block_property( :system.current_block,
    current_record );
    set_record_property( tmp_curr_rec_id, :system.current_block,
    status, new_status );
    create_record;
    end loop;
    end;
    end;
    The block's update allowed, insert allowed, delete allowed property is set to
    true.
    The result of the code above is that only the last record fetched shows up in
    the block. The problem is - as I found out - is that aech record is fetched,
    the values are copied to the block items, but the create_record built-in
    command would not move the cursor to the next row.
    Can some one please help me with this?
    TIA,
    Tamas Szecsy

    The problem was with the following code segment:
    tmp_curr_rec_id := get_block_property( :system.current_block, current_record );
    set_record_property( tmp_curr_rec_id, :system.current_block, status, new_status );
    After omitting these two lines, the code worked properly.
    Thansk for all whoe replied.
    Regards,
    Tamas

  • How can I compare values in a multiple records block

    I have a form with multiples records whit a date in each record. I need test if the date typed in record 2 is greather than the date on record 1, if the date typed in record 3 is greather than the date on record 1 and so on. How cai I do it???is grather than the date on record 1

    Pedro,
    Venelin's code works perfectly, but if you try to use it in a When-Validate-Item or When-Validate-Record trigger, it won't work since you can't invoke navigation routines (FIRST_RECORD, NEXT_RECORD) from these two triggers (among others).
    First, we have to understand that Forms wasn't built to perform multi-row validations. It's a fact.
    Second, the way I prefer to do this is: let the user enter the data as he wants.
    When he commits, in a POST-FORMS-COMMIT trigger, you can check the values using SELECT statements, because they are already written to the data tables. If you don't like them, just issue a RAISE FORM_TRIGGER_FAILURE and the transaction gets rollbacked (and the inserts will be undone).
    Hope this helps,
    Pedro das Neves

  • How to display multiple records in a block text items

    Can fetching be done to dispplay multiple records in the text items base on the query.

    put the code in post-query trigger

Maybe you are looking for

  • I have an I mac from 2010 thats running 10.5.8, it wont let me update to 10.6.2, how do i approach this?

    When i try to update the old iMac, no matter which approach i choose, it keeps telling me, that i cannot update? I am frustrated :-) Can anyone help me on this?

  • Limited or nor connectivity with PC

    Intstalled Time capsule yesterday. Cant get my pc to get internet access with a direct cat 5e wired connection. I get ip address, DNS and Gateway address all look ok, but I cant ping out and the message over the network icons say limited or no connec

  • Need larger font in Mail message list....

    Hi-I am using a MacBook Pro running ML. I have 3 columns: my mailboxes on the left, in the middle is the list of messages and on the right is the preview of the messages. I would to increase the font of the middle one. Also like to increase the icons

  • Copy and Paste Function (old copy appears)

    When I copy and paste on my ipad, an old copy keeps pasting instead of the new paste.  How do I get rid of the previous copied information?  Doesn"t that function automatically paste the newest copy?

  • Cleaning spray on iPad mini

    While cleaning the iPad mini I prefer to using a cleaning gel to help clean my screen. When I sprayed it it when a little far over to the edge of the ipad mini and I wondered can any liquid get in on the edges of the ipad mini? Seems like its sealed