Suppressing a section based on two conditions

Hello
currently, I am trying to suppress a section of group based on two conditions:
- The first condition is to suppress the section always if the user is not at DrillDownGroupLevel 1.
- The second condition is to supress the section if the GroupName ({Customer.TerritoryID})  is not UK or US.
I went to the section expert and entered this code in the "Suppress (No drill-down)" x-2 formula field:
DrillDownGroupLevel <> 1 AND
GroupName ({Customer.TerritoryID}) <> "US" OR
GroupName ({Customer.TerritoryID}) <> "UK"
Unfortunately, it does not work. Any ideas are very welcome!!
I am using Crystal Reports XI
Thanks in advance!!

Which "section of a group" are you trying to conditionally suppress?  (group header, group footer or details within a particular group......or all of them?)
AND you stated,
"currently, I am trying to suppress a section of group based on two conditions:
The first condition is to suppress the section always if the user is not at DrillDownGroupLevel 1.
The second condition is to supress the section if the GroupName ({Customer.TerritoryID}) is not UK or US.
Try this formula for the conditional suppression:
(DrillDownGroupLevel  <> 1) AND
(GroupName ({Customer.TerritoryID})  "US") OR
(GroupName ({Customer.TerritoryID})  "UK")
If that does not work you may want to check and make sure your values are upper case in the TerritoryID.
In addition, a GOOD way to test conditional suppression formulas is to put them into a conditional highlighting color for the section so you can still see the values and the highlighting lets you know if it's working.  For example:
IF
(DrillDownGroupLevel  <> 1) AND
(GroupName ({Customer.TerritoryID})  "US") OR
(GroupName ({Customer.TerritoryID})  "UK")
then YELLOW else WHITE

