Parameter Query for True or False values

I have what seems like a painfully simple task and it has me stopped dead.  I reviewed a similar thread, and the answers there don't seem to apply. Working in Crystal 11.5 with an MS SQL database.
I am pulling data from vwCommmittees.  There is a field in this view called IsActive.  I want to create a committee list report that will allow the user to select only the active committees or all committees.
A SQL select statement that says where dbo.IsActive = '1' will return only the active committees.
In Crystal reports, if I place the IsActive field on the report, it returns with "True" or "False."
When I create a parameter for this field, I find that 1) I can't see the parameter in the report expert -- my only choices are Is any value, Is true, Is false or Formula.
I've made several attempts to create a formula and nothing is working. It's not clear to me wheter I should be creating a static or a dynamic parameter.  When I choose boolean as the type, that doesn't seem to help.  I tried a dynamic parameter which gave me true and false values, but don't seem to work.
Any pointers on dealing with this kind of parameter query would be greatly appreciated.
Sincerely,
Ridge (in New Joisey)

Hi..
Create a static parameter and give the default values like
0 and 1
In Record Selection check like..dbo.IsActive = {?parameter}
If the above is not working for you, then create a formula
like..
If dbo.IsActive = '1' then
"Active"
Else "In Active"
Place this formula on your report and create a static parameter with default values Active and In Active.
In record selection filter the above.
Thanks,
Sastry

