Pass Parameter from main page to include page (subview) and read it ?

Hello All
i have an include header.jsp page in main page.jsp ,and i included it by subview.
i want to pass a parameter ex(screen name) to the subview by using f:param.
Here is the code in main.jsp:
<f:subview id="headerSubView">
<jsp:include page="/commons/header.jsp" flush="true">
<jsp:param name="screenTitleByJspParam" value="screen2007"/>
</jsp:include>
<f:param name="screenTitleByFparam" value="screen2007"/></f:subview>
Code in header.jsp
1- <af:outputFormatted value="#{param.screenTitleByJspParam}"/> -- this dose not work
2- <af:outputFormatted value="#{param.screenTitleByFparam}"/> -- this dose not work (i want this manner)
So how i can send parameter by ]<f:param and read it by subview uesing adf/jsf tags ?
Regards
Mohd.Weshah
weshah79

Dear thanassis
Thanks for you help ,your code is working successfully but my case is the following :
same your main jsp page but the subview tag in table :
<%@ page contentType="text/html;charset=windows-1256"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1256"/>
<title>main</title>
</head>
<body>
<h:form>
<afh:tableLayout>
<afh:rowLayout>
<afh:cellFormat>
<f:subview id="header">
<jsp:include page="header.jsp" flush="true">
<jsp:param name="pageTitle" value="Modify aa record"/>
</jsp:include>
<f:subview>
</afh:cellFormat>
</afh:rowLayout>
</afh:tableLayout> </h:form>
</body>
</html>
</f:view>
try it the parameter dose not work ,but if you want that code work successfully move the subview out of the table.
Do you know what is the problem ?
i want give you another hint maybe it is realted to the same problem, which is in my original page the body tag is adf tag ie(<afh:body>) your code dose not work with that tag until i changed the afh:body to html body.
Regards
Mohd.Weshah

