How to derive DFF segment id programatically, attached to OAF page
Hi Guru's
I am facing below challenges in handling the segments of DFF which is attached to OAF page.
As per the requirement, we need to do the changes on the segments of DFF(Party Information). But segments of these DFF are different for each attribute category in DFF.
I can get the segment id by seeing the View Source of that page where DFF is attached but this id differs when sequence of DFF segments differs.
for ex.:- for Attribute Category Comany segments sequece are-
1) Acounting
2) Sub Accounting
so for this attribute category Accounting segment id will be 01 and Sub Accounting segment id will be 02
but for Attribute Category Agency segment sequece are-
1) Sub Accounting
2) Accounting
so for this attribute category segment id will 01 for Sub Accounting and 02 for Accounting.
So we need the approach to derive the segment id instead of getting it from View Source page.
Can any one please help on this?
Please reply incase you require more details on it..
Regards,
Piyush
Edited by: Piyush_Gupta on Feb 4, 2013 10:00 PM
Hi All,
I am still facing the challanges.
Could anyone help me on this?
Regards,
Piyush
Similar Messages
-
How do I raise a Business Event from a OAF page?
Hello,
I am developing a custom system using the OAF and need to raise a custom Business Event, which in turn will have a subscription to launch a workflow process.
How do I raise a Business Event from a OAF page ?
Can I use the classes in oracle.apps.fnd.wf.bes.* ?
Any help would be highly appreciated.
Best Regards,
Andries HanekomHi,
When I try to compile just the basic part of my class I receive the following error:
Error(21,36): cannot access class javax.jms.TextMessage; file javax\jms\TextMessage.class not found
Class Code:
import oracle.apps.fnd.wf.bes.BusinessEvent;
public class VscmsEvents
public VscmsEvents()
public static void main(String[] args)
VscmsEvents vscmsEvents = new VscmsEvents();
//Initialize BusinessEvent, Payload objects
public void initEvent(String eventName, String eventKey, String eventData)
//Create BusinessEvent Object
BusinessEvent mEvent = new BusinessEvent(eventName, eventKey);
Furthermore, when using the BusinessEvent object to raise the event I will need to provide the raise method with a java.sql.Connection parameter. In the context of a OAF page how will I perform this?
Thanks for the help.
Best Regards,
Andries Hanekom -
COPA, how to derive Profit Segment as a characteristic
In COPA I created a characteristic u201CSegmentu201D to report on the Profit Center Segment. I am trying to use Define Characteristic Derivation, T-code KEDR to derive and populate the Profit Center Segment characteristic.
I did the following: use u201CTable Lookupu201D and link it to table CEPC.
1) In the source field the following 3 fields appear and I mapped them to COPA fields:
CEPC-PRCTR Profit Center
CEPC-DATBI Valid To Date
CEPC-KOKRS Controlling Area
2) In the "Assignment of table fields to target fields" section I mapped the CEPC-Segment field to the COPA "Segment" characteristic .
The problem is it does not derive the Segment!
Am I doing something wrong?
Is this the best way to determine the Profit Segment?
Have you seen this before?
Any help will be highly appreciated!!Ajay, thanks for your reply.
The setup is exactly as you suggested, playing more with it I also added some fixed conditions and it is still not working. I did the analysis before and did it again upon your recomendation but unfortunately no sucess. The profit center=segment entries are in CEPC (checked with se16)......
Here is the log from the analysis.
0067 Table lookup Determine Profit Center Segment
Derivation was not carried out. Reason: Source field contains no value.
Check condition for step
Origin Field Name Description Content Op. Constant Result
GLOBAL USERTEMP1 Temporary field 1 (user-de < 12/31/9999 Fulfilled
CO-PA KOKRS Controlling Area GLOB = GLOB Fulfilled
CO-PA PRCTR Profit Center 0000010111 = 0000010111 Fulfilled
Source fields
Origin Field Name Description Content Comments
CO-PA PRCTR Profit Center 0000010111
GLOBAL USERTEMP1 Temporary field 1 (user-de Source field contains no value -
How to display the username and current date in OAF page Footer region
Hi,
I need to display the username and Current-Date in footer region.If anybody knows the procedure then please share with me.
Thanks
Divya AgarwalHi,
Read this Thread:--
You have to capture the UserName and Date in the Process Request Method of page Controller and invoke a method which will subsequently get and set the value in some attribute.
String userName = pageContext.getUserName();
How to populate Current Date and Time in OAF page through CO
Thanks
--Anil -
How to render direction on elocation Map in my OAF page?
hi,
I have the coordinates of start and destination points in my OAF page. How do I render the directions like what I see in http://elocation.oracle.com/elocation/directions.jsp.
Is there a service elocation provides where I can pass the values and expect to render the elocation page on the region of my page. Like calling the elocation service and render it on the region of my page, where I can also zoom in/ zoom out to see the directions in details.
If not, can you please suggest any documents whihc has the APIs I need to call to implement direction on elocation map which I can fit into my page.
Thank you,
Prashanth
Edited by: Prashanth Pillai on Oct 23, 2009 1:49 AMYou need to send an XML routing request to the elocation server, extract the route geometry from the response, and display the route geometry as an MVFOI object on the map.
-
How to set where clause for a Valueset from OAF Page
Hi all
I am customizing a standard page Employee Self Service. I have added some additional fields to existing KFF. There was field say "CHILD NAME" which is a free text field. The client now wants it to be a Drop down(or as LOV) which should display only the name of the child of the employee who is logged in.
I want to know if i can achieve it by attaching a value set to the CHILD NAME field. But how to set the employee id to that valueset in order to show only the children of the particular employee
Regards,
PradeepHi Pradeep,
If you could share some more details of the region you are trying to customize we can help
1. Do you need this selected value through lov or drop to be saved to the database
2. Right now, the "CHILD NAME" is this part of any table or in a panel. If would be best if you paste the PG.XMl and point the field you are trying to change.
This would help us to give you the best solution
Thanks
Sandeep -
How Can I disable Button from Button Bar on OAF page
Hi Everyone,
We have a requirement like, in button bar I need to hide one button.
I worked on personalization but there is a option to hide entire button bar, not single button.
If I extend controller, how can I proceed , please provide steps.
or
please provide how can i achieve this??????
Thanks,
RakeshHi,
If your issue has been resolved than please close the thread so that it can be helpful for others as people may search with answered threads.
--Sushant -
How to Set the Effective Date to Sysdate in OAF Page
Hi All,
I am new to OAF and started working on OAF. I have a unique situation and I am unable to get it going. Here is the situation.
1) Currently on Benefits module when an user logons he/she will be directed to FamilyMbrsPG. In this Page I had extended the controller(BenEnrlHeaderCO) to set the Effective Date to as that of life event occured date. This is working fine.
But the issue arrises when one clicks the next button on FamilyMbrsPG. The requirement is when One navigates to CurrOvwPG at that page the effective date needs to be reset to Sysdate which I am unable to do. But the probloem is when I am trying to debug the controllers files of CurrOvw It is pointing to the controller class of FamilyMbrsPG which is BenEnrlHeaderCO.
I was trying to reset the Effective Date as of sysdate.
Can you please let me know as how to proceed from here.
Thanks and Regards
Vinod
Edited by: user5149618 on Sep 17, 2009 8:01 PMHi Gauravv
Well here it is
1) But the probloem is when I am trying to debug the controllers files of CurrOvw It is pointing to the controller class of FamilyMbrsPG which is BenEnrlHeaderCO
In this scenario what is happening is for the page CurrOvwPG there are 6 controller class files which are as follows.:
1) BeneficiariesOverviewCO.java
2) CoveredDependentsOverviewCO.java
3) CurrentBenefitsCO.java
4) CurrentBenefitsTopCO.java
5) SelectionOverviewTableCO.java
6) SelectionsOverviewCO.java
When I ran the project in debug mode and placed the breakpoints for the controller class files. As soon as I click the next button in FamilyMbrsPG the breakpoint in occuring at line31 of BenEnrlHeaderCO which is again a controller class file for FamilyMbrsPG which has been already extended to set EffectiveData to that of Life even occured Date.
Now in CurrOvwPG I need to reset the EffectiveDate to Sysdate. Please let me know if this is clear...
Thanks and Regards
Vinod -
How to Update Particular row in a table from OAF page
Hi Can anyone please help me on the following requirement:
In my oaf page i am displaying table values(supplier site details from base tables) with update and delete icons . When i click on update button a new page opens in which we used to update the values and click on apply button which again comes back to the original page.
So when i click on apply button on update page i have to first search for the site in the site table whether it exists or not, if not exists i have to create a new row and save the data, if site exists in the table i have to update the row of a table for that particular site. I have written code for this but unable to achive the requirement, it is not updating the existing row of the table. And i am doing all this on the Temp tables.
So now when i save, previous transaction is also updating along with the current transaction. That means when i m trying to save 2nd transaction values , 1st transactions values are getting updated with the 2nd transaction values(2 rows are getting updated)
Can anyone help me with the code used for updating the current row of the table. Please correct me if i m doing anyting wrong in code.
following is the current code i m using and which is failing :
Controller Code
if(pcontactaction.equals("createECdetailsEvent")) {
String currentSiteName=pageContext.getParameter("SiteName");
System.out.println("Selected Site Name is : " + currentSiteName);
Serializable x[]={reqNum,suppId,currentSiteName,pnotifMethod,pfaxNum};
System.out.println("Invoking AM Method.........");
am.invokeMethod("initCreateECDetails",x);
System.out.println("initCreateECDetails Method Executed. ");
//am.invokeMethod("save");
localOAApplicationModule.getTransaction().commit();
pageContext.setForwardURL(
"OA.jsp?page=/oracle/apps/floaf/flpos/supregister/webui/ECDetailsPG"
, null //not needed as we are retaining menu context
,OAWebBeanConstants.KEEP_MENU_CONTEXT
, null //not needed as we are retaining menu context
,null // no parameters are needed
,true //retain AM
,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
,OAWebBeanConstants.IGNORE_MESSAGES);
AM Code
public void initUpdateECDetails(String request_number,String supplier_id,String site_name,String site_id,String notification_method,String fax_number)
OADBTransaction localOADBTransaction = getOADBTransaction();
String siteToUpdate;
siteToUpdate=site_name;
String siteidToUpdate;
siteidToUpdate=site_id;
System.out.println("Site Name to Update or Create is : " + siteToUpdate);
System.out.println("Site Id to Update or Create is : " + siteidToUpdate);
System.out.println("Inside Update EC Details MEthod.");
OAViewObject suppSiteDetVO = getFLPOSSuppSiteDetailsVO1();
FLPOSSuppSiteDetailsVORowImpl sro=null;
String existingWhereClause = suppSiteDetVO.getWhereClause();
suppSiteDetVO.setWhereClause(null);
suppSiteDetVO.setWhereClauseParams(null);
suppSiteDetVO.setWhereClause("SUPPLIER_ID = :1 AND REQUEST_NUMBER = :2 AND SITE_ID = :3 ");
suppSiteDetVO.setWhereClauseParam(0, supplier_id);
suppSiteDetVO.setWhereClauseParam(1, request_number);
suppSiteDetVO.setWhereClauseParam(2, site_id);
suppSiteDetVO.executeQuery();
suppSiteDetVO.setWhereClauseParams(null);
suppSiteDetVO.setWhereClause(existingWhereClause);
int rowcount = suppSiteDetVO.getRowCount();
System.out.println("Fetched Rows : " + rowcount);
if (rowcount == 0) {
Row row = suppSiteDetVO.createRow();
System.out.println("Row is : " +row);
suppSiteDetVO.insertRow(row);
String siteId = getOADBTransaction().getSequenceValue("FLPOS_SITE_ID_SEQ").toString();
System.out.println("New Site ID : " + siteId);
row.setNewRowState(Row.STATUS_INITIALIZED);
row.setAttribute("RequestNumber", request_number);
row.setAttribute("SupplierId", supplier_id);
row.setAttribute("SiteName", site_name);
row.setAttribute("SiteId", siteId);
row.setAttribute("FaxNo",fax_number);
row.setAttribute("NotificationMethod",notification_method);
System.out.println("New Row Created for Supplier Site.");
System.out.println("Data Saved to table.");
else{
System.out.println("Inside Else Block ");
try {
System.out.println("Inside Try Block ");
Row[] row = suppSiteDetVO.getAllRowsInRange();
for (int i = 0; i < rowcount; i++) {
sro = (FLPOSSuppSiteDetailsVORowImpl)row;
String psiteName=sro.getSiteName();
Number psiteid=sro.getSiteId();
System.out.println(" p Site Name is : " +psiteName);
System.out.println(" p site id is " +psiteid);
if(psiteid.equals(siteidToUpdate) ) {
sro.setAttribute("FaxNo",fax_number);
sro.setAttribute("NotificationMethod",notification_method);
//getOADBTransaction().commit();
break;
catch (Exception e) {
System.out.println("Exception in update : " + e);
}Please answer following:
1. Are you using EO based VOs or ReadOnly VO?
2. What is your VO Query for the search and update?
3. Why have you based your logic on site_name; you should have used site_id?
4.Are you getting correct site name in handling createECdetailsEvent event in CO?
5. In case of update are you getting correct values on the Update Site Details?
6. On coming back from Update page to Supplier Site Search page, do you see old values of the site or the new values in the results table?
Please share the screenshot if possible.
-Prince
[email protected]
http://princekapoor82.blogspot.com -
How can I Fetch the error message from a OAF page
Hi,
A confirmation message is coming on the page,I want to catch the error message and depending on its value want to add some validation.
Is that possible to fetch the error message from the page?is it a confirmation message or an error message ?
Code in the OAF page would be raising an OAException with a message name defined in message dictionary.
you would need to look at the code to understand where this is thrown from and add your validation there.
Tapash -
How to display data in multiple lines in a OAF page
Dear All,
I have search field and the data is coming like this:
Mobile Phone Number(s) 0044 7843 271222, 0044 6664 2222
I have to show data like
Mobile Phone Number(s) 0044 7843 271222
0044 6664 2222.
Please let me know which item type i should use to show data like this.851265 wrote:
Dear All,
I have search field and the data is coming like this:
Mobile Phone Number(s) 0044 7843 271222, 0044 6664 2222
I have to show data like
Mobile Phone Number(s) 0044 7843 271222
0044 6664 2222.
Please let me know which item type i should use to show data like this.You may take two messagetextInput fields and show the data into each of them by substring the original string.
Thanks
AJ -
How to generate a URL to specific record in OAF page?
Hi,
I need to generate URL to a specific page with populated record data.
I've tried using FND_RUN_FUNCTION.get_run_function_url, but i don't know if this is a good method for OAF page.
The page is opening but record is not populated.
This package generates URL like /RF.jsp?function_id=?....
The OAF pages have URLs like /OA.jsp?page=...
Is there any way I can generate this URL?Hi
Use this code to upload the file in the server and there by get the absolete path
public void onActionUpload_File_in_Server(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionUpload_File_in_Server(ServerEvent)
InputStream text=null;
int temp=0;
try
File file = new File(wdContext.currentContextElement().getFileResource().getResourceName().toString());
FileOutputStream op = new FileOutputStream(file);
if(wdContext.currentContextElement().getFileResource()!=null)
text=wdContext.currentContextElement().getFileResource().read(false);
while((temp=text.read())!=-1)
op.write(temp);
op.flush();
op.close();
path = file.getAbsolutePath();
wdComponentAPI.getMessageManager().reportSuccess(path);
catch(Exception e)
e.printStackTrace();
//@@end
Regards
Chandran S -
Hi ,
My requirement is-
I have a region in the page which has 4 fields.Based on a condition I need to disable these fields.
For this I tried extending a VO and created a transient Boolean Attribute and kept a SPEL expression in Read Only property for these attributes so that if i set the value in the controller to true / false the fields will be enabled or disabled accordingly.
I extended the controller and wrote the below code.But it is not working as expected.PLSSSSSSSSSSSSSSSSS hELP.
HzPuiOrganizationProfileAMImpl aam = (HzPuiOrganizationProfileAMImpl)oapagecontext.getApplicationModule(oawebbean);
oawebbean.
//OAViewObject mreqVO = (OAViewObject) (HzPuiOrganizationProfileAMImpl)oapagecontext.getApplicationModule(oawebbean).findViewObject("xxHzPuiOrganizationProfilesVO");
// xxHzPuiOrganizationProfilesVOImpl xvo = (xxHzPuiOrganizationProfilesVOImpl)oapagecontext.getApplicationModule(oawebbean).findViewObject("xxHzPuiOrganizationProfilesVO");;
//xvo.getCurrentRow().getAttribute("DisableAttr");
xxHzPuiOrganizationProfilesVOImpl xvo = (xxHzPuiOrganizationProfilesVOImpl)oapagecontext.getApplicationModule(oawebbean).findViewObject("HzPuiOrganizationProfilesVO");
int i =xvo.getRowCount();
// throw new OAException("test "+String.valueOf(i),OAException.ERROR); -- HERE I GET THE COUNT AS 1
String rowReference = oapagecontext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
if(rowReference != null)
xxHzPuiOrganizationProfilesVORowImpl xxvorowimpl = (xxHzPuiOrganizationProfilesVORowImpl)aam.findRowByRef(rowReference);
xxvorowimpl.setDisableAttr(Boolean.FALSE); //setreadOnlyAttr(Boolean.TRUE);
throw new OAException("hi",OAException.ERROR);
RowSetIterator Iter = xvo.createRowSetIterator("DataIter");
Iter.setRangeStart(0);
Iter.setRangeSize(i);
Row row = null;
row = Iter.getRowAtRangeIndex(0);
row.setAttribute("DisableAttr",Boolean.TRUE);
//xvo.getCurrentRow().setAttribute("DisableAttr",Boolean.FALSE);
pls help me in solving the issue.
Thanks
RamyaHi,
Sample Method:
public void DeleteMeasurePeriods()
int fetchedrowcount;
RowSetIterator deleteIter;
OADBTransaction tr = getOADBTransaction();
PeriodsVORowImpl row=null;
PeriodsVOImpl mpvo=getPeriodsVO1();
fetchedrowcount=mpvo.getRowCount();
deleteIter = mpvo.createRowSetIterator("deleteIter");
deleteIter.setRangeStart(0);
deleteIter.setRangeSize(fetchedrowcount);
for(int i=0;i<fetchedrowcount;i++)
row= (PeriodsVORowImpl)deleteIter.getRowAtRangeIndex(i);
if()
row.setAttribute("DisableAttr",Boolean.TRUE);
else
row.setAttribute("DisableAttr",Boolean.FALSE);
deleteIter.closeRowSetIterator();
Regards
Meher Irk -
How to prevent multiple clicks of submit buttons in OAF Pages
Hi All,
Our page takes around 30 seconds to 1 minute for processing.
Some users are not patient enough. I have tried putting the below code in my PR method.
OAWebBean body = pageContext.getRootWebBean();
if (body instanceof OABodyBean)
((OABodyBean)body).setBlockOnEverySubmit(true);
This code disables submit button for some time. After few seconds, the submit button can be clicked again by the user.
Also, if I click on other browser window and come back to OAF page, the submit button can be clicked again immediately.
Have also searched OAF forum but didn't find any satisfactory answer.
Need answer from Oracle on this. If not answered on the forum, will raise an SR.Hi Amit,
Try using the Processing Symbol , after clicking the Submit button. Which does shows you processing clock symbol once you click Submit Button.
Regards
Raghu -
How to make DFF Read Only ..
Dear Friends,
I have 3 segments in the Additional Personal Details DFF in HRMS. I want to make only the 2nd segment read-only not all the segments.How can we achieve this can any one pls let me know about this ...
with regards
SwpanaHi,
Review the following documents and see if it helps.
Note: 438215.1 - How To Make DFF Segments Read Only Using OAF Personalise
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=438215.1
Note: 750679.1 - How To Make Only Some Of The Segments Of A Descriptive Flexfield Read Only On OA Framework
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=750679.1
Note: 149452.1 - How do you make a descriptive flexfield display only?
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=149452.1
Regards,
Hussein
Maybe you are looking for
-
Bulk batch Jax-WS web services and memory concerns
I have a requirement to create a web service client to upload 150,000+ records from our database. My main question is whether others are creating web services to process bulk data and how they handle memory concerns. I began with the standard API, p
-
Overlap white box on black bottom of 16x9
video is 16x9. I put "comments" - like a note..almost like subtitle. I want to use white box with subtitle below the video line (on black part). It can't be below the line of 16x9 where the black is. I saw someone did that. I wonder how that person d
-
BAdi DPR_EVENTS for user statuses
Hi, Anyone having ideas on how to use the BAdi DPR_EVENTS when user defined statuses are triggered? Regards, Vivek?
-
Store signature image in Active Directory and deploy it to each users desktop
What I am trying to achieve is to have each user a hand written signature scanned in and stored in the .jpgPhoto attribute in Active Directory and then have some sort of script, like our login script, pull that information and copy the file to the us
-
Acrobat X problem updating. ERROR: Install MSI payload failed with error: 1603 - Alvorlig feil under installasjonen. MSI Error message: Ugyldigt drev: K:\ ERROR: Third party payload installer AcroPro.msi failed with exit code: 1603 I have uninstalled