Some needs in multirecord block

Hi,
I need to do some modifications in a multirecord block and need some help
--i need to loop each record to compare if end date field in the previous record is not greater than the start date field in current record
--i need also for records which already exist, to disable update on the start date field
do you have any idea on how to do that? thank you very much and any help will be appreciated.
Thx

Hi,
and thanks
I did the modification but getting a FRM-40102 Records must be inserted or deleted first,
do you have any idea on the root cause?
Also, how to compare values in previous row with values in current row?
Thanks
Edited by: Tabit7 on 2012-02-11 08:50

Similar Messages

  • Firefox have some promlems and it block when is opeining hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    Firefox have some problems and it block when is opening hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    I know you can't help with my Yahoo problem, however, apparently at some time in the past I have went to the Sync and tried to figure it out on both my laptop and my desktop, because I have the long snyc key information. However, when I go to try to sync both computers I never get the box to enter that key on either one. That is my problem. So should I try and get a new sync key and see if that works.

  • Need reasons for blocking Purchase requisition and service entry sheet.

    Hi All,
    I need reasons for blocking service entry sheet and purchase requisition.
    Also want the reasons for reversing the approval of service entry sheet.
    Its urgent ......

    Hi Nilesh,
    It is not possible to block a service entry sheet as such. You could only revoke a service entry sheet. Some of the possible reasons are, you are not satisfied with the quality of service provided by the vendor. Or it could also be due to change in the services to be performed or it could even be as simple as erronous entry of services in the entry sheet.
    However from ERP 2005, it should be possible to return the services by marking the returns indicator.In case of materials, it is possible to put a materials PO on hold. But in case of services, the hold option does not arise as a service cannot be performed/completed till all the approvals are received.
    Hope this answer helps you.

  • Problem with multirecord block

    Hi every one
    I have multirecord block in form conten 2 textitem A & B
    and i have checkbox .
    i need when i check the checkbox set instance item A Enable and item B Disable
    and vice versa
    the problem is when i check the checkbox all instance of item enable or disable
    but i want that instance what I foucs on .

    You can't disable/enable an individual instance of a multi-record item.
    What you CAN do is use SET_ITEM_INSTANCE_PROPERTY to set INSERT_ALLOWED, UPDATE_ALLOWED and VISUAL_ATTRIBUTE. To disable, set up a visual attribute that mimics a disabled field, and set INSERT_ALLOWED and UPDATE_ALLOWED to false. If you don't want them to be able to click or tab the cursor into the field create a pre-text-item trigger on the items that checks the value of the checkbox and raises form_trigger_failure if this field should be disabled.

  • Showing 10 records at a time in a multirecord block

    Hello,
    I have a requirement to show 10 records at a time,consider a table in which
    there are 100 records which is associated to a multirecord block,in order to have a web look and feel I need to show first 10(1 to 10) record on load,when the user presses the button "Next 10 records", I need to replace the first 10 records with new set of 10 records(11 - 20),
    Please note that no of records to be displayed at a time will be 10 and our requirement is avoid scroll bar.
    Any suggestions as to how I need to accomplish the task above.
    Thanks and Regards
    Mohan

    You don't need a special button for this because the user can already navigate using the cursor keys and page up/down keys.
    For cursor keys use the key-up, key-down, key-nxtrec and key-prvrec triggers.
    For page up/down use the key-scrup and key-scrdown triggers.
    I suppose the menu option "Query > Fetch Next Set" (key-nxtset) should operate the same as page down.
    An example of the key-scrdown trigger is thisdeclare
         numrecs integer := get_block_property('EMP',records_displayed);
         toprec integer := get_block_property('EMP',top_record);
         thisrec integer := :system.trigger_record;
    begin
         go_record(toprec + (2 * numrecs) - 1);
         go_record(thisrec + numrecs);
    end;This will advance by as many records are in the block and leave the cursor positioned on the same record relative to the top of the block. Eg if there are 10 rows in the block and you're on the first set then the top record will be 1 and you want to make the new top record 11. So you need to call go_record(20), which makes that the bottom record and 11 the top one.
    You'll need to work out how the form should behave when the number of records in the block is not exactly divisible by the number of records in the data because forms won't allow blank records to pad out the bottom of the block and records_displayed isn't a settable property at runtime. So if there are 10 rows in the block and 103 rows of data then the penultimate page will show records 91-100 and the last page will show records 94-103. Should scrolling back up show record 91 at the top, or 84?
    For the key-down/key-nxtrec trigger you'll probably want something like thisdeclare
         numrecs integer := get_block_property('EMP',records_displayed);
    begin
         if :system.last_record != 'TRUE' then
              if mod(:system.cursor_record,numrecs) = 0 then
                   -- last record in this set
                   go_record(:system.cursor_record + numrecs);
                   go_record(:system.cursor_record - (numrecs - 1));
              else
                   next_record;
              end if;
         end if;
    end;If you're at the bottom of one set it will show the next set and go to the top record, otherwise it will just go to the next record. But again, this breaks down when the number of rows in the block and in the data don't divide up evenly.
    I hope this is enough to get you started.

  • Validation of item in a multirecord block(Forms 6i,EBS 11.5.10.2)

    Hi all,
    I developed a form in which some of the blocks are multirecord blocks.One of the multirecord block have 3 items in it.
    The user may enter data like this
    FROM TO RATE
    0 1000 10
    1000 2000 9
    2000 3000 8.5
    My requirement is the FROM field value of the 2nd record should not be less than the TO field value of 1st record. The FROM field value of the 3rd record should not be less than TO field value of the 2nd record and so on...
    i.e the form should not allow the user to enter data like this
    FROM TO RATE
    0 1000 10
    900 2000 9
    800 3000 8.5
    Can anyone suggest me how to do this?
    Thanks & Regards

    Hi all,
    I developed a form in which some of the blocks are multirecord blocks.One of the multirecord block have 3 items in it.
    The user may enter data like this
    FROM TO RATE
    0 1000 10
    1000 2000 9
    2000 3000 8.5
    My requirement is the FROM field value of the 2nd record should not be less than the TO field value of 1st record. The FROM field value of the 3rd record should not be less than TO field value of the 2nd record and so on...
    i.e the form should not allow the user to enter data like this
    FROM TO RATE
    0 1000 10
    900 2000 9
    800 3000 8.5
    Can anyone suggest me how to do this?
    Thanks & Regards

  • Need to disable "Block Anonymous Internet Requests" with "Clone MAC address?"

    Ok -- so I learned from tech support and this forum that the "Clone MAC address" option needs to be enabled when connecting to the Internet via a cable modem. In one of the forum posts (sorry lost track of which one), it said that in addition I need to disable "Block Anonymous Internet Requests" as well -- is this correct? If so what is the effect of this? Linksys documentation is not clear if this is absolutely necessary.
    I think the comment is in this thread
    http://forums.linksys.com/linksys/board/message?board.id=Wireless_Routers&message.id=8600

    Usually resetting you cable modem will allow you to use a router without cloning the MAC address.  Reset modem, power down, plug router into the modem, power up the modem, power up the router and you should be good to go.  The popular reason that I know of for unchecking "Block Anonymous Internet Requests" is when you plan to use P2P software like Azureus.  Your computer becomes pingable and can be seen on the net.

  • HT5312 I cant remember the answer to some questions and they blocked my account. I've been sending requests for them to send it to my mail like 20 times and nothing. What can I do?

    I cant remember the answer to some questions and they blocked my account. I've been sending requests for them to send it to my mail like 20 times and nothing. What can I do?

    Click here, phone Apple, and ask for the Account Security team.
    (87657)

  • Disable button when no records in multirecord block.

    Hello,
    In a tabular multirecord block we have a button that will open another window for the selected row. The problem is that when there are no records in the multirecord-block, the first line is still selected, and the pushbutton is enabled. This will cause an error when the user press the button when there are no records. Adding code to the button will of course take care of the error, but it is still enabled. How do we disable the entire line when there are no records?

    how about - directly after querying the master record...
    go_block(<block>)
    if :blk.key (or :blk.rowid) is null then
      SET_ITEM_PROPERTY('<buttonname>',enabled, property_false);

  • Multirecord block on a tab page leaves empty space

    Hi,
    When I generate a tabpage with a multirecord block from Designer10G there is always a 'big' gap of space on the right side of the multirecord block.
    Is there a preference which i overlooked to make this space smaller, because i have changed all possible layout preferences without any result.
    regards, richard

    You can change stacked canvas margins and block margins to zero, but I still have big space on the right side of the form, this space can hold 3 or 4 character if it is used.

  • Need an anonymous block for fake update,

    I have a table called sk_a
    create table sk_a (a number, b date, c varchar2(10));
    and an audit table
    create sk_a_audit (audit_id number, a number, b date, c varchar2(10),dml_action varchar2(4));
    and sequence sk_a_audit_seq
    create sequence sk_a_audit_seq
    when any insert or update happens into sk_a table, respective data should insert into sk_a_audit table
    and trigger is
    CREATE OR REPLACE TRIGGER SK_A_TRG
    AFTER INSERT OR UPDATE
    ON SK_A
    FOR EACH ROW
    DECLARE
    l_code NUMBER;
    l_errm VARCHAR2 (64);
    BEGIN
    IF (INSERTING OR UPDATING)
    THEN
    INSERT INTO SK_A_audit
    VALUES (sk_a_audit_seq.NEXTVAL, :NEW.a,
    :NEW.B, :NEW.C ,'I');
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_code := SQLCODE;
    l_errm := SUBSTR (SQLERRM, 1, 64);
    DBMS_OUTPUT.put_line ('DML Operation is failed ' || l_code || l_errm);
    END;
    sk_a may or maynot have primary or unique keys,
    now my requirement is
    audit table will be deleted by business users,,
    and then I have to run an update on sk_a table (fake update) so that data will come and insert into audit table,,,,
    so that audit table will be back with all the data of sk_a table again,
    I need an anonymous block for this, can any one help on this,

    audit table will be deleted by business users,,
    and then I have to run an update on sk_a table (fake update) so that data will come and insert into audit table,,,,
    so that audit table will be back with all the data of sk_a table again,
    I need an anonymous block for this, can any one help on this,Y? audit table was deleted by busineess users..? could u pls explain it..?
    if u know that users going to delete the audit table, then take the back of the table. that is better instead of fake update.
    U can use exp utility for taking that back up
    Pls reply
    S

  • Required some needful regarding my issue

    hiiiiii
    how upload opm production completed batches.....
    please do some needful n advance thankful.....

    Ajay,
    Are you looking at uploading the batches in completed status into OPM from another application?
    If so, you can leverage the standard APIs in OPM. However, following points may be considered before the batches are uploaded
    1. Valid Formulas / Routings & Recipes exists if you are in OPM 11i
    2. How would the Raw Materials ( Ingredients) & Finished Products be accounted for and reconciled
    3. How would the resource usage be accounted for
    4. Impact on costing
    If you are looking at only a few such batches, then these may be created manually as well, however considering the above points.
    krishna
    Edited by: Krishna on Aug 16, 2010 2:40 AM

  • Tooltip for Multirecord Block, Please help

    Hi All,
    I am using Formbuilder 6.0.5.32.0
    I am facing two problems with Tooltips, on a multirecord block.
    First of all, the tooltip is displayed only for the topmost
    record in the multirecord block.
    Secondly i want to change the tooltip of the item,based on the
    data displayed .
    Here i tried to use "SET_ITEM_INSTANCE_PROPERTY" in When new
    record instance trigger.But i am getting an error message "
    Unhandled exception ORA 06502"
    Can anybody give me a help.
    Thanks in advance,
    Regards
    Jiji Nair.
    null

    Hi Asbj0rn,
    Thanks for the solution. But iam still facing a problem. If i
    use a stacked canvas, the maximum width of the stackcanvas is
    limited to the maximum width of the widow, to which the canvas
    belongs to. But in the case of a tooltip, there is no such
    restrictions .
    Any suggestions. Thanks
    Jiji
    Asbj0rn Floden (guest) wrote:
    : As you've already found out, the tooltip mechanism in Forms
    : doesn't solve your problem.
    : In order to display a tooltip reflecting the contents of the
    : record on which the mouse cursor is positioned, I believe
    you'd
    : have to make your own kind of tooltip. By using a small
    stacked
    : canvas designed as a regular tooltip with a simple display
    item
    : (with the appropriate background and foreground colors for a
    : tooltip), you can display any information you want at any
    : position you like. Use the WHEN-MOUSE-ENTER and WHEN-MOUSE-
    : LEAVE triggers to display/hide your tooltip. Inside the
    : trigger, you retrieve the information you want to display in
    the
    : tooltip (hint: use the :SYSTEM.MOUSE_RECORD variable), and
    : raise the stacked tooltip canvas at your desired position
    (based
    : on the position of the item or the mouse cursor). You can
    also
    : use a timer to hide the tooltip after a specific periode of
    time.
    : Hope this help you solving your problem.
    : NOTE: I haven't implemented this solution myself.
    : Sincerely, Asbj0rn
    : Jijikumar U Nair (guest) wrote:
    : : Hi All,
    : : I am using Formbuilder 6.0.5.32.0
    : : I am facing two problems with Tooltips, on a multirecord
    block.
    : : First of all, the tooltip is displayed only for the
    topmost
    : : record in the multirecord block.
    : : Secondly i want to change the tooltip of the item,based on
    the
    : : data displayed .
    : : Here i tried to use "SET_ITEM_INSTANCE_PROPERTY" in When new
    : : record instance trigger.But i am getting an error message "
    : : Unhandled exception ORA 06502"
    : : Can anybody give me a help.
    : : Thanks in advance,
    : : Regards
    : : Jiji Nair.
    null

  • Multirecord block & when-button pressed

    Forms10g
    In a multirecord block there's a button displayed for each row.
    Problem is:
    Focus doesn't change to the row where button is pressed before executing the "w-b-p" trigger logic and therefore correct context information is not passed !
    I've tried to get form to synchronize:
    synchronize;
    go_record(:system.trigger_record); and also
    go_record(:system.cursor_record);
    but system variables are not being set before executing "w-b-p trigger" ?
    HAs anyone got a workaround for this ?
    Thanks
    Pete

    Set the Mouse Navigate property to TRUE/YES on the button

  • Jump to one defined record in multirecord block

    Hello.
    I have a multirecord block.
    ex:
    rec, day, text
    rec1, day1, text1
    rec2, day1, text2
    rec3, day2, text1
    rec4, day2, text2
    rec5, day2, text3
    rec6, day3, text1
    User can select any record in that block. But when he presses one button, form should first jump to first record of that day, then execute everything else in that trigger.
    If the user is in record:
    rec5, day2, text3
    form should jump to record:
    rec3, day2, text1
    If the user is in record:
    rec2, day1, text2
    form should jump to record:
    rec1, day1, text1.
    And so on.
    Is there a way to do that?
    Thanks.

    Another technique ...
    Declare
         v_Day Table.Field%Type;
    Begin
         v_Day := :Rec.Day;
         Previous_Record;
         Loop
              if :Rec.Day <> v_Day then
                   Next_Record;
                   Exit;
              else
                   Previous_Record;
                   if :System.Cursor_Record = 1 then
                        Exit;
                   End if;
              End if;
         End Loop;
    End;
    Best regards
    R E H A N M I R Z A

Maybe you are looking for

  • How I can save the value of a variable in a database?

    hello, how I can save the value of a variable in a database? I need to keep the # of times you press click animation. to know how many times it has been seen. I connect to msql database, using php, javascript, ajax and jquery, but not how to save the

  • Why Can't I Export to Quicktime from Garageband?

    Has anyone else experienced this or would know how to fix it... I created a .mov file from Keynote and brought it into Garageband as a Video Track to sync the music to the Keynote presentation. Now I'm ready to Export to Quicktime from Garageband. Wh

  • How to use EJB in Distributed Environment

    Hello     I have to use the EJB in a distributed environment. There will be a Application server at one system which will access the Application server at another system which will be running ejb. I am using SAP J2EE Engine as application server. So

  • Purging the central cache in Bridge

    When opening Bridge I am getting the message: "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct situation." I have a system of very extensive labels in Bridge and it wo

  • JAAS LoginModule sample

    Is there a sample on how to develop a custom JAAS LoginModule that uses Identity Server?