frm-40737 [message #475976] |
Mon, 20 September 2010 06:46 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
manisha_borade
Messages: 49 Registered: May 2010
|
Member |
|
|
I have simple canvas
In that I have first item as item(inventory) from lov and on that basis po_rate,received_quantity,invoice_rate for item should be displayed for that i written code as on
POST_TEXT_ITEM.
(means when user select any item from lov then po_rate,received_quantity,invoice_rate for different po should be displayed.)
but it give me error as FRM:40737 restricted procedure next_record
what should i do.......
i cant use button .......
so please give me any another solution for this
|
|
|
Re: frm-40737 [message #475980 is a reply to message #475976] |
Mon, 20 September 2010 07:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Why are you using next_record at all?
Surely you want to populate po_rate,received_quantity,invoice_rate in the current record?
Why aren't you using the LOV to populate the other items?
|
|
|
Re: frm-40737 [message #475985 is a reply to message #475980] |
Mon, 20 September 2010 07:22 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
manisha_borade
Messages: 49 Registered: May 2010
|
Member |
|
|
sir
Actually other items (po_rate, invoice_rate)are come from base table. i cant use lov for that.
means suppose 1 po is there, in that item x is use. its po_rate 12, invoice_rate=24435 and same item use in onather po with different po_ratea and invoice_rate
i have show that record sir.already define po_rate and invoice rate should be displayed
|
|
|
Re: frm-40737 [message #475986 is a reply to message #475985] |
Mon, 20 September 2010 07:27 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
manisha_borade wrote on Mon, 20 September 2010 13:22sir
Actually other items (po_rate, invoice_rate)are come from base table. i cant use lov for that.
Why not? LOV queries can be written against more than 1 table.
manisha_borade wrote on Mon, 20 September 2010 13:22
means suppose 1 po is there, in that item x is use. its po_rate 12, invoice_rate=24435 and same item use in onather po with different po_ratea and invoice_rate
i have show that record sir.already define po_rate and invoice rate should be displayed
I've no idea how any of that relates to the problem.
You still haven't explained why you're trying to use next_record at all.
It might help if you posted the code in your current post-text-item trigger.
|
|
|
Re: frm-40737 [message #475987 is a reply to message #475976] |
Mon, 20 September 2010 07:35 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
manisha_borade
Messages: 49 Registered: May 2010
|
Member |
|
|
i create a form like summary form of items which are used in po.
1 item may be used in multiple po's and their rate may be different , so i need next_records
PACKAGE BODY utl_pkg
IS
PROCEDURE xx_po_rate_receipt
IS
CURSOR c1
IS
SELECT pla.unit_price * pla.quantity AS po_rate,
pll.quantity_received receipt
FROM mtl_system_items_b msi,
po_lines_all pla,
po_line_locations_all pll,
po_headers_all pha
WHERE msi.inventory_item_id = pla.item_id
AND msi.organization_id = pll.ship_to_organization_id
AND pla.po_header_id = pll.po_header_id
AND pla.po_line_id = pll.po_line_id
AND pha.po_header_id = pla.po_header_id
AND pha.authorization_status = 'APPROVED'
AND msi.segment1 = :xx_mitc_bill.item;
BEGIN
--execute_query;
-- GO_BLOCK('XX_MITC_BILL');
FIRST_RECORD;
OPEN c1;
LOOP
FETCH c1
INTO :xx_mitc_bill.po_rate, :xx_mitc_bill.receipt;
EXIT WHEN c1%NOTFOUND;
NEXT_RECORD;
END LOOP;
FIRST_RECORD;
CLOSE c1;
END;
END;
|
|
|
Re: frm-40737 [message #475988 is a reply to message #475987] |
Mon, 20 September 2010 07:49 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
ranamirfan
Messages: 535 Registered: January 2006 Location: Pakistan / Saudi Arabia
|
Senior Member |
![ranamirfan@gmail.com](/forum/theme/orafaq/images/google.png)
|
|
Dear,
Quote:
Post-Text-Item Trigger Restrictions
The Post-Text-Item trigger does not fire when the input focus is in a text item and the operator uses the mouse to click on a button, check box, list item, or radio group item that has the Mouse Navigate property Off. When Mouse Navigate is Off for these items, clicking them with the mouse is a non-navigational event, and the input focus remains in the current item (in this example, a text item). If "Validation Unit" property is set to a value other than "Item" or "Default", then POST-TEXT-ITEM does not fire.
Try this Trigger at Block Level.
Regards,
Irfan
|
|
|
Re: frm-40737 [message #475989 is a reply to message #475987] |
Mon, 20 September 2010 07:53 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
This makes no sense.
You're running a query to populate 2 items based on the value of a third item in the same block.
You want to run this code whenever the 3rd item is changed.
Why are you trying to overwrite the values of the other records?
|
|
|
Re: frm-40737 [message #475990 is a reply to message #475989] |
Mon, 20 September 2010 07:56 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
@ranamirfan - the problem isn't when the trigger fires. The problem is post-text-item doesn't allow restricted built-ins like next_record. Post-change doesn't allow it either. So your suggestion will solve nothing.
|
|
|