Guard Condition is not working

Dear Friends,
I have created a dashboard using BI queries. output of queries is displaying via charts.
Now i have to display charts one by one in single layer. Here i triggered the Select Event on the output of CHART A and Guard Condition as well.
Now guard condition is not working properly. i want display of CHART A first then after clicking on tab i want display of CHART B. But here i always get CHART B first, which is not the requirement.
I am using VC 7.0 with flex2 compiler. EP patc level is SP17.
Kindly hep me out to resolve this.
Thanks & Regards
Nivedita

Drag an output from your table to a data store and add a field to the datastore (lets call it GUARDFIELD). Click the connector between the table and the data store. Make sure the event name is select and assign GUARDFIELD with the following value:
STORE@GUARDFIELD+1
Now add a guard condition to the select connector between the table and chart B and use following code:
STORE@GUARDFIELD>0
This is going to check that GUARDFIELD is greater than 0, which will only be true when you click the table for first time. If this doesn't make sense let me know and I'll try find the blog which explains this.

Similar Messages

  • If condition statement not working in jsp scriptlet

    <%
    String hostName = java.net.InetAddress.getLocalHost().getCanonicalHostName();
    if(hostName.endsWith("dinesh.com"))
    System.out.println("it works");
    else {
    System.out.println("it doesn't work");
    %>
    I am getting output as it works & it doesn't work. It seems the If condition is not working. Pls help with this issue.
    Thanks

    Dinesh_Nala wrote:
    Even the condition in if is returning true, the x value i am get as "/user2/"How did you knew that it returns true? Or did you just expect that? Do you trust yourself more than Java? Too bad.
    Just debug it:
    System.out.println("Actual hostname value: [" + hostName + "]");
    System.out.println("Does it end with dinesh.com? " + hostName.endsWith("dinesh.com"));

  • Why condition does not work.

    Hi Pros,
            in my bex query, there is a CKF OT hours, having a value 30.000, when I set a condition for 'OT hours = 30.000', but get no result out. could you please tell why condition does not work.

    HI,
    please check the "Characteristic Assignment" Tab in change condition window.
    In that tab default  selection as "All Characteristic in the drill down independently" change that selection  as "Individual characteristic and Char. combinations"  and choose the particular characteristic. for ex OT hours against employee means select employee alone.
    Regards
    Sureshkumar C

  • IF - Else condition is not working properly in Bex Query Designer

    Hi All,
    I have a KF called KPI Value. Based on the KPI Value, my report display has to show by using the if-else condition.  If the KPI value is '999999' then that particular KPI value has to display as 'X' against to that KPI No. Thats all my requirement. To achieve this I have created a formula based on the KF.
    (KPI Value == 999999)*(1/0)+(KPI Value <> 999999)*(KPI Value)*1
    Unfortunately, the above expression is shwoing the entire colmn as 'X' irrespective of the KPI value. i.e., logic is not working Could any one please suggest how to achieve this requirement. Your assistance is highly appreciable and very helpful. Thank you in advance!!!
    Best Regards
    Venkat...

    AL,
    I can visualize how condition should give results. The problem here is reality, I tired in my system with your formula and I got like as I mentioned.
    If you observe closely your If..else formula, (KPI Value == 999999)*0+(KPI Value <> 999999)*KPI Value
    If KPI Value == 999999 Result is 0, Else(Assuming) KPI Value <> 999999 Result is other nos like 1111, 2222 etc.
    Actually it is not If..else, it is IF..ENDIF. Both conditions should get satisfied to give below:--
    KPI value  Formula
    9999          X
    1111         1111
    2222          2222
    9999          X
    3333          3333
    4444          4444
    9999           X
    In the course of adding both conditions results, system is not able to add 0+ Other Values in single column. So it is giving mixed values * like below:--
    KPI value  Formula
    9999          X
    1111           *
    2222           *
    9999          X
    3333           *
    4444           *
    9999           X
    Note: Once again I want to say it is not to prove you wrong. Let's get some clarity on the issue. I might be also wrong. But I want to know the actual result. If you can test it tomorrow and let me know..it would be great.
    Regards,
    Suman

  • Disabling Radio Button Conditionally is not working Well

    Hi friends,
    I have three radio buttons
    <li>self
    <li>New Hire
    <li>On Behalf of
    I will be showing this radio button conditionally according to the user who logs into the application.
    Assume, suppose if a person 'A' enters into the application means he will be shown only these radio button options ---NH---,----OB----,----Self-----
    Suppose, if a person 'B' enters into the application means he will be shown only these radio button options ----NH----,----Self---
    If a person 'C' enters into the application means he will be shown only these radio button options ---Self---
    I have restricted those radio buttons according to the users who enter into the application using their roles.
    But my challenge here is once the user logged in and if he select anyone of the radio button means,
    Example if he selects----NH---means, then ---OB----and -----Self---radio button has to disable and if he selects ---OB----means then ----NH-----and ---Self---has to
    disable(vice versa).
    I have also achieved the same using the DA.
    With true action as: javascript Expression i have given the following codings( i have written the below DA for three cases, if the request_class_code is equal to
    (NH,OB,S)
    var enabled=$v('P22_REQUEST_CLASS_CODE');
    if (!$u_SubString(enabled,'S')) $('#P22_REQUEST_CLASS_CODE_2').attr("disabled","disabled");
    if (!$u_SubString(enabled,'NH')) $('#P22_REQUEST_CLASS_CODE_0').attr("disabled","disabled");
    if (!$u_SubString(enabled,'OB')) $('#P22_REQUEST_CLASS_CODE_1').attr("disabled","disabled"); The above DA is working great only for the user who has the option of viewing three radio buttons in my form(i.e)(NH,OB,S).
    For the user who has the option of viewing two or one radio button, it is not working properly(i.e)(NH,S) or(OB,S) or(S).
    Why it is not working for the user with two options or with one option radio button means, the source of that radio button property is changing. Since i have taken
    the source of my radio button in my DA only when the three options are present.
    How i can solve this issue for the user who is having this two radio option or one radio option.
    Hope you understood clearly about the problem.
    Brgds,
    Mini

    Hi,
    If I did understand what you like have this might work
    var lVal = $v('P22_REQUEST_CLASS_CODE');
    $('#P22_REQUEST_CLASS_CODE input:not([value="' + lVal + '"])').attr("disabled","disabled");Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME

  • WF with Multi-condition is not work

    Hi All,
    I am using an object subtype of the FIPP - document park, which is called a YFIPP01, and I have to include a new atribbutes (vbkpf-Blart). swo1:
    YFIPP01.DocumentType        DocumentType  (released)
    Now my WF is being generated and  the workitem too. But my WF is working with a small problem, I made multiple condition using the new attribute (Blart) is not working.
    When I check the log through the Tcode SWEL/Workitem see that the attribute in the container (Blart) is marked "not set".
    SWEL/Workitem :
    Display Container Instance for Workitem 00000004081
    Expression          Values
    Documenttype     <Not Set>
    Any help is very welcome.
    Joao

    Karri Kemppi,  First thanks for responding.
    If you test/instantiate an object in SWO1, is the attribute getting populated? You should test it in SWO1 at the first place. Only after you get it working there, you can expect it to work in workflow.
    ok I had already tested the object as shown below and the attribute is populated.
       YFIPP01                        005019000002282011
            Atributos
                  DOCUMENTNO                        1900000228
                  DOCUMENTTYPE                      T1
                  FISCALYEAR                        2011
                  FLAGCOMPLETE                      X
                  FLAGRELEASED
                  LEVELCOUNTER                      00
                  OBJECTTYPE                           YFIPP01
                  SOURCECOMPANYCODE                 0050
                  USERCHANGE                        ABAP

  • Condition JEXC not working in Pricing procedure for Non Set Off

    Hi,
         While creating PO in case of Dealer procurements i; e we are not buying the materials from the direct manufacturer but from dealer  we need to have BED other than 8%(maintained in J1ID).
          I am using the condition type JEXC in the Pricing procedure which is used to overwrite the value of BASIC Excise Duty in   the Tax procedure. For this I have added JEXC in our Pricing procedure with subtotal as "5".
       JEXC value in the Condition tab becomes the value of JMO1/JMO2 in the invoice tab.
      Now for Set off cased it is working fine. I used to put value in the JEXC in the condition tab other than actual 8% value and it overwrites the value of BED(JMO1/JMO2) .  
    But for Non set off cases it not working correctly.  It overwrites the value of BED(JMO1/JMO2) correctly but the SECSS % becomes zero. Can anyone suggest me the way I can go for non set off case .

    Hi
    Kindly have a look: http://help.sap.com/erp2005_ehp_03/helpdata/EN/0e/db7eb4e9114d85a9335fb1df617504/frameset.htm
    Regards
    Prasanna

  • Multiple Reciver and Reciver Determination Condition is not working

    Hi,
    My Message is look like this .
    <?xml version="1.0" encoding="UTF-8"?>
    <dataroot generated="">
        <ChartOfAccounts>
            <glAcctNo>300000</glAcctNo>
            <COA>CAUS</COA>
            <acct_grp>SAKO</acct_grp>
            <shortText>short text</shortText>
            <longText> long text</longText>
            <isPLAcct/>
            <isBalAcct>TRUE</isBalAcct>
            <coaForCompany>
                <co_code>3000</co_code>
                <authGroup>ZURK</authGroup>
                <acctCurrency>USD</acctCurrency>
            </coaForCompany>
         <strFSLineItem>INDIA123</strFSLineItem>
        </ChartOfAccounts>
        <ChartOfAccounts>
            <glAcctNo>300000</glAcctNo>
            <COA>CAUS</COA>
            <acct_grp>SAKO</acct_grp>
            <shortText>short text</shortText>
            <longText> long text</longText>
            <isPLAcct/>
            <isBalAcct>TRUE</isBalAcct>
            <coaForCompany>
                <co_code>aaa</co_code>
                <authGroup>ZURK</authGroup>
                <acctCurrency>USD</acctCurrency>
            </coaForCompany>
         <strFSLineItem>INDIA123</strFSLineItem>
        </ChartOfAccounts>
    </dataroot>
    See what I want is depening on  co_code values need to send it to diffrent reciver.
    The condition i put it in reciver determination if it 3000 one reciver if not diffrent reciver but it is not working.
    Nedd u r suggestions
    Madhu

    Hi,
    Are you comparing integer with string...can you maks sure both values having same type...
    Check out this thread...
    Re: XI Transports general question (SLD / CTS+)
    Also check with your input payload in message mapping in IR if it is generating correct co_comp code for receiver determination.
    Hope this will help.
    Nilesh
    Nilesh

  • Procedure one condition is not working

    Hi
    I need to implement a stored procedure. I have some conditions where I implemented in my procedure.
    Please help me..!!
    My table : person_master
    create table PERSON_MASTER
      WEB_LOGIN        VARCHAR2(50),
      WEB_PASSWORD     VARCHAR2(40),
      PWD_EXP_DT       DATE,
      EXPIRED          CHAR(5),
      FAIL_LOGIN_ATTMP NUMBER(3)
    )insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000078', 'Juol123456', to_date('01-06-2011', 'dd-mm-yyyy'), 'Y ', 1);
    insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000079', 'inol123456', to_date('01-12-2010', 'dd-mm-yyyy'), 'N ', 0);
    insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000080', 'Luol123456', to_date('05-01-2011', 'dd-mm-yyyy'), 'N ', 0);
    insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000081', 'Frol123456', to_date('15-12-2010', 'dd-mm-yyyy'), 'N ', 0);
    insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000082', 'Jool123456', to_date('09-12-2010', 'dd-mm-yyyy'), 'N ', 0);
    commit;
    CONDITIONS
    PASSING TWO PARAMETERS..LOGIN AND PASSWORD..SELECT 1 FROM PERSONAL_MASTER
    WHERE WEB_LOGIN = INPUT PARAMER LOGIN
    AND WEB_PASSWORD = INPUT PARAMETER PASSWORD
    IF EXPIRED = 'Y' THEN
    MESSAGE ' ACCT EXPIRED'
    IF EXPIRED = 'Y' AND PASSWORD <> INPUT PRAMETER PASSWORD THEN
    MESSAGE 'ACCT EXPIRED'
    pls help me...!!
    Regards
    AR
    Edited by: 845299 on Jun 15, 2011 12:46 PM

    845299 wrote:
    Hi
    I need to implement a stored procedure. I have some conditions where I implemented in my procedure.
    Please help me..!!
    My table : person_master
    create table PERSON_MASTER
    WEB_LOGIN        VARCHAR2(50),
    WEB_PASSWORD     VARCHAR2(40),
    PWD_EXP_DT       DATE,
    EXPIRED          CHAR(5),
    FAIL_LOGIN_ATTMP NUMBER(3)
    )insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000078', 'Juol123456', to_date('01-06-2011', 'dd-mm-yyyy'), 'Y ', 1);
    insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000079', 'inol123456', to_date('01-12-2010', 'dd-mm-yyyy'), 'N ', 0);
    insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000080', 'Luol123456', to_date('05-01-2011', 'dd-mm-yyyy'), 'N ', 0);
    insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000081', 'Frol123456', to_date('15-12-2010', 'dd-mm-yyyy'), 'N ', 0);
    insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
    values ('300000082', 'Jool123456', to_date('09-12-2010', 'dd-mm-yyyy'), 'N ', 0);
    commit;
    CONDITIONS
    PASSING TWO PARAMETERS..LOGIN AND PASSWORD..SELECT 1 FROM PERSONAL_MASTER
    WHERE WEB_LOGIN = INPUT PARAMER LOGIN
    AND WEB_PASSWORD = INPUT PARAMETER PASSWORD
    IF EXPIRED = 'Y' THEN
    MESSAGE ' ACCT EXPIRED'
    IF EXPIRED = 'Y' AND PASSWORD <> INPUT PRAMETER PASSWORD THEN
    MESSAGE 'ACCT EXPIRED'
    pls help me...!!
    my car is not working.
    Tell me how to make my car go.
    Is COPY & PASTE broken for you?

  • FDM Conditional mapping not working

    I currently have the following #script as my map in FDM. The first part of the map is not working as all the 9* source accounts are mapping to "70111". The rule should be; with any source account of "9*", with a source profit center where the 3rd digit is "??1???", then account is "43905", else "70111".
    If Left(varValues(23),3) = "1" Then
    Result = "43905"
    Else
    Result = "70111"
    End if
    Not sure why the first result is not working...anyone have any suggestions?

    Hi
    I think I may have seen this question answered previously but in case....
    Your IF statement is comparing the first 3 characters to "1" so it will never match.
    Assuming that you want to compare the 3rd character then you want If Mid(varValues(23),3,1) = "1" Then
    Hope this helps
    Stuart

  • Why does my conditional expression not work?

    I want to increment a global keeping track of how many critcal tests have been run. Usually I just increment it in the post expression of the test. However, if I have a test that loops it would increment on every loop, so I put a conditional expression in the post expression so it only counts once the loop is done:
    RunState.LoopIndex < 10 && RunState.LoopNumPassed < 3 ? FileGlobals.Critical_Test_Count : FileGlobals.Critical_Test_Count++
    However, the false condition in the expression never gets evaluated. I've put watches in to make sure the condition goes false after the last interation of the test and it does. But my global never increments. The true condition is not supposed to modify the variable.
    What am I miss
    ing?

    The reason for this is that the post expression is evaluated before the loop increment expression, so on your last loop the post expression is evaluated (loop count = 9) then the loop increment is evaluated and the loop is terminated. See page 6-26 of the Teststand user manual.
    Hope this helps,
    Nick

  • [CAML] AND condition does not work!

    I have written this code.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Microsoft.SharePoint.Client;
    namespace ConsoleApplication1 {
    class Program {
    static void Main(string[] args) {
    ClientContext c = new ClientContext("http://sp2013");
    Web w = c.Web;
    c.Load(w);
    c.ExecuteQuery();
    List l = w.Lists.GetByTitle("Discussions");
    c.Load(l);
    c.ExecuteQuery();
    Console.WriteLine(l.Title);
    CamlQuery query = new CamlQuery();
    query.ViewXml = "<View Scope='Recursive'><Query><Where></And><Eq><FieldRef Name='ParentFolderId'/><Value Type='Integer'>1</Value></Eq><Eq><FieldRef Name='PostType'/><Value Type='Text'>Answer</Value></Eq></And></Where></Query></View>";
    ListItemCollection itemCollection = l.GetItems(query);
    c.Load(itemCollection);
    c.ExecuteQuery();
    Console.WriteLine(itemCollection.Count);
    foreach (var x in itemCollection) {
    Console.WriteLine(x["Body"]);
    Console.WriteLine(x["ParentFolderId"]);
    Console.WriteLine(x["PostType"]);
    the code runs fine but returns everything rather than only the items with PostType of "Answer". So the AND part of the query is not working. No Errors!
    val it: unit=()

    There problem is in the beginning after where you are having closing AND syntax </And>
    Try this
    query.ViewXml = "<View Scope='Recursive'><Query><Where><And><Eq><FieldRef Name='ParentFolderId'/><Value Type='Integer'>1</Value></Eq><Eq><FieldRef Name='PostType'/><Value Type='Text'>Answer</Value></Eq></And></Where></Query></View>";
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • Workflow conditional statement not working

    I have 2 level approvals of objects in Documents list.
    The document first uploaded by user and then first need to get approval from HR Line Manager and then get approval from HR manager.
    the attach image shows shows workflow , the issue is either I select approve or reject in first approval the if statement is always true , it should not go inside if statement if first approval is rejected by HR Line Manager roles
    Tech Learner

    Hi,
    To make the condition work in the workflow, there are two more things need to be done:
    1. Enable content approval in the Documents library which the workflow is associated with.
    Go to the Library Settings page of the Documents library > click Versioning settings > select Yes under Require content approval for submitted items.
    If we do not enable this, the value of Approval Status column will always be Approved.
    2. Add a Set Workflow Variable step above the Start Approval Process step and set it to Yes in the workflow.
    After adding the Set Workflow Variable step, we can set the Approval Status column when we approve or reject the task process. Otherwise the Approval Status column will not change no matter how the task process works.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • BI Web services - Prompts with 'OR' condition are not working

    Hi Gurus
    I am using BIWS to build my Xcelsius dashboards . When i building a webservice from webi report having two data providers named fact & dim and i merging two data providers and the result i am using in a report.
    The Fact data providers contains a query filters with 'OR' conditions applied in it.
    when i test this webservice with the values it always displaying the last refreshed instance of report even i purge the data before building web service.
    Could you please let me know is any one faced this issue. I am using Webi rich client 12.3.1 version
    Note *: The web service works fine if i am using query filters with  'AND'  condition.
    Kindly check this do the needful
    Cheers
    Karun

    Hai
    Check this
    Re: Web Intelligence BI Web Services and Xcelsius
    http://everythingxcelsius.com/xcelsius-training/xcelsius-and-business-intelligence-web-services-biws/3642
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00536d65-f9cf-2e10-0eaa-f3346306dc1a
    http://www.asug.com/CalendarEventDetails/tabid/150/eventid/2509/Default.aspx
    http://www.forumtopics.com/busobj/viewtopic.php?p=819152

  • Grouping the logical expressions in IF condition is not working

    Hi Experts,
        My requirement is to group the logical expressions in IF condition like the below
    I tried it like
    IF ( &NAST-KSCHL& = 'ZBE0' OR &NAST-KSCHL& = 'ZBEC' ) AND ( &VBDKR-SPRAS& <> 'F' )
      code...
    ELSEIF
      Code....
    ELSE
       code...
    ENDIF
    But the system is showing the grouping in the IF condition is wrong. The problem is i am not supposed to break that AND condition and put it as another IF inside the first IF condition.
    Pls provide your valuable inputs.
    Thanks,
      Srinivas

    Hi,
    Sometimes to play with sap script editor becomes very much difficult if you have scenario like as you mentioned..
    Type this, and i hope it will work..
    /:     IF &NAST-KSCHL& = 'ZBE0' OR &NAST-KSCHL& = 'ZBEC'   
    /:     IF &VBDKR-SPRAS& =  'F'
    your code..
    /:     ENDIF
    /:     ELSEIF <LOGICAL EXP>
    /:     IF &VBDKR-SPRAS& =  'F'
    your code..
    /:     ENDIF
    /:     ENDIF
    Now please try to use one more IF statement, give the logical expression same as in ELSEIF
    Although it is time consuming  but sill you can try..
    Edited by: Lokesh Tarey on May 26, 2010 12:30 PM

Maybe you are looking for