Not IsNull in Selection Formula not working

Hi,
I'm trying to select all the Not IsNull values for a field but I'm not getting the correct results:
I have 2 parameters. If {?AssignedTo} Param is blank and {?r_AllAssigned} = True I want to return only the values that are NOT Null for {BI_RESOURCE_REF.BI_RESOURCE_NM}
Any ideas?
if Hasvalue({?AssignedTo}) then
{BI_RESOURCE_REF.BI_RESOURCE_NM} = {?AssignedTo}
Else if (Not hasValue({?AssignedTo}) and {?r_AllAssigned} = False) then
IsNull({BI_RESOURCE_REF.BI_RESOURCE_NM}) = True
Else if (Not hasValue({?AssignedTo}) and {?r_AllAssigned} = True) then
Not isNull({BI_RESOURCE_REF.BI_RESOURCE_NM})

Hi, 
Normally I'd recommend breaking this formula down into three parts and see if  you get the results you expect.  If you do then add each part back in and test the result. 
Instead of checking for NULL, check for an empty string.  I changed your formula to do this.  It's possible the data isn't a null. 
if {?AssignedTo} <> "" then
    {BI_RESOURCE_REF.BI_RESOURCE_NM} = {?AssignedTo}
Else if ({?AssignedTo} = "") and ({?r_AllAssigned} = False) then
    {BI_RESOURCE_REF.BI_RESOURCE_NM} <> "" 
Else if ({?AssignedTo} = "") and {?r_AllAssigned} = True) then
{BI_RESOURCE_REF.BI_RESOURCE_NM} <> "";
Good luck,
Brian

