Clearing item that has multi records

I have text item which consist of 10 records.
When a user preses button, I have to clear the item.
Since it has more than one records, I couldnt manage to do it.
I tried two methods but both didnt work.
1-)
clear_block('BLOCKNAME') --> returns ORA-06502
2-)
:item_name:=null; --->doesnt work

See other triggers attached to this block. One of them does raise the error. Be also sure that when you press your button, the focus is not send to the block that contains this button. If yes, set the button mouse and keyboard navigation property to NO.
Francois

Similar Messages

  • About populating a non-database item in a multi-records block

    Hi, all
    I have a problem about populating a non-database item in a
    multi-records block. This block is set to database block with a
    controlled item which needs to be populated after query. so I
    create a post-query trigger, but my problem is when the records
    listed in this block are less than 10 ( the record number is set
    to 10), the trigger fires no problem. but when the retrieved
    records are greater than 10, the error message is 'post query
    trigger raised unhandled exception ora 01403'. anyone can help me
    fix this problem?
    Thanks in advance
    Diana

    Diana,
    When you have an unbound item in a block and want to fetch
    some data into it you need to write a post-query trigger.What
    you have done is right.But it seems that u are getting a No data
    found error.I am sure about how u r populating data into that
    field.If u have written a select statement to fetch the data in
    post-query trigger, kindly handle an exception and find out the
    problem.Having a look at ur code(pos-query) would be much more
    helpful for giving a better solution.Try this a let me know.
    Thanks
    Vinod.

  • Updating a value of a text item in a multi record block based on a change

    Hi,
    I need to change the value of a text item in a multi record block based on a change to another item's value in the same block.
    Suppose there's a text item in a multi record block called dt1 which is of type date, which is changed in a particular record. I want to change the values of the another item in the same multi record block, for all other records by running a loop through all the records in multi record block. I dont want to do it on the press of a button, it should do automatically on change. Help me resolve this issue.

    Hi,
    I need to change the value of a text item in a multi record block based on a change to another item's value in the same block.
    Suppose there's a text item in a multi record block called dt1 which is of type date, which is changed in a particular record. I want to change the values of the another item in the same multi record block, for all other records by running a loop through all the records in multi record block. I dont want to do it on the press of a button, it should do automatically on change. Help me resolve this issue.

  • How do I remove an alert for a calendar item that has long since been deleted? and yet goes off mysteriously, un-deletably, and un-editably every single ****** week !!

    How do I remove an alert for a calendar item that has long since been deleted? and yet goes off mysteriously, un-deletably, and un-editably every single ****** week !!

    I have the same problem with my iPhone.  I set up a recurring calendar event for every Thursday.  That event is no longer happening during the summer, so I went in and chose one from the current month and selected Delete.  Then it gve me two choices, one of which was to Delete All Future Events of this one, and that's what I chose.  I figured, this way, I'll still be able to see the ones from the past, but won't have to see (or hear the alert) for the future ones.
    The following week, my phone alerted me to the appointment, and even showed it on the initial screen, even though it wasn't in the calendar.  I went in to the calendar and NOTHING was scheduled for that day.  So why is this happening?
    So I set up a new recurring event, for in the past, then went in and deleted all furture occurances, and it did the same thing... still alerted to an event that was no longer in the calendar.
    I hope somebody else has found a fix, or at least a reason for why this is happening.

  • Prerequisitions to be enabled/followed for the items that has to come in ASCP Collection Plan

    Hi team,
    I need to know what are all the prerequisitions to be enabled/followed for the items that has to come in ASCP Collection Plan (ie.,) the Item must be in Active status & Planning Method must be in MRP Planning like wise.
    Anyone please give me the details.
    Thanks in advance.
    Suriya

    Please check Support Note 1060245.1 Advanced Supply Chain Planning (ASCP) Item Collection Criteria
    Regards,

  • FlatFile that has no record giving error in BizTalk

    Hi,
    I have a flatfile that is partly delimited and partly positional. The Schema has a Root Node that is in delimited structure.
    1st Child Record: Header (Delimited)
    It has a Child Element --> Date
    2nd Child Order: Main (Positional)
    It has 2 child elements --> Old Order number and New Order number. Both of them 7 character long each.
    3rd Child Order: Footer (Delimited)
    It has a Child element --> Record Count
    Sample file that has records are
    20141212
    A123456B123456
    C123456D123456
    002
    Now if the files that has records arrive, BizTalk is processing perfectly. But when a file that has no records come, it is giving out an error.
    Sample file that has no record
    20141214
    000
    Error: "There was a failure executing the receive pipeline. Source: FlatFile Disassembler. Reason: Unexpected end of stream while looking for \r\n. The line number where the error occurred is 3, column where the error occurred is 0.
    Note: The Main Child Record is set 0 to unbounded.
    Can anyone give me an idea why this is happening?
    Thanks,
    Rithu

    The schema is as follows:
    <?xml version="1.0" encoding="utf-16"?>
    <xs:schema xmlns="http://BizTalkUpdateID.IDUpdate" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://BizTalkUpdateID.IDUpdate" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:annotation>
        <xs:appinfo>
          <b:schemaInfo standard="Flat File" root_reference="UpdateID" default_pad_char=" " pad_char_type="char" count_positions_by_byte="false" parser_optimization="speed" lookahead_depth="3"
    suppress_empty_nodes="false" generate_empty_nodes="true" allow_early_termination="false" early_terminate_optional_fields="false" allow_message_breakup_of_infix_root="false" compile_parse_tables="false"
    />
          <schemaEditorExtension:schemaInfo namespaceAlias="b" extensionClass="Microsoft.BizTalk.FlatFileExtension.FlatFileExtension" standardName="Flat File" xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/SchemaEditorExtensions"
    />
        </xs:appinfo>
      </xs:annotation>
      <xs:element name="UpdateID">
        <xs:annotation>
          <xs:appinfo>
            <b:recordInfo structure="delimited" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false" sequence_number="1" child_delimiter_type="hex" child_order="postfix"
    child_delimiter="0x0D 0x0A" />
          </xs:appinfo>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:annotation>
              <xs:appinfo>
                <b:groupInfo sequence_number="0" />
              </xs:appinfo>
            </xs:annotation>
            <xs:element name="Header">
              <xs:annotation>
                <xs:appinfo>
                  <b:recordInfo sequence_number="1" structure="delimited" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false" child_delimiter_type="hex"
    child_order="infix" child_delimiter="0x0D 0x0A" />
                </xs:appinfo>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:annotation>
                    <xs:appinfo>
                      <b:groupInfo sequence_number="0" />
                    </xs:appinfo>
                  </xs:annotation>
                  <xs:element name="Date" type="xs:string">
                    <xs:annotation>
                      <xs:appinfo>
                        <b:fieldInfo sequence_number="1" justification="left" />
                      </xs:appinfo>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="UpdateLineItem">
              <xs:annotation>
                <xs:appinfo>
                  <b:recordInfo sequence_number="2" structure="positional" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false" />
                </xs:appinfo>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:annotation>
                    <xs:appinfo>
                      <b:groupInfo sequence_number="0" />
                    </xs:appinfo>
                  </xs:annotation>
                  <xs:element name="OldID" type="xs:string">
                    <xs:annotation>
                      <xs:appinfo>
                        <b:fieldInfo sequence_number="1" justification="left" pos_offset="0" pos_length="7" />
                      </xs:appinfo>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="NewID" type="xs:string">
                    <xs:annotation>
                      <xs:appinfo>
                        <b:fieldInfo sequence_number="2" justification="left" pos_length="7" />
                      </xs:appinfo>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Footer">
              <xs:annotation>
                <xs:appinfo>
                  <b:recordInfo sequence_number="3" structure="delimited" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false" child_delimiter_type="hex"
    child_order="infix" child_delimiter="0x0D 0x0A" tag_name="FOOTER" />
                </xs:appinfo>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:annotation>
                    <xs:appinfo>
                      <b:groupInfo sequence_number="0" />
                    </xs:appinfo>
                  </xs:annotation>
                  <xs:element name="RecordCount" type="xs:string">
                    <xs:annotation>
                      <xs:appinfo>
                        <b:fieldInfo sequence_number="1" justification="left" />
                      </xs:appinfo>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    The input instance file that is failing is:
    20141025
    FOOTER000
    Note: A blank line at the end of the file is that accounting for the CR LF. This shouldnt be the problem because if the file has record it works fine.
    As you told I made the optional UpdateLineItem record as a sequence group. It still did not work. Let me know if you can provide some help on this. Thanks.
    Rithu

  • Editing record items in a multi-record block - 1 record at a time.

    Hello,
    I have the following scenario: Currently in my multi-record block, to edit an item of a record, the user has to double click on the record to enable the 'save changes' button. However, I want to turn the navigation to all other records turned off. The only way the user should be able to edit other records is save changes first, then again double click on the desired record to re-enable the 'save changes' button (at this time navigation to all other records should be turned off). ie., the user should be able to edit 1 record at a time (At any given time, I won't be having many records in the block which the user may have to modify).
    How can this be achieved?
    Thanks,
    Chiru

    That is pretty odd requirement, but this might work:
    When the user double-clicks the record, enable the Save button, and set a value in any column of the record to its current value. This will cause Forms to set the record status to CHANGED, and will not permit navigation away from the record until the When-validate-record trigger runs successfully.
    In the Save button, start a non-repeating timer to run maybe 20 milliseconds, then issue a Validate(Record_Scope); command. Check form_success then commit_form.
    In the when-validate-record trigger: Do any record validation that may be necessary, and Raise Form_Trigger_Failure if anything is wrong. Then check for the existence of your Save button's timer. If it does NOT exist, issue a message like: "You must Save the changes first" and Raise Form_Trigger_Failure; If the timer exists, do not raise the error.

  • How can I get an item that has the broadcast icon next to it into MP3 format so I can put it on my ipod nano?

    Question: how can I get an item in my itunes library, on my mac os 10.6.7 that has a broadcast icon next to it into MP3 format so I can play it on my ipod? right now it won't let me, and it's very frustrating!!!! thanks

    I might have misunderstood what you mean by the "broadcast icon," but if you are talking about an audio stream, then there is just no way you can convert a stream to MP3. What this would involve is either recording the stream, and then you would just be replaying the recorded audio on your iPod (is this what you are trying to achieve?), or reading the stream directly on your iPod, which an iPod nano does not support (it would need wireless connectivity).
    Hope this helps

  • Validation item in a multi-record

    Hi!
    I have a multi-record block and I want to avoid duplicated items from the user on it (these record aren´t saved yet, I want to validate them before commit).
    Anyone knows how I can validate them ? I made a procedure but it only works in trigger Key-Next-Item from the block.
    Thanks
    Veronica

    Re: duplicate records in  a multi record block

  • Query create on Master Data for the items that has not shipped

    Hi all,
    Is it possible to report/query on Items on Master Data that has not inoviced or has not been shipped?
    Running query on Sales overview cube will not bring the right data since that cube only captures the items that was invoiced.  Please help!
    Thanks in advance,
    BW
    P:S  Points will be assigned.

    Hi,
    if u are using BI-7 for scenarios like this they have designed info set to include 2 cubes,
    as info set brings intersection data u can opt for infoset, build info set on cube and ur master data then u will get the result this will be better as per performance issue.
    if u are using BW then if data flow is from ODS -> CUBE then u can build infoset on ODS and master data it will be good.
    if u want replacement path then u have to use RRI that is report to report interface. build char variable on ur info object in cube query so that it will brings orders which are shipped.
    then build another char variable in master data query and processing type as replacement path to char var built on first query. and exclude those values which first var brings.
    assign points if it helps,
    thanks,
    pavan.

  • HT4059 Have just purchased yet another i book that has mult an d how can i fix this

    Have just purchased yet another i book that has multiple error message and blank pages how can I fix this

    Try deleting the book from the bookshelf in your iBooks app and then re-download it via the Purchased tab in the ibookstore in it. If it re-downloads in the same state then use the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that book and use the 'Report a Problem' link.
    Some people have had a problem with the 'report a problem' link (it's been taking people to this site on a browser instead of showing a form in iTunes) - if it does that to you then try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.

  • Clearing/Addressing GR/IR item that has been paid

    Hi All,
    I am soliciting input in trying to resolve an issue related to GR/IR clearing.  The GR/IR account was not regularly cleared using MR11 or F.13.  While trying to reduce the line items we have come across a few that have me puzzled. The following are the issues:
    Scenario One
    - Good receipt was completed - two line items  80 and 20- for 100 quantity amounting to 295.00.
    - Invoice receipt was completed for 20 quantity amounting 294.78 and Paid
    - An additional invoice was created for the remaining 80 amounting 236.00 and Paid
    - Both checks have been cashed, so reversal can not be completed
    Scenario Two
    - Good receipt was completed for $100 with multiple lines
    - Invoice was completed with only one line for the amount of $100
    - Item has been paid
    Question
    What steps should be taken to clear this item from the GR/IR account?
    Thank you in advance for your professional advise.

    Thank you very much for your comments and input
    Let me elaborate further:
    Scenario One:
    There are two lines in this PO but only one is causing an issues. So all references below are related to one line alone
    PO Quantity is 100pcs @ 2.95 per pcs = 295.00
    First GR is for 20 pcs @ 2.95 per pcs = 59.00
    Second GR is for 80pcs @ 2.95 per pcs = 236.00
    First IR is for 20pcs for 294.78 - Vendor made an error on the invoice and user entered the Invoice for 20pcs totaling 294.78
    Second IR was made for 80pcs @ 2.95 per pcs = 236.00 - User then paid the vendor - As of now, we have over paid the vendor due to errors in invoicing
    Vendor issues a credit memo for 236.00 and user reverses the second IR
    The PO history shows the following:
    GR  80  236.00
    GR  20  59.00
    TR.  100 295.00
    IR-L 80- 236.00-
    IR-L 80  236.00
    IR-L 20  294.78
    TR.   20  294.78
    F.13 will not clear this amount as the quantity does not reconcile. My assumption is using MR11 would not be correct as quantity was actually received.  Another piece invoice for 20pcs can not be reversed as it has been paid/cashed.
    What can i do to address this?
    Your suggestions are greatly appreciated.

  • Forward work item that has been completed

    Can I know if there is anyway that I can forward the work item to someone even though the transaction has already completed?
    Also I would like to know if I can forward the work item to someone when it's not in a dialog step?

    Hello Shreya,
                You can forward the workitem from the transaction code SWIA.
                 You can also forward the non-dialog work item too from the same transaction code.
    Regards,
    S.Suresh
    Edited by: Suresh Subramanian on Jun 17, 2010 10:33 AM

  • BPEL - Provide Input to dbadapter proc that has plsql record as input param

    Hi,
    I have a bpel process where i have defined a DB adapter to execute a db pkg/procedure. the procedure takes a plsql record as a input parameter (as detailed below)
    ie Package has the following defined -
    TYPE rec_in_params IS RECORD(
    p_param_name VARCHAR2(30),
    p_param_value VARCHAR2(30)
    TYPE t_params IS TABLE OF rec_in_params
    INDEX BY BINARY_INTEGER;
    and the procedure has a IN variable of type t_params
    so Procedure param_proc(p_params IN t_params).......
    Question - In the BPEL process, how do i iteratively populate the input variable with the name/value pairs (in the assign activity) before invoking the db adapter ?
    Thanks.

    Use a while loop, in that loop, write your business logic ...actually created a tempVariable of the input record type for the stored procedure...in the while loop you need to write the logic in such a way that you need to assign the first record to the tempVariable, then append this tempVariable data to the invokeInputVariable. so the record gets appended to the last place if there are already some records in the invokeInputVariable or will be in the first place if there are no records. Iterate the while loop based on how many records you want to assign let's say 5. In while loop, in order to access the correct record, you need to do indexing in the XPATH and assign the same to the tempVariable. So first while loop, 1st record gets assigned, then that record in tempVariable gets appended to the invokeInputVariable. This procedure continues for n iterations. After this while loop, invoke the stored procedure...
    Hope this helps...
    Thanks,
    N

  • How to update a table that has  Million Records

    Hi,
    Lets consider the basic EMP table and lets assume that it has around 20 Million Records . we need to have an update statement.Normal UPdate statement may hang the system or it may take a lot of time.
    The basic or Normal update statement goes like this and hope it may not work.
    update emp set hiredate = sysdate where comm is null and hiredate is null;Basic statement may not work. sugestions Needed.
    Regards,
    Vinesh

    sri wrote:
    I heard Bulk collect will resolve these type of issues and i am really poor at Bulk Collect concepts.Exactly what type of issue are you concerned with? The business requirements here are pretty important-- what problem is the UPDATE causing, specifically, that you are trying to work around.
    so looking for a solution to the problem using Bulk Collect .Without knowing the problem, it's very tough to suggest a solution. If you process data in batches using BULK COLLECT, your UPDATE statement will take longer to run and will consume more resources on the database. If the problem you are trying to solve is that your UPDATE is not fast enough, this is a poor approach.
    On the other hand, if you process data in batches, and do interim commits, you can probably hold locks on individual rows for a shorter amount of time. That would only be a concern, though, if you have some other process that is trying to update the same rows that you are updating at the same time that you're updating them, which is pretty rare. And breaking your update into multiple transactions introduces a whole bunch of complexity. You now have to write a bunch of code to ensure that your process is restartable should the update fail mid-way through leaving some number of updates committed and some number rolled back. You have to have a very detailed understanding of the data and data consistency to ensure that breaking up the transaction isn't going to negatively impact any process, report, etc. To do it correctly is a pile of work and then it's something that is constantly at risk of creating problems in the future when requirements change.
    In the vast majority of cases, you're better off issuing a simple SQL statement during a time when the system isn't particularly busy.
    Justin

Maybe you are looking for