Conditional Label change in OAF Page
Dear Experts,
I need to change the label of Organization Name filed in Supplier page,i did successfully.
But,here problem is i am working in gulf country so, here user session will be in Arabic and English.
When user user login to Arabic session Organization Name should be in Arabic word and it should be in English as Organization Name when user session in english.
Can anyone give me your valuable suggestion...
Thanks in Advance...
Regards
Amar
Hi Sushant,
Thanks for reply,
Actually i am personalizing seeded page.Navigation is as follows
Payables Manager -- >Supplier -->Entry -->Create Supplier -->Organization Name
Here i personalized ' Organization Name ' prompt which is in arabic text to new arabic text . Up to this its working fine.But when i am logged into english session the changed arabic text also appearing in english session for 'Organization Name' prompt.It should be ' Organization Name '.
Please give me your valuable suggestions.
Regards
Amar
Similar Messages
-
Changes to OAF page not displaying on one computer but are on another
We made some changes to a link on one of our pages, The changes are not working correctly on my computer, however if someone else who hasn't been in the pages signs into the apps as me on their computer, it works correctly for them. We have cleared the framework cache, cleared my browser cache, made sure my browser settings are set for automatic for viewing new versions of stored pages, but nothing has helped. Does anyone have any suggestions on what else we can try?
Did you try clearing your java object cache on your machine? Settings -> Control Panel ->Java Control Panel->Temporary Internet Files ->Delete Files.
Kristofer Cruz -
OAF Personalization : print output of a query on a OAF page
I have a requirement in OAF form.
Wanted to check if it is possible
I needed to print a value on the form which would be a query output.
Basically in my requisiiton workflow i have changed teh approver.
Based on that the OAF page doesnt reflect the change. I need to change the OAF page but just by personlization. Want to check if this is possible.
In short, I want to write a query and get an output and print that on the screen of a OAF page.user8655468 wrote:
I would like to display a label on my report but has to appear only on the last page of the report in the margin areaCreate a fixed frame at the bottom of margin area and inside the frame put your label.
set the frame print object on: Last page
Hope this works.. -
Change labels on Portal Login page
Hi community,
We are running Portal 7.00 SP21 version and on Portal Logon page we have enabled Get Support link. Now we want to cutomize labels on page wich is shown through the Get Support Link (not welcome page).
If we unzip the file umelogonbase.jar, we can find under dist\PORTAL-INF\lib - we can find the file "logonLabels_" which contains the language we are using. Also we find the key which is used in the tag (for us it is LAST_NAME) and change the text after the equal sign. Then we save the changed file and create a updated JAR file using a zip program but named umelogonbase.jar, not umelogonbase.zip or umelogonbase.jar.zip. - Put again the JAR file back to dist\PORTAL-INF\lib. Restart server, Portal cache and temp files, we don't get applied this change.
This works ok for Welcome page, where by the same way, we can change labes and after restar/clear, we get applied those changes.
So, how can I change the labels on Get Suppot page??
We can not use NWDS....
Thanks !Hi,
Thanks a lot for your answers.
First, on umResetPasswordPage.jsp I have found the code where "LAST_NAME" must take a value from other file (Could be from umelogonbase.jar?) so, maybe it is not the right place to change it, isn't it? or did you suggest by other way?? This is the code on the umResetPasswordPage.jsp file:
<td width="161" height="20">
<label class=urLblStd for="logonlastnamefield">
<%=logonLocale.get("LAST_NAME")%>
<span class=urLblReq> *</span>
</label>
</td>
Second, On Portal Content there is not any Page/Iview wich manage this Support (LogonHelpApp) page openned by "get Support" link on Welcome Portal Page. At this time, I could not find if is it a webdynpro or other component Portal.... -
Changing Colour and font of individual OAF pages
Hi,
Is it possible to change colour and font for individual OAF pages?I am aware of CUSTOM.xss but that changes it for the whole application.I want to make the changes for specific pages.
Thanks,Try using HTML:
Set the text to:
area.setText("<html>My <b>Text</b> Here</html>");
and see if the word Text is in bold. If so, then you can go as far as you want using HTML tags to set bold, color, etc. -
After installing IOS 7 i tunes says terms and conditions have changed, " Before you can proceed you must read and accept the new terms and conditions. " After 54 pages there is no way to accept, it also says you can have it sent by email It will not let me do this either???
Thank you so much! That worked
-
Need to change the LOV field based on checked box selection in OAF page
Dear ALL,
I have a requirement as below:
I have a custom OAF page having a lov field which is mandatory, a check box and a two text fields.
So based on LOV value selection i am defaulting two text field value automatically.
So my requirement is when user selects the check box automatically the LOV field should be non mandatory and user can insert in values to the lov field and text field and submit it.
SO basically based on check box field selection i need to make the lov field in such a way it should accept all the values what user enters instead of check the query added in VO behind the LOV.
Please suggest me some pointers to achieve this requirement.
Thanks
Debhi,
in PFR use:
if ("checkevent".equals(pageContext.getParameter(EVENT_PARAM)))
HashMap hashMap = new HashMap();
String checkboxval=pageContext.getParameter("item2");
hashMap.put("checkboxval",checkboxval);
pageContext.setForwardURLToCurrentPage(hashMap ,
true, // retain the AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
and in PR use:
if((pageContext.getParameter("checkboxval'))!=null)
OAMessageLovInputBean lovInputBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("item3");
lovInputBean.setRequired("false");
try it
Regards
Mahesh -
Multi Languague Support for OAF PAges
We have to develop the OAF Pages enabling MLS. This includes the LABELs also changing according to the user languague along with the data.
Can anybody answer the below questions
1> Is there a standard approach that oracle recommends ?
2> Any easy and best approach if anybody already implemented ?
Thanks
SreedharSrini
I went through the doc. I understand we need to PERSONALIZE to translate the columns into different languages. But my question her is , do we need to personalize always to translate ? Because, I'm not required to personalize anything on the page. Is there any other approach to translate the columns without personalize the regions ?
Also, Do we need to export the personalizations at each REGION Level and then import into MDS ? Can't we do at a PAGE Level ? I'm new to the MLS Personalizations.
Thanks
Sreedhar -
Unable to find Submit button in iExpences OAF Page
Hi Everyone,
I want to know the functionality behind the submit button of iExpences OAF Page.
Navigation is
IExpences - Create Expence report -Review - Submit button.
button i am unable to find the submit button in personalization.
Could you any one help on this!!
Thanks in Advance!!
With Best RegardsCheck in About this Page, if the Button Name is present.
Sometimes depending on the condition, there might be a change in the text of the button .. so donot go by the button name ...
Just check the surrounding fields and try to zero in to a button.
You can also download the page and CO and check where the button is more clearly.
To download the page, usr JDR_UTILS package in an anonymous block.
The CO class file can be downloaded from Unix box and decompiled using a Decompiler.
Regards
Srikanth K -
JSPELL Installation in OAF Pages
Hi All,
Can any body help me to install jspell in oaf pages? i just want to install spell check in self service pages.
is this feasible in SS pages like Forms and javascript?
Any input will be appreciated.
Thanks,
Ramesh MedepalliHave you looked at the webapps documentation?
http://docs.sun.com/app/docs/doc/819-6518
especially the section on deploying webapps?
http://docs.sun.com/app/docs/doc/819-6518/6n8hd7tej?a=view
I have found that often the web.xml file for an app that runs OK in other environments needs to be edited to appease SWS -- root elements and DTD/doctype declarations are usually all that requires special attention. Sun has docs on a sample config here:
http://docs.sun.com/app/docs/doc/819-6518/6n8hd7tev?a=view
Our typical web.xml start with
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
As for unpakcing the war files, you can deploy a webapp with 'wdeploy' (http://docs.sun.com/app/docs/doc/819-6518/6n8hd7ten?a=view) without unpacking it, but we've moved away from that. I find it easier to manually add a line like this to server.xml inside the <VS> element:
<WEBAPP uri="/Appname" path="/path/to/Appname" enabled="true"/>
where I've unpacked the warfile into /path/to/Appname such that web.xml is /path/to/Appname/WEB-INF/web.xml, etc.
With a default SWS config (i.e., one with the default J2EE functions/entries intact in the various config files), you can probably unpack the webapp to /path/to/Appname, edit server.xml, and stop+start SWS to get the app running.
To update/redeploy the app, we have a custom script that replaces /path/to/Appname and conditionally runs the 'reconfig' script for the SWS instance if there's a major change (vs. static content, JSPs, etc.).
More caveats: 'reconfig' is nice (usually quicker & less intrusive than a full stop + start cycle), but we've found you can't run it too many times before the JVM starts running out of resources (memory) and requires you to stop & start up again the SWS instance to clear things up. -
How To-set DFF to null and Not required in OAF page ??
enabled service dff, added 2 segments. i want them displayed in service request oaf pages.
details of dff-
Application=Service , title = Additional Information for Agents
in context field region : unchecked required and displayed
In global data elements - added 2 segments based on value set(validation type = independent, list type = poplist)
displayed and enabled checkbox are checked for both the segments.
I want to be able to do two things
1.in HTML service request agentdashboard- the 2 new dffs are displayed correctly as drop down lists. I can pick and save a value to those mapped columns.
but the two drop downs are REQUIRED. I do not want them to be. how can I make them un-required.
--while personalizing this flexfield elemnt from oaf page - I did not have the attribute-required to be unset.
2. I want a default blank value in both the drop down list.
I tried to add a nullvalue in valueset ,but its not letting me. can i do that ??
any pointers please.
Thanks in advanceFor your question
>
if I want to show one segment based on value of some other bean in the UI, then can I do it ? and how ?
>
If you do not want to extend controller then you need to use javascript. Sample code below
<SCRIPT>if (document.getElementById("QFEQHR_FV").value =='Class Room')
{document.getElementById("DescFlex2").style.visibility = "visible";}
else{document.getElementById("DescFlex2").style.visibility = "hidden";} </SCRIPT>Here "QFEQHR_FV" is any bean ID in your page and "DescFlex" is DFF flex item ID. To get handle of the required DFF attribute change numbers starting from '0' and test.
Sample code for testing
<SCRIPT>alert(document.getElementById("DescFlex0").value);</SCRIPT>You need to add this code to "Text" property of a "Raw Text" item.
Regards,
Anand -
Hi All,
I am beginner in OAF. We want to add a new field in a OAF page. We wanted to do it by extending Standard VO i.e. present already. Now will it be sufficient if I download only View Object and XXPG.xml related to the OA Page or should I download all the class files and xml files from APPL_TOP to deploy the environment in Jdeveloper
As I want to add a field to VO to reflect the change in OA Page, does it mean I am extending OA Page or just extending VO. Iis there any better way of doing it.
Please advice.
Thanks,
Abhishek.
Edited by: 853343 on Jan 11, 2012 6:36 AMAbhishek.
please post your question in the forum {forum:id=210}
Timo -
Creating an XML Report from OAF page
Hi All,
I have a requirement to create a PDF report from an OAF page. From the below code , I was able to print the XML with the values.
I know i should map this XML to RTF by creating the Data defiition through XML publisher responsibility.
My understanding :
1. Generate the XML from Conttroller
2. Load the XML to RTF and map the fields
3. Register as Data Definition and RTF
4. Output seen
MY QUESTION IS : If i load the values from the below XML to the RTF and register in the data definition , i will get the same values every time it is right . From my understanding, if the data has to change in the report, ,there should be a way which will directly send the generated xml from the controller to the RTF (Without step2)
I DEFINITELY BELIEVE, THAT I AM MISSING SOME THING HERE . PLEASE HELP ME
public void processRequest(OAPageContext pageContext,
OAWebBean webBean) {
super.processRequest(pageContext, webBean);
OAApplicationModule am =
(OAApplicationModule)pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)am.findViewObject("colorVO1");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
//(XMLNode)vo.writeXML(4,"")
try {
((XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
} catch (IOException e) {
// TODO
throw new OAException("The value of VO is " + vo,
OAException.CONFIRMATION);
System.out.println(outputStream.toString());
Generated XML :
<colorVOEx3Row>
<UserName>abc</UserName>
<UserId>33102</UserId>
<CreatedBy>27241</CreatedBy>
<Clr1>0</Clr1>
</colorVOEx3Row>
<colorVOEx3Row>
<UserName>deg</UserName>
<UserId>33604</UserId>
<CreatedBy>1135</CreatedBy>
<Clr1>0</Clr1>
</colorVOEx3Row>
<colorVOEx3Row>
<UserName>****mno</UserName>
<UserId>33643</UserId>
<CreatedBy>24587</CreatedBy>
<Clr1>2</Clr1>
</colorVOEx3Row>
</colorVOEx3
Please let me know what should me my next steps to generate the report. if i load the XML above to the RTF , irresepscive of my data from teh page, i will always get the 3 rows.i..e..(abc,def,*** mno).
Hope i am clear.Hi Anand,
Thanks for your reply. I have gone through the link you provided . It gave me excellent information. But just one clarification , when we create the data definition, dont we have to add any of the files like 'XML Schema','Data Template','Preview Data','Bursting Control File'.
The reason, i am asking this question is, when i proviously worked with XML reports in 11.10.2, we used to attach a .xml file to the Data Template of the data definition ,which would populate the RTF.
Now here, if i dont attach that file in the data definition, will the XML data direclty mapped from contrlloer ?. I assume ,The only thing i need to do is to MAP the XML tags to RTF before registering ..
Please let me know if i am missing some thing
Thanks
Sunny -
How to print Column Labels on each print page of an ALV report
Hi,
I have an ALV report which is of 10 print pages.
I need to print Column Labels on each print page.
How it is possible.
Plz write the solution
NarendraHi Narendra
try this code.
reward pts if help.
Deepanker.
*& Report ZDEMO_ALVGRID_EDIT *
*& Example of a simple ALV Grid Report *
*& The basic ALV grid, Enhanced to display specific fields as *
*& editable depending on field value *
REPORT ZDEMO_ALVGRID_EDIT .
TABLES: ekko.
TYPE-POOLS: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
statu TYPE ekpo-statu,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
netpr TYPE ekpo-netpr,
peinh TYPE ekpo-peinh,
field_style TYPE lvc_t_styl, "FOR DISABLE
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA: it_fieldcat TYPE lvc_t_fcat, "slis_t_fieldcat_alv WITH HEADER LINE,
wa_fieldcat TYPE lvc_s_fcat,
gd_tab_group TYPE slis_t_sp_group_alv,
gd_layout TYPE lvc_s_layo, "slis_layout_alv,
gd_repid LIKE sy-repid.
*Start-of-selection.
START-OF-SELECTION.
PERFORM data_retrieval.
PERFORM set_specific_field_attributes.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
FORM build_fieldcatalog.
wa_fieldcat-fieldname = 'EBELN'.
wa_fieldcat-scrtext_m = 'Purchase Order'.
wa_fieldcat-col_pos = 0.
wa_fieldcat-outputlen = 10.
wa_fieldcat-emphasize = 'X'.
wa_fieldcat-key = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'EBELP'.
wa_fieldcat-scrtext_m = 'PO Item'.
wa_fieldcat-col_pos = 1.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'STATU'.
wa_fieldcat-scrtext_m = 'Status'.
wa_fieldcat-col_pos = 2.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'AEDAT'.
wa_fieldcat-scrtext_m = 'Item change date'.
wa_fieldcat-col_pos = 3.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MATNR'.
wa_fieldcat-scrtext_m = 'Material Number'.
wa_fieldcat-col_pos = 4.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MENGE'.
wa_fieldcat-scrtext_m = 'PO quantity'.
wa_fieldcat-col_pos = 5.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'MEINS'.
wa_fieldcat-scrtext_m = 'Order Unit'.
wa_fieldcat-col_pos = 6.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'NETPR'.
wa_fieldcat-scrtext_m = 'Net Price'.
wa_fieldcat-edit = 'X'. "sets whole column to be editable
wa_fieldcat-col_pos = 7.
wa_fieldcat-outputlen = 15.
wa_fieldcat-datatype = 'CURR'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'PEINH'.
wa_fieldcat-scrtext_m = 'Price Unit'.
wa_fieldcat-col_pos = 8.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
Build layout for ALV grid report
FORM build_layout.
Set layout field for field attributes(i.e. input/output)
gd_layout-stylefname = 'FIELD_STYLE'.
gd_layout-zebra = 'X'.
ENDFORM. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
FORM display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_callback_program = gd_repid
i_callback_user_command = 'USER_COMMAND'
is_layout_lvc = gd_layout
it_fieldcat_lvc = it_fieldcat
i_save = 'X'
TABLES
t_outtab = it_ekko
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
UP TO 10 ROWS
FROM ekpo
INTO CORRESPONDING FIELDS OF TABLE it_ekko.
ENDFORM. " DATA_RETRIEVAL
*& Form set_specific_field_attributes
populate FIELD_STYLE table with specific field attributes
form set_specific_field_attributes .
DATA ls_stylerow TYPE lvc_s_styl .
DATA lt_styletab TYPE lvc_t_styl .
Populate style variable (FIELD_STYLE) with style properties
The NETPR field/column has been set to editable in the fieldcatalog...
The following code sets it to be disabled(display only) if 'NETPR'
is gt than 10.
LOOP AT it_ekko INTO wa_ekko.
IF wa_ekko-netpr GT 10.
ls_stylerow-fieldname = 'NETPR' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
"set field to disabled
APPEND ls_stylerow TO wa_ekko-field_style.
MODIFY it_ekko FROM wa_ekko.
ENDIF.
ENDLOOP.
endform. " set_specific_field_attributes
pls reward pts is help, -
How can i use AME for the new OAF page.
Dear all,
I have developed a new OAF page and registered under Employee Self Service.
How can i use AME for the approval process.
Appreciate your ideas?
zamoraI will try to answer based on my experience of working with iProcurement and AME. It depends on how you want to make a call to AME , directly from OAF Page or from Workflow and your requirement. You didn't specify what you want to show the users on OAF Page and your business requirement.
Before calling AME Engine from the OAF page or workflow, I guess you did already setup AME Transaction Type and it's Approval Groups, Conditions, Action Types and Rules. Do some testing from AME Business Analyst Test Workbench. Please note that, AME provides lot of PL/SQL API's that you have to call from your programs (java or workflow pl/sql)
Let's look at the workflow and putting an OAF Page as notification.
As Sameer said, you have kick-off workflow process from PR of CO and with in the workflow function, you make a call to AME Engine API's with the AME Transaction ID. This transactionId belongs to the AME Transsaction Type that you setup. Based on the rules setup, AME Engine generates list of approvers/approver and stores them AME Tables for that transactionId. Then, it sends a notification to the approver.
In the workflow, where that notification is defined, in the message body you have to put an attribute(&XX_WF_FWK_RN) of type document/send. And this attribute will have the constant JSP:/OA_HTML/OA.jsp?OAFunc=XX_FUNC¶mId=-&DOCUMENT_ID-. This function is SSWA Jsp function that makes a web html call to your OAF Region.
If your requirement is to just show the list of approvers on the OAF Page, you may have to call AME API diectly passing your AME TrasnactionId with other parameters. Then AME generates list of approvers and stores them in AME tables with each approver status. You can pickup those approvers using VO and show them on OAF Page.
Hope this gives some idea.
Maybe you are looking for
-
Why is my iPad suddenly not opening the Yahoo home page? I get a message saying Safari can not open the page due to too many redirects. This started yesterday, and I have already tried shutting off my iPad.
-
I never did find the "Gift Certificate" link even thoug support said where it "should" be, and "No" Nowhere near where you would reedem them.
-
Hi everyone, I have created my first CSS based page and was wondering if people could take a look at it and let me know if there are any "Best Practices" I should be aware of that will help streamline my code. The link is at http://jjcstudios.com/woo
-
Selection screen - i want to block the input in range-high but i get '0'
i have selection screen : SL_MONAT FOR BKPF-MONAT NO-EXTENSION , i want to block the high value input , so i use : LOOP AT SCREEN. IF SCREEN-NAME = 'SL_MONAT-HIGH'. screen-input = '0'. endif. endloop . When the screen display, the field
-
I have a variable in a .as file named var Current_Month:Number = CurrentDate.getMonth(); I was wandering if i can overrite the value using a outside HTML link <a href="LINK TO FLASH WERE THE MONTH IS OCTUBER"> Thaks