Pass Parameter to a Transaction Using Transaction Iview Portal
Dear Experts.
I have the following doubt:
The developer ABAP created a program Z_PROGRAM_ABAP
and a T.Code Z_CODE_PROGRAM for this program.
I have created a Transaction Iview in the portal for this transaction, but I need pass a value in the Iview to a variable in the program that call this transaction.
How can pass a paramete to a variable in the program that is called with the transaction Z_CODE_PROGRAM?
Thank In advance for your help.
Best Regards
Carmen G.
Hi .
I have the following code:
REPORT Z_PROGRAM_ABAP.
parameters: XYZ type Char no-display.
if XYZ = 1.
Write 'ABC'.
else.
Write 'MNO'.
endif.
And in the portal:
Application Parmeter : XYZ = 1
Parameters Forwarded: 1
The problem is that i not want that the user can see the parameter XYZ in the Sreen. When I delete the NO-DISPLAY of the sentence parameters: XYZ type Char no-display, the parameter is passed.
How can solve this issue?
Best Regards
Carmen
Similar Messages
-
How To Perform Lot Split Transactions Using Transaction Open Interface (MTI)
Can anyone give me some guidance on how to perform lot split transaction using MTI?
I am using the following code:
DECLARE
l_transaction_type_id NUMBER := 83;
l_transaction_action_id NUMBER := 41;
l_transaction_source_type_id NUMBER := 13;
l_org_id NUMBER := 1884;
l_txn_header_id NUMBER;
l_txn_if_id1 NUMBER;
l_txn_if_id2 NUMBER;
l_txn_if_id3 NUMBER;
l_parent_id NUMBER;
l_sysdate DATE;
l_item_id NUMBER :=287996;
l_user_id NUMBER;
l_distribution_account_id NUMBER;
l_exp_date DATE;
BEGIN
--For Lot Merge, there should be only one resultant lot.
--The transaction_quantity populated in MTI/MTLI should be the entire
--quantity that is available to transact for the org/sub/item/locator/LPN in
--that particular lot number.
--Get transaction_header_id for all the MTIs
SELECT APPS.mtl_material_transactions_s.NEXTVAL
INTO l_txn_header_id
FROM sys.dual;
--Get transaction_interface_id of resultant record
SELECT APPS.mtl_material_transactions_s.NEXTVAL
INTO l_txn_if_id1
FROM sys.dual;
l_parent_id := l_txn_if_id1;
l_sysdate := SYSDATE;
l_user_id := -1; --substitute with a valid user_id
l_distribution_account_id := NULL; --needed for lot translate
l_exp_date := NULL; --set if required
--Populate the MTI record for resultant record
INSERT INTO MTL_TRANSACTIONS_INTERFACE
transaction_interface_id,
transaction_header_id,
Source_Code,
Source_Line_Id,
Source_Header_Id,
Process_flag,
Transaction_Mode,
Lock_Flag,
Inventory_Item_Id,
revision,
Organization_id,
Subinventory_Code,
Locator_Id,
Transaction_Type_Id,
Transaction_Source_Type_Id,
Transaction_Action_Id,
Transaction_Quantity,
Transaction_UOM,
Primary_Quantity,
Transaction_Date,
Last_Update_Date,
Last_Updated_By,
Creation_Date,
Created_By,
distribution_account_id,
parent_id,
transaction_batch_id,
transaction_batch_seq,
lpn_id,
transfer_lpn_id
VALUES
l_txn_if_id1, --transaction_header_id
l_txn_header_id, --transaction_interface_id
'INV', --source_code
-1, --source_header_id
-1, --source_line_id
1, --process_flag
3, --transaction_mode
2, --lock_flag
l_item_id, --inventory_item_id
null, --revision
l_org_id, --organization_id
'EACH', --subinventory_code
1198, --locator_id
l_transaction_type_id, --transaction_type_id
l_transaction_source_type_id, --transaction_source_type_id
l_transaction_action_Id, --l_transaction_action_id
100000, --transaction_quantity
'EA', --transaction_uom
100000, --primary_quantity
l_sysdate, --Transaction_Date
l_sysdate, --Last_Update_Date
l_user_id, --Last_Updated_by
l_sysdate, --Creation_Date
l_user_id, --Created_by
l_distribution_account_id, --distribution_account_id
l_parent_id, --parent_id
l_txn_header_id, --transaction_batch_id
2, --transaction_batch_seq
NULL, --lpn_id (for source MTI)
NULL --transfer_lpn_id (for resultant MTIs)
--Insert MTLI corresponding to the resultant MTI record
INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
transaction_interface_id
, Source_Code
, Source_Line_Id
, Process_Flag
, Last_Update_Date
, Last_Updated_By
, Creation_Date
, Created_By
, Lot_Number
, lot_expiration_date
, Transaction_Quantity
, Primary_Quantity
VALUES (
l_txn_if_id1 --transaction_interface_id
, 'INV' --Source_Code
, -1 --Source_Line_Id
, 'Y' --Process_Flag
, l_sysdate --Last_Update_Date
, l_user_id --Last_Updated_by
, l_sysdate --Creation_date
, l_user_id --Created_By
, 'Q0000.1' --Lot_Number
, l_exp_date --Lot_Expiration_Date
, 100000 --transaction_quantity
, 100000 --primary_quantity
INSERT INTO MTL_TRANSACTIONS_INTERFACE
transaction_interface_id,
transaction_header_id,
Source_Code,
Source_Line_Id,
Source_Header_Id,
Process_flag,
Transaction_Mode,
Lock_Flag,
Inventory_Item_Id,
revision,
Organization_id,
Subinventory_Code,
Locator_Id,
Transaction_Type_Id,
Transaction_Source_Type_Id,
Transaction_Action_Id,
Transaction_Quantity,
Transaction_UOM,
Primary_Quantity,
Transaction_Date,
Last_Update_Date,
Last_Updated_By,
Creation_Date,
Created_By,
distribution_account_id,
parent_id,
transaction_batch_id,
transaction_batch_seq,
lpn_id,
transfer_lpn_id
VALUES
l_txn_if_id1, --transaction_header_id
l_txn_header_id, --transaction_interface_id
'INV', --source_code
-1, --source_header_id
-1, --source_line_id
1, --process_flag
3, --transaction_mode
2, --lock_flag
l_item_id, --inventory_item_id
null, --revision
l_org_id, --organization_id
'EACH', --subinventory_code
1198, --locator_id
l_transaction_type_id, --transaction_type_id
l_transaction_source_type_id, --transaction_source_type_id
l_transaction_action_Id, --l_transaction_action_id
100000, --transaction_quantity
'EA', --transaction_uom
100000, --primary_quantity
l_sysdate, --Transaction_Date
l_sysdate, --Last_Update_Date
l_user_id, --Last_Updated_by
l_sysdate, --Creation_Date
l_user_id, --Created_by
l_distribution_account_id, --distribution_account_id
l_parent_id, --parent_id
l_txn_header_id, --transaction_batch_id
3, --transaction_batch_seq
NULL, --lpn_id (for source MTI)
NULL --transfer_lpn_id (for resultant MTIs)
--Insert MTLI corresponding to the resultant MTI record
INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
transaction_interface_id
, Source_Code
, Source_Line_Id
, Process_Flag
, Last_Update_Date
, Last_Updated_By
, Creation_Date
, Created_By
, Lot_Number
, lot_expiration_date
, Transaction_Quantity
, Primary_Quantity
VALUES (
l_txn_if_id1 --transaction_interface_id
, 'INV' --Source_Code
, -1 --Source_Line_Id
, 'Y' --Process_Flag
, l_sysdate --Last_Update_Date
, l_user_id --Last_Updated_by
, l_sysdate --Creation_date
, l_user_id --Created_By
, 'Q0000.1' --Lot_Number
, l_exp_date --Lot_Expiration_Date
, 100000 --transaction_quantity
, 100000 --primary_quantity
--Get transaction_interface_id of Source record-1
SELECT APPS.mtl_material_transactions_s.NEXTVAL
INTO l_txn_if_id2
FROM sys.dual;
--Populate the MTI record for Source record-1
INSERT INTO MTL_TRANSACTIONS_INTERFACE
transaction_interface_id,
transaction_header_id,
Source_Code,
Source_Line_Id,
Source_Header_Id,
Process_flag,
Transaction_Mode,
Lock_Flag,
Inventory_Item_Id,
revision,
Organization_id,
Subinventory_Code,
Locator_Id,
Transaction_Type_Id,
Transaction_Source_Type_Id,
Transaction_Action_Id,
Transaction_Quantity,
Transaction_UOM,
Primary_Quantity,
Transaction_Date,
Last_Update_Date,
Last_Updated_By,
Creation_Date,
Created_By,
distribution_account_id,
parent_id,
transaction_batch_id,
transaction_batch_seq,
lpn_id,
transfer_lpn_id
VALUES
l_txn_if_id2, --transaction_header_id
l_txn_header_id, --transaction_interface_id
'INV', --source_code
-1, --source_header_id
-1, --source_line_id
1, --process_flag
3, --transaction_mode
2, --lock_flag
l_item_id, --inventory_item_id
null, --revision
l_org_id, --organization_id
'EACH', --subinventory_code
1198, --locator_id
l_transaction_type_id, --transaction_type_id
l_transaction_source_type_id, --transaction_source_type_id
l_transaction_action_Id, --transaction_action_id
-200000, --transaction_quantity
'EA', --transaction_uom
-200000, --primary_quantity
l_sysdate, --Transaction_Date
l_sysdate, --Last_Update_Date
l_user_id, --Last_Updated_by
l_sysdate, --Creation_Date
l_user_id, --Created_by
l_distribution_account_id, --distribution_account_id
l_parent_id, --parent_id
l_txn_header_id, --transaction_batch_id
1, --transaction_batch_seq
NULL, --lpn_id (for source MTI)
NULL --transfer_lpn_id (for resultant MTIs)
--Insert MTLI corresponding to the Source record-1
INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
transaction_interface_id
, Source_Code
, Source_Line_Id
, Process_Flag
, Last_Update_Date
, Last_Updated_By
, Creation_Date
, Created_By
, Lot_Number
, lot_expiration_date
, Transaction_Quantity
, Primary_Quantity
VALUES (
l_txn_if_id2 --transaction_interface_id
, 'INV' --Source_Code
, -1 --Source_Line_Id
, 'Y' --Process_Flag
, l_sysdate --Last_Update_Date
, l_user_id --Last_Updated_by
, l_sysdate --Creation_date
, l_user_id --Created_By
, 'Q0000' --Lot_Number
, l_exp_date --Lot_Expiration_Date
, -200000 --transaction_quantity
, -200000 --primary_quantity
END;the first MTI record should be the source record ...ie. it should have transaction quantity as negative.
new set of MTI records should have positive transaction quantities.
Also ensure that sum of transaction quantities for the set should be 0...
What is the error that you are getting?
Thanks,
Hrishi. -
Syntax to pass parameter value to jsp using href in out.println
Hi,
I have the URL in the form as mentioned below:
<a href="b2c/marketing/showDocDetail.jsp"> <%=doc_no%></a>
I've created the hyperlink using href tag to the document number in the jsp using the below syntax.
<% String a1 = "Document ";
String a2 = "<a href=\"";
String a3 = "marketing/showDocDetail.jsp\">";
String a4 = doc_no;
String a5 = "</a>";
out.println(a1a2a3a4a5);
%>
When clicked the doc_no is passed to backend RFC and export parameter is retrieved to result.jsp where values along with doc_no are displayed.
the value after clicked is not being passed to action.java class that does the retreival.
Needful, backend class, bom, entry in config.xml is all maintained.
Please help me out with the syntax to pass the parameter value into java classHi Bharathi,
try below.
<%
String a1 = "Document ";
String a2 = "<a href=\"";
String a3 = "marketing/showDocDetail.do?docNo=";
String a4 = doc_no;
String a5 = " \">";
String a6 = doc_no;
String a7 = "</a>";
out.println(a1+a2+a3+a4+a5+a6+a7);
%>
I assume doc_no is java variable contains value of document number
Now create action entry in config.xml file. Suppose "actionDoc.java" class process it.
<action path="/marketing/showDocDetail" type="com.xyz.actions.actionDoc">
<forward name="success" path="/marketing/showDocDetail.jsp"/>
<forward name="error" path="/marketing/showDocDetail.jsp"/>
</action>
We are passing parameter docNo=doc_no to action class actionDoc.java in this class you can retrieve request parameter docNo from request object and then process it as you want.
Let me know if you face any problem or error.
eCommerce Developer
Edited by: Ecommerce Developer on Nov 9, 2009 8:35 AM -
How to pass parameter in Function by using select statement?
Hi,
I got a problem. I cant pass in parameter to function by using select statement. But it can pass in parameter by using 'hardcode' method. How can I solve this problem?
Eg,
select * from table (SplitFunction('HS750020,HS750021')) <<< this work.
but
select * from table (SplitFunction(select LOT_NO from TRACER_SEARCH_SCHEDULE where JOB_ID = '36')) <<< do not work.
Thanks for who try to help. Thanks.skymonster84 wrote:
I have try this before. But it not work.here is an example
create or replace type stringlist as table of varchar2(100)
create or replace function splitstring(pstring in varchar2) return stringlist
as
lstringlist stringlist;
begin
select regexp_substr(pstring,'[^,]+',1, level) bulk collect into lstringlist
from dual
connect by level <= length(pstring)-length(replace(pstring,','))+1;
return lstringlist;
end;
select * from table(select splitstring('xx,yy,zz') from dual)
create table t(str varchar2(100))
insert into t values('x,y,z')
insert into t values('a,b,c')
select * from table(select splitstring(str) from t where rownum<2)
/If you supply multiple values then it will fail.
select * from table(select splitstring(str) from t)
/ -
Pass paremeter to VD03 transaction using Transaction Launcher
Hello experts,
I have a requirement to pass the confirmed account id to VD03 transaction when i click on launch transaction VD03. I have configured the transaction launcher to launch VD03 transaction.
Please let me know the steps.
Thanks
RamakrishnaHi .
I have the following code:
REPORT Z_PROGRAM_ABAP.
parameters: XYZ type Char no-display.
if XYZ = 1.
Write 'ABC'.
else.
Write 'MNO'.
endif.
And in the portal:
Application Parmeter : XYZ = 1
Parameters Forwarded: 1
The problem is that i not want that the user can see the parameter XYZ in the Sreen. When I delete the NO-DISPLAY of the sentence parameters: XYZ type Char no-display, the parameter is passed.
How can solve this issue?
Best Regards
Carmen -
Pass Parameter to second.jsp using "form & action"
I wrote a JSP Portlet. Like the sample, multipage. But, I need to use <form> to pass the parameter to second.jsp
The first.jsp include:
<form name="parameters" method="POST" action="<%= HttpPortletRendererUtil.htmlFormActionLink(request,PortletRendererUtil.PAGE_LINK) + "?" + HttpPortletRendererUtil.portletParameter(request, "next_page") + "=second.jsp" %>" >
The provider.xml include:
<pageParameterName>next_page</pageParameterName>
But, error occur and show as following:
Wed, 21 Mar 2001 10:20:02 GMT
No DAD configuration Found
DAD name:
PROCEDURE : !null.wwpob_page.show
URL : http://oraas2:80/pls/null/!null.wwpob_page.show?_pageid=null
PARAMETERS :
===========
ENVIRONMENT:
============
Do I have to do something with next_page or pageID?
I have run the first.jsp in the sample that JPDK provided. After each click, the screen will refresh.
nullLeo,
The error you are getting is actually a portal error, you have an incorrect URL.
http://oraas2:80/pls/null/!null.wwpob_page.show?_pageid=null
If you notice, after pls, you should have a DAD name such as portal30. Instead you have null. Take a look at your Database access descriptors in Portal and update your URL.
Sue -
Passing parameter to CFC while using CFGRID bind
I am attempting to use CFGRID to display some data. I have a
CFGRID set up using a bind to a CFC which is fine for a hard coded
SQL but I want to pass a parameter.
I started with the example at
http://www.garyrgilbert.com/blog/ind...sion-8s-CFGRID
I'd like to pass one or more variables to filter down the
result set.hi there, did you get this to work? I'm experiencing the same problem. i'd like to bind and pass the CFGRIDKEY to my CFC to filter my query results and then pass back the new results to my cfgrid. at this point i have no problem passing my new parameters as an argument in the json string or as a url paramenter when calling my CFC directly. however, my CFGRID keeps wigging out because it can't see the URL.CFGRIDKEY coming in. thoughts?
here's the process, page load with all users assigned to all classes in my CFGRID. user then clicks on a class number in the grid or selects a class number for a drop down selection form, to view all students assigned to a particular class.
as mentioned above, I can actually get the results i need when calling my CFC directly: http://127.0.0.1:8500/DREST_Pro/admin/getUsers.cfc?method=SPActiveUsers&returnFormat=json& argumentCollection={"gridpage":1,"gridpagesize":10,"cfgridkey":16,"gridsortcolumn":"","gri dsortdirection":""}&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=76578301E64A507D8CD8F77 D078EA17A&_cf_rc=0&intclassid=18&cfgridkey=18
and i can do this either by adding the cfgridkey argument into the argumentCollection or i can filter my results by appending the cfgridkey as a URL param.
the problem seems to be in my binding of a new parameter when building my cfrid:
<cfform name="getUsers">
<cfgrid format="html" name="displayUsersActive" appendkey="yes" hrefkey="intfkclassid" href="allEnrolled.cfm" selectmode="row" striperows="yes" pagesize="10" bind="cfc:getUsers.SPActiveUsers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgrid sortdirection},{cfgridkey})" width="650" height="400">
<cfgridcolumn name="intfkclassid" display="no">
<cfgridcolumn name="txtLName" header="Last Name" headerbold="yes" width="20">
<cfgridcolumn name="txtFName" header="First Name" headerbold="yes">
<cfgridcolumn name="startdate" header="Start Date" width="30" headerbold="yes">
<cfgridcolumn name="enddate" header="End Date" headerbold="yes">
<cfgridcolumn name="classno" header="Class No" headerbold="yes">
</cfgrid>
</cfform> -
Coding for a Z transaction using data from Portal(3 Web Pages)
Hello Everyone,
User is taken through 3 web pages with submit at the end of third webpage. Each webpage data has to be validated on SAP side and should complete the transaction only after the Submit button is pressed on the 3rd webpage.
I would like to use RFC's or BAPI's.
*********Points sure*******
Thanks in advance!
Prasad
[email protected]Hi Sudip,
Thansk for the response.
If you could provide and example or a link or any PDF's file it will be great help for me to go further.
Thanks once again1
Awaiting your reply!
Best Regards
Prasad -
How to pass parameter in "Filter By Using " Logical SQL
Hi
Newbie in BI Publisher and OBIEE.
I have the following requirement;
Generated the Logical SQL and added as New Dataset to BI Publisher Data Model.
The Logical SQL has statement as;
SELECT
0 s_0,
AGGREGATE(FILTER("BISubjectArea"."Comparative"."ME % - Account" USING ("BISubjectArea"."Common"."RPT_Date" = date '2011-10-31')) BY "BISubjectArea"."Classifications"."Country") s_1,
I want to parameterize the query by providing Data Model Parameters to the Filter By Statement. Example of what I want.
SELECT
0 s_0,
AGGREGATE(FILTER("BISubjectArea"."Comparative"."ME % - Account" USING ("BISubjectArea"."Common"."RPT_Date" =:Prior_date)) BY "BISubjectArea"."Classifications"."Country") s_1,
By providing this; it doesn't give any syntax error and accepts it. But when trying to run the Generate XML option, it gives out XML Tag error.
Please help to resolve this and thanks in advance
I am using OBIEE 11.1.1.5 version ...
Edited by: 908476 on Jan 17, 2012 1:12 AMI have not worked with 11g version but I believe that if you use Answers as a datasource then you can not have parameters on the BI publisher side. Not sure if that has changed. Please let me know if this is incorrect.
I guess you would have to use dashboard prompts and presentation variables and note that the Presentation variable MUST BE same as the parameters defined in the BI Publisher. Take a look at the following link for an example.
http://kirti-bi-solutions.blogspot.com/2009/06/passing-parameters-from-obiee.html
Thanks,
Bipuser -
I want to Hide Back option but Not Save option when using transaction iview
Hi,
Sap Guru's
I am new in Sap EP.... I am using Transaction iviews in the portal.... I want to Hide Back option but not the Save Option of transactions....I want to hide it from potal ...... Is it Possible.....
I have done settings in SICF Tcode in ECC system as Following:
~Webgui = 1
~Webgui_simple_toolbar = 160, 2, 4, 16, 32, 64 and some more values... It is hiding the Back option but also the Save Option....
I also want to disable commands as Ctlr + S , shift + F3
Suggest me some solution so that this can be done from portal instead of ECC systems.....
Thank's in Advance
Regards-
Sumeet SharmaHai,
Kalyan,
I have done this problem using SICF but instead of Hiding Back option .. I have allowed a user to run only one transaction using an iview....
Put following parameter in SICF:
~webgui = 1
~theme = Sl
~SINGLETRANSACTION = 1
By this configuration user will be able to execute only one transaction i.e assigned him in his transaction iview.... It's an alternate solution of hiding back......
when user click front screen back option of an transaction iview he will get message ... Logged off....
Regards-
Sumeet Sharma -
How to pass parameter as http POST in pageContext.setForwardURL
Hi,
I need to call a third party application page in my custom OAF page. I need to pass parameter to this third party page using POST method. I am using following command to call that -
HashMap hm = new HashMap();
hm.put("FirstName",firstName );
hm.put("LastName",lastName);
hm.put("AppSignature", signature);
pageContext.setForwardURL(hopURL,
null, // not necessary with KEEP_MENU_CONTEXT
OAWebBeanConstants.KEEP_MENU_CONTEXT, // no change to menu context
null, // No need to specify since we're keeping menu context
hm, // request parameters
false, // retain the root application module
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // display breadcrumbs
OAException.ERROR);
I am passing parameter to the page using hash map table. That application is expecting the parameters in POST format and I believe using hash map table the parameters will be passed as GET format.
We figured that out because one of the parameter we have to send is AppSignature which is 160 characters long. When third party applicatoin received that parameter they got only 151 characters, looks like they are truncated by GET method.
Any idea how to pass parameter using POST format so that this issue could be fixed.
Regards
HiteshSumit,
Thanks for your reply. I have resolved this issue by forwarding all parameters in session using pageContext.putSessionValueDirect and redirect to a jsp using pageContext.redirectImmediately.
in jsp I read the params from session and set in the form , and then redirected to my third party application.
Regards
Hitesh -
Portlet event link to pass parameter between portlets
Ok list, I followed the documentation Adding Parameters and Events to Portlets
PDK Release 2 (9.0.2 and later) and tried to make a portlet that pass parameter to another portlet using event link. I created the supposed parameter in the page and made the correct association to the receiving parameter portlet. The case is: The parameter is not caught in the receiving parameter page.
This is my event link jsp code:
<%
String sImgPath = PropertiesReader.getProperty(PropertiesReader.KEY_IMAGES_PATH);
PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
// The portlet definition in provider.xml includes the following:
// - Event "submit" with event parameters "funcionalidade"
String eventSubmit = EventUtils.eventName("submit");
String eventParamFuncionalidade = EventUtils.eventParameter("funcionalidade");
// Build up the list of parameters for the "submit" event
NameValuePair[] eventSubmitParams = new NameValuePair[2];
// Give the 'funcionalidade' event parameter the constant value 'chat'
eventSubmitParams[0] = new NameValuePair(eventParamFuncionalidade, "chat");
// The event name must be passed as a parameter on the URL
eventSubmitParams[1] = new NameValuePair(eventSubmit, "");
%>
<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR><TD><a href="<%=PortletRendererUtil.constructLink(portletRequest, portletRequest.getRenderContext().getEventURL(), eventSubmitParams, true, true)%>"><IMG SRC="<%= sImgPath + "menuButChat.gif" %>" BORDER="0"></a></TD><TR>
</TRABLE>
And this is my receiving parameter jsp code:
<%
String sFuncionalidade = "";
PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
// Get the portlet definition - needed to get the public portlet parameters
PortletDefinition portlet = portletRequest.getPortletDefinition();
// Get the public portlet parameters
ParameterDefinition[] parameters = portlet.getInputParameters();
// Display all values for each of the public portlet parameters
for (int currParameter = 0; currParameter < parameters.length; currParameter++)
String name = parameters[currParameter].getName();
out.println(" <p>name = " + name + "</p> ");
// Get the parameter values
String[] values = portletRequest.getParameterValues(name);
// Display the parameter's values.
if ( values == null )
// Null array indicates no values for this parameter.
out.println(" <p>values i null</p> ");
else
out.println(" values nco i null ");
// Loop through each of the values and display non-null values on a separate line.
for ( int j = 0; (values != null) && (j < values.length); j++ )
sFuncionalidade = values[j];
out.println(" <p>" + sFuncionalidade + "</p> ");
%>
And this is my portlet definition in provider.xml:
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>3</id>
<name>MenuColaboracao</name>
<title>Menu de Colaboragco</title>
<shortTitle>Menu de Colaboragco</shortTitle>
<description>Portlet de menu para funcionalidade de Comuicagco e Colaboragco.</description>
<timeout>10000</timeout>
<timeoutMessage>Portlet timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>false</renderContainer>
<contentType>text/html</contentType>
<showPage>/menuColaboracao.jsp</showPage>
<pageParameterName>next_page</pageParameterName>
</renderer>
<event class="oracle.portal.provider.v2.DefaultEventDefinition">
<name>submit</name>
<description>Use this event to submit the form data to a page</description>
<parameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
<name>funcionalidade</name>
<displayName>funcionalidade</displayName>
<description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
</parameter>
</event>
</portlet>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>4</id>
<name>HomeController</name>
<title>Home Controller</title>
<shortTitle>Home Controller</shortTitle>
<description>Portlet que controla a exibigco do jsp correspondente a opgco de menu selecionada.</description>
<timeout>10000</timeout>
<timeoutMessage>Portlet timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>false</renderContainer>
<contentType>text/html</contentType>
<showPage>/homeController.jsp</showPage>
<pageParameterName>next_page</pageParameterName>
</renderer>
<inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
<name>funcionalidade</name>
<displayName>funcionalidade</displayName>
<description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
</inputParameter>
</portlet>
Where do I miss ???
Any help will be appreciated.
Regards,
Leandro.Leandro,
Few things which you might want to cross check to see if we are
on the right track :
1. Page containing Parameter receiving portlet contains a
paga parameter mapped on to its public parameter.
As per your example, parameter receiving page should have a page
parameter with name - "funcionalidade" - and portlet's corresponding
parmeter should be mapped to this page parameter. This can be
done through "Parameters" tab in the Page Properties screen.
2. Page containing Parameter passing portlet contains proper event
mapping.
As per your example, we have an event called "submit". We should
be able to see "submit" event under "MenuColaboracao" portlet.
When this event is raised, select which page should receive the event
data. As soon as a page is selected, this page's public parameters
are displayed below. Beside that we must be able to see a choice box
which displays four choices one of which would be "Event Output".
Map this output to the event parameter.
Hope it helps.
-AMJAD. -
Hi,
Iam trying to print a crystal report, but it is not prompting me to pass the parameter values.
i want user to pass parameter values.
Iam using VB.Net code to generate the reports.
Could plz help me
Thanks
Raviassuming v_seqprocess_id takes the process_id, I'd probably go with something like:
cursor sum_cur(p_process_id number) is
select sum(cheque_amt), sum(balance)
from table
where process_id = p_process_id;and call the cursor passing v_seqprocess_id into it.
That's if I had to do extra processing on top of getting the values, etc.
Otherwise, I'd go with:
insert into table2
select sum(cheque_amt), sum(balance)
from table
where process_id = v_seqprocess_id;Message was edited by:
Boneist
Added in the insert version -
How to pass parameter into transaction iview ?
Hi experts,
I want to know "how to pass parameter into transaction iview ".
Regards,
Krishna Balaji THi Krishna,
Not sure if this can help you.
1) Passing a parameter to a transaction iview (I saw a resolved suggestion)
Passing a parameter to a transaction iview
2) Passing a parameter from the portal to R3 (helpful info for you)
Passing a parameter from the portal to R3
3) Create SAP Transaction iView using SAPGUI for Windows (Great Blog and info about TA Iview)
Create SAP Transaction iView using SAPGUI for Windows
Please check the following link for Transaction Iviews
http://help.sap.com/saphelp_nw2004s/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/frameset.htm
Just some info: Portal is basically what the end user can see. What he can do, is still maintain in the backend system. If there are parameters setup already for the user in the backend system (in SU01), then those parameters should still valid for the transaction that the parameters are linked to.
Hope that helps and award points for helpful suggestions.
Ray -
How to pass parameter to a callable object made of transactional iview ?
Hi All,
I was trying a simple scenario of executing a SAP transaction during a process.This is how i prceeded:
1.I created one Transactional iview.Its working fine.
2.Then created one callable object out of this iview taking some input parameter which are required during transaction execution.
3.I included the callable object in a process.
Now if i execute the process then it shows me the screen to give the
input parameters.But i give the input parameters,it simply opens the transaction.It
doesn't run the transaction with given inputs.
I guess there are some more steps required for interfacing so that
parameters can be passed to the transactional iview for execution.
Can anyone help me out.
Thanks and Regards
AshisHi.
How you start application? I think you send message to webservice(BPEL process is webservice too). So construct message with variable and value.
But I created only processes where input value doesn't matter. I haven't use mapper yet too.
Maybe you are looking for
-
How do i use my account if i don't have a credit card
i live in a location where credit cards are almost not used except for super rich people and corporations and i need to update my stuff. how is that going to work???
-
when I start iTunes, I get a error message: "unknown error 42032" Have anybody a solution to this problem?? THANK YOU Frank
-
Prepared Statements and Oracle functions:
Consider this code: String searchText = "someInputText"; StringBuffer sqlstmt = new StringBuffer(); sqlstmt.append("SELECT ID_FIELD FROM "); sqlstmt.append("MY_TABLE WHERE NAME_FIELD "); sqlstmt.append("like INITCAP('%" + searchText + %')"); Prepared
-
Message type 1 unknown error occuring when clicked on IP workbook button
Hi, I am working on authorization. When i click on the save button in an IP workbook button, it throws the message "Message type 1 unknown" saying that an error occured during communication with bw server, and its gets disconnected. I have included a
-
hi... How to start Managed server in weblogic10gr3....please help me out...