Assign value to the DFF fields in the OA Page
Hi,
I have a requirement to copy customer address defined at the customer level to the contact while creating customer contact in Sales User.
The page has the address fields like - Address1, Address2, county, state etc. when I open the page in JDev, I can't see these fields defined anywhere. But there is a region under a MessageComponentLayout region and under it one flex item, which is having a View Instance.
This VO includes all the fields from HZ_LOCATIONS table. But on the page only few fields are visible.
Can anyone tell me how I can assign the customer address to these DFFs that are visible on the Page.
Thanks.
Hi,
The Address section is rendered using the Address DFF of the Receivables applications. Hope you know the navigation to see the details of the DFF.
I think the ASN is also using the same, by extending the AR region, /oracle/apps/ar/hz/components/address/webui/HzPuiAddressCreateUpdate.
What you have to do is, in order to get complete handle to this address section, you have to do the controller extension. That is, write a new controller which extends oracle.apps.ar.hz.components.address.webui.HzPuiAddressCreateUpdateCO class. Using the personalization, set your custom controller class to the region /oracle/apps/ar/hz/components/address/webui/HzPuiAddressCreateUpdate.
Here is the sample code.
* Procedure to handle Address1 Field.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void handleAddress1Field(OAPageContext pageContext, OAWebBean webBean, String calledFrom)
OADescriptiveFlexBean flexBean = (OADescriptiveFlexBean)webBean.findChildRecursive("HzAddressStyleFlex");
if(flexBean!=null)
DescriptiveFlexfield descriptFlex = (DescriptiveFlexfield)flexBean.getAttributeValue(FLEXFIELD_REFERENCE);
if(descriptFlex!=null)
try
Segment address1Segment = descriptFlex.getSegment(1);
address1Segment.setValue("TO_BE_REPLACED");
OAApplicationModuleImpl applicationModule = (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
OAViewObjectImpl locationVO = (OAViewObjectImpl)applicationModule.findViewObject("HzPuiLocationVO");
OAViewRowImpl locationRow = (OAViewRowImpl)locationVO.getCurrentRow();
if(locationRow!=null)
locationRow.setAttribute("Address1", valueBuffer.toString());
OAEntityImpl locationEO = (OAEntityImpl)locationRow.getEntity(0);
locationEO.setAttribute("Address1", valueBuffer.toString());
}catch(FlexException flexException)
throw new OAException(flexException.toString());
Use this code as reference and modify this based on your requirement. Thanks
Similar Messages
-
How can i assign value to the certain field in dynmic table ?
i have created a dynmic table .now i want to assign value to the certain field,how can i do that?
for eg,
<dyn_table> contains fields of name age ,now i want assign 'jack' to this internal talbe's field name ,Hi,
try this:
FIELD-SYMBOLS: <GT_ITAB> TYPE TABLE,
<GS_ITAB>,
<FS>, <FS1>.
DATA: GT_DATA TYPE REF TO DATA.
DATA: GS_DATA TYPE REF TO DATA.
START-OF-SELECTION.
CREATE DATA GT_DATA TYPE TABLE OF PA0002.
ASSIGN GT_DATA->* TO <GT_ITAB>.
CREATE DATA GS_DATA LIKE LINE OF <GT_ITAB>.
ASSIGN GS_DATA->* TO <GS_ITAB>.
ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Smith'.
ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Paul'.
APPEND <GS_ITAB> TO <GT_ITAB>.
ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Jones'.
ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Martin'.
APPEND <GS_ITAB> TO <GT_ITAB>.
LOOP AT <GT_ITAB> INTO <GS_ITAB>.
ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS1>.
WRITE: / <FS>, <FS1>.
ENDLOOP.
Regards, Dieter -
How can i dynamically assign values to the tld file
How can i dynamically assign values to the tld file
In the tld you write for the tag handler mention the following sub tags in the attribute
<attribute>
<name>xyz</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
import the packagejavax.servlet.jsp.tagext.DynammicAttributes;
add the method
public void setDynamicAttribute(String rui, String localname, Object value) throws JspException
<Your Required task>
Its better if you SimpleTagSupport class to be extended. -
Resource cannot see their assigned tasks on the Timesheet page
One of the resource is not able to see tasks assigned to him in his timesheet after publishing the project. I have checked all possible reasons listed in the the document below.
http://projeqz.freshdesk.com/support/articles/169136-team-members-cannot-see-their-assigned-tasks-on-the-timesheet-page-or-task-page-inHi Project Help,
In addition to the reasons mentionned in the article below (booking type and assignment owner), check the following:
The publish field for the assignments must contains "YES",
The project must be published successfully (with no errror messages in the queue),
The resource must be an enterprise resource and not a local resource,
You must look at the correct time period,
You must ensure that there are no filters in the timesheet view,
Then if it is a newly created task (after the timesheet was created), try inserting the assignment using the "insert row" button,
If none of above work, for the assignments in question, change the assignment owner for any other resource, publish the project, change back the assignment owner to the right resource and publish again the project,
Finally, remove the assignment and create it again (and publish).
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS | -
LOV does not return value to the base page sometimes
Hi,
I have created messageLOV type items. These LOVs do return value to the base page usually. We have a user in Uruguay who is trying to use the page which has the LOVs. He says the LOV takes a long time to return to the main page after he clicks on quick select and also the value does not get populated in the main page.
We have not been facing any such problem here in India. The LOV has been tested rigorously with no issues as such.
Can you please suggest a reason why such a problem is occuring? Expecting your replies soon
Thanks,
PriyaThiyaga, did you read the devguide or the tutorial ?
Can you please give me the inputs about the creation of LOV and it requires how many lov mappings as mandatory?
This is there in the devguideHow to identify the mapping fields of an LOV which is already existing in the base page to reproduce in a similar way and need to do a customization on top of it ?
Open the page XML and you can find the LOV mappings.Tapash -
Passing values to the JSP page - Urgent
Hi all,
I have to pass the user id value to the JSP page. I have written the following code in the doInitialization() method
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext myContext = request.getComponentContext();
IPortalComponentProfile myProfile = myContext.getProfile();
IAuthentication ia = UMFactory.getAuthenticator();
IUser portalUser = ia.getLoggedInUser(request.getServletRequest(), request.getServletResponse(false) );
s = portalUser.getUniqueName();
IPortalComponentSession componentSession = ((IPortalComponentRequest)getRequest()).getComponentSession();
Object o = componentSession.getValue("myEvents");
myEvents = (LoadEvents)o;
//myEvents = (LoadEvents) myContext.getValue("myEvents");
myEvents.setUserId(s);
myContext.putValue("myBeanName", myEvents);
I have also defined myEvents as a bean in my JSP page with scope APPLICATION. But I get User Id as "NULL".
Thanks in advance.
Rgds,
Janvi.Hi Prakash,
Please find the jsp code pasted below:
<hbj:content
id="myContext">
<hbj:page
title="Successful processing">
<jsp:useBean id="myMeet" scope="application" class="com.sap.ep.bluestar.LoadEvents" />
<jsp:useBean id="myEvents" class="com.sap.ep.bluestar.MonthView" scope="application" />
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" %>
<%
int leadSpaces, daysInMonth, leadSpaces_next,daysInMonth_next, col_Counter;
myCal.setMonthView();
java.util.Vector printVal_pre = new java.util.Vector();
myCal.printMonth(myCal.getPre_month(),myCal.getPre_year());
printVal_pre = myCal.getPrintValues();
java.util.Vector printVal_cur = new java.util.Vector();
myCal.printMonth(myCal.getCur_month(),myCal.getCur_year());
printVal_cur = myCal.getPrintValues();
java.util.Vector printVal_next = new java.util.Vector();
myCal.printMonth(myCal.getNext_month(),myCal.getNext_year());
printVal_next = myCal.getPrintValues();
if(request.getMethod().equals("POST")){
try {
String action =(String) request.getParameter("action");
if(action.equals("insert")){
// response.sendRedirect("_insertEvent.jsp");
//response.sendRedirect("test.html");
} catch(Exception e) {
System.out.println(e.getMessage());
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script language="javascript">
function insertEvent(frm,eventDay){
alert("here finally " + eventDay + " " + frm.eventMonth.value + " " + frm.eventYear.value );
frm.action.value = "insert";
frm.submit();
function openWin(frm,eventDay)
var newWin = window.open("http://localhost:50100/irj/servlet/prt/portal/prtroot/Web_Calendar.eventHandler?variable=" + frm.eventMonth.value + "/" + eventDay + "/" + frm.eventYear.value, 'popup',
'resizable,height=200,width=325');
if(newWin.focus) newWin.focus();
</script>
</head>
<body>
User is : <%= myCal.getUserId() %>
<table width="745" height="583" border="0">
<tr>
<td width="258" height="23" align="center"><B> <% out.println(printVal_pre.elementAt(0).toString() + " " + printVal_pre.elementAt(1).toString());
leadSpaces = ((Integer)printVal_pre.elementAt(2)).intValue();
daysInMonth = ((Integer)printVal_pre.elementAt(3)).intValue();
%> </B> </td>
<td width="215"> </td>
<td width="258" align="center"><B> <% out.println(printVal_next.elementAt(0).toString() + " " + printVal_next.elementAt(1).toString());
leadSpaces_next = ((Integer)printVal_next.elementAt(2)).intValue();
daysInMonth_next = ((Integer)printVal_next.elementAt(3)).intValue();
%> </B></td>
</tr>
<tr>
<td height="151"><table width="245" border="1">
<tr>
<th width="35" scope="col"><div align="center">S</div></th>
<th width="35" scope="col"><div align="center">M</div></th>
<th width="35" scope="col"><div align="center">T</div></th>
<th width="35" scope="col"><div align="center">W</div></th>
<th width="35" scope="col"><div align="center">T</div></th>
<th width="35" scope="col"><div align="center">F</div></th>
<th width="35" scope="col"><div align="center">S</div></th>
</tr><tr>
<% col_Counter = 0;
for (int i = 0; i < leadSpaces; i++) {
out.print("<td> </td>");
col_Counter++;
for (int i = 1; i <= daysInMonth; i++) {
// This "if" statement is simpler than messing with NumberFormat
if(i < 9) {
out.print("<td align='center'>" + " " + i + "</td>");
col_Counter++;
} else {
out.print("<td align='center'>" + i + "</td>");
col_Counter++;
if ((leadSpaces + i) % 7 == 0) { // Wrap if EOL
out.println("</tr><tr>");
int cnt = col_Counter;
if(col_Counter == 28){
out.println("</tr>");
}else {
for(int i = 0; i < (42 - col_Counter);i++){
out.print("<td> </td>");
cnt++;
if((cnt%7) ==0)
out.println("</tr><tr>");
out.println("</tr>");
%>
</table></td>
<td> </td>
<td><table width="245" border="1">
<tr>
<th width="35" scope="col"><div align="center">S</div></th>
<th width="35" scope="col"><div align="center">M</div></th>
<th width="35" scope="col"><div align="center">T</div></th>
<th width="35" scope="col"><div align="center">W</div></th>
<th width="35" scope="col"><div align="center">T</div></th>
<th width="35" scope="col"><div align="center">F</div></th>
<th width="35" scope="col"><div align="center">S</div></th>
</tr>
<tr>
<% col_Counter = 0;
for (int i = 0; i < leadSpaces_next; i++) {
out.print("<td> </td>");
col_Counter++;
for (int i = 1; i <= daysInMonth_next; i++) {
// This "if" statement is simpler than messing with NumberFormat
if(i < 9) {
out.print("<td align='center'>" + " " + i + "</td>");
col_Counter++;
} else {
out.print("<td align='center'>" + i + "</td>");
col_Counter++;
if ((leadSpaces_next + i) % 7 == 0) { // Wrap if EOL
out.println("</tr><tr>");
cnt = col_Counter;
if(col_Counter == 28){
out.println("</tr>");
}else {
for(int i = 0; i < (42 - col_Counter);i++){
out.print("<td> </td>");
cnt++;
if((cnt % 7 ) ==0)
out.println("</tr><tr>");
out.println("</tr>");
%>
</table></td>
</tr>
<tr>
<td colspan="3"><table width="735" height="383" border="1">
<tr>
<td colspan="7" align="center"><B> <% out.println(printVal_cur.elementAt(0).toString() + " " + printVal_cur.elementAt(1).toString());
leadSpaces = ((Integer)printVal_cur.elementAt(2)).intValue();
daysInMonth = ((Integer)printVal_cur.elementAt(3)).intValue();
%> </B></td>
</tr>
<tr>
<th width="105" scope="col">SUN</th>
<th width="105" scope="col">MON</th>
<th width="105" scope="col">TUE</th>
<th width="105" scope="col">WED</th>
<th width="105" scope="col">THUR</th>
<th width="105" scope="col">FRI</th>
<th width="105" scope="col">SAT</th>
</tr>
<form name="eventCal" method="post" action="Web_Cal.jsp">
<input name="eventMonth" type="hidden" value="<%= myCal.getCur_month() + 1 %>">
<input name="eventYear" type="hidden" value="<%=myCal.getCur_year() %>">
<input name="action" type="hidden" value="">
<tr>
<% col_Counter = 0;
for (int i = 0; i < leadSpaces; i++) {
out.print("<td> </td>");
col_Counter++;
for (int i = 1; i <= daysInMonth; i++) {
// This "if" statement is simpler than messing with NumberFormat
if(i < 9) {
out.print("<td align='center'>" + " " + "<a href='javascript:openWin(document.eventCal," + i + ");'>" + i + "</a></td>");
col_Counter++;
} else {
out.print("<td align='center'>" + "<a href='javascript:openWin(document.eventCal," + i + ");'>" + i + "</a></td>");
col_Counter++;
if ((leadSpaces + i) % 7 == 0) { // Wrap if EOL
out.println("</tr><tr>");
if(col_Counter == 28){
out.println("</tr>");
}else if(col_Counter < 35){
for(int i = 0; i < (35 - col_Counter);i++)
out.print("<td> </td>");
out.println("</tr>");
}else {
for(int i = 0; i < (42 - col_Counter);i++)
out.print("<td> </td>");
out.println("</tr>");
%> </form>
</table></td>
</tr>
</table>
</body>
</html>
</hbj:textView>
</hbj:page>
</hbj:content>
Regards,
Janvi -
I got error message in Firefox when passing the dropdown value to the next page
Hello:
I am using Ajax to populate a dropdown box. When I pass the
value to the next page, I got an error message saying
'form.thevalue' is undefined in Firefox. It works fine in IE.
Please find part of the code below:
form.cfm:
<select name="appointment_date" id="appointment_date"
onchange="showTime(document.apptform.select_employee.value,
this.value, ' ' )">
<option value=''>[Select]</option>
<cfloop list="#datelist#" index="thedate">
<cfif thedate eq '#chg_appointment_date#'>
<cfset select='SELECTED'>
<cfelse>
<cfset select=''>
</cfif>
<cfoutput><option value="#thedate#"
#select#>#thedate#</option></cfoutput>
</cfloop>
</select>
<span id="TimeList"></span>
GetTime.js:
var oXmlHttp
function showTime(staff, date, available)
var url="/cf/misc/GetTime.cfm?nicknm=" + staff + "&dt=" +
date + "&ti=" + available
oXmlHttp=GetHttpObject(stateChanged)
oXmlHttp.open("GET", url , true)
oXmlHttp.send(null)
function stateChanged()
if (oXmlHttp.readyState==4 ||
oXmlHttp.readyState=="complete")
document.getElementById("TimeList").innerHTML=oXmlHttp.responseText
function GetHttpObject(handler)
try
var oRequester = new XMLHttpRequest();
oRequester.onload=handler
oRequester.onerror=handler
return oRequester
catch (error)
try
var oRequester = new ActiveXObject("Microsoft.XMLHTTP");
oRequester.onreadystatechange=handler
return oRequester
catch (error)
return false;
GetTime.cfm:
<CFINCLUDE TEMPLATE="include.cfm">
<cfset timelist = arrayToList(structSort(atime,
"numeric"))>
<span>
<select name="available_time">
<cfif #trim(URL.nicknm)# eq 'All'>
<option value=''>[Select]</option>
<cfloop list='#timelist#' index='time'>
<cfif time EQ '#trim(url.ti)#'>
<cfset select = 'SELECTED'>
<cfelse>
<cfset select = ''>
</cfif>
<cfoutput><option value="#atime[time]#"
#select#>#time#</option></cfoutput>
</cfloop>
<cfelse>
</cfif>
</select>
</span>
When I pass #form.available_time# to the next page, in
Firefox I got error saying 'form.available_time' is undefined. Any
idea, please?
Thanks in advance.This extension will restore Remote XUL to Firefox 4+ via a whitelist for each domain. <br />
https://addons.mozilla.org/en-US/firefox/addon/remote-xul-manager/ -
Advanced Table values in the review page.
Hi Everyone,
Can you please suggest how i can view all the values of the advanced table in the Review page? User can add any number of lines in the advanced table. So basically whats the procedure to show all those values in the review page? To show all the other items of the linen the review page, i created messageStyleText items in the review page and getting the values from the other page.
Thank you.As my understanding , you are going with Advanced table for a review page. As this review page you need readonly for row of Adv table.
For this set readonly property true either by programatically or Declaretically for item of table. table will show all rows base on VO Object.
Thanks -
LOV doesn't return selected value to the base page
Hi All,
I have created an LOV based on VO. When I select value on the LOV page, it is not returning the selected value to the base page.
I am getting the error when I select any value .
Error
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
Can anyone please guide me which property has to be set.
Thanks,
Edited by: user4482525 on Apr 21, 2009 11:49 PM1> Go to the About this page* of the page and check whether page Root AM is extended or not?
If the page root AM is extended then delete the extension by jdr_util.deleteDocument or using functional Adminstartor
or
2> See in the LOV CO, if you are using the method "releaseApplicationModule"
If yes , then remove this.
Thanks,
Kumar -
Assigning value in the records
Hi,
I have a business scenario in which I am creating vendor and extending it for 320 company codes.
Now suppose I have to make change in the phone number in the data manager in place of XYZ to ABC.
Do I have to go and make change 320 place in the data manager or there is any method by the help of validation rule. So that I will write that rule and run on the set of the record automatically system will change phone number for those set of records from XYZ to ABC.
If you know any such validation or with help of assignment rules then please just let me know that validation rule or u have any idea please do share with me.
Thanks,
RohitHi Rohit,
if(phone_number = XYZ , ABC , phone_number)
See we are checking the phone_number filed, first we are checking for the condition; which in this case is wether the value of any row in phone_number column is 'XYZ' if it matches the replace it with 'ABC' else preserve the same value which exists.
for example
phone_number
III
ABC
UEU
XYZ
KKK
LLL
JDD
suppose these are the values under phone_number field and we are applying assignment to all of them; now it will first check as
III = XYZ it does not match so III is preserved.
ABC = XYZ it does not match so III is preserved
XYZ = XYZ it does match so XYZ is replaced with ABC
in this way records are compared and values are changed.
If you do not provide the else statement then MDM considers the default values as "TRUE" and assigns it to the record. so its must to provide the else value in the if statement to have the expression completed.
I hope this will clear you dought; any thing else please let me know
Regards,
Charan -
Assigning values to the charecterstics in a purchase order
Hello,
I have to create the configuration object and assign the values to it in a purchase order.
I am able to generate the temporary CUOBJ using FM CUXM_SET_CONFIGURATION but not able to save it to the database.
I am using FM CUCB_CONFIGURATION_TO_DB to save the cuobj to the DB but getting a short dump.
MESSAGE_TYPE_X
Technical information about the message:
Message class...... "CUIB1"
Number.............. 699
And hence not able to run the FM 'CUCB_CONFIGURATION_TO_DB' properly.
Can anyone help me how do I create the cuobj, assign values to it and then save it to the purchase order...
Any help will surely be rubarbed...
Thanks in advance.
HusainThank you for your respond, but I have few questions:
myText = myText.replace(/\bred\b/gi, "<font color='#ff0000'><a href='event:redClick'>$&</a></font>");
-myText.replace: how this finction works?
-what is this?
/\bred\b/gi
-it's not a link , I need a hover listener to this spesific word.
-where do you assign the word you want to highlight? And can I assign more than one word without writing the same code over again?
-this looks like html and I don't use any in my project, can you write this line without html?
<font color='#ff0000'><a href='event:redClick'>$&</a></font>
I don't understand the functionality of these line:
var pattern:RegExp = new RegExp("\(\?\<\=\\s)" + string + "(?=[\\s|\,])", "ig");
var result:Object = pattern.exec(text);
while (result) {
textField.setTextFormat(highLightFormat, result.index, result.index + string.length);
result = pattern.exec(text);
what is
RegExp?
result?
pattern.exec?
Sorry if these are alot of questions, I just want to understand. -
Getting a field value from the first page on the second page in HTML
I have a 2 page form I'm presenting in HTML to the user. The first page they select an action, enter a USERID and click the next page button. (The button executes "xfa.host.pageDown();" on the click action at the server)
On the initialize of the second page I try to get the value of the USERID field from the first page and create a SQL statement to open my data connection. The issue I have is that I cannot get the value of the USERID field. This code works cause if I hardcode a valid value the query works. I tried to work around this by putting the same field on page 2, but it still did not work but the field was populated with displayed. I only assume the data is not populated at the time the initialize is invoked.
Here is my code on the initialize..
xfa.sourceSet.nodes.item(0).resolveNode("#command.query").commandType = "text"
xfa.sourceSet.nodes.item(0).resolveNode("#command.query").select.nodes.item(0).value = "Select * from TABLE where userid = '" + xfa.form.resolveNode("form1.Page1.txt_EmployeeLogin").rawValue + "'"
xfa.sourceSet.DataConnetion.open()
Any help is greatly appreciated.
THANKS!!Hi Steve,
If you haven't already done so, I recommend posting this question in the LivCycle Forms forum.
Jared -
How to assign values to the parameter
I have write a procedure in procedure builder like this:
PROCEDURE "GETMCTOREPORT" (
p_logname IN VARCHAR2,
p_mysql IN VARCHAR2,
p_opyear IN VARCHAR2,
p_exrate IN VARCHAR2,
p_flag IN OUT VARCHAR2)
but I don't know how to run this procedure, espically how to declare a variable and then assign to last parameter, in the procedure builder environment.
Anyone helps me,Thanks
PL/SQL>Have a look at JDeveloper and it's PL/SQL development capabilities. You can write a PL/SQL procedure click run and a window will popup letting you fill values for the parameters. And you can even debug the procedure.
For more info:
http://otn.oracle.com/products/jdev/htdocs/database/db_overview.html -
Default account assignment values during the life time of the session
Hi Experts,
In SRM7.0 default account assignment values in 'Change Personal Default Settings' has to be retained in the life time of the user login.
Eg. A user enters into SRM7.0 web screen(NWBC) and will go to 'Change Personal Default Settings' and enters the values and saves the values and he will do other activities like creating SC and other things, when user logoff from the web screen (NWBC), the values should wipe off and when he logs in again, there shouldnt be any values in account assignment in 'Change Personal Default Settings'.
Thanks
SRSam,
our client's requirement is, those values has to be cleared when user logsoff from NWBC portal, when again he logsin, values should be blank and user can enter the values according to his/her requirement.
we tried to capture the action under 'Logoff' button, but, as this button is written in HTML/Java Script, we couldnt able to capture in SRM and I am not Java known person.
thanks
SR -
How to Create Pop up window and assign values to the table in it
Hi All,
I have a code which checks for duplicate value in the database and displays that duplicate record. I want to put the duplicate record value in a table of a popup window. Can you please tell me how do i acheive this?
I tried the below code for creating a popup but most of the methods used here are deprecated. Please help
IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
"MyWindowName");
// create the Window
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
window.setWindowPosition(WDWindowPos.CENTER);
window.setTitle("WindowTitle");
// Save WindowInstance in Context
wdContext.currentContextElement.setWindowInstance(window);
// and show the window
window.open();
Regards
SureshHi Suresh,
"createModalWindow" is not a depricated method.
Check this code.
IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
"SalesAreaWindow");
// create the Window
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setWindowPosition(WDWindowPos.CENTER);
window.setTitle("Sales Window");
window.setWindowSize(100,100);
// Save WindowInstance in Context
wdContext.currentContextElement().setWindowInstance(window);
// and show the window
window.show();
"WindowInstance" is the context attribute of type "com.sap.tc.webdynpro.services.session.api.IWDWindow"
Re: opening a new window on lead select in a table!!!
Regards,
Mithu -
Problem coming while assigning values to a particular field.
Hi,
I was taking MEINS data from the table ESLL to the output.
But as per user request some logic was to be added befor the output comes.
Earlier i was looping in the internal table of ESLL n giving it to the o/p final table, now i changed it as follows.
wa_final-meins = it_esll2-meins. -R002
***********Start of + R002 *********
IF it_esll2-meins = 'LE'.
wa_final-meins = 'PU'.
ELSEIF it_esll2-meins = 'TAG' .
wa_final-meins = 'DAY'.
ELSEIF it_esll2-meins = '10'.
wa_final-meins = 'D'.
ELSEIF it_esll2-meins = 'STD'.
wa_final-meins = 'HR'.
ELSEIF it_esll2-meins = 'HAR'. 'PU' 'DAY'
wa_final-meins = 'HA'.
ELSE.
wa_final-meins = it_esll2-meins.
ENDIF.
***********End of + R002 *********
Now the o/p comes ok,but while they trying to download to excel those o/ps which is assinged the values like 'PU' ' DAY ' ' D' etc its coming as star.
So i anticipate that its becoz i a trying to assign character to the field MEINS (wa_final-meins = it_esll2-meins.) which is of type ' UNIT '.
So what to do to solve this.
Pleae reply with your valuble suggestions.
Regards,
NitinHi,
You will have to make use of the conversion exits function modules before comparing.
CONVERSION_EXIT_CUNIT_OUTPUT
CONVERSION_EXIT_CUNIT_INPUT
Regards,
Ankur Parab
Maybe you are looking for
-
Need BAPI Name for updation of Subcontracting scheduling line agreement
Hi All, Can anybody please tell me BAPI Name for updation of Subcontracting scheduling line agreement from EKET table? Note: BAPI_PO_CHANGE is not useful for me. Thanks and Regards, Atul.
-
Hi, I have created an application by using JDBC,now i would like to convert this application into applet and put it online. So i register a domain name, create a jar file for this application and use browser to load it. But so far from what i know, o
-
Validate XML and ignore the errors
Hi All- I am using validateXML as the property on file adapter, It fails the whole file if it is not valid against schema even if one record is wrong. Is it possible that I can use the rejection handler which will trap errors against the schema valid
-
Hi Abapers, i want to download the entries of "List of Quotations" ALV List in EXCEL file. Is it possible with any option ? "List of Quotation" appears by running transaction VA25. then press enter and then fill Sales Area and again press enter. Now
-
I want to make a double list o