Using two conditions in redered attribute

I have a link which should be rendered on fulfilling a particular condition which is mentioned in below code.
But unfortunately the link is not rendered.
<h:outputLink value="/msqcdo/clause24.jsp" title="Previous" rendered="#{appl.apptype=='Manufacturer' && not appl.licfor=='INSECTICIDES'}">

BalusC wrote:
jerry_ra wrote:
not appl.licfor=='INSECTICIDES'
This syntax is invalid. You should have used != here.I didn't seen it ! the word not had to be removed

Similar Messages

  • 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

  • Error when using a condition for required attribute

    Hi
    I have a requirement to validate the mandatory fields only when the submit button is pressed....if some other button is pressed or some how the form is submitted the validations should not be performed....
    I have used required="#{MyBB.somecondition}" for all the mandatory fields...the method that is being called for doing the condition check is given below:
    public boolean isSomeCondition() {
        // assumes submitButton is a component binding 
        FacesContext fc = FacesContext.getCurrentInstance();
        Map reqParams = fc.getExternalContext().getRequestParameterMap();
        return reqParams.containsKey(submitButton.getClientId());
      }It is same that is given at the following location
    http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works ---Soln 3
    But the problem is if I am submitting the form using Javascript from another page(page is a popup that is opened inside the current window), this condition doesnt work and it gives me an error saying "Check some field for its value"
    Please help me sort out this problem
    Thanks

    I think the problem is not clear....my mistake
    I try to be more elaborate on this....
    I open up a popup page from my main window....Here I perform a search(lets say there is a requirement for finding the Country and pincode for a particular city that the user enters)
    Now when I select the particular row in the datatable and click the submit button...... I want the selected values to be filled inside the parent window.....
    I want to bring to your notice that the button that is clicked is in the popup page...not in the parent window.....
    So you see that when that button in popup is clicked i am submiting the form of the parent window and during that time I dont want the validation to occur..... To submit the form of the parent window I use the Javascript like this : window.opener.document.forms[0].submit();Also one more thing that I want to mention is that the method that is used for specifying the condition for required attribute for mandatory fields in the parent window works fine for any button that i click inside my parent window......
    What I mean by this is lets say I have a button to add a dynamic row into my parent page then also I have to submit the form but during that time validation should not occur and it works fine.
    So now I think its clear that the Javascript is being invoked from another page which is submitting the parent window.....
    Then you're doing something wrong. Invoking the wrong button maybe? So please enlighten me where i am wrong and how possibly would I know which button I am invoking??

  • HR Query using two diffferent master data attribute values

    I have a requirement to calculate headount based on certain condition.
    Example: The condition is as follows:
    For each "Performace Rating" (ROW)
    Count Headcount for "Below MIn" (COLUMN)
    - Below Min = "Annual Salary" less than "Pay Grade Level MIn"
    - "Annual Salary" and "Pay Grade Level" are attributes of "Employee" Master data and is of type CURR
    -"Pay Grade Level Min" in turn is an attribute of "Pay Grade Level" master data.
    I am trying to build this query based on a standard  Infoset 0ECM_IS02 that has an ODS (Compensation Process), Employee and Person" .
    Any help in the required approach is appreciated like creating a restricetd KF using ROWCOUNT (Number of Records) and implement the logic for "Below Min"
    Thanks
    Raj

    Hi
    Have you tried to create a variable for ths kf with exit. I thnk it is possible here
    Assign points if useful
    Regards
    N Ganesh

  • How to create a unique key using two or more attributes?

    how to create a unique key using two or more attributes ?

    The following example illustrate how to create a unique key using two or more attributes/fields
    Scenario: Implementing Unique Key on ManagerID & Location ID in DepartmentEO(Department Table)
    Step#1: Open the Desired Entity Object “DepartmentEO”. Go to Overview tab & Click “General” Finger tab.
    Step#2: Expand “Alternate Keys” section & click “+”.
    Step#3: In the Pop-up wizard, Enter a name for alternate Key “Unique_Manager_X_Location”.
    Step#4: Select the desired attributes/fields from available list & Shuffle to right side.
    Step#5: Now go to “Business Rules” finger tab.
    Step#6: Select “Entity Validators” in the list & click “+” to add a new entity level validation rule.
    Step#7: In the Pop-up, Select “Rule Type” as Unique Key
    Step#8: In the “Rule Definition” tab select the key “Unique_Manager_X_Location”created.
    Step#9: Now go to “Failure Handling” tab, and click the Magnifier Icon .
    Step#10: If the key is not already created then in the “Select Text Resource” Popup, Using the functional design document, Enter display value, Key and Description. And click “Save & Select” Button.
    Step#11: Now Click “OK”.

  • We are using two pricing conditions 1st is ZBP1 Automatic pricing condition

    Dear Experts,
    We are using two pricing conditions 1st is ZBP1 Automatic pricing
    condition type, 2nd is ZBP2 manual pricing condition type. While
    creating sales order, when our sales users entering old pricing date, SAP
    system automatically proposing the manual condition ZBP2 (Manual)instead
    of ZBP1(from condition records)
    We want to restrict this behavior of the system. System should not pick
    the manual condition ZBP2 if the automatic pricing condition ZBP1 exist
    for that particular line item (irrespective of the pricing date). We
    donu2019t want to use manual conditions to all the other customers except
    intercompany customer.
    Please give your comments
    Regards,
    MH

    Hi,
    It would be better if you remove the Check Box as mandatory for that Manual Condition Type in the Pricing Procedure.In such case , system will not ask you to enter the Manual Condition Type , where ever it is required , Sales Users can enter it manually.
    But still Sales User try to give manually then you have to make a small coding in the new Routine at Manual Condition Type in the Pricing Procedure that if Condition Record for automatic Condition Type exits then system should not allow to enter it manually.
    Best Regards,
    Ankur

  • Calculation of tax with two conditions

    hi all,
    i have an issue regarding tax in condition in po.
    i want the calculation of tax should be on two condition basis, while i am giving value in tax code field in invoice tab.
    1. when i am entering tax code, the value like- L1- 4%, L2- 12%, that is calculating on gross price.
    supose- GP- 100
         tax- 4%-     4
                        104
    then am puting fright charge- 10
    so total is 114
    2. supose- GP- 100
             fright     -  10
                            110
    then a will calculate- 4% on 110
    how this could be done, the 2nd one.
    thanks&regards
    susanta

    Hi,
    For this you have to treat Freight as a Discount Condition Type in MM Pricing
    Take a copy of RA01 in M/06 and keep it as Positive Condition
    Here keep
    Cond. class   A Discount or surcharge
    Calculat.type A Percentage
    Cond.category Blank
    And Plus/minus - A (Positive)
    Use this in Pricing Procedure (M/08) after Gross Price ad Discount conditions (before Subtotal)
    Now
    Base Price = 100
    Freight = 10
    Subtotal = 110
    Tax (4%) = on Subtotal

  • Using If condition in For EACH Group

    Hi all,
    I want to use if condition in for-each-group. Basically my requirement is that i want to use dynamic grouping. There will be two groups and the upper group and lower group will be selected on the basis of a report parameter.
    I hope i made it clear enough. So please help me in this. Any ideas will be highly appreciable.
    Thanks and regards
    Naveed

    You can add a If condition filed after the for-each field
    for EG : <?if:ADDRESS_TYPE = 'Employee Address'?>
    and then add anothet field which has <?end if?>
    Hope this helps.
    Thanks,

  • Transformation issue while using IF condition.

    hi everyone,
    i am using bpel transformation based on the condition of field using IF condition.
    A       B          C          D
    10     20          30          40
    20     20          30          50
    30     30          20          60
    40     40          20          70
    now i need to apply IF condition in transformation on the filed B. if B = 20 transfer the data to one table or B NE 20 to other table
    now my issue is, it is able to differentiate the rows, but the data in the field in second table remains same 20.
    as i hope its storing the data in buffer location and writing it. after mapping with the fields in source.
    can anyone suggest, how to get the actual value after differentiating the records.

    Declare an internal table with two fields lar and another field for seconds.
    IF v_lar01 = 'MSTD' and v_vge01 = 'MIN'.
    it_time-lar         = lar1
    it_time-seconds = t_plpo-vgw01 * 60  " minutes to seconds
    else.
    it_time-lar         = lar1
    it_time-seconds = t_plpo-vgw01 " second
    endif.
    append it_time.
    IF v_lar02 = 'MSTD' and v_vge02= 'MIN'.
    it_time-lar         = lar2
    it_time-seconds = t_plpo-vgw02 * 60  " minutes to seconds
    else.
    it_time-lar         = lar2
    it_time-seconds = t_plpo-vgw02 " seconds
    endif.
    append it_time.
    and so on...at the end sum it_time-seconds and do the calculate to get hrs n minutes from seconds
    Mathews

  • Two conditions in a report

    Hello,
    I have a reports with few key figures, for one of regular key figure and formula key figure need to create two conditions. 1st condition needs to bring values greater than X values (example 20) from regular key figure. 2nd condition should bring top 10 values from formula key figure. 2nd condition should only show top 10 from list of 1st condition.  Can this scenario achievable in 3.x query designer? Any help greatly appreciated!
    Regards,
    JayPee

    Hi, You can have multiple Conditions in a Query wherein each Condition is evaluated independently, however the order matters. Hence, have;
    - first condition on the KF where > some fixed value
    - second condition on the same KF where the Top N operator is used where N is obtained from a Formula Var using Manual I/P
    for more on Conditions, refer below links
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/7875a998bc44409f6002e28552685a/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/86/dfc405ab60524ea0d3e89db15fb2e7/content.htm
    --Priya

  • Using Two DAQ, is it possible?

    Hi you guys! First of all, my name is Carlos and i´m a student of Mechanical Engineering. At the time, we dispose (in our university) from several test banks that are in poor conditions, so I been told to repair one of them. In`s a Refrigeration Test Bank (I attached a photo), it´s out of any operation so I have to put it operative again at first, then I have to replace all the analog indicators you see at the photo and become them digital. I`ve been doing some research on the web and I found the NI-6008 (This DAQ has been used in several applications in the University), I saw it can be connected with the LABVIEW SignalExpress, and it´d would be easy (in a manner of speak) in my case because all I have to do is display and register the values (temperature and pressure) from the bank and the program allows me that.
    The problem surges when I see that NI-USB 6008 has 8 Analog Inputs, and I need 10 AI, so I´d have to buy two of them (Because is the cheapest one and I don´t have too much money) and I would like to know if there is any problem about connecting both DAQ at the same time? Is it possible to connect them with the Labview SignalExpress?
    I hope to get some replies so I can solve my problem. Thanks for your help
    Best regards
    Attachments:
    IMG00394-20101110-0956.jpg ‏369 KB

    You can certainly use two 6008s at once.  And SignalExpress will handle them, as well.  If you have no programming experience, SignalExpress can get you started.  If you want specialized analysis or display, you can use SignalExpress to generate code to LabVIEW to get you started on an application.  Note that this code will be the data acquisition and analysis part of your code.  You will still need to write the GUI properly using event structures.  If you do this, post on these forums for some tips to get you going in the right direction (e.g. use producer/consumer and state machine architectures).
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to add multiple test conditions in 'test' attribute expression of xsl:if tag

    Hi all,
    How to add multiple test conditions in 'test' attribute expression of <xsl:if> tag ?
    I have 2 parameters and I want To skip the massage if this 2 conditions happened I tried to write it :
            <xsl:when test="($TransferToCompany = 0 and $ObjectInclide=1 )">
            <b1im_skip xmlns="" info=" Obect Will Not Transfer To company">
            </b1im_skip>
          </xsl:when>
    But I get an error while I am trying to transfer The object (Account) true B1if
    I am working with SBO 9 PL 13
    thank you
    shachar

    Hi saado
    Check this link:
    http://stackoverflow.com/questions/318875/can-you-put-two-conditions-in-an-xslt-test-attribute
    Kind regards,
    Radek

  • How to set two Conditions Simultaneously in set where clause

    Hi,
    I have a messgechoice item , and i need to fire messagechoice VO with two conditions.
    For Eg:-- we have three Items ProjectContractor& Work Order on a custom Page , now i need work order list should populate on lelection of project & contractor both, so i have apply a fire partial event on contractor where i i get the parameter values as follows:--
    CO Code
    if("OrderNoself".equals(event))
    String value21 = (String)pageContext.getParameter("ProjectName");
    System.out.println("The Selected Project Name for self Contractor is "+value21);
    String value22 = (String)pageContext.getParameter("ContractorName");
    System.out.println("The SelectedContractor Name for ContractorName is "+value22);
    Serializable [] params11 = {value21,value22} ;
    am.invokeMethod("initWorkOrderNumberself",params11);
    AM Code
    public void initWorkOrderNumberself(String ProjectName,String ContractorName");
    getDprWorkOrderpopVO1().setWhereClause("PROJECT_NAME = " + "'"+ProjectName+"'");
    getDprWorkOrderpopVO1().setWhereClause("CONTRACTOR_NAME = " + "'"+ContractorName+"'");
    getDprWorkOrderpopVO1().executeQuery();
    Now when i run my form then Work order list only populateon set conditions ofContractor NAme only.
    Please suggest....

    Hi Tarun,
    Thanx for ur reply,
    i have used below mwntioned code provided by you but still i m getting error...
    public void initWorkOrderNumber(String ProjectName,String ContractorName)
    //getDprWorkOrderpopVO1().setWhereClause("CONTRACTOR_NAME = " + "'"+ContractorName+"'");
    //getDprWorkOrderpopVO1().executeQuery();
    getDprWorkOrderpopVO1().setWhereClause("PROJECT_NAME =:1 AND CONTRACTOR_NAME=:2");
    getDprWorkOrderpopVO1().setWhereClauseParams(null);
    getDprWorkOrderpopVO1().setWhereClauseParam(1,ProjectName);
    getDprWorkOrderpopVO1().setWhereClauseParam(2,ContractorName);
    getDprWorkOrderpopVO1().executeQuery();
    ERROR:---
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select * from omaxe_work_order_headers
    where work_order_number is not null) QRSLT WHERE (PROJECT_NAME =:1 AND CONTRACTOR_NAME=:2)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:985)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:210)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721)
         at omaxe.oracle.apps.xxopa.boqmain.webui.OmaxeDPRCO.processFormRequest(OmaxeDPRCO.java:107)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01006: bind variable does not exist
    Regards
    Saurabh

  • 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

  • Two Conditions in If statement

    Hi,
    I wanted to include two condition in a single IF statement. So, i tried below,
    <?xdofx:if :POH_CANCEL_FLAG='Y' and :POH_PO_TYPE!='RELEASE' then?><?call-template:po_oc?><?end if?>
    But this is calling the template even if one condition is false. Can i do like this? Please advice.
    Thanks.

    Assuming your field names are POH_CANCEL_FLAG AND POH_PO_TYPE;
    You should be able to use:
    <?if: (./POH_CANCEL_FLAG='Y' and ./POH_PO_TYPE!='RELEASE') ?>
    <?call: po_oc?>
    <?end if?>
    OR use this:
    <?choose:?>
    <?when: ./POH_CANCEL_FLAG='Y' and ./POH_PO_TYPE!='RELEASE'?><?call:po_oc?>
    <?end call?>
    <?end when?>
    <?end choose?>
    Hope this helps!

Maybe you are looking for

  • Error while migrating from ms access 2003 db to oracle 10g in sqldeveloper

    Hello, i am working on migration project from MS access 2003 to Oracle 10g on windows XP sp2 plateform using SQL developer. it went quit smoothly till the "capture microsoft access" .so in this step the sql developer opens the access db in background

  • Image sequence only opens 1 image in QT pro

    Hi, I have 1500 numbered jpeg images and every time i go to do an image sequence it only adds the first frame into the image sequence!! Help!!!

  • The backup disk could not be found.

    Upgraded to Mountain Lion and ...

  • I can't edit my order

    I placed a order yesterday as a guest by night and I can't edit or cancel or anything at all. The Order Number is W270009221. I really wanna change my order for a Gold iPhone 6 64GB to pick up in West Glades Road, Boca Raton. Please, help.

  • Determination of Book Quantity in Physical Inventory

    Dear Experts, May we know how is the Book Quantity in MI20 being determined? Because when we processed a physical inventory, the book quantity as per MI20 differs from the inventory balance in MB51. Your help will be rewarded. Thank you.