Similar Messages

  • Creating an SQL Query for Project Custom Fields Values

    Hello:
    I'm currently trying to create an SQL Query to show all of the server's Project Custom Fields Values, along with the modification date.
    So far, I've managed to display correctly all of the data for all of the Projects' text value Custom Fields (those not based on a LookUp Table) with this query:
    SELECT
    MSP_PROJECTS.PROJ_NAME,
    MSP_CUSTOM_FIELDS.MD_PROP_NAME,
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.TEXT_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MOD_DATE
    FROM
    MSP_PROJ_CUSTOM_FIELD_VALUES
    INNER JOIN
    MSP_CUSTOM_FIELDS
    ON MSP_CUSTOM_FIELDS.MD_PROP_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    INNER JOIN
    MSP_PROJECTS
    ON MSP_PROJECTS.PROJ_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID
    WHERE
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE IS NULL
    ORDER BY
    MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    However, when I try a new Query to obtain the actual values for the Projects Custom Fields that do use a LookUp Table, I can't seem to find what table in the model I'm supposed to link to the MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE field (the TEXT_VALUE
    field has NULL value when CODE_VALUE field isn't NULL)
    Any suggestions on how to obtain the actual Projects' custom fields values instead of the Code Value, for Metadata that do use a LookUp Table?
    Also, I'm able to run this query only in the Published Database, since the MSP_CUSTOM_FIELDS table is empy in the Draft Database. Why is that?
    Awaiting your kind reply,
    Sebastián Armas PMO Project Manager

    Hi Sebastián, rather than directly accessing the database it would be better to use the PSI to get this data.  Take a look at the ProjTool sample in the SDK whcih gets this data.
    Best regards,
    Brian.
    Blog |
    Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter |
    Project Developer Center |
    Project Server Help | Project Product Page

  • How to model query for -- existing and unchanged values

    Hello BW Experts,
    I have material and material group as navigational time-dependent attributes. I have a requirement to show the existing and unchanged values for the material and material group in the time frame 2003 to 2006 . how to create a query for this.
    Suggestions appreciated.
    Thanks,
    BWer

    HI ,
    I think u need to add two more date fields as the attributes  to the master data and then use them and give restriction in the query with the Keydate to see data which has unchanged from One range to another . As key Date applies to only the system defined to and from dates present in the Master Data .
    In query give Keydate as 31.dec.2006 and then give restriction for user defined dates sa follows :
    User From : 01.01.1000 - 31.12.2002.
    User To : 01.01.2007 -- 31.12.9999 .
    Regards,
    Vijay.
    Message was edited by: vijay Kumar
    Message was edited by: vijay Kumar
    Message was edited by: vijay Kumar

  • Querying for existing set of values

    HI,
    I have the following scenario. I have one table which has the measure_id,measure_value and date.
    For every date, I will be populating the measure_value for every measure_id. 
    If the source, doesnt have the value for a day,for a measure_id, I should update it with 0.
    If the source gets fresh data for a date, then the related value should get updated(sum of values for that day) or inserted.(incremental)
    DATE MeasureID MeasureValue
    02/01  1 10
    02/01  2 20
    02/01  3 30
    02/02  1 10
    02/02  2 0(no data in source)
    02/02  3 30
    Can you please give me the best query for this scenario. Any help is appreciated.
    Porus

    you can try using Merge command.
    I have used some sample data in Source and Destination tables.Also i used a measures table with three measure.
    Declare @Source Table(Dt Date, MeasureID int, MeasureValue int);
    Declare @Destination Table(Dt Date, MeasureID int, MeasureValue int);
    Declare @Measure Table (MeasureID int);
    Insert into @Measure select 1 union all select 2 union all select 3
    Insert into @Source
    select '20140201',1,10
    union all
    select '20140201',2,10
    union all
    select '20140201',3,10
    union all
    select '20140202',1,10
    union all
    select '20140202',3,30
    Insert into @Destination
    select '20140201',1,0
    select * from @Source
    select * from @Destination
    ;With AllMeasures
    as
    select * from
    (SELECT distinct Dt from @Source) A
    cross join @Measure
    MERGE @Destination AS target
    USING
    select A.Dt,A.MeasureID,isnull(S.MeasureValue,0) from AllMeasures A
    left join @Source S on A.Dt=S.Dt and A.MeasureID=S.MeasureID
    ) AS source (Dt, MeasureID,MeasureValue)
    ON (target.Dt = source.Dt and target.MeasureID = source.MeasureID)
    WHEN MATCHED THEN
    UPDATE SET MeasureValue = source.MeasureValue
    WHEN NOT MATCHED THEN
    INSERT (Dt, MeasureID,MeasureValue)
    VALUES (source.Dt,source.MeasureID,source.MeasureValue);
    select * from @Destination
    Vinay Valeti| If you think my suggestion is useful, please rate it as helpful. If it has helped you to resolve the problem, please Mark it as Answer

  • Pl.tell a query for non databsae items values as zero

    hai
    i have table like this
    emp_name     date           hours
    xxx          19-12-2007     3
    yyy          20-12-2007     4
    zzz          23-12-2007     3
    i want a query to get the data for 5 days.(ie.19 to 23)
    In that the left two days should be placed as zero in the output.
    please help me.
    thanks

    Something like:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'xxx' as emp_name, to_date('19-12-2007','dd-mm-yyyy') as dt, 3 as hours from dual union all
      2             select 'yyy', to_date('20-12-2007','dd-mm-yyyy'), 4 from dual union all
      3             select 'zzz', to_date('23-12-2007','dd-mm-yyyy'), 3 from dual)
      4  -- END OF TEST DATA
      5  select t.emp_name, d.dt, nvl(t.hours,0) as hours
      6  from t,
      7       (select to_date('19-12-2007','dd-mm-yyyy')+rownum-1 as dt
      8        from dual connect by rownum <= to_date('23-12-2007','dd-mm-yyyy') - to_date('19-12-2007','dd-mm-yyyy') + 1) d
      9  where d.dt = t.dt(+)
    10* order by d.dt
    SQL> /
    EMP DT                       HOURS
    xxx 19/12/2007 00:00:00          3
    yyy 20/12/2007 00:00:00          4
        21/12/2007 00:00:00          0
        22/12/2007 00:00:00          0
    zzz 23/12/2007 00:00:00          3
    SQL>

  • Display Yes / No instead of True or false for radio buttons in SSRS 2008R2

    Hi All,
    I have one report with two radio buttons as parameters. In the report display I see True / false beside the radio buttons. Is there a way where I can display it as
    YES instead of True and NO for False beside radio buttons?
    Thanks,
    RH
    sql

    Hi sql9,
    According to your description, you want to show "Yes" and "No" in Boolean parameter instead of "True" and "False". Right?
    In Reporting Services, it doesn't has any property for the text of radio button in a Boolean parameter. So we can't modify the "True" and "False" into "Yes" and "No". For your requirement, a workaround is changing the type into drop down
    list and put the "Yes" and "No" into values.
    Reference:
    SSRS boolean
    parameter Yes and NO instead of True and False in prompt area
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • URGENT: Covert a true - false value into a bit value

    Hello :)
    I have a problem, How can I convert a true false value into a bit value, because, I declare a variable value with true or false, that means that I have a 1 or a 0, (thinking about digital information)
    for example, one this is my part of my code:
    private boolean _x3 = true;
         private boolean _x5 = false;
         private boolean _x6 = true;
         private boolean _x7 = false;
         private boolean _x9 = true;
         private boolean _x10 = false;
         private boolean _x11 = true;
    public boolean CheckP1(boolean pP1)
              pP1 = x3^x5 ^_x7 ^_x9 ^_x11;
              return pP1;
    This method will send a true or false value, but now I have two doubts, one of them, is, how can get this value, and the second value, how can I conver this value into a bit value
    Thank you so much :)
    Nataly

    Look at a BitSet to hold your boolean values.
    Check the API for details.
    JJ

  • Querying for custom picklist values

    Hello all,
    I have created a new field on my opportunity type called "Industry" and gave it picklist values. However, the system is not allowing me to query for the values using the Picklist web service. Am I missing a step here, or does the system not allow querying for custom picklist field values? I can get to certain lists of picklist values for Opportunity (Type, Probability, some others) but not the picklist I created. Am I doing something wrong?
    Thanks!
    -Kevin Green

    Hi,
    Find integration tag for custom field in Field Setup. When you call getPicklist method, pass three values like Object type(ex: Lead), integratin tag for the custom field, "" ( this is language, this field is no need for English languague)
    Hope this willl work
    Raja Kumar Malla
    [email protected]

  • How to query for messages on JMS Queue?

    Hi All,
    What is the best way to query on a JMS Queue? I would like to query for messages based on values entered on a screen. Can this be achieved using the JMS Adapter or any other adapter?
    JDev : 11.1.1.4
    Thanks and Regards.

    Hi,
    I am not 100% clear on your requirement and what selection criteria you need. I would be surprised if you need the DB adapter. If you just want to query how much message are in the queue or other related queries for example related to header information then DB adapter can be used. This only works when JMS queue is stored in the database. Personally I have never come across this requirement.
    I suggest to look in more detail of the JMS adapter. The JMS adapter can be used to select (subscribe) to certain messages. Please read the below for more information:
    http://docs.oracle.com/cd/E17904_01/integration.1111/e10231/adptr_jms.htm#CJACBCHJ
    The message is automatically removed from the queue (implicit delete) the moment it is picked-up. I would not recommend deleting a message directly from the queue using DB adapter. What is the point of publishing the message in the first place?
    Thanks
    Sander

  • How to handle comma separated values in OLE DB Source query for a parameter variable from XML file in SSIS

    Hi,
    I am using OLE DB Source to fetch the records with Data Access Mode as SQL COMMAND which is using the below query with a parameter,
    SELECT CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation, EMP.HireDate, EMP.BirthDate,CON.EmailAddress, CON.Phone
    from HumanResources.Employee EMP INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in (?) 
    In this query for the parameter I am passing the value from a variable and which is configured (XML Configuration). While passing value
    Buyer it works correctly. But while passing values Accountant,Buyer
    it is not working as expected.
    How to handle while passing such multiple values Or is it possible to pass such values or not in SSIS 2012 ?
    Kindly help me to find a solution.
    NOTE: I placed the whole query in a variable as a expression as below it is working fine.
    "select CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation,EMP.HireDate,EMP.BirthDate,CON.EmailAddress,CON.Phone from HumanResources.Employee EMP
    INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in ('" + REPLACE(@[User::temp],",","','")  +"')"
    Any other solution is there ? without placing the query in a variable. May be a variable can have some limitations for no. of characters stored not sure just a thought.
    Sridhar

    Putting the whole thing into a variable is certainly a valid solution.  The other involves putting the comma delimited list into a table valued variable.
    http://gallery.technet.microsoft.com/scriptcenter/T-SQL-Script-to-Split-a-308206f3
    For an odd ball approach: 
    http://www.sqlmovers.com/shredding_multiline_column_using_xml/ .
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • LRM-00112: multiple values not allowed for parameter 'query'

    Hello,
    I am getting below error while trying to execute below query...please help:
    exp username/password file=query.dmp log=query.log tables=schema_name.tablename query=\"where PRODUCT_KEY IN\'4541450,4541455,4541475,4541504,
    4541505,4674142,4674201,4674202,4673982,4674000,4674114,4674118,4654432,4715806,4715807,4716122,4716133,4870247,5321008'/"
    LRM-00112: multiple values not allowed for parameter 'query'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully

    yeah i have tried using paranthesis as well...it has given below error then:
    exp schema/password file=query.dmp log=query.log tables=schema_name.table_name query="where PRODUCT_KEY IN (4541450,4541455,4541475,4541504,4
    541505,4674142,4674201,4674202,4673982,4674000,4674114,4674118,4654432,4715806,4715807,4716122,4716133,4870247,5321008)"
    ./export.ksh: syntax error at line 1 : `(' unexpected

  • Access Parameter Query by form, returns a form for each returned value

    I have a form set up with a parameter query. It returns data from multiple tables. My problem is it returns the data for say 7 records, but then it repeats the entire form 7 times, the forms are identical with all the data included. I want it to return
    the data on one form. It must be a setting, or statement that is lacking but I can't seem to find it.

    Hans,
    Thank You for the response. I first changed the setting in the SubForm Query, same result. Then I changed it in the Report, still no difference. After reading some information in other forums it may be because I am pulling the data from the Tables using
    the InvoiceNum field from one table, on both the Report and the SubForm, and I have the Report and Subform linked by this field. The InvoiceNum field is the Foreign key created to pull the desired data, if I don't use it I get all the data in the tables, not
    just the data I need.

  • How to modify the parameter csi/enable      from TRUE  to false

    i install ce7.1 ,and i can visit the http://myip:50000/sap/admin/public/index.html ,in the page ,i just want to
    change the Content Filter settings
    csi/enable     TRUE 
    modify TRUE  to false ,how to change the parameters
    thanks

    Hi ,
    Set the profile parameter csi/enable to the value 0 in transaction RZ11. You can also use prefixes to filter individual paths (for example, if users enter data there) or exclude individual paths from filtering (for example, is users cannot enter any data there). This value is immediately active and you should therefore use this method.
    Also please check below link may help you out for your query in better way::
    http://help.sap.com/saphelp_nw04s/helpdata/en/37/676642991c1053e10000000a155106/frameset.htm
    Thanks..
    Mohit

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Bug Report: enum metadata containing 'true' and 'false' string values not displaying unless "goosed"

    I have metadata whose value is 'true' but the corresponding enum title is not being displayed. If I set it explicitly to 'true' it will be displayed even though the value is the same as it was.
    Likewise for 'false'.
    I do not have this problem with enums that have any other string values i.e. 'yes' and 'no' function properly, but 'true' and 'false' do not.
    Rob

    Due to better understanding on my part, and the fixes in Beta 2.2, the
    issues raised in this thread are put to rest.
    Abe White wrote:
    >
    We'll investigate further. Stay tuned...
    "David Ezzio" <[email protected]> wrote in message
    news:[email protected]..
    Abe,
    Actually, it doesn't make sense. The first iteration shows
    jdoPostLoad is called just prior to using the fields of Widget and Box.
    After the commit, the instances are not cleared. So far, so good.
    In the second iteration, we see that jdoPreClear is called, but
    jdoPostLoad is not called. Yet the values are there for use during the
    call to Widget.toString() and Box.toString() within the iteration. How
    did that happen?
    On the third iteration, now the value of name is null, but last we
    looked it was available in the second iteration. Other than that, I
    agree that the third iteration looks ok, since it is being cleared and
    loaded prior to use. But in the jdoPreClear, the values should be there
    since the values were used in the previous iteration and are not cleared
    at transaction commit due to retainValues == true.
    David
    Abe White wrote:
    David --
    I believe the behavior you are seeing to be correct. Section 5.6.1 of
    the
    JDO spec outlines the behavior of persistent-nontransactional instancesused
    with data store transactions. As you can see, persistentnon-transactional
    instances are cleared when they enter a transaction; thus the calls to
    jdoPreClear. When the default fetch group is loaded again (like whenyou
    access the name of the widget) a call to jdoPostLoad is made.
    You are seeing the name of one instance as 'null' in the third iterationof
    your loop because the instance has been cleared in the second iteration,and
    the jdoPreClear method is not modified by the enhancer (see section10.3).
    Make sense?

Maybe you are looking for

  • I am planning to buy an iPhone 5. Which storage size should I buy?

    I have about 400 songs, not many apps (maybe a page or two of games most not exceeding 300mb. Think: Angry Birds and the like), planning to take a decent amount of photos (50? Ill probably sync them onto iTunes and delete them off the phone), not man

  • What happens when I try to install iTunes 9 upgrade

    I tried to install the update for iTunes and it effed everything up; so, I've tried to uninstall iTunes and download it againand this is the error I get (a windows installer window pops up): "The feature you are trying to use is on a network resource

  • Report 10g parameter form Error

    Hi, While calling a report I am getting the following error. REP-546: Warning: The value of restricted LOV parameter TOPROFIT is not among the selectable values. When I call the same report through another PC it displays parameter form. I am using Re

  • Mabook air lemon - how do I resolve it?

    I am trying to find out what to do about my recently purchased macbook air. I bought it on march 7, 2010. On march 18, it would no longer turn on. I tried leaving it off for a day. Plugging it into a different location, etc. I spent time online to fi

  • How to use iTunes COM SDK to set Media Kind for tracks

    There is no obvious function to set Media Kind of a track from iTunes COM SDK. Just curious if anyone knows how to do it programmatically?