Similar Messages

  • DBPolling based on two conditions

    Hi All,
    We have a requirement in our bpel to process to poll the DB based on two conditions as we know how to poll on DB for one conditions.
    Any help is highly appreciated.
    Thanks and Regards,
    Nagaraju .D

    Sorry it is late here, I was thinking of selecting data, forget what I have said.
    Polling condition needs to be a sequence so there is no possibility of missing rows. Things like date, id etc
    If you need to use multiple conditions you need to concatinate the fields as part of the select statement. You may need to create a view for this.
    Obviously if you are doing a physical delete, or a logical delete there is no such issue as BPEL will read every row that is in the table, or where the flag is set to not processed.
    Hopefully this helps, sorry for mucking you around
    cheers
    James

  • Unable to filter a formula field based on two conditions

    hi,
    I have a report with 3 subreports in it. When i drill down onto first subreport i am getting correct records in details based on selection criteria but when i am unable to populate the same record count in summary.
    For example
    On summary i see : 60 when i drill down i see 20 records which is correct but not reflecting onto summary report
    the details selection criteria is based on two  fields where field1>=1 and field2= "Text"It is coming out good (20 records) but in summary i am unable to populate this based on same selection criteria
    The main issue i am facing was if i apply a filter on summary selection criteria all the subreport counts are getting affected. Is there a way i can apply filters only one one field
    Please suggest
    Thanks!
    Lucky

    Thanks! for the prompt response Abhilash
    I got part of what you told me. Yes i am calculating the counts in the summary report.
    Basically here is the selection criteria: i need to filter the records based on two conditions. One is x.field1= "Admin" and x.field2=act_pct>=1
    For example:
    Admin Returns         50  but when i dig into details it showing as 20 records ( based on selection criteira above)
    when coming back to summary . 50 what ever is returing here is based on a formula ( if x.field1="admin" then 1 else 0) ..in addition to this i need to filter that by x.field2>=1 which is not taking it     
    Is there any syntax to do this
    If i apply a filter on this particular 50 record its bee applying for whole summary report ...
    And from what you said :
    Why don't you create the summary in the Subreport and maybe use shared variables to bring it back to the Main Report?
    i did not get this
    Please suggest
    Lucky

  • Start Local chain based on two conditions

    Hello,
    I want to trigger a local chain in a metachain based on success of two conditions.
    1) at a stipulated time.
    2) and on the completion of above process.
    Also is there a function module by which i can get the variant name of a process.

    how can this be achieved.
    Thanks
    Dutta

  • WriteBack: Update a field based on two conditions.

    Hi Experts,
    I am facing a serious problem in write back to database.
    Let me explain the writeback i am trying to do.
    I have a table as Below
    Col1----- Col2---------Col3----------Col4
    100--------1-------------2----------100/(1+2)
    Col1,col2,col3 are editable.
    Once the values are entered in these columns Col4 is calculated by the formula (Col1/(Col2+Co3))
    If the user enters 0 in col2 and col3 then it will be a division by zero which i have handled by the DECODE function
    But the user requires a standard value to be shown there that is Col1/0.57895 whenever he enters 0 in col2 and col3.
    I initiially put a column formula for Col4 in answers saying if col2 or col3 = 0 then (Col1/0.57895)
    But as this formula is only at the prsentation level...teh values were not getting saved in the database.
    My requirement is i need to put this condition in the writeback xml itself and see to it that this standard value be updated in the table itself.
    like
    update table set col4=Col1/0.57895 where col2=0 and col3=0
    Update table set col4=(Col1/(Col2+Co3)) where col2 <>0 or col3<>0
    I am unable to use two update queries in teh xml template.
    Please let me know how can i implement this in the xml template.
    Appreciate your immediate response.
    -Best Regards!

    You can't do it in the xml but you can do it in the database with a before trigger update
    http://www.techonthenet.com/oracle/triggers/before_update.php

  • Top 10 based on two conditions

    Hello BW Experts,
    Wondering if this is possible in Bex.
    -- by default show the top 10 customer based on gross sales
    -- then give a navigational option in the context menu to show the top 10 customers by net sales.
    can this be achieved in bw using conditions.
    Any suggetions is greatly appreciated.
    Thanks,
    BWer

    Hi BWer,
    It is possible to do this using conditions. Start creating a condition in the query and use the Top N condition. Create 2 of these: One for each key figure. Then in the report you can activate and deactivate them to see results are desired.
    Hope this helps...

  • Suppress Target structure based on condition

    Hi
    How to suppress target structure based on condition
    Example:
    Source is like:
    <Details>
    <Name>abdc</Name>
    <ID>234</ID>
    <Address>US</Address>
    </Details>
    I have two target structures
    1:
    <Details>
    <Name>abdc</Name>
    <ID>234</ID>
    <Address>US</Address>
    </Details>
    2:
    <Error>
        <ErrorID>
    </Error>
    if Any of the source filed is null then i dont want to map it to source structure. instead I want to assign an error id to ErrrorID node of the target.
    example
    abc,123,US
    abc
    in above case second record has two null values
    so my target structure should be
    <Details>
    <Name>abc</Name>
    <ID>123</ID>
    <Address>US</Address>
    </Details>
    <Error>
        <ErrorID>2nd record has erro</ErrorID>
    </Error>
    How to acheive this..
    Please help us
    Regards
    Sowmya

    hi ,
    plz try the following mapping
    Name-->exist-->if than else-> tuue----->Name
                                                        false---(constant)--
    error
    ID-->exist-->if than else-> tuue----->ID
                                                     false---(constant)--
    error
    adress-->exist-->if than else-> tuue----->address
                                                          false---(constant)--
    error
    regards,
    navneet

  • Calling two table controlls based on some conditions......

    I hav a requirement in which i have two table controlls, which i want to call based on some conditions. Like if condition is satisfied the first table controll shud fill up the screen and other wise the secondtable controll shud fill the screen....

    Hello,
    In the main screen where u need to vary with the 2 table controls , create a subscreen area .
    Now create two subscreens with the required table controls respectively.
    You can dynamically call the subscreens accordingly for  the conditions.
    Hope this may help you.
    Neeraj

  • Suppressing the field using two conditions

    how to supress a field using Two conditions?

    In format field common tab
    Click formula icon next to suppress and enter your conditions eg
    field1 = x and field2 = y
    Ian

  • Programmatically Suppressing Report Sections?

    Can someone please tell me if there is a way to suppress sections of a report at runtime? I am giving the user the option to output to excel or pdf. If excel, I want to suppress the page headers and footers so I donu2019t end up with a bunch of blank rows for every page break. Can this be done or do I need to create two nearly identically reports to accomplish this? Thanks!
    Version u2013 vs2003, C#

    Hello, Dan;
    You can do a conditional suppression on sections in the designer based on a parameter you pass in at runtime.
    If {?SuppressSection} = "View" Then
       False
    Else If {?SuppressSection} = "Suppress" then
       True
    Then from your application pass in "View" or "Suppress" depending on if you are viewing or exporting the report.
    'Pass the parameter Name and parameter Value
    crReportDocument.SetParameterValue("SuppressSection", "View")
    Elaine

  • Suppress a Group Based on the Results of a Formula

    Hi All,
    Been reading through this forum as I am new to Crystal.  I have a report that must display a group of records along with their detail if  TotQOH > RunningTotal.  I tried using the running totals field in Crystal but I could not reference a formula in the selection criteria since it must be evaluated later.
    Reading up on this forum I figured out how to create my own running totals (also referenced the application's help article ' Creating running totals using a formula') but now I can't seem to suppress the entire group and corresponsing detail records when TotQOH > RunningTotal.    Using the Formatting Formulas in the workshop tree of the Formula Editor, I can suppress any of the fields within the group but this leaves me with a bunch of blank lines in the output.
    I'm using Crystal 10 and simply want to suppress the entire group and the corresponding detail while printing the records when:
    TotQOH > RunningTotal
    I read this thread: Selection Formula based on Running Total, but could not get this to work for the entire group, just the fields within the group.
    Any ideas would be welcome.  Thank you very much.

    I'll have to research subreports - never worked with them.  After I suppressed all the fields, I went to the section expert and checked Suppress Blank Section, ran the report and nothing printed.  There are many records that meet the criteria TotQOH > RunningTotal, so I'm going to do more research and take a look at subreports.

  • Select One Choice attribute' LoV based on two bind variables, best practice

    Hello there,
    I am in the process of learning the ADF 11g, I have following requirement,
    A page must contain a list of school names which is needed to be fetched based on two parameters, the parameters are student information been inserted in the previous page.
    I have defined a read only view "SchoolNamesViewRO", it's query depends on two bind variables :stdDegree and stdCateg.
    added that RO View as a view accessor to the entity to which the name attribute belongs, and then add LoV for the name attribute using the ReadOnly view,
    added the name attribute as Select One Choice to page2,
    and now I need to pass the values of the bind variables of the ReadOnly view,
    the information needed to be passed as the bind variables is inserted in the previous page, I could have the data as bindings attribute values in the page2 definition
    I have implemented the next two appraoches but both resulted in an empty list :
    * added ExecuteWithParams Action to the bindings of the page and then defined an Invoke Action (set refresh condition) in the executable s, set the default values of the parameters to be the attributes values' input value,
    in the trace I code see that the binding fetches correct values as supposed , but the select list appears empty, does the this execution for the query considered to be connected to the list ?
    * added a method to the ReadOnly view Imp java class to set the bind variables, then I define it as a MethodAction in the bindings , and then create an Invoke action for it , also the select is empty,
    if the query been executed with the passed variables, then why the list is empty? is it reading data from another place than the page!
    and what is the best practice to implement that requirement?
    would the solution be : by setting the default value of the bind variables to be some kind of Expression!
    please notice that query execution had the bound variables ( I see in the trace) are set to the correct values.
    would you give some hints or redirect me to a useful link,
    Thanks in advance
    Regards,

    please give me any example using backing bean .for example
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:selectOneChoice label="Label 1" id="soc1" binding="#{Af.l1}"
    autoSubmit="true">
    <af:selectItem label="A" value="1" id="si1"/>
    <af:selectItem label="B" value="2" id="si2"/>
    </af:selectOneChoice>
    <af:selectOneChoice label="Label 2" id="soc2" disabled="#{Af.l1=='2'}"
    partialTriggers="soc1">
    <af:selectItem label="C" value="3" id="si3"/>
    <af:selectItem label="D" value="4" id="si4"/>
    </af:selectOneChoice>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    package a;
    import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
    public class A {
    private RichSelectOneChoice l1;
    public A() {
    public void setL1(RichSelectOneChoice l1) {
    this.l1 = l1;
    public RichSelectOneChoice getL1() {
    return l1;
    is there any mistake

  • Need to suppress warning message while executing querywith conditions.

    Hi,
    I have created report in which I have two conditions in report I am showing report data only if keyfigure value is greator than 4. In characteristics I have calmonth and customer I want to suppress result row  so supress result row is always  but warning message comes while executing report.
    Warning : There is a condition on Calmonth result row suppress active.
                    There is acondition on Customer result row suppress is active.
    How to avoid this message permanantly.
    Thanks & Regards
    Deepak Chavan

    Dear Deepak,
    1. Open ur query in rsrt2.
    2. When the warning message occurs, click on the mesage. u ll find the Notification number of it. Note it down.
    3. come to rsrt2 screen again.
    4. click on messages tab. search for ur message with notification number, in various tabs like generation, hierarchy etc..
    5. click suppress message check box for ur message. Save. Come back.
    6. Re-xecute the query.
    Hope this solves the problem.
    All the best.
    -Guru

  • Select Query Based on date condition

    Hi ,
    Is it Possible.
    i want to run select query based on date condition.
    Eg...
    if the date between 01-jan-01 and 01-jan-05 then
    select * from table1;
    if the date between 02-jan-05 and 01-jan-08 then
    select * from table2;
    Becaz i have data in 2 diffrent tables , based on the date condition i wnt to run the select statement to diffrent tables.
    i dont want plsql here Just SQL needed.
    thanks,
    -R
    Edited by: infant_raj on May 5, 2009 11:48 PM

    Helo Kanish,
    this is not the one i was asking..
    wht i mean was .
    i use bind variable to get date while running the select statement , once i get the date then i want to choose any one of the table to run select query.
    EG..
    select col1,col2 from table1 where date between only if 01-jan-01 and 01-jan-05;
    select col1,col2 from table2 where date between only if 02-jan-05 and 01-jan-08;
    Run any one of the two . not all
    thanks,
    _raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Suppressing sub-section with drill down OK

    This may be an easy one that I just cannot figure out (I hope...).
    I have created two details sections - details A and details B.  I would like to suppress details section B while still allowing for drill down capabilities.  However, that option is not available.  I can either suppress the entire details section (A and B) with drill down capabilities or suppress either A OR B with no drill down capabilities.
    Any and all help would be truly appreciated!!

    I can only think of using an on demand subreport which sits in Details b. but the row and the SR lable will be visible for all records.
    Ian

Maybe you are looking for

  • Is it possible to get a refund??

    I recently bought the wrong cd by mistake.  And I was wondering if there's any way to either. Get money back, store credit or something similar. Please I'll really appreciate a good answer.

  • Cannot use Pages tools in Acrobat X for LC-built forms

    Does anyone know why I can't use any of the Pages tools (rotate, extract, insert, crop, etc) in Acrobat X for a fillable form built in LiveCycle?

  • Logic Pro 9 - Change Title Size in Music Score

    Hi, I've been using Logic Pro 9 to create music score. After creating the score, I noticed that the title appeared on every page. However, I want the title to have a larger font on the first page compared to the ones in the proceeding pages. Is there

  • Report with custom hierarchy

    Hi experts! I have an assignment to do. My clients wants a report with a hierarchy but he wants to see "Total" on last row of a table. My hierarchy is: +Total ---Level1 ---Level2 -----Level2.1 My analysis should to see: LevelA1 (Can Drill) LevelA2 (C

  • HELP !!! MY Whatsapp icon not opening and Whatsapp not working and the

    I done a phone swap from a Blackberry Curve 8250 to a Blackberry Bold 9780. I reinstalled everything and I had no problems what so ever. But when I tried to go onto Whatsapp, I had to verify my number again. So when it comes to verifying my number it