Passing one parameter to multiple views

Is this possible?  I would like to pass one parameter, a date field, to multiple views.  I cannot use it in the record selection, because my views do a mathematical computation which returns a single value, but I only want to select the data for a single day. 
The problem is that there are several views and I do not want to have to enter the date parameter a dozen times.

Try to use add command and write the query like this
select * from view where datefield={?date}
also create another add command for the other view
select * from view2 where datefield2={?date}
for all the queries create the same parameter with the name {?date}
Regards,
Raghavendra

Similar Messages

  • One parameter for multiple Crystal reports in Publication

    Does anyone know if it is possible to enter one identical parameter for multiple Crystal reports in publication when scheduling? BOE 3.1 SP3 Windows, Java.
    To elaborate I am creating publication with multiple reports, each report has one parameter and this parameter is identical in every report in publication. So instead of entering this parameter many times I would like to enter once. 
    If yes point me in the right direction to get the how to or post the steps.

    Daniel,
    Thank you so much for your answer. It was very helpful. In the end, it didn't work but it helped me figure out what was happening. I use a different form for the reports and I had it coded in the form which report to use. I created a second form for the second crystal and then I used an if statement to choose the form and it worked like a charm.
    Thanks so much again!

  • Pass one parameter to lov

    Hi,
    I need to pass a parameter for one lov and am trying to pass with the code:
    In the page that calls the Lov step (vinculo = 1)
    <bc4j:messageLovField
    name="CodPessoaAluno"
    attrName="CodPessoaAluno"
    columns="10"
    required="yes"
    message="Informe o Nome do Aluno"
    prompt="Codigo"
    shortDesc="Clique no botao para escolher o Nome do Aluno"
    onClick="openWindow(window,
    '../../sigep/lov/LovPessoas.uix?vinculo=1',
    'lovWindow',
    {width:700, height:525},
    true,
    'dialog',
    FunLovRetorno);
    return false;">
    </bc4j:messageLovField>
    In the event of the Lov page I try to catch vinculo.
    public static EventResult SgCreate( BajaContext bc, Page page, PageEvent event)
    int vinculo = Integer.parseInt(event.getParameter("vinculo").toString());
    String quantTrains =
    "select max(nvl(rownum,0)) quant "+
    "from           pe_vinculos                         a " +     
    "                    ,pe_vinculo_grp_inf          b " +
    "where          a.vinc_cod_vinculo          = b.vinc_cod_vinculo " +
    "and               b.vigi_sta_ativo      = 'S' " +
    "and           a.vinc_cod_vinculo           = " + vinculo + " " +
    "order by b.vigi_num_ordem " ;
    However, null arrives in vinculo. How I can catch this value?
    Fernando. parameter to lov and I try pass

    Hard to say; does the URL in the browser still contain "vinculo"? If you call PageEvent.getParameterNames(), do you see all (or any) of the parameters you expect?

  • One big report, multiple views

    is it ok (as a good practice) in OBIEE Answers, when dealing with a complex BM, to build a big report with lots of dimensions and measures involved , and then create many views for that report, each using a limited number of dimensions / measures available in the report ?
    I have experienced a few cases when a complex report with multiple views displays incorrect results , while if creating simpler reports for each of the views the results are correct.
    and that seems to me because, on each of the small simple reports a correct sql query is generated, while on the big report OBIEE tries to achieve the requirements using just one or two much more complex (and with lower granularity) queries ( the result of which are are used by presentation layer to further compute -sometimes incorrectly- the values for each of the report views).
    sometimes even when I exclude a dimension column from all views (while is still present in the report) the sql query generated still use it.
    is this a normal behavior ? have anyone experienced similar issues ? I'm having some hard time explaining these to the users that create reports.
    thank you.

    Couldn't find anything in the documentation to support that , though. How to explain this to the report writers ? many times it is more convenient to them to just create a big report with lots of views...instead of many reports.

  • One Entity with multiple views

    Hi,
    My Jdev : 11.1.2.3.0
    I created entity like EmployeeEO and views like EmployeeView1, EmployeeView2, EmployeeView3 and EmployeeView4.(Single entity but multiple views).
    my requirement is how to use these views as panelTabed in 4 different tabs..
    issue :
    =====
    If i create single row in the  first tabs EmployeeView1, but other tabs views also automatically created the row. How to avoid that.
    Thanks,

    Take a look at:
    Maintaining New Row Consistency in View Objects Based on the Same Entity
    and
    How to Change the Default View Link Consistency Setting
    Advanced View Object Techniques - 11g Release 1 (11.1.1.6.0)

  • Unable to build SQL query for one parameter at multiple locations

    Hi,
    Below one is the sample SQL in which I used :p_organization_id at 3 positions
    First one at in the main where clause
    Second one after START WITH
    Third one is after CONNECT BY PRIOR
    SELECT bs.assembly_item_id
    ,msia.segment1 a_item
    ,SYS_CONNECT_BY_PATH(msi.segment1, '---->') "Path",
    bc.component_item_id,
    bc.disable_date,
    bc.item_num,
    mp.organization_code organization_code,
    LEVEL,
    bc.attribute1 reference_no,
    msi.segment1 item_number,
    msi.description description
    FROM inv.mtl_system_items_b msi,
    inv.mtl_system_items_b msia,
    bom.bom_structures_b bs,
    bom.bom_components_b bc,
    inv.mtl_parameters mp
    WHERE
    bc.component_item_id = msi.inventory_item_id
    AND bc.bill_sequence_id = bs.bill_sequence_id
    AND bs.assembly_item_id = msia.inventory_item_id
    and msi.segment1 = 'P5200802-DB100'
    AND bs.organization_id = msia.organization_id
    AND msia.organization_id = msi.organization_id
    AND msi.organization_id = mp.organization_id
    AND mp.organization_code = :p_organization_id
    AND NVL(TRUNC(bc.disable_date),TRUNC(SYSDATE + 1)) > TRUNC(SYSDATE)
    START WITH msia.segment1 = '24310003-13.1' AND mp.organization_code = :p_organization_id
    CONNECT BY PRIOR bc.component_item_id = bs.assembly_item_id
    AND mp.organization_code = :p_organization_id
    ORDER SIBLINGS BY bc.item_num
    My question is how to use single parameter value that should go in the multiple positions in the SQL.
    Please suggest if this can archived either in the Discoverer Admin / Desktop in detail.
    Regards,
    Chiranjeevi Meda

    Hi,
    The only way you can use SQL with a connect by in Discoverer is to either put the SQL in a view or put the SQL in a custom folder. Either way you will not be able to pass parameter directly from Desktop/Plus to the view or custom folder.
    The solution probably is to use session parameters and replace the :p_organization_id in the 3 positions with SYS_CONTEXT('DISCO_CONTEXT', 'ORGANIZATION_ID') once you have defined your DISCO_CONTEXT namespace and ORGANIZATION_ID session parameter.
    See these threads for more information. (Re: Passing multiple parameters into Custom Folder... http://learndiscoverer.blogspot.com/2008/11/metalink-note-304192.html)
    Rod West

  • Dataflow to one attribute from multiple views doesn't work

    I have an oracle database, of which I use two tables. Each table has its own view in the meta directory.
    The first view contains a table which consists of a uid generated by another system and three other non-important columns. This uid is the only column I need, this should be the naming (rdn) for use with my directory entries.
    The second view contains almost all the other data, such as adresses, (full) names, mail etc.
    I've configured the first view with a join rule, dn mapping rule and attribute flow rule to sync a new entry from my oracle database view 1 to the metaview.
    Point is that at that time I'm missing information such as givenName, sn, cn etc. As those are required by the objectClass, I configured my attribute flow rule to also flow het uid from database into them.
    So that's that. I've got my new entry with the uid I want.
    The second view is configured with an attribute flow rule and a join rule so it matches the entry created by the rules above.
    Here's the thing: any attribute (such as mail facsimiletelephonenumber, etc) configured in my attribute flow rule from view 2 is synched to the metaview entry, except for those attributes that already are flown from view1.
    No matter what attribute I try, for instance givenName, no attribute is never overwritten with a suitable value from my oracle database view 2. It still has the value of uid from my view 1.
    Is there a way to fix this or am I missing some settings here? I've fiddled around a bit with the options in the capabilities and configuration tabs with very little success.

    AFter some experimentation, discovered the following:
    Go to Quiz > Quiz Preferences. Under Settings, there is a
    "Allow user to review quiz" check box. Under Pass or Fail, there is
    an "Infinite attempts" check box. I had both of these unselected.
    Here's what happens when you select or deselect one or both:
    Review + 1 attempt: User starts to answer questions, and then
    backs up. User can go forward again. Answered questions still
    display the answers. Once reaches unanswered questions, they are
    now locked.
    Review + Infinite: User starts to answer questions, and then
    backs up. User can go forward again. All answers to questions
    erased and user can answer all questions.
    No Review + 1 attempt: User starts to answer questions, and
    then backs up. User can't go forward again. (This was the situation
    encountered.)
    No Review + Infinite: Same as Review + Infinite.

  • One master library - multiple views

    how do you put all household cd's into one iTunes library (on one pc) then create mutliple views - for example, mom, dad, kid A, kid B, kid C.. allows each family member to sync their iPod to their own music library (a subset of the whole thing).
    can do?
    no can do?

    What you need it you want to replicate the iTunes from the master library, is to copy the entire contents of the iTunes folder without the iTunes music folder (Presumably you have the iTunes Music folder on the shared drive now.)
    If the iTunes Music folder in the iTunes folder is empty you could simply copy it to the shared folder and then - after you have installed iTunes in each account and set the location of the iTunes Music folder in preferences, but before adding anything to the library, drag the iTunes folder out the Music folder in the new account and replace it with a copy of the one from the shared drive.
    That should mean that each account will start the same as the master account but can be modified by each user as they wish, after that.
    I hope all that made sense.

  • Passing a parameter to a view from an Oracle Form ?

    Hello,
    Can I create a view on the database which takes a in a parameter from an Oracle form.
    If yes then what is the syntx , please let me know.
    Thanks
    IQ

    There are ways to simulate a 'parameterized view'.
    Create your view and have it reference some value in an application context (look up in the manuals "application context feature").
    Then from your Form, just prior to selecting from the view, make sure you set the value in your sessions' application context.

  • Use one parameter for multiple markers in PreparedStatement?

    I have a prepared statement with a where clause of the following form:
    where x = ? or y = ?
    where the ? for x and y is the same literal value. Is there a more elegant way to handle this other than what I'm doing now (which I think is pretty clumsy):
    pstmt.setString(1, aValue);
    pstmt.setString(2, aValue);
    Obviously, I'd like to only set the value once, and have it used both places.

    No. If its transactions across multiple databases you should use different datasources.

  • Pass one parameter from parent to child report.

    Hello experts,
    I am new in OBIEE. I have devloped report1 and report2. Report1 is master report and report2 is child report. Both reports are madeup of combined request to need to business requirement.
    I am facing issue to create navigation from report1 to report2. Actually i have to pass to value to col1 of report1 to filter the second report. There are 5 and 6 columns in 1st and 2 report respectively.
    Please suggest how i can achieve this.
    Thanks in Advance

    Hello,
    Keep all the columns which are in the report 1 as prompted in report 2 and provide the navigation path in report 1 for report 2.
    Also please refer this:
    http://gerardnico.com/wiki/dat/obiee/olap_operation ---gives results as You expected..Please mark it as useful if it is satisfies your requirements.
    Thanks,
    Chitra Subramani
    Edited by: user6371773 on Mar 3, 2011 4:28 AM
    Edited by: user6371773 on Mar 3, 2011 4:29 AM

  • How to pass two parameter

    Hi All,
    web.show_document('http://127.0.0.1:8889/forms/frmservlet?
    form=C:\test_report\final_to_be_added_to_main\MASTER_FORM_TRIAL.fmx&userid=&buffer_records=NO&debug_me
    ssages=NO&array=YES&query_only=NO&quiet=NO&RENDER=YES&otherparams=USER_ID=' || :BLOCK3.curr_USER);* here in this code i have pass one parameter from one form to other if i pass two parameter please correct the syntax*
    Thanks And Regards
    Vikas

    web.show_document('http://127.0.0.1:8889/forms/frmservlet?form=C:\test_report\final_to_be_added_to_main\MASTER_FORM_TRIAL.fmx&userid=&buffer_records=NO&debug_messages=NO&array=YES&query_only=NO&quiet=NO&RENDER=YES&otherparams=USER_ID=' || :BLOCK3.curr_USER||'&COMPANY_NAME='||'Blnk');Not working please correct it
    Thanks And Regards
    Vikas

  • How to pass more than one parameter

    Hello,
    This is my code.
    How to pass more than one parameter:
    SELECT:responsibility_name responsibility_name,
    LPAD(' ', 6*(LEVEL-1))
      || menu_entry.entry_sequence sequence ,
      LPAD(' ', 6*(LEVEL-1))
      || menu.user_menu_name SubMenu_Description ,
      LPAD(' ', 6*(LEVEL-1))
      || func.user_function_name Function_Description ,
      LPAD(' ', 6*(LEVEL-1))
      || menu_entry.prompt prompt
      ,menu.menu_id ,
      func.function_id
      --menu_entry.grant_flag Grant_Flag ,
      --DECODE( menu_entry.sub_menu_id , NULL, 'FUNCTION' , DECODE( menu_entry.function_id , NULL, 'SUBMENU' , 'BOTH') ) Type
    FROM fnd_menu_entries_vl menu_entry ,
      fnd_menus_tl menu ,
      fnd_form_functions_tl func
    WHERE menu_entry.sub_menu_id    = menu.menu_id(+)
    AND menu_entry.function_id      = func.function_id(+)
    AND MENU.LANGUAGE(+) = 'US'
    AND FUNC.LANGUAGE(+) = 'US'
    --AND func.user_function_name LIKE '%Primary Care Providers%'
    AND grant_flag                  = 'Y'
      START WITH menu_entry.menu_id =
      (SELECT menu2.menu_id
      FROM fnd_menus_tl menu2,apps.fnd_responsibility_vl resp
      WHERE menu2.menu_id=resp.menu_id
      and resp.responsibility_name= :responsibility_name
      --and menu2.user_menu_name = ('ATCO HR INQ USER'
      AND LANGUAGE = 'US'
      CONNECT BY MENU_ENTRY.MENU_ID = PRIOR MENU_ENTRY.SUB_MENU_ID
       and menu_entry.function_id not in (select func.function_id
                                       from --fnd_form_functions_vl fnc,
                                       apps.fnd_resp_functions exc,
                                       apps.fnd_responsibility_vl res
                                      where func.function_id = exc.action_id
                                      and res.responsibility_name =:responsibility_name
                                      and res.responsibility_id=exc.responsibility_id)
      and menu_entry.sub_menu_id  not in (select menu.menu_id
                                       from --fnd_menus_vl imn,
                                       apps.fnd_resp_functions exc,
                                       apps.fnd_responsibility_vl res
                                       where menu.menu_id = exc.action_id
                                       and res.responsibility_name =:responsibility_name
                                      and res.responsibility_id=exc.responsibility_id)
    ORDER SIBLINGS BY menu_entry.entry_sequence;
    Thank you for your help
    Shuishenming

    Hi, Ming,
    One way is to put the "parameters" in a table, and join to that table in your query.  If you make it a Global Temporary Table, then multiple sessions can run the query at the same time, and each can be seeing different responsibilities.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.  Since this problem involves parameters, you should give a couple of different sets of parameters, and the results you want from the same sample data for each set.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • I want to create stored procedure which will give output rows from "values that are passed as one parameter (comma seperated) to store procedure".

    Hello,
    I want to create stored procedure which will give output rows from "values that are passed as one parameter (comma seperated) to store procedure".
    Suppose , 
    Parameter value : person 1,person2,person3 
    table structure : 
    Project Name | officers 1 | officers 2
    here, officers 1 or officers 2 may contain names of multiple people.
    expected OUTPUT : distinct list(rows) of projects where person 1 or person 2 or person 3 is either officer1 or officer 2. 
    please explain or provide solution in detail 
    - Thanks

    Hi Visakh,
    Thanks for reply.
    But the solution you provided giving me right output only if officer 1 or officer 2 contains single value , not with comma seperated value.
    Your solution is working fine for following scenario : 
    Project 
    Officers 1
    Officers 2
    p1
    of11
    off21
    p2
    of12
    off22
    with parameter : of11,off22 : it will give expected output
    And its not working in case of :
    Project 
    Officers 1
    Officers 2
    p1
    of11,of12
    off21,off23
    p2
    of12,of13
    off22,off24
    with parameter : of11,off22 : it will not give any row in output
    I need patten matching not exact match :) 
    ok
    if thats the case use this modified logic
    CREATE PROC GetProjectDetails
    @PersonList varchar(5000)
    AS
    SELECT p.*
    FROM ProjectTable p
    INNER JOIN dbo.ParseValues(@PersonList,',')f
    ON ',' + p.[officers 1] + ',' LIKE '%,' + f.val + ',%'
    OR ',' + p.[officers 2] + ',' LIKE '%,' + f.val + ',%'
    GO
    Keep in mind that what you've done is a wrong design approach
    You should not be storing multiples values like this as comma separated list in a single column. Learn about normalization . This is in violation of 1st Normal Form
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Passing mandatory parameter within several calculation view

    Hi, I have syntax error when I try to pass parameter between several calculation view; let say:
    Calculation view A: has mandatory parameter called company;
    and
    Calculation view B: has mandatory parameter called company;
    What I want to achieve is to passing parameter from user from Calculation view B and then within Calculation view B, I called Calculation view A with user inputted parameter.
    I have try similar like this, but giving me error:
    var_out = SELECT ...
               FROM :CA_A a,
              "_SYS_BIC"."package-testing/CA_B" ('PLACEHOLDER' = ('$$COMPANY$$', COMPANY)) b
    SQL: sql syntax error: incorrect syntax near "COMPANY": line ...
    NB: COMPANY is mandatory parameter inside Calculated view B

    Got it.
    Actually, passing the parameters from one CA to the other should be the easiest part.
    Just do something like:
    lt_a = SELECT * FROM "_SYS_BIC"."package/CA_A" ( 'PLACEHOLDER' = ('$$COMPANY$$', :COMPANY) );
    Where "COMPANY" is the input parameter's name within both views.
    Basically, within the calc view's code, just use colon & the parameter's name to refer to the paramete, similar to how you do with a logical table (e.g. :lt_a in the aforementioned case). It would also be the same to refer to a parameter within a procedure.
    From your original code, the only difference is the colon you forgot before "COMPANY" parameter reference.
    Within CA_A's own code, it should be the same to refer to the parameter within the code (i.e. :IP_COMP in the above case).
    How to achieve what you're trying to is another story. But if you want help with the SQL itself, I'd ask it in another discussion thread.

Maybe you are looking for

  • Is it me? Snow Leopard is ruining my Mac experience.

    I am using a Blackbook 2.16 Ghz 2 duo with 2Gb ram, and since my upgrade a couple of weeks ago everything just seems wrong. When i first installed i lost my iphoto application and had to have a service provider reinstall it. OK not a big problem. But

  • Airplay shared library empty

    I have recently set up a media server, consisting of a Mac mini running in headless configuration, and connected over (wired) ethernet to my Airport Extreme Base Station. With this configuration, I can play all of my music through my AirPlay-enabled

  • Capture the Active Window

    I need to capture the Active window on the event of PrintScreen Key pressed. What I get is the whole desktop. Can anyone please tell how do I capture the Active Window?

  • MACOSX Software update form 10.4.6 to 10.4.8

    Im not sure if this should go in this forum but I get the followng error when I try and run the 10.4.8 update package on a MiniMac "You cannot install MACOSX Update ( PPC ) on this volume does not meet requirements. " The package needs 84.7MB to run

  • ZXP file type

    I am getting reports from users that the ZXP files I have available for download becomes a zip file when downloaded by Internet Explorer. I think this issue is limited to IE, but I'm not positive. My guess is that I have not set the file type correct