Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Mwa class custom_files
1. Senthil,
I am currently doing some customization on MWA. Mainly Picking page in 12.2.4.
One of my changes is to be done on one of the Picking Page . This page is not directly getting called
from the menu.
It is the second/third level page.
So, the ideal scenario is , we extend all the previous levels also, to achieve a new functionality, right ?
But when I did some analysis, I found the below code in MWALib.java file.
String str9 = (String)paramMWAEvent.getSession().getObject("TXN.CUSTOMIZATION");
String str7;
String str8;
if ((str9 != null) && (str9.equals("YES")))
{
str7 = MWALib.getCustomizedClassName("oracle.apps.wms.td.server.MainPickPage") !=
null ? MWALib.getCustomizedClassName("oracle.apps.wms.td.server.MainPickPage") :
"oracle.apps.wms.td.server.MainPickPage";
str8 = MWALib.getCustomizedClassName("oracle.apps.wms.td.server.DetailPickPage") != null ?
MWALib.getCustomizedClassName("oracle.apps.wms.td.server.DetailPickPage") :
"oracle.apps.wms.td.server.DetailPickPage";
}
else
{
str7 = "oracle.apps.wms.td.server.MainPickPage";
str8 = "oracle.apps.wms.td.server.DetailPickPage";
}
Also, as per the below blog, we can extend this page by inserting a value into a MWA config table.
http://gaeaglobal.com/oracle-wms-msca-picking-customization-faq/
The table looks like MWA_CLASS_CUSTOM_FILES.
But I have no idea how to get values populated into these table. Do you know how this is done ?
I tried to insert values directly into the MWA_CLASS_CUSTOM_FILES table using
insert
into MWA_CLASS_CUSTOM_FILES(CLASSFILEID,CLASSOLDFILE,CLASSNEWFILE,ENABLED,CRE
ATION_DATE,CREATED_BY,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN)
values
( 1,'oracle.apps.wms.td.server.MainPickPage','oracle.apps.wms.td.server.MainPickPage124','Y',sys
date,-1,sysdate,-1,-1);
MWALib.getCustomizedClassName("oracle.apps.wms.td.server.MainPickPage") is
returning 'oracle.apps.wms.td.server.MainPickPage124'.
But paramMWAEvent.getSession().getObject("TXN.CUSTOMIZATION") is returning null. How is this
being set ? Any Profile ?
Profile 'MWA: Enable Personalization' is set to Yes at site level.
I think I have got the answer to my first question.
"But paramMWAEvent.getSession().getObject("TXN.CUSTOMIZATION") is returning null. How is
this being set ? Any Profile ?"
I modified the parameter of the FND_FUNCTION and added CUSTOMIZATION=YES to the
parameters and looks like it is working. I am still waiting for Oracle Support to let me know how to do
this :)
Old Value : PAGE_TYPE=DIRECTED_TASK
UI=GENERAL TASK_FILTER=NONE TASK_METHOD=DISCRETE
New value : PAGE_TYPE=DIRECTED_TASK
UI=GENERAL TASK_FILTER=NONE TASK_METHOD=DISCRETE CUSTOMIZATION=YES
25 May 2016
10:32
Pharma Page 1
2. The above change and then add an entry into the table MWA_CLASS_CUSTOM_FILES, the custom
page is invoked in the application.
Pharma Page 2