Pass parameter through standard page "import xml content and actions"
Dear Portal experts,
As you know, a standard portal page is configured to allow the import of XML file. It is located in the portal in the path system admin -> transport -> xml content and actions -> import
I configured a quick link u201Cimportu201D to the page so now the link http://myserver:port/irj/portal/import allows me to access directly to this screen.
What I would like to do now is to pass the parameter related to u201Cfile nameu201D through this screen meaning that I would like that http://myserver:port/irj/portal/ import/filename=C:\test.xml fills automatically the fields u201CXML fileu201D with C:\test.xml
Please do you know how to achieve this ?
Thank you very much and regards
hi,
@Maksim :
When user launch an URL like http://myserver:port/irj/portal/ import/*filename=C:\test.xml, he is requested to provide username and password; as this link is a shortcut for the upload xml page, there is a check of authorization and only portal admin that have authorization and permission on this page/iview will be able to upload xml file through the URL. Hope this clarify.
@Kumar :
thank you for your answer. What a pity to not be able to pass parameter through standard portal page/iview particularly knowing that we can pass paramater through many kinds of iviews (transactional iview, url iview, VC iview...). I explored some option on file com.sap.portal.ivs.init.par but this was unsuccessful. However, thanks to this [link bellow|http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects], I was able to upload through URL the XML file.
The problem is that I can upload only XML file that are stored in the server not in the local user computer. My requirement is to be able to upload local XML file stored on user's computer.
If someone could provide and idea/solution, I would be very grateful.
Cheers
Similar Messages
-
Issues with XML Content and Actions to import RRA in FPN (EP7 SPS13)
Hi,
I am having trouble using the import functionality of XML Content and Actions to transport Remote Role Assignments between Consumer Portals. Whenever I want to upload an XML file containing RRA for Roles and Groups that were already assigned to eachother, the import fails and nothing is updated. The error I get:
UMException. Data could not commit to Role: gp:/[full ID of portal role]
Anyone with experience in how to use this?
Kind regards,
Christian Staalbyhi,
@Maksim :
When user launch an URL like http://myserver:port/irj/portal/ import/*filename=C:\test.xml, he is requested to provide username and password; as this link is a shortcut for the upload xml page, there is a check of authorization and only portal admin that have authorization and permission on this page/iview will be able to upload xml file through the URL. Hope this clarify.
@Kumar :
thank you for your answer. What a pity to not be able to pass parameter through standard portal page/iview particularly knowing that we can pass paramater through many kinds of iviews (transactional iview, url iview, VC iview...). I explored some option on file com.sap.portal.ivs.init.par but this was unsuccessful. However, thanks to this [link bellow|http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects], I was able to upload through URL the XML file.
The problem is that I can upload only XML file that are stored in the server not in the local user computer. My requirement is to be able to upload local XML file stored on user's computer.
If someone could provide and idea/solution, I would be very grateful.
Cheers -
Import of XML file failed in portal using XML Content and Action
Hi Friends,
I am trying to import the simple XML file which is just creating the folder in the PORTAL_CONTENT using XML CONTENT AND ACTIONS which is one way of creating the portal content. GO TO SYSTEM ADMINISTRATION > TRANSPORT > XML CONTENT AND ACTIONS > IMPORT.
The reason for using this import tool is to upload the backend Business roles, which is not not working on our corporate portal. To test the import functionality I used the following xml file (I got this XML file by exporting the test folder in the portal using the same tool)
<GenericCreator author="XML Creator" version="XML Automatic Creation" mode="clean,execute" report.level="success" createMode="1" default.locale="en" ignore="false">
<Context name="portal_content" objectClass="com.sap.portal.pcd.gl.GlContext"></Context> <Property name="parent1" value="pcd:portal_content"/>
<Context name="com.dri.fldr.im" objectClass="com.sap.portal.pcd.gl.GlContext" create_as="0" parent="$">
<Attributes>
<Attribute name="com.sap.portal.pcm.Description" type="text">
<AttributeValue value="" locale=""/>
<Attribute name="administration" type="string">
<AttributeValue value=""/>
</Attribute>
<Attribute name="Inheritance" type="string">
<AttributeValue value="NONFINAL"/>
</Attribute>
</Attribute>
<Attribute name="com.sap.portal.pcm.Title" type="text">
<AttributeValue value="test" locale=""/>
<AttributeValue value="test" locale="en"/>
<Attribute name="administration" type="string">
<AttributeValue value=""/>
</Attribute>
<Attribute name="mandatory" type="string">
<AttributeValue value="true"/>
</Attribute>
<Attribute name="Inheritance" type="string">
<AttributeValue value="NONFINAL"/>
</Attribute>
</Attribute>
</Attributes>
</Context>
</GenericCreator>
SDN BLOCKED THE XML The above XML file works fine in other portal in the landscape but not in corporate portal ( which is freshly build recently).Following error message is display when i am trying to upload the file
Status Name Action Type Comment
General Extracting root node E:\usr\sap\EPD\JC00\j2ee\cluster\server0\%USERPROFILE%\AppData\Local\Temp\tmp_masscontent4135391959047431276.xml Failed to extract root node
General Extracting root node E:\usr\sap\EPD\JC00\j2ee\cluster\server0\%USERPROFILE%\AppData\Local\Temp\tmp_masscontent4135391959047431276.xml Parsing failed .
Dont know is there a service/ configurations needs to be done to enable this feature?.
Thanks
Edited by: hammad on Sep 4, 2009 5:48 PM
Edited by: hammad on Sep 4, 2009 5:49 PMThe problem statement is not very clear.
Try following this how to guide [https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/207a2141-c870-2910-e080-90c920b24f47&overridelayout=true|How-To]
Best Regards,
Prasanna K -
Problem while passing parameter from standard page to custome page
Hi,
We are calling a custom page from standard page.
Standard page Extended CO
PR
String wcHeader = pageContext.getParameter("WcHeaderId");
pageContext.putTransactionTransientValue("WcHeaderId",wcHeader);
PFR
String wcHeader=(String)pageContext.getTransactionTransientValue("WcHeaderId");
pageContext.putTransactionTransientValue("WcHeaderId",wcHeader);
Till here we are able to put the Parmeter in Tranasction
After calling the custom page from standard page while we are using the Transaction value it is returning null.
Custom page CO
PR
String wcHeader=(String)pageContext.getTransactionTransientValue("WcHeaderId");
we are getting nulll here.
Please provide the solution for this
Thanks,
NarayanaHi Meher Irk,
i got WcHeaderid value in Custom CO. but i want to set value Custome page to Standard page in custom page i have a total value this value i want to set to Standard page.
Custom CO code
/*===========================================================================+
| Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+===========================================================================+
| HISTORY |
+===========================================================================*/
package xxbb.oracle.apps.pos.xxwc.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import xxbb.oracle.apps.pos.xxwc.server.WithholdAMImpl;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.cabo.ui.validate.Formatter;
import oracle.apps.fnd.framework.webui.OADecimalValidater;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.webui.beans.table.OAColumnBean;
import oracle.apps.fnd.common.MessageToken;
import oracle.apps.fnd.framework.*;
import oracle.apps.fnd.framework.webui.*;
import oracle.apps.fnd.framework.webui.beans.table.OATableFooterBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.server.OAViewRowImpl;
import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
import oracle.jbo.domain.Number;
import java.util.Enumeration;
import oracle.apps.pos.wc.webui.WcRespondCO;
//import oracle.apps.pos.wc.webui.*;
* Controller for ...
public class WithholdCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
String wcHeader=new String();
Formatter formatter=new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
OAColumnBean columnBean=(OAColumnBean)webBean.findIndexedChildRecursive("Amountcol");
columnBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR,formatter);
//String wcHeader=(String)pageContext.getTransactionTransientValue("WcHeaderId");
pageContext.writeDiagnostics(this,"zzzzzz"+wcHeader,1);
if(pageContext.getSessionValue("WcHeaderId") != null&& !pageContext.getSessionValue("WcHeaderId").equals(""))
wcHeader=pageContext.getSessionValue("WcHeaderId").toString();
pageContext.writeDiagnostics(this,"If get session condition "+wcHeader,1);
/* OAMessageTextInputBean item=(OAMessageTextInputBean)webBean.findIndexedChildRecursive("item3");
item.setValue(pageContext,"10");*/
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if("AdvancedRN".equals(pageContext.getParameter(SOURCE_PARAM))
&& ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
am.invokeMethod("xxInsertRow");
// am.xxInsertRow();
if(pageContext.getParameter("Save")!=null)
am.invokeMethod("xxSaveTransaction");
am.invokeMethod("xxUnitotal");
OAViewObject vo = (OAViewObject)am.findViewObject("TotalVO1");
vo.reset();
vo.next();
OARow totRow = (OARow)vo.getCurrentRow();
Number total = (Number)totRow.getAttribute("Total");
throw new OAException("Records Saved Successfully",OAException.CONFIRMATION);
if(pageContext.getParameter("Delete")!=null)
am.invokeMethod("xxDeleteRow");
am.invokeMethod("xxSaveTransaction");
//am.xxDeleteRow();
// am.xxSaveTransaction();
throw new OAException("Records Deleted Successfully",OAException.CONFIRMATION);
if(pageContext.getParameter("Close")!=null)
pageContext.setForwardURL("OA.jsp?page=/oracle/apps/pos/wc/webui/WcRespondPG¶m=FrmWithHoldPG"
,null
,OAWebBeanConstants.KEEP_MENU_CONTEXT
,null
,null
,true
,OAWebBeanConstants.ADD_BREAD_CRUMB_YES
,OAWebBeanConstants.IGNORE_MESSAGES);
Thanks,
Narayana -
Pass user in DC Group import XML
When a create or update import XMLfor a DC Group is submitted, I would like to see the logon user who triggered thiis import in the audit log report. It now only shows the user that is needed for sending the XML message.
Best regards,
Hans Freundhi,
@Maksim :
When user launch an URL like http://myserver:port/irj/portal/ import/*filename=C:\test.xml, he is requested to provide username and password; as this link is a shortcut for the upload xml page, there is a check of authorization and only portal admin that have authorization and permission on this page/iview will be able to upload xml file through the URL. Hope this clarify.
@Kumar :
thank you for your answer. What a pity to not be able to pass parameter through standard portal page/iview particularly knowing that we can pass paramater through many kinds of iviews (transactional iview, url iview, VC iview...). I explored some option on file com.sap.portal.ivs.init.par but this was unsuccessful. However, thanks to this [link bellow|http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects], I was able to upload through URL the XML file.
The problem is that I can upload only XML file that are stored in the server not in the local user computer. My requirement is to be able to upload local XML file stored on user's computer.
If someone could provide and idea/solution, I would be very grateful.
Cheers -
Pass parameter to another page and stay on same page?
Greeting EveryBody,,,
as u can see from the subject
im trying to pass parameter from one page to another but i want to stay on the original page???
can be done or not? and how?
examples are welcomed
thanx in advance
best regards
carlitoi have three pages displayed all by <frameset>
and i want to pass parameter from one page to another without going to any page!!! i.e. staying on the main page
hope it clear now....
best wishes -
How to pass parameter through URL to bounded task flow with page fragment
I want to pass parameter to Bounded Task Flow With Page Fragment trough URL
as I start this taks flow with router and according to this Param I will rout the user.
I added input param to taks flow named direction and make the task flow called URL invoke url-invoke-allowed
<input-parameter-definition id="__41">
<name id="__42">direction</name>
<value>#{pageFlowScope.direction}</value>
<class>java.lang.String</class>
</input-parameter-definition>but I don't know how to add this to the JSPX that I will add the bounded task flow Inside.
and How to pass this from URLHi,
url-invoke-allowed is only required if the task flow itself is directly accessible from a browser (which is not the case at all if the task flow uses page fragments). To pass input parameters to a task flow that is embedded in a region and that has input parameters, you define the input parameters on the taskFlow Id that is created in the PageDef file of the containing page. To learn ADF task flows, have a look at the videos below. They also contain a sample for passing parameters to a region
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p1/taskflow-overview-p1.html
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p2/taskflow-overview-p2.html
Frank -
Import statement: pass parameter or variable in import statement ??
Hi All..
Is there a way to pass parameter or a variable to a url in the import statement..
I'll be using a url in the import statement, the url will be having a dynamic .rtf file...something like
<?import:http://#server#:#port#/xmlpserver/<mySubTemplate>.rtf?>
where <mySubTemplate> is dynamic..
I've been searching this thread for a while now and ended up close...
Import sub template dynamically
Thanks in Advance..Have you tried replacing the mySubtemplate.rtf part with a variable, or replace the entire URL using a variable? Try using the same construct from this example in the Report Designer's guide (page 7-14, 10.1.3.4).
In Microsoft Word's Format Picture dialog box select the Web tab. Enter the
following syntax in the Alternative text region to reference the image URL:
url:{IMAGE_LOCATION}
where IMAGE_LOCATION is an element from your XML file that holds the full
URL to the image.
You can also build a URL based on multiple elements at runtime. Just use the
concat function to build the URL string. For example:
url:{concat(SERVER,'/',IMAGE_DIR,'/',IMAGE_FILE)}
where SERVER, IMAGE_DIR, and IMAGE_FILE are element names from your XML
file that hold the values to construct the URL.
This method can also be used with the OA_MEDIA reference as follows:
url:{concat('${OA_MEDIA}','/',IMAGE_FILE)} -
Pass parameter FROM webcenter page TO dropped portlet
Hi All,
I have created a webcenter page
I have created a ADF remote portlet
I have regsitered the portlet as producer under webcenter page "Connection"
I dragged the portlet on webcenter (jspx) page.
now, my design requires that, i should be able to pass the paramter called "Country URL" that is available in webcenter page's backing bean TO this dropped portlet's SRC tag of IFRAME.
is it possible to pass paramter FROM webcenter page's backing bean TO SRC of IFRAME inside dropped portlet ?
If yes, the how will src refer to webcenter backing URL parameter ? ( like binding ...............)
yhx
ddThe idea stays the same in WebCenter. The technique i have described above does not change when you use ADF portlets.
There are only a few steps required:
1) Create the parameter in portlet.xml
2) assign the parameter to your portlet (also in portlet.xml)
3) deploy portlet
4) create a page parameter in webcenter on the page you are dropping the portlet on
5) assign the page parameter to the value of the portlet parameter
That's it.
Notice that the link in the above post of me (from 2010) is about JSR 168 portlets. Since WebCenter PS3, webcenter supports JSR 286 and some things change like you do not need to create the parameter in the oracle-portlet.xml anymore. You can easily do this in the portlet.xml
This is a more up to date post: http://yonaweb.be/inter_portlet_communication_jsr_286_and_webcenter_11g_ps3 -
Pass parameter to apex page via the URL
Hi, I need to pass a parameter into a page that will be used in a query inside a report region,
e.g report region query is
select link_id, page_id, menu_parent_id, link_text, link_url
from portal_pages
where page_id = :page_id
So the page will display different links depending on what value is passed to the page in the variable.
I know with normal URL syntax it would be something like
http://www.domain.com/page.html&page_id=1 (where page_id is a hidden variable in apex)
but how do I do this with an apex page like :-
http://host:port/pls/apex/f?p=123:9 <what goes here ? and what goes in the page for it to work>
Any help appreciated - noob to Apex
Thanks
Phil.If your item to be used in the url is P1_Page_Id, the
url should be something like:<br>
http://host:port/pls/apex/f?p=123:9:page_id:&P1_Page_I
d.
Thanks for comments, understand the syntax of the apex URLs now, got the item sorted in the page now, all working. -
Pass Parameter Through REST API into PivotChart in Excel Services 2013
Is it possible to pass a parameter through the REST API into the filter of a PivotChart and return a filtered view of the chart? I've figured it out mechanically, and can pass the parameter in - but the chart doesn't refresh with the new filter.
For the record, I've looked at all of the online documentation on passing parameters and you'll note those all depict passing parameters into a table - not a PivotTable.
Curious if Excel Services 2013 has made any progress in that regard.
Thanks in advance...
Andrew Lavinsky [MVP] Blog: http://azlav.umtblog.com Twitter: @alavinskyObviously it's not working for pivot tables/charts. Just found this in the SharePoint logs:
04/06/2014 22:21:36.01 w3wp.exe (0x0920)
0x1428
Excel Services Application Excel Calculation Services
d64g Medium
UserOperation.Dispose: Disposing Microsoft.Office.Excel.Server.CalculationServer.Operations.RestChartPngOperation, WebMethod: ProcessRestRequest.
09ae849c-bf78-50fd-d9b9-915fd27bf5e1
04/06/2014 22:21:36.01 w3wp.exe (0x0920)
0x1428
Excel Services Application Excel Calculation Services
ecc4 Medium
ExcelServiceBase.EndProcessOperation: Found an exception on the AsyncResult of an operation which has not been departed from. Exception is Microsoft.Office.Excel.Server.CalculationServer.ExcelServiceBase+EcsFaultException:
Cannot change cells in a PivotTable report. (Fault Detail is equal to Microsoft.Office.Excel.Server.ExcelServerMessage).
09ae849c-bf78-50fd-d9b9-915fd27bf5e1
Disappointing... -
Passing Parameter from Web Page to Form 6i
Dear All,
We are using 9i AS with Form 6i. I want to created a web page for user login and called my application By passing value
window.open("http://hrtest/dev60cgi/ifcgi60.exe?form=login_form.fmx&width=1000&height=700&
userid=logme/logme1@test","","width=1000,height=700,top=0,left=0,location=no,directories=no,
status=no,menubar=no,toolbar=no,maximize=yes,resizable=yes")
and it successfully run.
I want to pass additional parameter to my login_form.fmx from web page like User Shift entered by user on logon ?
Please help me out.
Regards,
KhurramI got the clue
pass parameter in your UR
as
//hrtest/dev60cgi/ifcgi60.exe?form=LOGIN_FORM_Para.fmx&width=1000&height=700&userid=power/power1@hrtest&otherparams=PAKISTAN=ALLAH"
Define a :PARAMETER.PAKISTAN on Form
and write following trigger
BEGIN
if :PARAMETER.PAKISTAN = 'ALLAH' then
message('ALLAH HO AKBAR');
message('ALLAH HO AKBAR');
message(:PARAMETER.PAKISTAN||' HO AKBAR');
message(:PARAMETER.PAKISTAN||' HO AKBAR');
else
message('INSH'||:PARAMETER.PAKISTAN);
message('INSH'||:PARAMETER.PAKISTAN);
end if;
END;
Regards
Khurram Altaf | Assistant Manager ERP
Enterprise Resource Planning Department
Kohinoor Textiles Mills Ltd
Peshawar Road, Rawalpindi.
+92.51.5473940-44 ext 250 | +92.333.5256626
e-mail: [email protected] | web: www.kmlg.com -
Passing parameter through url to report
Hi
I'm sorry if this question already exist anywhere in forum i didnt found it.
so my question is:
CAN I PASS PARAMETER VIA URL TO REPORT USING WEBFORM
i don have RAS(Because in beta version of 2008 is this not included)
I tried
http://localhost/CRWEB/Default.aspx?param0="value" ->here i'm prompt for value instead of showing report with set value
and
http://localhost/CRWEB/DocumentDoc.rpt?param0=krneki&init=html_page -> here i prompt to save rpt file
so But both doesnt work!
OR it is necessery to have RAS to pass parameters through url
thanks for quick answerURL reporting and RAS are not available with CR2008. To view reports over the web you will need to use the Crsytal Reports for .NET runtime engine inside a .NET app. This engine is licensed with CR 2008.
Rob Horne<br /><a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/robhorne</a> -
ADF Passing parameter between 2 Page Fragments
Hi,
I have One Bounded task flow. Inside there are 2 page framgments.
1)Header Page Pragment has table
I changed table column itemId to af:commandLink to navigate to next detail page.
<af:column sortProperty="ItemId" sortable="false"
headerText="#{bindings.XxTestStgVO1.hints.ItemId.label}"
id="c4">
<af:commandLink id="ot3" text="#{row.ItemId}"
action="select">
<af:setPropertyListener from="#{row.ItemId}"
to="#{pageFlowScope.pfsItemId}"
type="action"/>
</af:commandLink>
</af:column>While navigating to detail page we are using ExecuteWithParameters.
<action IterBinding="FilesByItemParam1Iterator" id="ExecuteWithParams"
RequiresUpdateModel="true" Action="executeWithParams">
<NamedData NDName="p_item_id" NDValue="#{pageFlowScope.pfsItemId}"
NDType="java.lang.String"/>
</action>However click on Command Linkon header Table is not working.
I followed steps as in
http://www.youtube.com/watch?v=4eyzBiIf5MM
Did i miss anything ? or is there any Property needs to be changed ?
Thanks,
JitHi,
Source Master Page
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx"
id="pt1">
<f:facet name="center">
<af:table value="#{bindings.XxTestStgVO1.collectionModel}" var="row"
rows="#{bindings.XxTestStgVO1.rangeSize}"
emptyText="#{bindings.XxTestStgVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.XxTestStgVO1.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.XxTestStgVO1Query.queryDescriptor}"
queryListener="#{bindings.XxTestStgVO1Query.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.XxTestStgVO1.collectionModel.selectedRow}"
selectionListener="#{bindings.XxTestStgVO1.collectionModel.makeCurrent}"
rowSelection="single" id="t1">
<af:column sortProperty="ItemId" filterable="true" sortable="true"
headerText="#{bindings.XxTestStgVO1.hints.ItemId.label}"
id="c1">
<af:commandLink id="ot4" text="#{row.ItemId}" action="select"
partialSubmit="true">
<af:setPropertyListener from="#{row.ItemId}"
to="#{pageFlowScope.pfsItemId}"
type="action"/>
</af:commandLink>
</af:column>
<af:column sortProperty="ItemNumber" filterable="true"
sortable="true"
headerText="#{bindings.XxTestStgVO1.hints.ItemNumber.label}"
id="c2">
<af:outputText value="#{row.ItemNumber}" id="ot3"/>
</af:column>
<af:column sortProperty="RequestId" filterable="true"
sortable="true"
headerText="#{bindings.XxTestStgVO1.hints.RequestId.label}"
id="c3">
<af:outputText value="#{row.RequestId}" id="ot2">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.XxTestStgVO1.hints.RequestId.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="StatusId" filterable="true"
sortable="true"
headerText="#{bindings.XxTestStgVO1.hints.StatusId.label}"
id="c4">
<af:outputText value="#{row.StatusId}" id="ot1"/>
</af:column>
</af:table>
</f:facet>
<f:facet name="header"/>
<f:facet name="branding"/>
<f:facet name="copyright"/>
<f:facet name="status"/>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
</jsp:root>Target Page
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx"
id="pt1">
<f:facet name="center">
<af:outputText value="#{pageFlowScope.pfsItemId}" id="ot1"/>
</f:facet>
<f:facet name="header"/>
<f:facet name="end"/>
<f:facet name="start"/>
<f:facet name="branding"/>
<f:facet name="copyright"/>
<f:facet name="status"/>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
</jsp:root>Appreciate your help.
Jit -
How to handle the date attribute,passing parameter from one page to another
hi Friends,
i want to pass data attribute from one page to another page-
i am passing like below ,in jdev log window i am getting below error.
String StatusUpdateDate = row.getAttribute("StatusUpdateDate");
params.put("StatusUpdateDate",StatusUpdateDate)
Error(121,50): incompatible types; found: java.lang.Object, required: java.lang.String
Suppose i am passing like below , while moving one page to another i am getting below error in application
String StatusUpdateDate = row.getAttribute("StatusUpdateDate").toString()
Status Update Date - JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:26-MAR-2009
please can any suggest me how to handle this error.
Thanks and Regards,
vamshiHi Pratap, Thanks for your help
it was my mistake that previously property it was varchar2, now i have changed as you suggested every thing. still i am getting error. this is my code-
AM CODE-
public void xxselection(String Name, String Email,String Product,String Region, DATE StatusUpdateDate)
DetailVOImpl vo1=getDetailVO1();
vo1.initQuery2(Name);
Row detailRow = vo1.createRow();
detailRow.setAttribute("Name", Name);
detailRow.setAttribute("Email", Email);
detailRow.setAttribute("Product", Product);
detailRow.setAttribute("Region", Region);
detailRow.setAttribute("StatusUpdateDate", StatusUpdateDate);
vo1.last();
vo1.next();
vo1.insertRow(detailRow);
detailRow.setNewRowState(Row.STATUS_INITIALIZED);
Controller- Process Form Request- Source page
if (pageContext.getParameter("Detail")!= null)
String Name=row.getAttribute("Name").toString();
String Email=row.getAttribute("Email").toString();
String Product=row.getAttribute("Product").toString();
String Region=row.getAttribute("Region").toString();
DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
HashMap params =new HashMap();
params.put(" Name", Name);
params.put("Email",Email);
params.put("Product",Product);
params.put("Region",Region);
pageContext.putTransactionTransientValue("StatusUpdateDate",StatusUpdateDate); //As you suggested
pageContext.forwardImmediately("OA.jsp?page=/xxm/oracle/apps/pos/stg/webui/DetailStagePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
params,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
another page Controller-Process request-Destination page-
String Name = pageContext.getParameter("Name");
String Email = pageContext.getParameter(" Email");
String Product = pageContext.getParameter("Product");
String Region = pageContext.getParameter("Region");
DATE StatusUpdateDate=(DATE)pageContext.getTransactionTransientValue("StatusUpdateDate");
Timestamp tstmpStatusDate=StatusUpdateDate.timestampValue();
System.out.println("tstmpStatusDate"+tstmpStatusDate);
Serializable[] parameters1 = {Name,Email,Product,Region,tstmpStatusDate};
am.invokeMethod("xxselection", parameters1);
Error - getting at while running the application page to page
No method with signature - No method with signature - xxselection(class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String)
every thing is getting passed except DATE Attribute, please check the code and update me
Thanks in Advace-
vamshi
Maybe you are looking for
-
I am trying to re-load i-tunes and i get the message "verify that you have sufficient privelages to start system services" I am trying to find the problem so i can fix it. Thanks
-
Printing a PDF page in A4 size resizes to A5
Hi, I am trying to print a PDF file, which somehow succeeds; However the printed page shows the PDF in A5 format. the same pdf printed with acroread32 shows in expected A4 size. Can anyone imagine why? Here is the code: private void printPdf(File fil
-
Where's my master socket?
Was delighted to find yesterday, on a random check of the BT site, that we've been fitted for Inifinity. First thing this morning I booked us in for the upgrade. I know that the equipment will need to be connected to the master socket, so I'm trying
-
Dear All, How to configure Visual Composer in EP. Please send step by step procedure. Thanks in advance. kaleem.
-
Somethings wrong with me picture !!!!
i take my ipod from my pocket and all of a sudden i see this thing on my screen. i took a picture of it on my phone cause i cant explain it. i didnt drop it, step on it or nothin i just took it out of my pocket. it still plays its just the picture. i