Similar Messages

  • Selection formula not selecting by dates

    I'm having an odd problem with my report. I'm trying to filter by the start date of a job. The DB I'm pulling from stores it as a string, YYYMMDD (e.g. today is 20090713). In most of my reports it works just fine, but in this one it seems that it's ignoring the filter altogether.
    My original selection formula was:
    {JobMaster.StartDate} IN {?FromDate} to {?ToDate}
    In an effort to 'fix' it, I changed it to:
    DateSerial(ToNumber(Mid({JobMaster.StartDate},1,4)),ToNumber(Mid({JobMaster.StartDate},5,2)),ToNumber(Mid({JobMaster.StartDate},7,2))) >= DateSerial(ToNumber(Mid({?FromDate},1,4)),ToNumber(Mid({?FromDate},5,2)),ToNumber(Mid({?FromDate},7,2)))
    AND
    DateSerial(ToNumber(Mid({JobMaster.StartDate},1,4)),ToNumber(Mid({JobMaster.StartDate},5,2)),ToNumber(Mid({JobMaster.StartDate},7,2)))
        <= DateSerial(ToNumber(Mid({?ToDate},1,4)),ToNumber(Mid({?ToDate},5,2)),ToNumber(Mid({?ToDate},7,2)))
    I noticed that it even grabs jobs July, even if I pass the FromDate as 20080601 and ToDate as 20090601. The startdate I'm dealing with is 20090702.
    Any ideas? Thanks in advance.

    Hi Lain,
    Do the following :
    Create single Date parameter and in options allow range values true.  Now in your record selection you gie = {?Date}
    Thanks,
    Sastry

  • Selection formula breaks report

    Hi all,
    I have a reporrt which basically outputs this...
    Fred Smith 0
    Tom Jones 3
    John Doe 2
    Mary Thing 0
    Peter Cupcake 1
    Now I only want to see entries that are flagged in the database with 0 so I'm trying to remove the others using this in the selection formula:
    not ({RMP.NO} in ["1", "2", u201C3u201D])
    But in Crystal this returns a blank report.
    Any ideas on what is going on here?
    Bill

    have you tried
    ({RMP.NO} ="0")
    Or Not ({RMP.NO}) in ["1", "2", "3"])
    maybe you made a mistake in ""? in the array
    Regards
    Jehanzeb

  • Select formula works with one set of data but not another??

    Post Author: rkckjk
    CA Forum: Formula
    I have the folloing Select formula:{Sheet1_.Assign Group History} = '{"COMPUTER OPERATIONS"}' and{Sheet1_.Resolved By Group} = "COMPUTER OPERATIONS"That I'm using to select records from an Excel spreadsheet. It works fine with the Jan. 2008 spreadsheet file: Test MTTR Jan 2008.xlsbut not with the Feb. 2008 spreadsheet: Test MTTR Feb 2008.xlsWhen I use the Feb. 2008 file I get this error:"Query Engine Error:'Error code: 0x800a06ff Source: DAO.Recordset Description: this expression is typed incorrectly, or it is too complex to be evaluated."Basically both Excel files are in the same format but have different data in them. I don't understand why Jan's works, but not Feb's???
    Since, I can't upload the two files without contacting the system administrator, maybe someone can help me debug the error code or how to debug this error using another method or idea??

    Post Author: sharonmtowler
    CA Forum: Formula
    did you try each sheet while removing one of the select statements?  i would start there and try feb with no select statement, add one in, then the next
    see what is causing your problem. it sounds like some data in the xls file is in an incorrect format.

  • Selection formula sporadically does not push to database.

    On CR 2008, SP3 - Oracle 10 database using native connection, report called from VB.NET:
    We have a process that iteratively loads an .RPT, prints to file and inserts file into database.   Report is fairly complex, 15 subs, lots of groups, etc.   When we run this report on a somewhat large database (source tables range from 1M to 6M rows), it will process just fine for several iterations (10 to 30), but then it will run and NOT push selection criteria to the database via the SQL Query.  We're watching the queries in the database as it runs, and see that every so often it fails to send the where clauses.  With 5M rows, this causes a significant delay as it pulls all the rows in and applies selection criteria locally.
    We're very experience CR developers (partners).  I'm pretty sure we haven't missed anything.  The main report and all subs have been reviewed to make sure that "Use Indexes Or Server For Speed" is selected, and that no selection formulas include native CR functions that would prevent the selection formula from being pushed to the server.  When reviewed in design mode, SQL Queries for main and all subs show with WHERE clauses.
    Any thoughts for anything else we can review?
    Does anyone know exactly what criteria CR uses to determine whether to push the selection formula to the server (other than what I mention above)?
    Thanks, Bill
    Edited by: wlpearce on Jan 12, 2011 4:42 PM

    Hi Bill,
    Need more info, what version of Oracle client and Server are they using? Windows or WEB app?
    Are you closing and disposing of the report document each time? This should disconnect the DB driver and free up the connection. It could be a Client issue but need more info.
    I've never seen or heard this happening before so not sure what or why. If CR has the WHERE clause in the original report then there is no reason why it would drop it... Unless the registry key can't be read due to system resources, not sure how your app works so not sure what may affect it.
    Be sure to get Millie to note the patch level and DB Server/Client version being used and as much info as you have. Also the code you use to set database connection and attach a report that it fails on so I can see the option used in the RPT file also.
    Thanks again
    Don

  • Running Totals, formula statement works one way, not the other

    Here is the problem in a nutshell...
    I am designing a report where I am using 2 running totals based on whether a SQL Stored Proc dataset field (text) is Null or Not Null...  So I design the 2 running totals and put this code in each "Evaluate"
    IsNull({usp_rpt_RemediationData;1.Action})
    - and -
    NOT IsNull({usp_rpt_RemediationData;1.Action})
    The FIRST one works.  The SECOND one does not - that is, it does not add a count for it.
    In other words, I am just cycling through a table and counting 1 field, checking whether its Null, or not.
    Why doesnt this rather simple and straight forward thing work!!!!????
    Any help would be most appreciated.

    The statement...
    NOT IsNull({usp_rpt_RemediationData;1.Action})
    DID NOT work when used as part of a running total - even adding the check for blank instead of just null (though the field is truly null).
    However, using the EXACT same statement in a formula written for running totals - it does work...?  Go figure...  I cant explain it.
    But thanks for the help!

  • Select query is working on oracle 10.1.0 but its not working in 10.2.0

    select query is working and retrieving some data from oracle database server 10.1.0.2.0, but same query is not working in 10.2.0.1.0 database server, its throws(ORA-00942: table or view does not exist)
    But schema related tables and relevant details are same in 10.2.0.1.0 database server, so don't think that table is missing on that schema.
    Note: Query length is upto 480 line
    I have validate all the things, everything is fine, i don't why that query is not executing in different version.
    I am in helpless in this situation?, anybody faced this issue?
    Thanks in advance

    Validated means all the tables and and columns are verified, i just running in sqlprompt,
    Say for example:
    sql> select * from table1;
    One thing i observed while executing the query its showed error in one location of select sql. i mean particular word in select sql.
    After that i combined some three lines of huge select sql into single then i am getting error in different location i mean different word...
    My question is how same query executing in Oracle 10g Release 1, same dump (its exported from Release1) imported into oracle 10g release 2 is not executing. its shows Table or view doesn't exit.

  • Text select tool not working properly

    When I use the text select tool, it selects columns, not words in a row, which is what I want. It used to work correctly. I am using Acrobat Pro, version 9.0.0.
    I tried adding the ALT key, with no good result.

    Is it with this specific document o any pdf you work on?
    If it was earlier working fine for you, try repairing Acrobat  by going to 'Help' menu > Repair Acrobat.
    Also make sure you have updated it to the latest patch.
    Regards,
    Ravi.

  • Data Services- The job server you selected is not working

    Long Text:
    After logging in to the Data Services designer,when try to run a job it shows error -The job server you selected is not working
    Latest Software version -BODS 4.0 SP2
    Reproduce Steps:
    1. Double click on the Project from repository, it will display the project in Project area.
    2. After that it will display all the jobs under the project.
    3.Right click on the job and try to execute, then it will display the "Execution Properties" windows.
    Here the we can the default Job Server has been selected.
    4. Try to click ok to execute the job and then we get the error-"The job server you selected is not working"

    Hi
    Please contact your Data services administrator to check on the server why the job server is not working.
    There might be several issues like connectivity with the repository, access details , mapping in the management console etc.
    And let us know the exact issue.
    Regards
    Puneet

  • Cascading Select Lists - Not Working for me

    I am trying to implement Denes Kubicek's Ajax Cascading Select List solution.
    http://apex.oracle.com/pls/otn/f?p=31517:119
    But it is not working for me.
    I'm a newbie to APEX and checked the forum for advice on cascading select lists. I saw the thread for
    "Cascading Select Lists - Not Working" posted by sue and the replies by Varad Acharya, but I'm still
    having issues of not seeing the alerts, not able to run the pl/sql process in SQL Workshop, and not
    getting the expected results.
    I have a list of countries (US - USA, CA - CANADA, etc.) and a list of states for each country. When a
    user selects a country I would like to show the list of states within that country.
    This is what I've done so far:
    Defined an application process:
    Process Point: On Demand: Run ... by a page process.
    Name: CASCADING_SELECT_LIST1
    Process Text:
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<select>');
    HTP.prn ('<option value="' || 99 || '">' || '- All States -'
    || '</option>'
    FOR c IN (SELECT state_code || ' - ' || state_desc d, state_code r
    FROM tbk_state
    WHERE country_code = :cascading_selectlist_item_1)
    LOOP
    HTP.prn ('<option value="' || c.r || '">' || c.d || '</option>');
    END LOOP;
    HTP.prn ('</select>');
    END;
    defined and application item:
    Name: CASCADING_SELECTLIST_ITEM_1
    Build Option: - No Build Option -
    Created a 'Form on a table with report' as follows:
    Page 5: Report on TBK_HARDWARE_LOCATION
    Page 6: Form on TBK_HARDWARE_LOCATION
    in HTML Header of the page attributes for 'Form on TBK_HARDWARE_LOCATION' I have:
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>
    <script>
    function get_select_list_xml1(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    alert ('Dept no=' + pThis.value);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
    get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
    gReturn = get.get('XML');
    // gReturn = get.get();
    alert('Enames=' + gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    </script>
    On Page 6: 'Form on TBK_HARDWARE_LOCATION' I have the following items (plus some others):
    Name: P6_COUNTRY_CODE
    Display as: Select List
    HTML Form Element Attributes: onchange="get_select_list_xml1(this,'P6_STATE_CODE');"
    Source Used: Only when current value in session state is null
    Source Type: Database Column
    maintain session state: Per session
    Source value or expression: COUNTRY_CODE
    Named LOV: LIST OF COUNTRIES
    Name: P6_STATE_CODE
    Display as: Select List
    Source Used: Only when current value in session state is null
    Source Type: Database Column
    maintain session state: Per session
    Source value or expression: STATE_CODE
    Named LOV: - Select named LOV -
    List of Values definition:
         select state_code || ' - ' || state_desc d, state_code r
         from tbk_state
         where country_code = :P6_COUNTRY_CODE
         order by 1
    LIST OF COUNTRIES is defined as:
    select country_code || ' - ' || country_desc d, country_code r
    from tbk_country
    order by 1
    Now to the problem:
    I run page 5 (the report) to see the list of locations and then I try to edit a record (page 6). When I
    try to select a different country I get the following error (on IE):
    "Problems with this web page might prevent it from being displayed properly or functioning properly.
    In the future, you can display this message by double-clicking the warning icon displayed in the status
    bar.
    Line: 17
    Char: 5
    Error: Object expected
    Code: 0
    URL: http//cmrac4.cm.timeinc.com:7777/pls/htmldb/f?
    p=114:6:1413254636072443110::::P6_HARDWARE_LOCATION_ID:2
    I don't see any of the alert messages.
    I also tried to run the application process code in the SQL - Command Processor (I replaced
    :cascading_selectlist_item_1 with 'CA' or 'US') and got the following:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
    button, or try again later.
    Only one top level element is allowed in an XML document. Error processing resource
    'http://cmrac4.cm.timeinc.com:7777/pls/...
    <select><option value="99">- All States -</option><option value="X1">X1 - X1</option><optio...
    Can someone help me please?

    Varad,
    First, thank you for taking the time to try to help me with this problem.
    When I view the page's source code (here are the first few lines):
    <html lang="en-us">
    <head>
    <script src="/i/javascript/core.js" type="text/javascript"></script>
    <link rel="stylesheet" href="/i/css/core.css" type="text/css" />
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='Would you like to perform this delete action?';
    //-->
    </script>
    <script>
    function get_select_list_xml1(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    //alert ('Dept no=' + pThis.value);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
    get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
    gReturn = get.get('XML');
    // gReturn = get.get();
    //alert('Enames=' + gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue);
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    </script>
    It looks like line 17 is:
    var l_Select = html_GetElement(pSelect);
    I'm still not sure why I'm getting this error and why it's not working?
    Thanks,
    Eti

  • I am not able to select a new network printer just installed at work to print to from Firefox. I have tried to reset the printer settings, but this did not work. Do I need to map Firefox to this new printer?

    We recently had a new printer installed at work that has been set as the Default printer on my computer. When I go to print something from Firefox, I am not able to select the new printer from the printer window in the print box. The new printer does not show up

    From another computer, go to http://www.mozilla.com/firefox/, click "Free download" button, click "Save File" button, select your flash drive in "Save as" window. "Firefox Setup 3.6.13.exe" file will be saved in your flash drive.
    You just need to insert it in your new computer and double-click on "Firefox Setup 3.6.13.exe" from Windows Explorer and follow instructions.

  • Core Audio: Selected Driver not found. (-10202) error message and speakers don't work

    Apple just replaced my hard drive and now I'm noticing that I have no sound coming out of my internal speakers or earphone jack.  When I try to use garage band I get the following error message:
    Core Audio:
    Selected Driver not found (-10202)
    I read their article on the subject; I go to system preferences, sound then output devices where I'm supposed to select my device except there are none listed.  I tried to fix the problem by reinstalling the operating system using the CD's that came with the MacBook Air but that didn't work either.
    Here's the other problem, when I download the software update the update never loads.  The status bar just sits there even when I let my pc alone over night. 
    Any suggestions??
    FYI, i can't easily walk into a mac store for assistance.. gotta catch a plane to a different island.

    Update your Apogee and Symphony drivers to Mountain Lion versions...
    But the bigger question is.. How did you install Mountain Lion on a G5?

  • IDVD 08 - problem with scene selection tabs not working after "burn"

    I have a movie that is about an hour long (made in iMovie08 using mostly still photos). I wanted to have "chapters" -- but with that option gone, I used the Scene Selection option in iDVD08. This created menus with 15 scene selection buttons (I chose every 4 minutes). The menus were automatically created by iDVD and I did nothing to change them, except to type in scene info (two-three words).
    The buttons all worked fine on the computer, and I burned a DVD. The DVD worked great in my VCR player. I'd select Play Movie and it would go. I'd select Scene Selection and I'd get the menus for that. But when I'd highlight one of the scene selections and "enter" (select) -- it wouldn't go to that scene. I could go back and forth between menus, and could move around and highlight the scene buttons, but selecting would not start the scene to play. The movie played fine from start to finish, and the other remote features worked (stop, pause, menu, etc.).
    I went back to iDVD and chose a different theme (thinking maybe I'd inadvertently done something to mess things up. The only thing I did differently in addition to the new theme, was to add two small movie clips - and I rearranged the buttons on the menu (dragging) to get them positioned where I wanted them. So my first menu says "Play Movie". The second menu has: Play Movie, Scene Selections, Little Movie 1, Little Movie 2. Everything worked greated in iDVD. Then I created a disk image to view using DVD Player (rather than waste another DVD). Same problem -- only worse. This time I couldn't even highlight Scene Selection to get to the scenes' menus.
    Any thoughts on why I'm not able to get the "Scene Selection" buttons to work after a burn? Am I missing a step somewhere in iDVD?
    Thanks.

    I am not sure, but does your post concerning the problem, that all Remote Control function will work properly within iDVD'08 but after burning the DVD absolutely not with the RC of your set top DVD player connected to your TV?
    If this is it:
    Meanwhile I could figure out - after many nights of not been very productive and only working out on all the iDVD'08 problems - that **ALL** of the *7.0 Themes* have a major problem in generally.
    The following points are concerning iDVD'08 using any of the 7.0 Themes:
    - Complete deep freeze of your Mac under Leopard when rendering/coding/burning a movie which has chapters and you use movies instead of still images in drop zones. (LeopardiDVD087.0Themes)
    - Functions on remote control of your set top DVD player are not working correctly when making a movie with chapters. This is generally on Tiger and Leopard the same problem using iDVD08 with any of the 7.0 Themes.
    Quick and dirty workaround:
    You may avoid this if you simply use a 6.0 Theme or lower version of the Themes.
    But this is of course not the clue...
    It is VERY DISAPPOINTING, having software at such a low quality level deliverd by Apple. And somehow it looks like they DO NOTHING against it. No statement, no excuse, they really remain silent.
    This may also be a thread you could be interested in:
    http://discussions.apple.com/thread.jspa?threadID=1203323
    Cheers,
    Roland

  • Not able to get ADF select many checkbox working with binding lists

    Hi,
    I have 2binding lists: list A that holds the selected choices and list B for all the choices. When the user opens the page, a list of checkbox should be displayed all the choices from list B with the saved ones pre-checked from list A. When the user changes the selection, the binding list A should be updated.
    I tried to use ADF select many checkbox but could not get it working for this.
    There are 2 big issues:
    1, can get all the choices from binding list B displayed but not able to pre-check the ones from list A.
    2, when the selection changed, not able to updated list A with the new choices
    I find some sample but it is talking about saving the selected choices into the managed bean not into binding object and using valueChangeListener. How to implement this in ADF? Please help.
    Thanks,
    Helen

    Helen,
    I don't think you can do this with a select many checkbox. This component works on one list whereas you want to handle two. You may archive this if you use a managed bean and handle all the list manipulation in java.
    Your use case more looks like a select many shuffle (http://docs.oracle.com/cd/E18196_01/11.1.2.0.0/lovs.html).
    Timo

  • Ps CC 2014 is not working correctly after mac update to Yosemite 10.10.1.  Select does not protect unselected areas.  Magic eraser erases unselected ares.

    Ps CC 2014 is not working correctly after mac update to Yosemite 10.10.1.  Select does not protect unselected areas.  Magic eraser erases unselected ares.

    Yes my particular issue is not like yours. However, there have been many other laptop users experiencing similar problem to yours after 3.10 kernel. Mostly it seems to be bumblebee users that experience your problem with the blank screen. We do know that nvidia have yet to make their official drivers work with kernel 3.10 and up. The drivers in the Arch repository have been patched to work with 3.10. From what I have seen, this also only seem to be affecting laptops with newer nvidia gpu's. I fear there is not much to do with this problem until nvidia give official 3.10 kernel support.
    My suggestion would be to stick with 3.9.9 kernel and the drivers that work with it, and don't upgrade those packages until nvidia has addressed these issues. If you have a look at the nvidia forums you will see quite a number of topics mentioning black screen when starting x on 3.10 kernel, and also a thread for the system dying. Reading some of the threads there may help you keep up to date on whether or not the issue seem to be solved.
    https://devtalk.nvidia.com/default/board/98/

Maybe you are looking for