Where clause as expression value for parameter?

Is it possible to put a where clause in a expression so I could use as a parameter? I have 3 documents I was going to make as available values, but not sure how to put all of this in the expression. 
Where clause:
where document = 'doc1'
and sentdate = (Select max(sentdate) from Communication where document = 'doc1')

Hi Lezgettdrunk,
According to your description, you want to specify available values for a report parameter.
In Reporting Services, if we want to specify the available values for a report parameter in Report Parameter Properties, we should get those values from specified values or a dataset. When we select the “Specify values” option, we can give each label corresponding
value. When we select the “Get values from a query” option, we should select a dataset which contains documents values. In your scenario, you could create a dataset with where clause to get document values, then specify parameter available values use this
dataset.
Reference:
Lesson 2: Adding Parameters to Create a List of Available Values (SSRS)
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support
Thank you! This worked for me.

Similar Messages

  • ADF BC: calling SDO : Value for parameter 'findCriteria' cannot be null

    We have created a service interface from an application module. That service interface contains views that have view criteria. We have included those criteria in our services.
    From my consuming application, i added a data control from webservices by providing the WSDL of the service interface. So far so good...
    When i drop the result of a function that is bound to the view criteria to my page, i have to enter four parameters:
    fincCriteria of the Object type
    areaCode of the String type, this is a parameter we added in the view criteria using a bind variable.
    languageCode of the String type, also a custom parameter of the view criteria
    findControl of the Object type
    In my bindings i can provide the value of areaCode and languaeCode but i don't have a clue what to do with findCriteria and findControl. I left them empty and then i get followign message from the server:
    <SOAPProvider><setParameters> Value for parameter 'findCriteria' cannot be null
    <SOAPProvider><setParameters> Value for parameter 'findControl' cannot be null
    <WebServiceConnectionMessages><debugExecuteFailure> Failed to execute a SAAJ interaction.

    Found some documentation on how to use the service interface from business components and as it appears you can create entity objects based upon the wsdl from the service interface.
    Does it mean that i can only use the service interface that way and that when i have for example a dot net application, it can not use that service interface?

  • How to set the where clause of a value set on the basis of a form field

    I am using a DFF(Descriptive FlexField), which needs to display the value of a certain column(say columnA) on the basis of the value of another column(say columnB).
    So i have created a value set which points to the table which has both these columns, and the DFF uses this value set. However, the problem is that I have not put any where clause in the value set, because of which i cannot handle the exact fetch returns more than one rows error.
    The query has to be as follows:
    select ColumnA from tbl where ColumnB = [ a form value ];
    What I want to know is how can i get the value of a certain field of a certain block of the form in the above query.
    Edited by: 981615 on Jan 14, 2013 12:48 AM
    Edited by: 981615 on Jan 14, 2013 12:48 AM

    Just have a look over these two statements if it solves your problem
    one time where clause
    Set_Block_Property('BLOCK_NAME',ONETIME_WHERE,your form item);
    dynamic where clause
    set_block_property('BLOCK_NAME'default_where, your form itme)
    you can where clause at run time from any procedure or some triggers

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • Invalid value for parameter error when value is in list of allowed parameters

    I have some documents with a lot of paragraph styles that have been organized into groups. I have a simple script that is meant to ungroup these styles and delete the now-empty groups.
    Code:
    #target indesign
    var myDoc = app.activeDocument;
    if (myDoc.paragraphStyleGroups.length > 0)
        myDoc.paragraphStyleGroups.everyItem().paragraphStyles.everyItem().move(LocationOptions.AT_END, myDoc);
        myDoc.paragraphStyleGroups.everyItem().remove();
    alert("Done")
    The error I receive is (emphasis mine):
    JavaScript Error!
    Error Number: 30477
    Error String: Invalid value for parameter 'reference' of method 'move'. Expected ParagraphStyle, ParagraphStyleGroup, CharacterStyle, CharacterStyleGroup, CellStyle, CellStyleGroup, TableStyle, TableStyleGroup, Document or Application, but received Document.
    As you can see, my pickle is that my value is of an allowed type. This only happens in some documents, and there's nothing that obviously distinguishes those documents from the ones in which it works.
    One thing I've noticed is that the error sometimes takes a while to appear (a minute or so), but none of the styles have been moved once I click OK. So, I don't know if it's specific to one style. I doubt it, only because other documents with the same style set work.
    Can anyone shed any light on what this error could mean in this context? I definitely have an activeDocument, so what could cause a Document to not be a Document?
    Any help much appreciated!

    Hi,
    It occurs when 2 or more styles have the same name, probably.
    Jarek

  • Startup nomont problem- ORA-07446: sdnfy: bad value '' for paramete

    what i am doing wrong?
    SQL> startup nomount pfile=/oracle/product/9.2.0.6/dbs/initncersp.ora;
    ORA-00444: background process "PMON" failed while starting
    ORA-07446: sdnfy: bad value '' for parameter .
    -rw-r--r-- 1 oracle dba 466 Jan 21 11:11 initncersp.ora
    oracle:tulppwradb02:ncersp>pwd
    /oracle/product/9.2.0.6/dbs
    oracle:tulppwradb02:ncersp>vi initncersp.ora
    "initncersp.ora" 127 lines, 3788 characters
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Archive
    log_archive_dest='/archive_nmarket/ncersp'
    log_archive_format='arch.ncersp.%s_%t.log'
    log_archive_start=true
    # Cache and I/O
    db_block_size=8192
    db_cache_size=25165824
    db_file_multiblock_read_count=16
    db_files = 400
    # Cursors and Library Cache
    open_cursors=500
    # Database Identification
    db_domain=""
    db_name=ncersp
    # Global Naming -- enforce that a dblink has same name as the db it connects to
    global_names = TRUE
    # Diagnostics and Statistics
    background_dump_dest=/oracle/admin/ncersp/bdump
    core_dump_dest=/oracle/admin/ncersp/cdump
    user_dump_dest=/oracle/admin/ncersp/udump
    timed_statistics=TRUE
    # File Configuration
    control_files=("/db01/oradata/ncersp/ncerspcontrol01.ctl","/db01/oradata/ncersp/ncerspcontrol02.ctl","/db01/oradata/ncer
    sp/ncerspcontrol03.ctl")
    # Instance Identification
    instance_name=ncersp
    # Job Queues
    job_queue_processes=0 #zero during maintenance
    # Optimizer
    hash_join_enabled=TRUE
    #query_rewrite_enabled=TRUE
    #query_rewrite_integrity='trusted'
    #star_transformation_enabled=FALSE
    # Pools
    java_pool_size=51200
    large_pool_size=8388608
    shared_pool_size=55343360
    # Processes and Sessions
    processes=100
    # Redo Log and Recovery
    fast_start_mttr_target=300
    # Security and Auditing
    remote_login_passwordfile='EXCLUSIVE'
    audit_trail=DB
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=25165824
    sort_area_size=1024000
    # Need Varification for below paramaters by Primary DBA
    # Miscellaneous
    aq_tm_processes=1
    compatible=9.2.0.0.0
    log_buffer=32768
    log_checkpoint_interval = 10000
    log_checkpoints_to_alert=TRUE
    max_dump_file_size='10240'
    os_roles=FALSE
    remote_os_roles=FALSE
    os_authent_prefix=''
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_retention=10800
    undo_tablespace=UNDOTBS1
    #utl_file_dir='*'
    # OLD DB PARAMETERS
    #db_block_buffers=550
    #resource_limit=true
    #parallel_max_servers = 5 # SMALL
    #global_names = TRUE
    #job_queue_interval = 60

    Is this correct:
    os_authent_prefix=''
    I believe if you want to set this to null, you need to use double quotes, (as in os_authent_prefix="")
    Ref: http://www.dba-oracle.com/security/local_os_authentication.htm
    ==============================================
    To disable this feature, place the following lines in the initialization file, or change the lines to the following if they already exist and bounce the database.
    os_authent_prefix = ""
    remote_os_authent = FALSE

  • How and where to define Char Value for Industry code for the customer

    Hi All,
    How to define and where to derfine Characteristic value for Industry code (KNA1-BRAN1) field
    for a Customer.
    As while PGI I am getting error message that Characteristic value for Industry code 00008
    does not exist.
    Rishi

    Solved

  • Prompt Group Text value for parameter that has cascading prompts.

    <p>Does anyone know how to get a Prompt Group Text value for parameter that has cascading prompts. C# sample would be great.</p>

    Hi Sateeesh,
             I delete main memory, but does not work. if I display prompt value in list box, it shows as text value, but in 'query prompt selector', it shows as key value. I am using SAP BO 4.0

  • Where-Clause with function(entered static parameter)

    Hello,
    I have no clue on the way to deal with this issue.
    Basically, for performance, I removed a join with a table, and replaced it by a call to a function within the where clause. This function only convert the entered date into an id, in order to compare with the id in the selected table.
    I knew (I think I'm right!!) that if I put a function into a where-clause, then the function is called at each row.
    As the parameter of this function is a Discoverer parameter, and therefore, it's a static value, I wanted to know whether with Discoverer, there would be a way to convert the entered Discoverer parameter value into a constant that I could use within my where-clause.
    To summarise, hete is the face of my query, at the moment:
    SELECT myColumns
    FROM myTables
    WHERE thisID < myConvertedDate(:RefDate);
    I would like to do this :
    The User enters the :RefDate, I convert it and save the result into a constant.
    Then, my query would look like :
    SELECT myColumns
    FROM myTables
    WHERE thisID < myConstantFromDate;
    I hope that my explanation is clear, and that one of you will be able to advise me.
    Thanks,
    Olivier

    Hello Nigel,
    I am not too sure that the function is called at each row. This is just my thought, from my "average" knowledge of SQL. We cannot run tkprof at the office, in order to get a better understanding.
    And also, the fact that goes towards this direction is that, when I add the call to my function in the where-clause, I have the impression that the query runs more slowly than without the call.
    I reckon that it would be great if the optimizer notices that the function is called with the same value, and returns always the same result.
    Thanks for your comments,
    Olivier

  • Multiple Values for Parameter

    I have to create a report that allows the users to choose more than one value on the Parameter. For example, the user may choose 1 and 2, or 1,2,3 or 4,5,6,7 or all.
    I can't create lexical parameters because the list of values is 300 rows plus it is dynamically changing. Is this a possibility in Report 6i.
    I have search on this forum and can't find any helpful solution. Any help will be appreciated. Thanks.

    In case it is such a long list of values, that is also dinamically changing, consider using a table, eventually a global temporary table to store the parameter values in.
    That temporary table (or normal table) should be populated before calling the report or in the afterpform trigger - depends how you generate those values.
    Then, in your where clause you should have
    ... and field1 in (select column1 from temp_table)

  • HELP: WHERE Clause based on value of the column

    I am selecting from a table as follows and want to have a where condition that is dependent of the value of the column, type of the current row.
    CREATE TABLE tbl (INT id, VARCHAR type, VARCHAR comment)
    I have 3 different values for the type column, EMPLOYEE, CUSTOMER, SUPPLIER. What I want is to have a where clause in my select that is based on the value of type.
    I tried the following but was not successful..
    SELECT * from tbl
    CASE
    WHEN type = 'EMPLOYEE' THEN
    WHERE comment LIKE '%employee%'
    WHEN type = 'CUSTOMER' THEN
    WHERE comment LIKE '%customer%'
    WHEN type = 'SUPPLIER' THEN
    WHERE comment LIKE '%supplier%'
    END
    I am not proficient with stored procedures so if you could please tell me how to do it with straight query, I would greatly appreciated it..
    Thank you,

    Or maybe this:
    SELECT *
      FROM tbl
    WHERE "COMMENT" LIKE
              CASE TYPE
                 WHEN 'EMPLOYEE'
                    THEN '%employee%'
                 WHEN 'CUSTOMER'
                    THEN '%customer%'
                 WHEN 'SUPPLIER'
                    THEN '%supplier%'
              END

  • Custom Report Not fetching values for parameter of report (Valueset not pop

    Hi,
    I am running custom report on Oracle application R12. This report parameters used standard value set for fetching purchase order number. The value set is not populating any values for the custom report. but for the standard report where this valuse set populating proper result.
    It's bit Supprising ...the same valuset populating values for standard reports but not for custom report developed by me.
    Value set query using table valueset and getting values from po_headers (View)
    Thanks

    Hi All,
    Luckily I have been able to rectify the problem !
    I tried retrieving the output using LISTCUBE to show the SID of the InfoObject  also for which I was unable to get the data. After the report successfully gave the output for those I/O, I checked again I could see the data in the I/O maintain master data !
    It worked like magic to me !
    But I could guess that since it is a virtual I/O therefore it is not able to retrieve the data from the table directly and is able to do that only after the SID of this I/O is retrieved.
    (If a characteristic does not have any master data, the values from the SID table are displayed for the "Values in Master Data Table" mode.)
    Closing the thread !
    Regards
    Shalabh

  • WHERE clause creating a join for two or more tables

    The CS3 Dreamweaver book says that the WHERE clause can
    create a join for two or more tables. The join was created, but the
    data is repeating. I have searched the web and this forum and have
    not found the answer.
    My Master page filters the recordset by Style No and when a
    customer clicks on a particular style, it sends him to the Detail
    page. All the records are showing from all tables on the detail
    page from the Dynamic List, except they are showing multiple times
    (ex. Size table has 4 sizes and Color table has 2 colors - my Size
    Drop Down list is showing 8 options and my Color Drop Down List is
    showing 8 options) I have a Master Page with a recordset pointing
    to a Detail Page using the same recordset.
    Master page works perfectly.
    Master Recordset SQL:
    SELECT products.itemID, products.category, products.styleno,
    products.name, products.description, products.ourprice,
    products.imageTH, products.image, coloroption.color,
    sizeoption.size
    FROM products, coloroption, sizeoption
    WHERE category = 'chefcoats' AND
    products.styleno=sizeoption.styleno AND
    products.styleno=coloroption.styleno
    GROUP BY products.styleno
    ORDER BY styleno ASC
    The Detail Recordset:
    SELECT products.itemID, products.category, products.styleno,
    products.name, products.description, products.ourprice,
    products.imageTH, products.image, sizeoption.size,
    coloroption.color
    FROM products, sizeoption, coloroption
    WHERE itemID=colname AND products.styleno=sizeoption.styleno
    AND products.styleno=coloroption.styleno
    I tried using the GROUP BY on the detail page, but then it
    only showed one size and color from the dynamic drop down list. I
    tried changing the field name "styleno" in the other tables to be
    unique, however, I was using the table identifer. I tried using the
    JOIN command instead of the WHERE clause and that didn't help
    either.
    On the detail page, the customer is supposed to click on the
    Size box and see sizes XSM - 6XL ONLY ONE TIME. and then be able to
    click on the Color option and see White, Black, Red ONE TIME.
    Is this possible?
    Thank you for giving your time to read this.!
    Evie

    Do you have a link we can look at to see what you are trying
    to do?
    Dave
    "EviePhillips" <[email protected]> wrote in
    message
    news:[email protected]...
    > The CS3 Dreamweaver book says that the WHERE clause can
    create a join for
    two
    > or more tables. The join was created, but the data is
    repeating. I have
    > searched the web and this forum and have not found the
    answer.
    >
    > My Master page filters the recordset by Style No and
    when a customer
    clicks on
    > a particular style, it sends him to the Detail page. All
    the records are
    > showing from all tables on the detail page from the
    Dynamic List, except
    they
    > are showing multiple times (ex. Size table has 4 sizes
    and Color table has
    2
    > colors - my Size Drop Down list is showing 8 options and
    my Color Drop
    Down
    > List is showing 8 options) I have a Master Page with a
    recordset pointing
    to a
    > Detail Page using the same recordset.
    >
    > Master page works perfectly.
    > Master Recordset SQL:
    > SELECT products.itemID, products.category,
    products.styleno,
    products.name,
    > products.description, products.ourprice,
    products.imageTH, products.image,
    > coloroption.color, sizeoption.size
    > FROM products, coloroption, sizeoption
    > WHERE category = 'chefcoats' AND
    products.styleno=sizeoption.styleno AND
    > products.styleno=coloroption.styleno
    > GROUP BY products.styleno
    > ORDER BY styleno ASC
    >
    > The Detail Recordset:
    > SELECT products.itemID, products.category,
    products.styleno,
    products.name,
    > products.description, products.ourprice,
    products.imageTH, products.image,
    > sizeoption.size, coloroption.color
    > FROM products, sizeoption, coloroption
    > WHERE itemID=colname AND
    products.styleno=sizeoption.styleno AND
    > products.styleno=coloroption.styleno
    >
    > I tried using the GROUP BY on the detail page, but then
    it only showed
    one
    > size and color from the dynamic drop down list. I tried
    changing the
    field
    > name "styleno" in the other tables to be unique,
    however, I was using the
    table
    > identifer. I tried using the JOIN command instead of the
    WHERE clause and
    that
    > didn't help either.
    >
    > On the detail page, the customer is supposed to click on
    the Size box and
    see
    > sizes XSM - 6XL ONLY ONE TIME. and then be able to click
    on the Color
    option
    > and see White, Black, Red ONE TIME.
    >
    > Is this possible?
    >
    > Thank you for giving your time to read this.!
    > Evie
    >
    >

  • Where used in web templates  for parameter groups

    Does SAP deliver any where used functionality for parameter groups? I need a report or function that can take as input a parameter group (fully qualified) and deliver back all the web layouts and planning folders that the parameter group (or for that matter global planning sequence) is used.
    I can find the XML of the web templates but that is a bear to parse and have not found the tables that show the details of planning folders (if any).

    Hello Corwin,
    we don't have a where-used functionality but in SAP NetWeaver 2004s you can use programs UPC_CUSTOMIZING (for BPS0), UPB_CUSTOMIZING (for folders) and UPWB_CUSTOMIZING (for web interfaces) to display and search through the configuration. It's one folder or web interface at a time but it's certainly quicker than doing it manually.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Where clause with null values

    I need to have a where clause but either/both of the two attributes compared could be null. How can I make this work, atm it just returns no records even though rows do exist.
    Thanks

    Andrew,
    I think you didn't read correctly what I wrote. I said:
    "Even if a column is unique you still can have several nulls in it"
    So I didnt speak about the case where you have severeal columns in a unique constraint but only ONE.
    SQL> CREATE TABLE tab1 (col1 number);
    Table created.
    SQL> ALTER table tab1 add constraint tab1_col1_uk unique (col1);
    Table altered.
    SQL> INSERT INTO tab1 VALUES (1);
    1 row created.
    SQL> INSERT INTO tab1 VALUES (2);
    1 row created.
    SQL> INSERT INTO tab1 VALUES (2);
    INSERT INTO tab1
    ERROR at line 1:
    ORA-00001: unique constraint (MUELLERMAU.TAB1_COL1_UK) violated
    SQL> INSERT INTO tab1 VALUES (NULL);
    1 row created.
    SQL> INSERT INTO tab1 VALUES (NULL);
    1 row created.
    And even if you have a unique constraint over several columns you can still have more than on records containing only nulls in all fields related to that unique contraint.
    SQL> CREATE TABLE nn (col1 number, col2 varchar2(3));
    Table created.
    SQL> ALTER TABLE nn ADD CONSTRAINT nn_uk UNIQUE (col1, col2);
    Table altered.
    SQL> INSERT INTO nn VALUES (NULL,NULL);
    1 row created.
    SQL> INSERT INTO nn VALUES (NULL,NULL);
    1 row created.
    Regards
    Maurice

Maybe you are looking for

  • Dimensionamento de switch

    Estou precisando cotar um switch cisco com as seguintes características, porém não sei o modelo.  Poderiam me ajudar? Requisitos do Switch Interface: 24 10/100 Base – TX PoE e 02 10/100/1000 Base T; Capacidade: Mínimo 12 Gbps; Tamanho tabela MAC Addr

  • How i can set the selected item of a dropDown component from java code

    Hi Thank you for reading my post How i can set the slected item of a DropDown component from backing beans java code ? it is binded with a database , so one field determine its display and one other field determine its value , I want to set the selec

  • Why is my ipod in not working with my car stereo?

    i have the stereo hooked up and everything but my ipod doesnt work with the stereo, but my ipod nano works fine with it. i dont understand what its wrong.

  • About viewing images that are not the same dimensions as the iPod screen

    I sent some images to my iPod via email. I saved them to my photo library. When I went to look at them, I noticed something odd was happening: my iPod is sort of 'stretching' the images so they fit the entire screen of my iPod, even if that means a)

  • Studying for 3.0 Certification exams -- Any useful books??

    Hi all, I know abt Catherine Rose's book, in fact my buddy gave me his old copy, 2002 circa. I was wondering with all the changes, is there anything that is more upto date? Is there a source on the web that would have similiar stuff??