Capture who changed data using Forms Personalization & changed to what data
Dear All,
When the data is changed to a new data (say the price has been changed), I need to capture
a) the original data
b) newly changed data
c) who changed the data
into a newly created custom table using FORMS PERSONALIZATION.
How do I do using FORMS PERSONALIZATION?
Thanks.
Matthew
Hey guys, I did it.... and it does work. Here is what I did.
I created a table to capture the required data.
CREATE TABLE XYKA_PRICE_CHANGE_DTLS
LIST_LINE_ID NUMBER,
PRODUCT_ID VARCHAR2(240),
PRODUCT_ATTR_VAL_DISP VARCHAR2(4000),
NEW_PRICE NUMBER,
DIV_NAME VARCHAR2(240),
PRICE_CHANGED_BY VARCHAR2(6),
PRICE_CHANGED_TIME DATE,
OLD_PRICE NUMBER
Create two procedures which needs to enter data into this XYKA_PRICE_CHANGE_DTLS table. We will pass values from FORMS PERSONALIZATION by calling this
procedure in the ACTION tab.
CREATE OR REPLACE procedure PRICE_CHANGE_DETAILS(price IN number,updated_by IN varchar2,disp IN varchar2,prod_id IN varchar2,line_id IN number,head_id in number,old_price in number) AS
v_name varchar2(240);
BEGIN
select name into v_name from qp_secu_list_headers_v where list_header_id = head_id;
insert into XYKA_PRICE_CHANGE_DTLS(NEW_PRICE, PRICE_CHANGED_BY,ITEM_NUMBER,PRICE_CHANGED_TIME,PRODUCT_ID,LIST_LINE_ID,PRICE_LIST_NAME,OLD_PRICE) values (price,updated_by,disp,sysdate,prod_id,line_id,v_name,old_price);
COMMIT;
END;
CREATE OR REPLACE procedure APPS.PRICE_CHANGE_DTLS(price IN number,updated_by IN varchar2,disp IN varchar2,prod_id IN varchar2,line_id IN number,head_id in number,old_price in number) AS
V_PRICE_CHANGED_TIME date;
V_PRODUCT_ID varchar2(240);
V_LIST_LINE_ID number;
V_count number := 0;
BEGIN
select count(*) into v_count from XYKA_PRICE_CHANGE_DTLS
WHERE LIST_LINE_ID = line_id AND PRODUCT_ID = prod_id AND NEW_PRICE = price;
if nvl(v_count,0) = 0 THEN
PRICE_CHANGE_DETAILS(price,updated_by,disp,prod_id,line_id,head_id,old_price);
else
null;
end if;
END;
In fact, I want to capture the current price and the changed price in pricing which is OPERAND field in qp_list_lines_v table (OM MANAGER > PRICING > PRICE
LISTS > PRICE LIST SETUP)
In the FORM PERSONALIZATION, enter the seq and the description
Seq 1
Description GLOBAL_VARIABLE
Level Function
In the CONDITION tab
Trigger Event WHEN-NEW-ITEM-INSTANCE
Trigger Object LIST_LINES.OPERAND
Processing Mode Not in Enter-Query Mode
Level Site
In the ACTION tab
Seq 1
Type Property
Description Operand Value
Language All
Object Type Global Variable
Target Object XX_EXIST_OPERAND_VALUE
PropertyName VALUE
Value ${item.list_lines.operand.value}
Seq 2
Type Property
Description USER
Language All
Object Type Global Variable
Target Object XX_USER_ID
PropertyName VALUE
Value =fnd_global.user_id
Seq 2
Description CONDITION & PASSING PARAMETER
Level Function
In the CONDITION tab
Trigger Event WHEN-VALIDATE-RECORD
Trigger Object LIST_LINES
Condition ${item.list_lines.operand.value} <>${global.XX_EXIST_OPERAND_VALUE.value}
Processing Mode Not in Enter-Query Mode
Level Site
In the ACTION tab
Seq 1
Type Builtin
Description PASSING_VALUE
Language All
Builtin Type Exceute a Procedure
Argument ='begin PRICE_CHANGE_DTLS('''||${item.list_lines.operand.value}||''','''||${global.XX_USER_ID.value}
||''','''||${item.list_lines.product_attr_val_disp.value}||''','''||${item.list_lines.product_id.value}
||''','''||${item.list_lines.list_line_id.value}
||''','''||${item.list_lines.list_header_id.value}||''','''||${global.XX_EXIST_OPERAND_VALUE.value}
||''');end'
Click APPLY NOW button. Save it and the close this FORMS PERSONALIZATION. Go back to the navigation and then click on the module. Try changing the price.
Your current and the newly changed price along with who changed it, time etc will be inserted into XYKA_PRICE_CHANGE_DTLS table.
Edited by: e-brain on Sep 14, 2009 11:21 AM
Edited by: e-brain
Similar Messages
-
Is it Possible to Change SYSTEM variable using forms personalization?
Hi,
Is it possible to the Message_level using forms personalization? I explored it quite a bit, but was unable to find a way to do it. I need to set the message level to '10' on a specific trigger.
Please let me know your thoughts.
Thanks
KonnektmeAny Ideas Anybody?
Thanks
Karthik Jayaraman -
Hi Experts
We are working on one requirement in which on a standard D2K EBS form based on the response of a warning message we need to perform certain actions using Form Personalization.
The problem is that we are not able to capture response of OK and Cancel buttons of the warning.
If any one has come across such scenario, I would request to please share your valuable suggestions. 2898414
Thank You
Regards
Mirza TanzeelFigured out myself that this is mot possible using Form Personalization.
Only option possible is to try implementing by modifying custom.pll
Thanks
Mirza Tanzeel -
Adding fields using forms personalization
Hi All,
Is it possible to add the fields to a form using forms personalization.
Thanks and Regards,
Zaheer.No. But if you have fields that are not being used, you can change the prompt and repurpose them (provided the data type does not have to change) and validations can be manipulated.
Have you looked into creating descriptive flex fields?
Sandeep Gandhi
Edited by: Sandeep Gandhi, Independent Consultant on Jul 13, 2010 11:52 AM -
Overriding implementation class property using forms personalization
Hi,
Is it possible to set the implementation class property of a button using forms personalization ? Am looking to change the look and feel with out having to modify the Form itself.
Is this possible?
Thanks!questions to Personalization are best asked in the ebs-forum
General EBS Discussion -
How to calculate sum of quantities of same item in po release using form personalization?
I am doing one form personalization in which an item can be entered multiple times in with different released quantity and need by date.
I want to calculate the sum of release quantity of items.
How I can achieve this using form personalization?
Thanks
SunnyHi Gayatri,
I'm not too sure why this isn't working as the logic seems correct.
Here's another way to do this:
1) Create another formula and place this on the Details Section:
whileprintingrecords;
numbervar x;
if onfirstrecord then
x := {Field_to_summarize}
else if {ExcisePur.ItemCode} <> Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum} <> Previous({ExcisePur.Batchnum}) then
x := x + {Field_to_summarize};
2) Create another formula and place this on the Report Footer:
whileprintingrecords;
numbervar x;
-Abhilash -
Call Another Form using Forms Personalization
Hi All,
I have created a Custom form using TEMPLATE.fmb and created functions in Apps and assigned to Responsibility etc and it all works OK.
Now, I need to call this Custom form from another seeded(PO form) Via Tools -> Menu.
using Forms personalization I can get the Menu Entry and Actions to execute the Form successfully from the PO Form.
BUT, I need it to automatically query records in my CUSTOM form based on my current PO_HEADER_ID value on my PO Form.
How can I do it ?
Do I need to modify my Block and add some parameters and then pass a value via Personalization ?
Please help !
Thanks
ShankarDuplicate thread (please post only once).
calling Custom Form from Another Form
calling Custom Form from Another Form
Thanks,
Hussein -
How to use form personalization to lunch concurrent program
Hi,
Now I am using the form personalization to lunch a concurrent program with global variables.But how to post the global variables to the program parameters.
Thanks and best regards
Fang
Edited by: 895910 on Dec 25, 2011 7:54 PMHi,
I have defined global variables using form personalization. But how should i launch a SRS Form to submit a request and pass the variables as parameters. What should the syntax be.
Thanks and best regards,
Fang -
How to Call a form using forms personalization ?
Hi All,
We have a requirement where we need call a form when we tab out of a field from one form. How can we call a from using forms personalization ??
Can anyone state the steps or point to any metalink note.
RegardsHi,
Please check whether following link help you:
http://oracleapps88.blogspot.com/2011/06/calling-another-form-parameters.html
Regards, -
Creating a new field in a standard form using Forms Personalization
Gurus,
Has anyone done this? If so, could you please provide steps involved or point me to a good tutorial
I need to add user name to a standard transaction-based form. I want to make sure this can be done through personalization.
Thanks,
Scott
P.S. I give points for helpful or correct answers
Edited by: sreese on Oct 17, 2011 1:24 PMPl post details of OS, database and EBS versions.
I do not believe you can add new fields to seeded forms using forms personalization.
MOS Doc 420518.1 - Limitations of Forms Personalization
BTW, points are meaningless :-)
HTH
Srini -
How can we disable Block Level Trigge using Form Personalization
Hi,
I want to disable block level trigger(WHEN-NEW-RECORD-INSTANCE) using forms personalization at responsibility level.
Can any one please give me the answer.
it's urgent
Thanks and Regards,
DhanaNo, Firefox is user choice rules over the "wants" of individual websites as far as disabling contextual menus and the keyboard commands.
Placing a transparent image over the image will keep the less technical user from saving the main image. If they do try to save it all they'll get is the transparent image overlay. -
How to create a new check box using form personalization.
Hi Frs,
I have a requirement to create a new check box in AP form using form personalization.
Pls help me in achieving this.
Note: we have to use only form personalization not custom.pll.
Thanks
RajeshPl see ML Doc 420518.1(Limitations of Forms Personalization) for a list of things you cannot do with personalization - among them is creating new form objects such as checkboxes.
HTH
Srini -
Sum of the fields in SO form using Forms personalization
In sales order form, Once we enter the item and qty in a line . The qty entered should be multiplied by volume of an item avaiable in mtl_system_items_b and should be displayed in the line level DFF(attribute14). Thus we get the line level Volume
Once n number of lines are entered in SO form . The sum of line level volume should be displayed in the header level DFF(attribute14.
I am able to get the Line level volume using global variable.
Could any one please let me know is it possible to get the sum of line level volume in the header DFF using forms personalization.My requirment is to get the "Line level volume" information in line level DFF and "order level volume" information in header level DFF of a Sales Order form.
line level volume = unit_volume*quantity
Order level Volume = sum of n number of line level volumes = line level volume of line 1.1 + line level volume of line 1.2 + line level volume of line 1.3 ......
For Example consider an item 2E00001010 item. The volume of this item is mentioned in the physical attributes of an item. we can get the volume of this item from unit_volume in mtl_system_items_b . say for example the unit_volume of this item is 20 litres.consider another item 2X000X101 and unit_volume is 15 litres.
Now in sales order in line 1.1 i have entered an item 2E00001010 and quantity as 10. In line 1.2 i have entered an item 2X000X101 and quantity as 10 and saved the sales order.
1.1 line level volume = 20*10 = 200
1.2 line level volume = 15*10 = 150
Order level volume = 200 + 150 = 350
So as according to the requirement in
1.1 line level DFF(LINE.ATTRIBUTE14) 200 should be displayed .
1.2 line level DFF(LINE.ATTRIBUTE14) 150 should be displayed.
In header level DFF(order.attribute14) 350 should be displayed.
By using below forms personalization i am able to get the Line level Volume information displayed in Line level DFF(Line.attribute14)
seq 10
description : Line Level Volume
Trigger event : when-New-Item-Instance
Trigger Object : Line.Ordered_quantity
Level : Site
Action Seq: 10
Type: Property
Object Type: Global Variable
Target Object: XX_VOL
Property Name : Value
Value = =SELECT to_char(nvl(Unit_volume,0)) from mtl_system_items_b where segment1 =:line.ordered_item_dsp and organization_id = 89
Action Seq: 20
Type: Property
Object Type:Item
Target Object: LINE.ATTRIBUTE14
Property Name: Value
Value = =to_number(:global.XX_VOL)*:line.ordered_quantity
I would be glad if any one could let me know how to get the Order level volume and get displayed in the Header level DFF(order.attribute14) using forms personalization. -
Launch orcale cz configurator using form personalization
Hi All,
We are trying to launch oracle cz configurator using form personalization ,can anyone tell me what are the paremters to be passed to the configuartor ,currently we are passing parameter from launch a function for a model as :
='database_id='||'dvoa083'||'&icx_seesion_ticket='||'F06E20B60E01E1F5DAC03223D56B3230'||'&ui_type='||'JRAD'||'&ui_def_id='||39980
but the page is giving null pointer exception:-
## Detail 0 ##
java.lang.NullPointerException
at oracle.apps.cz.runtime.oa.server.CZApplicationModuleImpl.setPageController(CZApplicationModuleImpl.java:785)
at oracle.apps.cz.runtime.oa.webui.AbstractMainPageController.processRequest(AbstractMainPageController.java:261)
at oracle.apps.cz.runtime.oa.webui.MainPageController.processRequest(MainPageController.java:64)
Regards,
debCan you post complete init message sent to the CZ Servlet URL? Can you try it in standalone mode? Can you try after clearing cache/cookies?
-
How to commit the PO form after each line using form personalization
Hi All,
I have a requirement, wherein we need to commit the Purchase order form, once a line is entered or before moving to the next line using form personalization.
Please assist me in getting it done.
Regards,
KR.
Edited by: 834152 on Feb 17, 2011 9:13 PMHi Sandeep,
Thanks for your response.
At the line level in the purchase order form, we have configured DFF with one field for train# and 14 fields for the container#.
In order to prevent the user from entering the same container# twice in the same PO. We need to save the PO on each line. So that when the user move to the next line, our program will check with base tables and confirm whether the entered container# is free to use or not.
Regards,
KR.
Maybe you are looking for
-
Problem with non currency field calculations to become curr
Hi guys, Is there a problem if I have a QUAN field and DEC field forming to become a CURR field? I mean a have this computation below: v_var1 = v_var2 * v_var3. where v_var1 type QUAN, v_var2 type DEC and v_var3 type CURR... would it incur any proble
-
my email address would apear to be too long. It keeps cutting short when I try t set up mailboxes. Any ideas?
-
Pdf has grey background?
Lately, all the pdf files that I open have a dark grey background on them... it makes it hard to read and even harder to print.... HELP! Why is this happening? these are files I download or that are emailed to me. I am not the creator. I have never h
-
How to I customize HTML5 output for playbars?
Hello: I am taking the default playbar (default.fla) and modifing it by adjusting the background height and button heights. I have successfully modified the default.fla file and published it as a SWF. I placed this SWF into the en_US > Gallery > Pla
-
I created one adobe plugins to work from Adobe Reader/Acrobat using Adobe Acrobat SDK and that was built on .net 3.5 version. On conversion of .net framework version from v3.5 to v4.5, we are now getting error while the Adobe Reader/Acrobat is starti