Passing parmeter from report to customize form thru link

I am using Portal 3.0 with the Oracle 9iAS. I have created a reportA with a column named INDT. The value in this column is linked to the customization report of another reportB. reportB has a bind variable called :B_INDT, created to receive the INDT value from the link
(FROM SCHEMA.TABLE
....WHERE
INDT = :B_INDT)
When I edit this link in reportA, the parameter does not appear. I only get User parameters and System parameters fields. I am trying to pass the INDT value that is clicked on in reportA through the link to the biNd variable field, :B_INDT, in the customization form of reportB to retrieve all records with that INDT value.

Hi,
When you link to a custmization form you will not be able to link to the bind variable. You can link to a bind variable only when you use the component and not the component's customization form.
You can link to the component and map the bind variable and I think your requirement can be achieved.
Thanks,
Sharmila

Similar Messages

  • 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

  • Passing parameter from reports to form - Urgent

    Hi ,
    I am calling a report (2.5) from a form using RUN_PRODUCT. I would like to know if there is any way to do the following.
    (a) Return a value from reports to calling form. For ex. I would like to know the last Item name (assuming the reports prints all items in inventory) printed. I am sending a from and to numbers of item id's (range) and I need to know the last item printed.
    (b). Check the success of report. For example, while printing the 5 items (the range that I passed) if there is any error in printing , this should be tracked either in the form or report. If this is not possible using run_product , If I need to use srw package, how to use it. Can I call the report as usual with run_product and in the after parameter trigger can, I call the report again and track error.
    Any help will be appreciated.
    Thanks

    You have to explain what you want.
    Why would you want to start the Forms Builder (Design time tool) from a JSP page? It's about the same as starting JDeveloper or Eclipse from a JSP page.

  • Passing parameters from REPORTS to FORMS.

    Hi,
    Could anyone help my on this, I'm trying to pass parameters from reports to forms is it possible? could anyone give me an idea how do I have to proceed.
    thank youk,
    bino

    http://technet.oracle.com:89/ubb/Forum4/HTML/009647.html

  • Use of report's customization form

    Can I add a report's customization form to a content area as an application component?
    I mean, I would like to use a customization form in a content area style (with the same nav bar, with the same banners and layout). It's a little inconvinience that all of my forms and reports are displayed in content area forms, except ones that need customization form.
    Any suggestion?
    Thanks in advance!

    Thanks for the hint, because I have the same task to perform (display customization form first).
    I created a PL/SQL item, in Primary Item Attributes I included the PL/SQL code:
    begin
    PORTAL30.ARTICLE_SELECT_FORM.show_parms;
    end;
    In the PL/SQL Execute Options, I selected "Public (PORTAL30_PUBLIC)". The PL/SQL item works fine as long as I'm logged on as the PORTAL30 user. When I log on as an end-user, WWV-12600 appeares (insufficient privileges).
    What exactly do I have to grant - and where? Balaji said "grant execute on this package to public" - could you please tell me where and how to do this (on database level or within Portal)?
    Thanks in advance for any help.

  • Passing Parameter from report to form

    I have a report, link, and form developed. They all work just fine execpt that when the form comes up it is not linked to he record that it was called from. I have read the links on passing parameters and still do not understand what I have to do.
    Here is the basic scenario. I have a report that is a list of account codes for a project. There is a link from the account code to the acount code form where the user can change the status (active/inactive) of the account for a project. If the user clicks on the link for account 1000 thenI would expect that the form opens with account 1000 in update mode.
    How do I do it. It seems a very simple concept. What am I missing?
    Jerry
    [email protected]

    I am obviously missing something. In editing the link, I have a user parameter of atab. This is the column that is linked in the report. What do I use as the default value. Does it make a difference if the table does or does not have an index on the atab? The PK is an ID.
    Please help
    Jerry

  • 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

  • How to pass value from report to form?

    Dear,
    I built a report and I create button on report too. This
    button will show a form that I want it to automatically show
    receivable values from report so that user don't complete them.
    So I create a button on the report . I enter Javascript in
    PL/SQL Code tab in '...after displaying the footer' as follow :
    htp.formOpen
    (owa_util.get_owa_service_path||'portal30.wwa_app_module.link?
    p_arg_names=_moduleid&p_arg_values=1736929105&p_arg_names=_show_h
    eader&p_arg_values=YES&p_arg_names=GNO&p_arg_values=1&p_arg_names
    =QNO&p_arg_values=2');
    htp.formSubmit(null,'New Answer');
    htp.formClose;
    GNO , QNO is value which I want to pass
    As you can see, the above code can pass only static value.
    But I want to pass values that is the condition of this report.
    I mean,such as, this report show data that gno=1 and qno=2 and I
    want to pass these values to form. So both value will appear in
    gno and qno field.
    So please tell me what should I do. Please help me. I don't
    know how to do it. I look forward to hearing from all of you.
    Please!!!!!! Don't hesitate to answer.
                        Thank you very much
                   Sirin Kittichotpanich

    Hi Marc,
    Yes, you have it correct in what I am trying to do and if I put a default value in the hidden item on page 2 and run it then that works fine. I just can't get the value from the form passed to page 2 for some reason. There are actually 22 items on the form that can be filtered but just using COREID for simplicity. When I run the form I am just entering a value in the COREID field to try and return those records. Most of the other items on the form are displayed as Popup LOV(fetches first row). Would the values of all these be done the same in a comma delimited list for the items and values? I was trying to get at least one of them working first. Here is the search result that comes up in the debug window:
    Search Results
    0.01: Item: P2_COREID HIDDEN
    0.01: show report
    0.02: determine column headings
    0.02: parse query as: MOTEAMSAPEX
    0.02: binding: ":P2_COREID"="P2_COREID" value=""
    0.02: print column headings
    0.02: rows loop: 15 row(s)
    No data found.
    Here is the SQL statement:
    select coreid, serialnumber
    from MOTEAMS.V_ASSETS where
    instr(UPPER("COREID"), UPPER(:P2_COREID)) > 0
    The branch settings are:
    Set these items: P2_COREID
    With these values: &P1_COREID (also tried this with period at the end)
    I am new to this and not familiar with apex.oracle.com. How would I go about posting to that site?
    Thanks,
    Pam

  • Passing parameters from report portlet to a forms portlet

    Hello All,
    I am trying to link data in a report to a form. Here's the gist: I click on a record in the report and the data is passed to a form in update mode. The problem is that when I click on the record the data is not passed right away to the form. Only after clicking the record again or refreshing the page does the data get passed. Any ideas? I'm sure it's something very simple that I'm missing. Here's the code below:
    report code:
    select ''||empno||'' empno_link, empno, ename, job, mgr, hiredate, sal, comm, deptno
    from scott.emp
    set_context_refresh procedure:
    procedure set_context_refresh
    p_context in varchar2,
    p_context_value in varchar2,
    p_page in varchar2)
    is
    v_Session portal30.wwsto_api_session;
    begin
    v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
    v_Session.set_attribute(p_context, p_context_value);
    v_Session.save_session;
    owa_util.redirect_url('http://jvic9/pls/portal30/url/page/'||p_page);
    end set_context_refresh;
    form code:
    /* ... before displaying the page section */
    portal30.empcust.autoquery_emp_form(p_session);
    autoquery_emp_form procedure:
    procedure autoquery_emp_form
    p_session in out portal30.wwa_api_module_session
    is
    v_RowID varchar2(100);
    v_Session portal30.wwsto_api_session;
    v_empno varchar2(40);
    begin
    v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
    v_empno := v_Session.get_attribute_as_varchar2('EMPNO');
    begin
    select rowidtochar(rowid) into v_rowid
    from scott.emp
    where empno = v_empno;
    end;
    p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_CALLED_FROM_LINK',p_value=>'ROWID');
    p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_ROWID',p_value=>v_rowid);
    portal30.wwa_api_module_event.do_event('DEFAULT','QUERY_BOTTOM',1,'ON_CLICK',True,'',p_session);
    p_session.save_session;
    end autoquery_emp_form;

    Hi John,
                  If Not CRRpt.ParameterFields("AgeType") Is Nothing Then
                        CRRpt.ParameterFields("AgeType").CurrentValues.Clear()
                        Dim ParamValue As new CrystalDecisions.Shared.ParameterDiscreteValue
                        ParamValue.Value = AgeType.ToString 
                        CRRpt.ParameterFields("AgeType").CurrentValues.Add(ParamValue)
                    End If
    Note that the ParamValue.Value should be assigned with exact same data type as you declared it in CR.
    If it is string, Convert your Variable to string first.
    If it is date, make sure you are passing a date variable.
    and so on...
    Regards
    Edy

  • Passing parameters from report to form portlet

    I am trying to link data in a report to a form. Here's the gist: I click on a record in the report and the data is passed to a form in update mode. The problem is that when I click on the record the data is not passed right away to the form. Only after clicking the record again or refreshing the page does the data get passed. Any ideas? I'm sure it's something very simple that I'm missing. Here's the code below:
    report code:
    select 'http://jvic9/pls/portal30/portal30.empcust.set_context_refresh?p_context=EMPNO&p_context_value='||empno||'&p_page=reportform">'||empno||'' empno_link, empno, ename, job, mgr, hiredate, sal, comm, deptno
    from scott.emp
    set_context_refresh procedure:
    procedure set_context_refresh
    p_context in varchar2,
    p_context_value in varchar2,
    p_page in varchar2)
    is
    v_Session portal30.wwsto_api_session;
    begin
    v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
    v_Session.set_attribute(p_context, p_context_value);
    v_Session.save_session;
    owa_util.redirect_url('http://jvic9/pls/portal30/url/page/'||p_page); end set_context_refresh;
    form code:
    /* ... before displaying the page section */
    portal30.empcust.autoquery_emp_form(p_session);
    autoquery_emp_form procedure:
    procedure autoquery_emp_form
    p_session in out portal30.wwa_api_module_session
    is
    v_RowID varchar2(100);
    v_Session portal30.wwsto_api_session;
    v_empno varchar2(40);
    begin
    v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
    v_empno := v_Session.get_attribute_as_varchar2('EMPNO');
    begin
    select rowidtochar(rowid) into v_rowid
    from scott.emp
    where empno = v_empno;
    end;
    p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_CALLED_FROM_LINK',p_value=>'ROWID');
    p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_ROWID',p_value=>v_rowid);
    portal30.wwa_api_module_event.do_event('DEFAULT','QUERY_BOTTOM',1,'ON_CLICK',True,'',p_session);
    p_session.save_session;
    end autoquery_emp_form;

    Your code seems to be OK.
    The problem of the data not appearing when you do the query manually (i.e through an API call), is a bug and has been fixed in patch 3.0.9.8.3.

  • Passing parameters from report to form

    Hello,
    I have a report based on a View with all the details of only one record. I whant to link this report with a form in insert mode, passing some of the fields as parameters.
    Anyone konws how to do it?

    Jan,
    Thanks for the succinct reply! I've been trying to 2 days to solve this problem. Whew!
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jan Willem Vermeer ([email protected]):
    Unfortunately linking reports and forms in insert mode is not completely tackled in the faq.
    For a long time Oracle Customer Support and I were not able to get the form in insert-mode. My forms kept on appearing in query-mode, so when I passed values from the report to the form, the form queried records based on the parameters passed through from the report. While I wanted these parameters filled in as default values.
    The solution is almost too easy to imagine. When you define the link-parameters in the report definition, you should leave the EQUAL-sign blank. On metalink you can read TAR 1258704.996 and bug 1696340 for more info.<HR></BLOCKQUOTE>
    null

  • Passing variables from Report to Form

    Hi, I need pass a couple of variables from the REPORT to two fields in the FORM for save in a table. Somebody knows how do I do this?. Any suggestions?
    Thanks a lot!
    I think that this situation is different that pass variables from FORM to REPORT.

    You need to use a Link component to your Form that you then attach to one of the data columns in the Report. When you edit the link in the report, you can specify the fields to pass.

  • Passing key from report to form

    HI, I am new to HTMLDB and have created an application which has a report based on a master table with a clickable key(user_id) which then takes you to the detail based form. If the record for the form exists then it works just fine but I have a problem when trying to create a new record on the form and that is "How do I pass the key(user_id) from the report to the form after getting a 1403 error??"
    Bryan

    I'm not sure how a detail table can have a userid for a PK. Is it guaranteed to have at most one record for the Master table?
    Can you put the url associated with a detail page into this thread?
    I suppose you could put a process on the page that checks to see if the record exists, and if not clears all the values of the page. That might solve the problem? Does the create button take you to the same detail page?
    Anton

  • Passing a parameter to aReport Customization Form

    I have a report that has a default view and a customized view. The default view has a button that allows the user to customize the report by showing the same report in show_parms mode. This allows them to sort and break on different fields. I would like to send the same parameter sent to the default view to the version generated by the run button on the customization form. I just can't fiqure out how to do it. Any ideas would be appreciated.
    Thanks,
    Linda

    Martin,
    Thank you for responding. I will certainly keep in mind the way you solved the problem. But I actually solved it myself with the following technique.
    STEPS
    1. Created a link to the Reports Customization form from the Report.
    2. Captured the value of the parameter sent through the URL to the bind variable for the report.
    3. Set the parameter value to a global variable using the Session storage API=wwsto_api_session.
    4. Retrieved the value of the global variable by setting the default value in the "Customization Form Display Options" tab of the report.
    In the Report add the following PL/SQL Code....
    --Location:      Additional PL/SQL Code
    --Attribute:     ... after displaying the header
    declare
    l_store portal30.wwsto_api_session;
    l_param_value varchar2(4);
    begin
    --(#2)TStudy is the parameter name passed through the URL and the name of the bind variable in the SQL Command
    l_param_value := portal30.wwv_name_value.get_string(l_arg_names,
    l_arg_values, 'Tstudy','',1);
    --(#1) Add Link to the Reports Customization Form
    htp.p ('<CENTER>');
    htp.p('<font class=portletheading2> CUSTOMIZE</font>');
    htp.p ('</CENTER>');
    htp.br;
    --(#3)Store Parameter Value sent to the bind variable
    l_store := portal30.wwsto_api_session.load_session ('MYPORTAL', 'MYReport');
    l_store.set_attribute ('PValue', l_param_value);
    l_store.save_session;
    END;
    --(#4) Default Value in "Customization Form Display Options" for TStudy
    #portal30.wwsto_api_session.load_session('MYPORTAL', 'MYReport').get_attribute_as_varchar2('PValue')
    ?????My Last Question - How do I hide the prompt for the bind variable. I don't want the user to change this value after I went to such trouble to set it???????
    Thanks again,
    Linda Gowen

  • Pass parameter from report to report generates error

    I am new to Portal. Please help me with this one.
    I created two reports using report wizard. Report A lists termination infor group by leaving reasons. Report A takes two parameters: p_termination_date_from, p_termination_date_to.
    When Report A is returned, user is supposed to be able to click on termination reason and go to report B, which has more detail of who is terminated under that reason. Report B takes three parameters:
    p_Leaving_reason,
    p_termination_date_from,
    p_termination_date_to.
    All these three are passed from Report A.
    I use link to pass p_leaving_reason, but not able to use link to pass termination dates. So I use "a href= ..." to pass termination dates in Report A. The report is created without error. But when I run it, it gives me the following error:
    Error: Unable to perform query (WWV-10202)
    ORA-01858: a non-numeric character was found where a numeric was expected (WWV-11230)
    Here is my Report A Statement:
    ===========================================
    select a.LEAVING_REASON, a.meaning, count(distinct(a.EMPLOYEE_NUMBER)) people
    from tableA a
    WHERE
    a.ACTUAL_TERMINATION_DATE >= ''||:P_TERMINATION_DATE_FROM||''
    AND
    a.ACTUAL_TERMINATION_DATE <= '<a
    href="report_b?p_arg_names=P_TERMINATION_DATE_TO&p_arg_values='||:P_TERMINATION_DATE_TO||'">'||:P_TERMINATION_DATE_TO||'</a>'
    GROUP BY a.LEAVING_REASON, a.MEANING;
    And Report B select statement:
    ================================
    Select * from tableB b
    where b.termination_date>=:p_termination_date_from
    and
    b.termination_date<=:p_termination_date_to;
    I appreciate your help.

    Update:
    Now I put a to_char in front of a.actual_termination_date, it does not give me that error any more. But it doesn't return any row.
    Looks like it ignores the value I put in the parameter form. Please help. thank you.
    Here is the updated statement for report A:
    ==============================================
    select a.LEAVING_REASON, a.meaning, count(distinct(a.EMPLOYEE_NUMBER)) people
    from tableA a
    WHERE
    to_char(a.ACTUAL_TERMINATION_DATE, 'dd-mon-yyyy') >= ''||:P_TERMINATION_DATE_FROM||''
    AND
    to_char(a.ACTUAL_TERMINATION_DATE, 'dd-mon-yyyy') <= '<a
    href="report_b?p_arg_names=P_TERMINATION_DATE_TO&p_arg_values='||:P_TERMINATION_DATE_TO||'">'||:P_TERMINATION_DATE_TO||'</a>'
    GROUP BY a.LEAVING_REASON, a.MEANING;

Maybe you are looking for

  • What are communication structures like KOMK and KOMP ?

    Hi, What are the communication structures liek KOMK and KOMP? What is their significance ? Any material on them would be appreciated. I have a requirement to move delivery item data to delivery header in creating shipment cost document. While doing t

  • Which external Microphone for outdoor????

    Im currently waiting on the Canon HF G30 to be released and would like some information or opinions on which is the better external microphone for my shooting.  I will be shooting 90% outdoor and 10% indoor.  Automotive and racing events is the norma

  • IMac boots straight into Windows 7

    I installed Windows 7 Ultimate x64 using Bootcamp on an iMac 9,1. Now when I turn my computer on, it boots straight into Windows 7 by default. If I hold down Option while booting and select Mac then it does boot correctly into OS X 10.6.1. Is there a

  • Newbie having trouble with template highlight (button)

    Stupid question I'm sure, but for the life of me I can't figure it out: When using a template, if I change anything at all about the TYPE related to a button, or the size of the button/text group, the corresponding HIGHLIGHT gets freaky. I can't for

  • Where are all of my InDesign Shortcuts?!

    Recently I have noticed my Indesign has deleted almost every shortcut with a few exceptions the main one being cmd + s to save. But everything else is gone, even the most simple of holding down shift to maintain the proportions of an image. I have un