Similar Messages

  • Pass parameter from main report to sub report?

    Post Author: nomore
    CA Forum: General
    I have a report which is comparing turnover from present year to previous year.Im trying to make it dynamic - so i have added a parameter to the main report to allow user to enter a year, however I cannot work out how to pass this to the sub report so select records based on this. I have passed the data thruogh a fomula ok (WhilePrintingRecords; Shared NumberVar shYear;)  and that is working spot on.Now i just need to enter that number as a record select paremeter. Also if I try to perform a summary on this field (it never changes, but its just a test) - the 'Insert Summary' option is unavailable, and it doesnt show up as a formula in formula editor.  

    Post Author: V361
    CA Forum: General
    I have CR XI, you want to edit your subreport links, right click the sub, select Change subreport links, you should be able to select your field, and see your parameter listed.  Once you set up the link the sub will run based on whatever link you picked.

  • Passing Parameter from Main report to SQL command-based subreport

    I am trying to cut down the run time of my reports and have recently figured out how to write SQL commands to limit the data by filtering prior to being pulled into the reports.  However, many of my reports rely on multiple sub reports, which can cause a dramatic 'drag' on the report.
    I am trying to filter the SQL command used in my sub report by passing the group parameter, which is selected by the user in the main report, to the sub report's SQL command.  Without this parameter, the sub report has to sort through a lot more data than it would with this parameter, making the run time extremely slow.
    Any suggestions on how I can accomplish this?
    Thanks for any help you can provide,
    Marlene Allen
    Crystal Reports Developer
    Crystal Reports Professional;
    Product Type: Full;
    Product Version 11.5

    Hi Marlene,
    I don't believe you can pass a CR parameter to a Command object.
    I suggest replacing all of the Command Objects with a Stored Procedure so all of the data filtering is done server side. DB servers are much more proficient at collecting the data and filtering than CR will ever be. It will also allow you to replace subreports to also speed up your report processing. All depends on your layout of course but something to look at.
    Thank you
    Don

  • Passing parameter from workitem to bsp page

    Hi,
    is it possible to pass parameter from workitem to bsp page and also vice versa?

    SAP_WAPI_READ_CONTAINER function works well.but i need to pass a parameter to workitem container.
    what i am trying to do is;
    1-get data by using sap_wapi_read_container
    2-change data
    3-send changed data back to workitem
    my problem is in third step.I am using SAP_WAPI_WRITE_CONTAINER. but it doesnt work.After execution the FM return_code set to 1.
    Do u know how to set a variable in workitem?

  • How to pass parameter from 1 stored procedure to another stored procedure inside crystal report

    Hi
    I have several stored procedure in my Crystal Report. I am wondering if it is possible for me to pass a parameter to one of the stored procedure and to use the result of that stored procedure E.g. CustomerCode. To another 2 stored procedure to generate the report dynamically?
    I have 3 stored procedure
    The 1st one is used to gather information and process the calculation
    another 2 stored procedure is used for generate the graph and both of them required to take 2 parameters. The 1st stored procedure will require 1 parameter (E.G. Reference Code) and will return a set of information including the data that could be use on the other 2 stored procedures.
    After I added these 2 stored procedure, it requires me to pass 3 parameters to the report. I would like to know if I could only pass the Reference Code for stored procedure 1 and use it to retrieve the information for the other 2 parameter?
    Thanks in advance
    Chi

    Hi Chi
    To pass parameter from 1 stored procedure to another stored procedure, you will have to create sub report. In your case you will have to create 2 sub reports for 2nd and 3rd stored procedure and link those sub reports with the main report using Reference Code field in order to pass the values.
    After creating the report when you will refresh the report, it will ask 4 parameters, one parameter for main report, one for the first subreport and two for second subreport to fetch the data correctly.
    Regards
    Poonam Thorat.

  • How can I pass parameter from report to form?

    Hi :)
    Now I try to build conference room like this by using form
    and report. And i design that when users click at group report
    then i'll show page that contain questions report and add
    question form. And question form and report must receive the
    same parameter from group report.
    First Problem: is I don't know how group report send the
    same parameter to question report and add question report at the
    same time. And is it possible??? If not please suggest me what
    should I do???
    Second Problem: is I don't know how can I pass parameter from
    report to form. I don't know the way to do it.
    Please tell me!!! Please...
    I look forward to hearing from all of you.
    Thank You.

    One way is to create a link based on that form and attach that
    link with the report. Through links you can pass parameters

  • How to pass parameter from form6i to report6i

    when i passed parameter from form6i to report6i, while previewing report the data was not displaying only fields heading was displaying, but in report6i there is a parameter form thru that it was displaying data, but thru form6i to report6i it was not. Please kindly help me and give me the some sample or example of it.
    Thanks
    Best regards
    Zaheer

    ADD_PARAMETER(pl_id,'P_SCRIPT',TEXT_PARAMETER,:b1.script);

  • Master-detail relationship - passing parameter from form to form

    Hello.
    I have a question about master detail relationship.
    In first form we have master-detail relationship.
    Example on dept, emp tables:
    We query dept (master), so we can get one or many emp (detail) records. Then we have a third table - tasks. Tasks table (detail) can have many records for one employee.
    Tasks table is in another form, which is called with call_form built_in. So we pass a parameter from master to detail - parameter empno. Because of that, we can only see tasks for one employee and can't navigate to another employee. This is normal.
    Now comes the question.
    Is it possible to call a form (with tasks table) with deptno parameter (so we can navigate through all employees with that department), but first show employee that was last used in first form?
    Example of our goal.
    Master: deptno = 20
    Detail: navigate to JONES employee
    Call new form (tasks)
    Tasks for JONES employee are first shown
    Can navigate to another employee - without requery
    Is this possible?
    If we pass deptno parameter, we can navigate through all employees - but must navigate to the employee we last used in first form.
    If we pass empno parameter to second form, we see last used employee but cannot navigate to another employee without requery.
    Hope you understand my problem.
    Thanks.

    Hi
    yes you can pass parameter from one form to another.
    In your master detail form set the trigger when-new-instance and there define the global variable like
    :GLOBAL.G_CIRCLE_ID := NULL;
    and in your task table set the trigger when-new-instance and there define the global variable like and also write this code
    :GLOBAL.G_DIVISION_ID := NULL;
    IF :GLOBAL.G_CIRCLE_ID IS NOT NULL THEN
         GO_BLOCK('DIVISION');
         SET_BLOCK_PROPERTY('DIVISION',DEFAULT_WHERE,'CIRCLE_ID ='||''''||:GLOBAL.G_CIRCLE_ID||'''');
         EXECUTE_QUERY;
    END IF;
    :GLOBAL.G_CIRCLE_ID := NULL;
    now you maintain your trigger according your need.
    Regards,

  • Problem while passing parameter from report to report.

    Hi
    I'm using forms and reports 10g, hava a problem while passing the parameter from reports to report.
    i'm using srw.set_hyperlink to call report from report.
    i have created a key value in the cgicmd.dat file called
    faccre802005-2006: report=faccre80 destype=cache desformat=pdf userid=<userid/passwd@cs> server=<servername>
    Now in the format trigger i'm using this key value
    function BTN_DEBITFormatTrigger return boolean is
    temp varchar2(5000);
    IP_ADDRESS VARCHAR2(50);
    SERVER_NAME VARCHAR2(10);
    L_ACCT_CODE VARCHAR2(14);
    begin
    SELECT MAST_INT_DESC,MAST_USER_PGM_ID INTO IP_ADDRESS,SERVER_NAME FROM MAST_INT_INFO WHERE MAST_INT_ID='VISHWA';
    temp := IP_ADDRESS||'?faccre80'||:P_FIN_YEAR||'+server='||server_name;
    temp :=temp ||'+'||'P_PREVIOUS_CODE='''||:ACCT_CODE||''''||'+'||'P_COMPANY_CODE='''||:P_COMPANY_CODE||'''';
    temp :=temp ||'+'|| 'P_FROM_DATE='''||TO_CHAR(:P_FROM_DATE,'DD-MON-RRRR')||''''||'+'|| 'P_TO_DATE='''||TO_CHAR(:P_TO_DATE,'DD-MON-RRRR')||''''||'+'||'P_TRUST_CODE='''|| :P_TRUST_CODE||'''';
    temp :=temp ||'+'|| 'P_UNIT_CODE='''||:P_UNIT_CODE||''''||'+'||' P_FIN_YEAR='''||:P_FIN_YEAR||'''';
    temp :=temp ||'+'|| 'P_LEVEL='''||:P_LEVEL||''''||'+'||'P_HEADER='''||replace(:P_HEADER,' ','%20')||''''||'+'||'P_FORMAT='''||:P_FORMAT||'''';
    SRW.Set_Hyperlink(temp);
    END;
    return (TRUE);
    end;
    Report is coming but not the expected result because parmaeters are not coming from first report to second report.
    If i dont use cgicmd file userid and password are displyed in the URL.
    Pl tell me how to pass parameter from one report to another.
    thanks and regards

    Hi
    I got the solution.
    I forgot to add %* at end of the KEY value.

  • How to   Pass Parameter from BIP  to Dashboard  Report

    Hi,
    Parameter from BIP to Dashboard Report
    If I select BIP report paremeter should pass value to dashboard report
    thanks in advance.
    CHEERS ,
    Jel

    Hi Saichand,
    I hav gone through above link its passing values from Dashboard prompt to BIP report only..
    just i need like reverse (if i click on BIP report value then it should pass that value to Dashboard reports) in this this case how to pass parameter from BIP to dashboard report
    Thanks in advance
    Cheers,
    Jel

  • Hw to pass parameter from report to forms

    Dear Friends,
    I m working on Forms n Reports 6i,
    I m running report n passing parameter from the forms now the requirement is that if report run successfully it shuld give the msg otherwise give an user define error msg.
    Hw do i pass any parameter from report to form for acknowledgment.
    Thanking yours
    Chandan

    Hi Rajat,
    using run_product built in i can pass parameter from forms to reports but hw can i get some parameter value from reports to forms as mentioned earlier my post
    Thanking Yours,
    Chandan

  • Passing Parameter from URL to Web Forms - Oracle 10 Application Server

    Hi All -
    I want to pass parameter from a URL to 10g Oracle Web Forms - Oracle Application Server 10.1.2
    http://server1/forms/frmservlet?config=SATWEB_SSO&otherparams=username_sso=BABUS
    How to receive this 'username_sso' value inside my forms application ?
    Created a Parameter in the same name as URL parameter 'username_sso' in forms but didn't receive the value. I want to know how to receive the value of this parameter within forms from URL.
    Thanks - Suresh

    Try this,
    1. Create a parameter in the formsweb.cfg (say username_sso) under default section ( or you can create it in your own config section)
    2. Add the username_sso in otherparams parameter as username_sso=%username_sso%
    3. Add this username_sso parameter in your form.
    4. Run the form as
    http://<machine>:<port>.....?form=blahblah....&otherparams=username_sso=scott
    Regards,
    Arun

  • Passing values from main report to sub-reports

    - How do we pass values from main report to sub-report?

    Look at this link which shows how to pass values from a subreport to a main report.
    http://www.datamanagementgroup.com/resources/trainerstalk/trainerstalk_howto_share_subreport_data_with_main_report.asp
    You can use the same method to pass values from main report to a subreport.
    1) Create a formula @mainFormula in the main report, as given in item 1 of link.
    2) Place this formulla in a suppressed report footer section above the target subreport.
    3) In the subreport, create a formula @subFormula that declares the same variable name, as given in item 3 of link.
    4) Place @subFormula column in the subreport where you want to display it.

  • Not able to pass parameter from one fragment to another fragment in another taskFlow

    Hi,
    I'm trying to pass parameter from one fragment to another fragment and want to print the parameter value in second fragment.
    i have inputtext in first frag---
    first fragment belongs to one taskflow1 and this taskflow1 i had darg and drop to one mainPage.
    Under taskflow1 itself i drag and drop one taskflow call activity and on top of that i drag and drop another bounded taskflow as taskflow2
    under taskflow2 i have one fragment as fragment2and in that i have one outputtext field, now here i want to print the value from fragment1--inputtextfield value
    to achive this i had tried many ways but somewhere doing mistake please explain step by step.
    Thanks
    Mahesh

    In addition you need to tell us your jdev version!
    Can you elaborate on your use case a be more?
    On which event this should happen?
    In general contextual events should allow you to implement this, however, as I don't understand the use case, I find it hard to help.
    Timo

  • Pass parameter from page link to report

    <span><font face="Verdana, Geneva, Arial, Sans-serif" size="2">How can I pass 3 parameter values from a link on one page to a report or CrystalReportViewer.<br /><br />Report is a CR/VS 2005 web report in C#<br /><br />Parameter fields in the report are:<br />   CampaignID<br />   BeginDate<br />   EndDate</font> <p><font face="Verdana, Geneva, Arial, Sans-serif" size="2">So say link page URL looks like this:<br /></font><a href="http://localhost/reports/campaign_report/default.aspx?CampaignID=61325&BeginDate=1/1/2006&EndDate=1/2/2006" target="_blank" title="http://localhost/reports/campaign_report/default.aspx?CampaignID=61325&BeginDate=1/1/2006&EndDate=1/2/2006"><font face="Verdana, Geneva, Arial, Sans-serif" size="2">http://localhost/reports/campaign_report/default.aspx?CampaignID=61325&BeginDate=1/1/2006&EndDate=1/2/2006</font></a><br /><font face="Verdana, Geneva, Arial, Sans-serif" size="2">and I want to pass these values to the report and bypass the Parameter Prompt Page.</font></p><p><font face="Verdana, Geneva, Arial, Sans-serif" size="2">When i run this link the report viewer page says "missing parameters"</font></p><p><font face="Verdana, Geneva, Arial, Sans-serif" size="2">Do I need to add something to the default.aspx.cs page?<br /></font><font color="#0000ff">--<br /><br /><font face="Verdana, Geneva, Arial, Sans-serif" size="2">protected</font></font><font face="Verdana"><font size="2"> <font color="#0000ff">void</font> Page_Load(<font color="#0000ff">object</font> sender, <font color="#008080">EventArgs</font></font></font><font face="Verdana" size="2"> e)<br />{<br />     Parameter.Field1 = (CampaignID);<br />     Parameter.Value1 = Request.QueryString("CampaignID");<br />     ...??<br />}<br /><br />--
    <br /></font><font face="Verdana" size="2">Any help would be greatly appreciated?<br /><br />Thank you,<br />Jason</font> </p></span>

    Â Hi Jason
     You are correct. The Viewer object will not automatically look at the URL and try to assign the values. You need to grab these values from the URL and properly assign them to the parameter objects.
    Rob Horne
    [My Blog | /blog/10]

Maybe you are looking for

  • My MacBook keyboard seems to have broken?

    Hello, I've just turned my Macbook pro on and it seems certain keys (all fairly close to each other) don't seem to work and the volume adjust seems to go up in 1/4's rather than full blocks? I'm confused, nothing has been spilt into the keyboard and

  • Lumia 925 to nokia xl dual sim.

    i like to transfer my contacts/sms/etc from my nokia lumia 925 to nokia xl dual sim, is it possible? if can, how? at least i want the sms.... thanks.

  • Bp aging statement - sap b1 default crystal report

    hi all I am trying to modify SAP's default sap crystal report for aging. and I am having a lot of difficulties! how do I modify this layout to serve my purposes? i am not able to add any table to this report. all values on this layout come from a tab

  • Converting trial to purchase

    I got the trial version of adobe 12, later bought it...have the serial number but can not find a screen to enter it!

  • Posting salesorder to xi

    Hi I created a scenario between ecc5 and ecc6, i need to send salesorder fron ecc5.0 to eccc6.0,i tested the scenario by sending idoc from we19,it is working fine,but every tme i cant go and send the idoc from we19,so  my  requirement is like wheneve