IF {?Parameter} = {checknum} then display all

I have a report that contains an Invoice with multiple matching  Check records.  
I would like to have a parameter for the user to enter in the desired Check Number then if found as a match display that check number and any other check numbers that are related/linked to that same invoice record. 
What would be the suggested solution?

This is a situation that is best handled by using a SQL Command. The reason is that a Command will allow you to use a sub-query in you selection.
Something like this...
SELECT
t.InvoiceNumber,
t.CheckNumber,
t.OtherField1,
t.OtherField2,
t.OtherField3,
t.OtherField4,
t.OtherField5
FROM TableName AS t
WHERE t.InvoiceNumber IN (
     SELECT InvoiceNumber
     FROM TableName
     WHERE CheckNumber = {?Paramater})
This will allow you to find the Invoice Number associated with a given check, then find ALL checks that are associated with that Invoice Number.
HTH,
Jason

Similar Messages

  • Parameter List displaying all the values on Parameter form

    Dear All...If I uncheck the "Restrict List to predetermined values" option, then report parameter form displays all the values on web parameter form instead of displaying those values in the List Item. Is it the Default behaviour of Oracle Reports 10g or Can I control it anyway because if I've 1000 entries in a list, then displaying all those values openly on the form is an ugly thing and it increases the size of parameter form very much.

    Hello,
    A solution is provided in the Note :
    Note.465886.1 How to Implement an Alternate Solution to Unrestricted List Of Values (LOV) in Parameter Form on the Web:
    regards

  • How to display all validator messages at the same time?

    Hi Guys,
    I have a form with validators attached to a couple of my input boxes. I tried to write validators which are reusable in other parts of my app ie. social security number check etc. I also then customized the messages and it all works fine.
    But when I submit the form it displays the messages one at a time, in other words every validator is performed and if there was an error the form is rendered. I believe this is how it should behave and that's fine.
    But what if I want all validators to be performed when I submit the form?Then all messages are displayed at the top of the page and the user can make all his changes and try again. This makes more sense to me.
    So my question is whether there is a way to force the page to perform all validators when the page is submitted and then display all error messages in a h:messages tag?
    Cheers and thanks alot
    p.s. i know about and use the hidden input field validator hack which does all validations, but if I do it that way I duplicate the code which does the social security check for all applicable forms.

    Strange, I was under the impression that all validators were run by default. In my JSF apps, all the validators run and output their errors without any special confguration to make this happen.
    I wonder why yours are just running one at a time? Could you show some of your JSP code, and the hidden field validator code?
    CowKing

  • Display all record in case of null parameter OR selecting "ALL"

    hi all,
    I want to show the all records in the report in case the user give empty parameter Or "ALL" from the parameter list.
    I used such the way in the query:
    select item
    from item_master
    where ITEM_ID = NVL(:P_ITEM,ITEM_ID);
    its working good but now I want to give the "ALL" in the list of parameter form. so when the user select the "ALL" then the all items to be displayed.
    thanks
    Muhammad Nadeem
    [email protected]

    Hello,
    You can use the following SQL Query :
    select item
    from item_master
    where (:P_ITEM='ALL' or ITEM_ID = NVL(:P_ITEM,ITEM_ID);)
    as long as :P_ITEM has a "type" compatible with a string ...
    Regards

  • Displaying All Values from a Multiple Value Parameter

    Hi,
    Using XI, I have a parameter field that allows the user to enter multiple values Eg. 01, 02, 13, 14.  I want to create a formula to display all the values the user has selected. 
    Is there a way to do this? 
    Thanks,
    Brian

    join({?Parameter},",")
    creates a string with the items in your parameter separated by commas

  • Shell Script parameter $0 displays all concatanates all defalut parameter values

    I have a issue.The $0 is displaying all the default parm values. Pls suggest workaround:
    echo ‘Printing parameters….’
    echo ‘0:’$0
    echo ‘1:’$1
    echo ‘2:’$2
    echo ‘3:’$3
    echo ‘4:’$4
    echo ‘5:’$5
    echo ‘FCPLOGIN:’$FCP_LOGIN
    echo ‘Finished printing parameters.’
    echo ‘FCP_USERID:’$FCP_USERID
    Printing parameters….
    0:/u01/app/oracle/DEV/apps/apps_st/appl/xxabc/12.0.0/bin/xxabc
    1:xxabc FCP_REQID=684095 FCP_LOGIN=”APPS/APPS” FCP_USERID=1234 FCP_USERNAME=”ABC” FCP_PRINTER=”noprint” FCP_SAVE_OUT=Y FCP_NUM_COPIES=0
    2:
    3:
    4:
    5:
    FCPLOGIN:APPS/SONICDEV1
    Finished printing parameters.
    FCP_USERID:

    How do you call it ?
    What character(s) do you use to suppress the " in the parameters specified ?
    If you call it like this (simplified) :
    program "one two three"
    it will do:
    $0=program
    $1=one two three

  • How do you have more than one parameterized Query to display "All"?

    hi,
    I am using:
    Jdeveloper 9.0.5.2
    Oracle Database 9.2.0.1
    Toplink
    Struts
    I have been able to create a parameterized query to display an html read only table.
    I populated a dropdown list with values from the database
    and the values I select will be the parameters to my read only table.
    The drop down list is on the same page as the read only table.
    I have all this working but I also need to hard code an option in the Drop down to "All"
    to represent all values of this parameter.
    I was able to trick the jsp page using two read only tables
    and displaying the one with the parameterized query when a parameter other than "All" was chosen
    and then display the other only when "All" was chosen.
    This does not seem the best way to do it.
    What if I had more than one parameter and I wanted to show "All"
    the values of one and a certain values for another.
    I would then need at least 4 read only tables.
    How do I accomplish this in an easier way?
    Thanks in advance.

    I am not exactly sure what you are asking... Are you having trouble with TopLink, or another part of your application?
    Peter Krogh

  • How To Display All columns of a BI Report in EP

    Hi Gurus,
            We have integrated BI with EP and published BI reports in EP.The problem is in the EP-IVIEW the full report is not showing.Suppose the report has 8 columns then only 4 of them are showing.To view the other columns user needs to click on the next button of the report table.But from the BI side it is showing all the columns in Bex.As the client wants i want to display all the columns at a time.Is there any way out for displaying this?
    Regards
    Indranil

    Finally the issue resolved. There are two options to resolve the issue.
    1.you need to change the template 0ANALYSIS_PATERN in the Bex and set the default column side for changing it globaly
    or
    2.you need to append the parameter block_columns_size=0 in the query string of the iview.
    Regards
    Indranil

  • Display all rows (starting at row 1)

    Hi there
    How can I create code (with or without the wizard) in Web Application Designer, that will force the table (analysis web item) to display all rows starting at row 1.
    The user is initially presented with a table which is, say, limited to 5 lines at a time. Default scrolling / paging functionality is added, which allows them to page down 5 rows at a time.
    I want to be able to provide a button which displays all the rows ... normally this would be done by setting BLOCK_ROW_SIZE to 0 if I am correct.
    However, what I have found is that simply setting this parameter, displays all the rows, but from the existing row, so if the user had paged down once already, they are shown rows 6 till the end.
    I have played with various combinations of DATA_ROW_FROM, DATA_ROW_TO and BLOCK_ROW_SIZE, and none of those combinations seem to work for me.
    I would have thought setting the FROM row to 1, the TO row to 0 and the BLOCK size to 0 would do the trick, but that simply shows all the rows from the current position ... again, I want to go back to the first line and then show all.
    Putting 2 commands in the button doesn't seem to work either, as the 2nd command seems to override the 1st command.
    Any ideas?
    Cheers,
    Andrew

    Come on ... someone must have had to do something like this ...

  • How to display all parent regions (repeatedly reference cursor)?

    CREATE TABLE regions
    PARENT_NAME VARCHAR2(30),
    CHILD_NAME VARCHAR2(30)
    INSERT INTO regions VALUES(NULL,'Asia');
    INSERT INTO regions VALUES(NULL,'Australia');
    INSERT INTO regions VALUES(NULL,'Europe');
    INSERT INTO regions VALUES(NULL,'North America');
    INSERT INTO regions VALUES('Asia','China');
    INSERT INTO regions VALUES('Asia','Japan');
    INSERT INTO regions VALUES('Australia','New South Wales');
    INSERT INTO regions VALUES('New South Wales','Sydney');
    INSERT INTO regions VALUES('Canada','Ontario');
    INSERT INTO regions VALUES('China','Beijing');
    INSERT INTO regions VALUES('England','London');
    INSERT INTO regions VALUES('Europe','United Kingdom');
    INSERT INTO regions VALUES('Illinois','Aurora');
    INSERT INTO regions VALUES('Illinois','Chicago');
    INSERT INTO regions VALUES('Illinois','Rockford');
    INSERT INTO regions VALUES('Japan','Osaka');
    INSERT INTO regions VALUES('Japan','Tokyo');
    INSERT INTO regions VALUES('North America','Canada');
    INSERT INTO regions VALUES('North America','United States');
    INSERT INTO regions VALUES('Ontario','Ottawa');
    INSERT INTO regions VALUES('Ontario','Toronto');
    INSERT INTO regions VALUES('United States','Colorado');
    INSERT INTO regions VALUES('United States','Illinois');
    INSERT INTO regions VALUES('United States','Texas');
    INSERT INTO regions VALUES('United Kingdom','England');
    COMMIT;
    Based on the REGIONS table, write a PL/SQL anonymous block that accepts a region name from the user input and display all its parent regions.
    right now this is what I have so far:
    ACCEPT p_1 PROMPT 'Please enter the region name: '
    DECLARE
    v_rname regions.child_name%type := '&p_1';
    v_count number;
    v_counter number := 0;
    v_parent regions.parent_name%type;
    v_child regions.child_name%type;
    cursor reg_cur is
    select parent_name, child_name from regions;
    BEGIN
    open reg_cur;
    fetch reg_cur into v_parent, v_child;
    select count(*) into v_count
    from regions
    where upper(child_name) = upper(v_rname);
    if v_count = 0 then
    dbms_output.put_line(v_rname || ' is not in the regions table.');
    else
    while reg_cur%found loop
    if upper(v_rname) = upper(v_child) then
    if v_parent is null then
    v_parent := v_child;
    dbms_output.put_line(v_count || ') ' || upper(v_parent));
    else
    dbms_output.put_line(v_count || ') ' || rpad(upper(v_rname), 20) || '<<<<<' || lpad(upper(v_parent), 10));
    end if;
    end if;
    fetch reg_cur into v_parent, v_child;
    end loop;
    end if;
    close reg_cur;
    END;
    if user inputs 'chicago' my query returns only a single parent. I'm not certain how to keep referencing the cursor so that I could output the rest of the parent_names and child_names until parent becomes null
    the output should be:
    chicago <<<<< illinois
    illinois <<<<< united states
    united states <<<<< North america

    Hi,
    If you have to do this in PL/SQL, then why don't you use Solomon's solution in PL/SQL?
    BEGIN
         FOR  regions_info  IN
                   select  child_name || ' <<<<< ' || parent_name     AS txt
                       from       regions
                       where      parent_name      is not null
                       start with      child_name      = '&p_1'
                       connect by      child_name      = prior parent_name
         LOOP
              dbms_output.put_line (regions_info.txt);
         END LOOP;
    END;
    /However, if you want to see what's happening with your code, add some code to make sure you don't get into an infinite loop. I used the local variable v_counter (which you had declared, but not used for anything else) to count how many times you had gone through the loop, and EXIT once you reach 100 times.
    Also, add some more calls to dbms_output, so you can see what's going on.
    For example:
         else
              v_counter := 0;
              loop
                   v_counter := v_counter + 1;
                   EXIT WHEN  v_counter > 100;
                   dbms_output.put_line (  v_child   || ' = v_child, '
                                  || v_parent  || ' = v_parent in LOOP'
                   open reg_cur;
                   fetch reg_cur into v_child, v_parent;
                   if upper(v_rname) = upper(v_child) then
                        dbms_output.put_line(v_counter + 1 || ') ' || rpad(upper(v_child), 20) || '<<<<<' || lpad(upper(v_parent), 10));
                   end if;
                   fetch reg_cur into v_child, v_parent;
                   close reg_cur;
                   v_parent := v_child;
                   exit when v_parent is null;
              end loop;
    ...Make sure you issue the SQL*Plus command
    SET   SERVEROUTPUT   ONbefore running this; otherwise, you won't see the output from put_line.
    What do you see?
    Do you understand why you're in an infinite loop?
    Do you really want the cursor to do exactly the same thing every time you call it?
    Maybe you should add a parameter to the cursor, which can be used in, say, a WHERE clause.
    Edited by: Frank Kulash on Feb 2, 2011 11:50 PM

  • Display all records from 4 select list

    Hi,
    trying to associate 4 select list where i could display all records from a list linked to an other list.
    1./ Created an item for each select list
    P1_employee_name
    P1_departments
    P1_employee_type
    P1_locations
    2./Set both null and default values to '-1' for each item
    3./Associated these items to source columns in the Region:
    where employee_name=:P1_employee_name
    or :P1_employee_name ='-1'
    and departments=:P1_departments
    or :P1_departments ='-1'
    and ......
    When running the report, couldn't display all records from a given list associated to an other list.
    e.g: Display all emp and type of emp for sales dept in Paris.
    Thks for your help

    I believe the issue is that you need to group your predicates such as:
    where (employee_name=:P1_employee_name
    or :P1_employee_name ='-1')
    and
    (departments=:P1_departments
    or :P1_departments ='-1')
    Also, if you are not already using the "select list with submit" type items, these work great for this case as the page will be submitted when the user changes the value of employeenam and the report will then reflect this change.

  • Form does not display all records from table

    Hi guys
    I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
    Any help will be appreciated.
    Thanks

    hi
    Set the block property of "Query All Records" to "YES"
    hope it will work.
    Faisal

  • Display all valid items and select multiple items

    Let us say I have valid items in table. For each purchase user can select few items from the list. I have to display all valid items from table and user should able to check items to buy. What is the best way we can implement this in forms.
    Thanks, lalitha

    For all the valid items you can create LOV as i understood then user can choose what he wants. But this sentence ti still confusing to me. Or what is the tricky things in you scanerio if only you have to show the valid item then use LOV.
    Lalitk wrote:
    and user should able to check items to buy.-Ammad

  • How can I display all results of a array element in a TS2.0 NumericArrayMeasurement in a single report line?

    TestStand2.0 generates for each result property ( data, limits, status...) of each array element in a NumericArrayTest an extra line in the test report.
    How can I change this to display all result properties of one array element in a single line?
    How can I reduce the spaces between the property name and its value in the report?
    How can I delete the message: "Measurement[x]" and display only the Measurement Alias (named in the Edit Limits menu)?
    This means I like to change my report from:
    Measurement[0] (ADC1):
    Data: 5000
    Status: Passed
    Measurement[1] (AD
    C2):
    To:
    ADC1: Data: 5000 Status: Passed
    ADC2: ...

    Hi,
    What you can do, is use the Override Callbacks for Modify the Report that is Generated.
    Also you can also change the report sequence 'reportgen_txt.seq' to achieve the desired affect. If you go for modifying the report sequence then copy this to the User folder and then make your changes.
    In the Resources Library you can find simple examples were the report has been modified by either using the Override Callbacks or by modifying the actual sequence.
    One other item in the Report Options you will have to set the 'Select a Report Generator for Producing the Report Body' control to use the Sequence instead of the DLL.
    Hope this helps
    Ray Farmer
    Regards
    Ray Farmer

  • How to display all value of metadata from nodes collection model in content presenter template

    Hi All,
    first of all the new look of OTN is great.
    coming to problem i am facing (i dont know whr to ask here or in portal forum).
    i am creating a content presenter template to display list of items.
    now as per requirement i need to create a drop down to filter the list.
    now while check- in a file author would choose a value in one metadata field lets say xCategory(which is a single select list).
    i have to display similar category list on portal to allow user to filter list.
    i could hv used view of xCategory but problem is files are targeted to role using ACL. so u see i cant display all category to all users.
    also customer wants this whole thing to be Dynamic i.e. they can add value of xCategory later that to could be only for specific role (on portal it should be role specific , author can see whole list not a problem there).
    so what i think is if content is given as search result so the category. so now if i can get the all xCategory metedata from 'nodes' collection model in template i can create drop down with out having any additional bean.
    somthing like this
    #{nodes.xCategory} (but this one is not correct).
    please suggest me any solution.
    thanks
    -somesh

    Hi,
    you can do all of what you said with JSF. ADF Faces provides drag and drop functionality (have a look at the Web Developer Guide) that allow you to move nodes within a tree. The drag and drop framework sends an event notification to the server with a reference to the changed node.You can also have context menus on a tree node to help users creating, deleting and editing a tree nodes. JavaScript isn't required at all, even if you wanted to drag and drop a row in a table on top of a tree node to create a new tree node.
    I just finished a book project in which we explained this usecase. As soon as I find the time, I'll follow up with a blog entry on this as it seems to be a common requirement. However, as mentioned, the web developer guide on OTN explains drag and drop in ADF Faces pretty well.
    However, if you choose the "Search" link above, choose JDeveloper and ADF as the product to search for and type drag and drop as the search string, then you get lots of code sample posted in the past to this forum
    Frank

Maybe you are looking for