How to user #{or} in expression builder

Dear All,
am using jdeveloper 11.1.1.3
I have an input text in an adf page , I need to disable this input text depending on two bindings with or operator--> if one of them is true then disable the input text...
If this possible and if yes then how ?
I noticed the Operands in the expression builder popup but i dont know how to use it
Regards,
Lama
Edited by: Delta on Sep 6, 2010 1:35 AM

You can use 'and' and 'or' instead of '&&' and '||', which is especially nice for '&&' as you would have to use '& amp ;& amp ;' (without spaces) if typed into source of the jspx directly.
Pedja
Edited by: Pedja on 06.09.2010. 11.03

Similar Messages

  • How many users accept airport express?

    Hello, all:
    I own an Airport Express 1st generation and I was looking for an answer about how many wireless users can I have connected to it.
    I was checking that second generation can allow 50 users at WIFI, so, anybody knows how many users support the 1st generation?
    Thanks in advance.

    the answer is 10 wireless clients

  • How to do substring with Expression Builder

    Hi,
    I only execute a substring with Expression Builder, this is possible?
    thanx

    Hi!
    With Expression Builder it is not possible as the EL by default does not have such function.
    But you may:
    1. Use JSTL 1.2 functions like "${fn:trim(' MYSTRING '}"
    2. Write your own function and TagLib - see on net
    Also, you may write a custom Map implementation and expose it in some backing bean to make it available in EL without need to create TagLib (as #{mybean.trim[' some string  ']"). But this way is much complex if you need more than singe parameter for your function...
    Regards,
    PaKo

  • How to use selectBooleanCheckbox in expression builder

    Hi
    I have a selectBooleanCheckbox on my UI as below.
    <af:selectBooleanCheckbox id="sbtFlg"
          label="Enable/Disable SUBMIT button"
           binding="#{pageFlowScope.invoiceTableManagedBean.submitBtnActive}"/>I am setting the value of this component in the listener 'SubmitButtonListener' as below
        RichSelectBooleanCheckbox submitFlag = (RichSelectBooleanCheckbox)context.getViewRoot().findComponent("sbtFlg");
        String id = actionEvent.getComponent().getId();
        log.info("+++++ Component id ++++ "+ id);
    //Here is some logic to get the     allRows object
        if( allRows.length == 0) {
            log.info(">> length ==0");
            //submitFlag.setSelected(false);
            submitFlag.setValue("false");
        }else{
         //submitFlag.setSelected(true);
          submitFlag.setValue("true");
        }Now I want to use the boolean value of the checkbox on disable property of commandButton.
    <af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"
                                                   text="#{wf:getResourceValue('SUBMIT', 'bindings.customActions')}"
                                                   disabled="#{!pageFlowScope.attachmentListManagedBean.areAllRequiredDocumentsAttached or !pageFlowScope.invoiceTableManagedBean.submitBtnActive}"
                                                   action="#{invokeActionBean.invokeOperation}"
                                                   partialSubmit="false"
                                                   immediate="true"
                                                   rendered="#{lOVManagedBean.initiator}"
                                                   visible="#{wf:isCustomActionAvailable('SUBMIT', 'bindings.customActions')}"
                                                   id="submitButton">
                            <f:actionListener type="com.bmc.crms.listener.SubmitButtonListener"/>Is this a right way to call this property?
    pageFlowScope.invoiceTableManagedBean.submitBtnActive"
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I tried the following with your suggestion.
    Submit button code
    <af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"
                                                   text="#{wf:getResourceValue('SUBMIT', 'bindings.customActions')}"
                                                   disabled="#{!pageFlowScope.attachmentListManagedBean.areAllRequiredDocumentsAttached or !pageFlowScope.invoiceTableManagedBean.submitBtnActive}"
                                                   action="#{invokeActionBean.invokeOperation}"
                                                   partialSubmit="false"
                                                   immediate="true"
                                                   rendered="#{lOVManagedBean.initiator}"
                                                   visible="#{wf:isCustomActionAvailable('SUBMIT', 'bindings.customActions')}"
                                                   id="submitButton">
                            <!-- <f:actionListener type="com.bmc.crms.listener.SubmitButtonListener"/> -->
                            <f:actionListener type="com.bmc.crms.listener.RoleChangeListener"/>Button on which I want to call he listener wherein I am setting the boolean value
    <af:commandButton text="Add Invoice" id="addInvoiceButton"
                                            rendered="#{lOVManagedBean.initiator}"
                                            action="#{pageFlowScope.invoiceTableManagedBean.addInvoice}"
                                            actionListener="#{bindings.execute.execute}">
                            <f:actionListener type="com.bmc.crms.listener.SubmitButtonListener"/>
                             <f:actionListener type="com.bmc.crms.listener.MRFlagListener"/>   
                         </af:commandButton>Checkbox component
    <af:selectBooleanCheckbox id="sbtFlg"
                                                    label="Enable/Disable SUBMIT button"
                                                    value="#{pageFlowScope.invoiceTableManagedBean.submitBtnActive}"/>  Listner
      public void processAction(ActionEvent actionEvent){
        log.info("+++++ SubmitButtonListener.processAction() start++++ ");
        Map pageFlowScope = RequestContext.getCurrentInstance().getPageFlowScope();
        InvoiceTableManagedBean invoiceTblBean = (InvoiceTableManagedBean)pageFlowScope.get("invoiceTableManagedBean");
        // or InvoiceTableManagedBean invoiceTblBean = (InvoiceTableManagedBean)pageFlowScope.get("InvoiceTableManagedBean");
        invoiceTblBean.setSubmitBtnActive(true);
        FacesContext facesCtx = FacesContext.getCurrentInstance();
        UIComponent uiComponent = facesCtx.getViewRoot().findComponent("submitButton");
        AdfFacesContext.getCurrentInstance().addPartialTarget(uiComponent);
        log.info("+++++ SubmitButtonListener.processAction() end ++++ ");
    }However, on execution I get the following errorfor the SubmitButtonListner.
    ]] Root cause of ServletException.
    javax.servlet.jsp.JspException: com.bmc.crms.listener.SubmitButtonListener
         at com.sun.faces.taglib.jsf_core.ActionListenerTag.doStartTag(ActionListenerTag.java:179)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:43)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)Am I doing anything wrong here?

  • How to use SQL OVER and PARTITION BY in OBIEE Expression Builder??

    Hi there,
    I want to create a new logical coulmn with the following SQL query.
    SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE )/SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C )
    How to use the OVER and PARTITION BY in OBIEE Expression Builder??
    Thanks in Advance

    hi bipin,
    We cant use by in Expression builder(rpd) .But use the same formula like this in Fx of answers
    SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE )/SUM(Inventory Detail.Qty) >OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C )SUM(Inventory Detail.Qty by Detail,ITEM,Mydate)/SUM(qty by detail,item)
    First check the numerator whether it was giving correct results or not then go with denominator
    compare the results with sql that u have
    Let me know if that does work
    thanks,
    saichand.v
    Edited by: Saichand Varanasi on Jul 27, 2010 9:27 PM
    Edited by: Saichand Varanasi on Jul 27, 2010 9:28 PM

  • How to use TRUNC function with dates in Expression Builder in OBIEE.

    Hi There,
    How to use TRUNC function with dates in Expression Builder in OBIEE.
    TRUNC (SYSDATE, 'MM') returns '07/01/2010' where sysdate is '07/15/2010' in SQL. I need to use the same thing in expression builder in BMM layer logical column.
    Thanks in advance

    use this instead:
    TIMESTAMPADD(SQL_TSI_DAY, ( DAYOFMONTH(CURRENT_DATE) * -1) + 1, CURRENT_DATE)

  • How to customize the Application Express Homepage

    Would like to know how to customize the Application Express Home Page that user goes to when they login to APEX. Specifically, I'd like to present a SQL Workshop only Home Page by disabling the "Application Builder" and "Utilities" icons/tabs. So the idea is to have another class of user "SQL Developer" that has access to the SQL Workshop only functionality. Any suggestions on how to do this is appreciated. Thanks.

    Hi John,
    Thanks for the reply. That's unfortunate. Do you have any suggestions on how I might be able to mimic this functionality? Maybe develop another app that has only SQLWorkshop capabilities and redirect users to that app after login? Any idea on if this capability might be available in the future? Thanks.
    Will

  • Expression Builder: convert string to number

    Hi all,
    I'm having trouble building a field validation rule for bank account numbers.
    The numbers have 12 positions, so I cannot use a string or text number.
    The validation rule to be implemented is that the last two digits are calculated based on the first 10 (modulo 97).
    However, when I use the Mid function to pick the first characters, I am unable to do any calculations on it. Apparently, the string to number conversion doesn't work (it should work when I read the manual, as it says that when using an operator between two data types, the second type is converted to the first (cf. example of 1234+abcd (should result in 1234 as to the manual))). So I tried '1*Mid(...)' or '0+Mid(...)'. Syntactically the expression builder accepts it and I can save it. BUT when I change the particular value on the screen, it gives me an SSO error (not the Field Validation error message I entered).
    Why isn't there simply a function ToNumber (like ToChar)????? How could I workaround this?
    Any input very welcome!
    Frederik

    Apparently, I was a bit confused when typing the first sentence, it should be:
    The numbers have 12 positions, so I cannot use an integer or number data type, but have to use String.

  • How far will the extreme reach and how many users can be on there at the same time?

    How far will the airport extreme reach and how many users can be on there at the same time?

    Last question first, since that is the easy one......approximately 50 (fifty) users for wireless depending on how active each user might be.
    The first question is much more difficult, as distance is not really the issue with wireless.....obstructions are the issue.
    A wireless signal can easily travel 300 feet or more with no obstructions in the signal path.
    But, a typical wall of sheetrock or wallboard in a home will absorb....on average....15-20% of the wireless signal. Brick or adobe will obviously absorb much more. A ceiling....because it is thicker....will absorb about 25-35% of the signal.
    So, if the wireless signal must pass through several walls and a ceiling, there won't be much, if any, of the signal left....even though the distance that the signal travels is not great...for example, 20-25 feet.
    Other wireless networks around you at the neighbors can also affect the relative strength of the wireless signal.
    The bottom line....locate the AirPort Extreme where wireless devices will receive a signal with the least amount of obstructions in the signal path. Your actual performance cannot be predicted in advance. You will not know how well the AirPort Extreme works for you until you try it out in your home.
    If you find that the signal does not reach as far as needed,  you will need to add additional "extenders", like an AirPort Express to provide more signal coverage.

  • After Deploye application  How can user take data back up.

    Hi,
    i have created an application .Which is run in offline Mode in a machine .User enter data through this Application Form .Data Enter Though this Form in to our application data base table .
    Here User want to take data back up in evening which is enter by User in a day .
    How Can User Take Full Day Data Back up.Whicj are enter by User.
    How Can I do This .
    i have install XE in my machine .When i click On Start-->All Program -->Oracle database 10g Express Edition -->Backup Database
    What is the use of Backup Database .
    Thanks & Regards
    Manoj Kaushik
    Edited by: Manoj Kaushik on Mar 17, 2010 10:40 PM

    Hi,
    i have created an application .Which is run in offline Mode in a machine .User enter data through this Application Form .Data Enter Though this Form in to our application data base table .
    Here User want to take data back up in evening which is enter by User in a day .
    How Can User Take Full Day Data Back up.Whicj are enter by User.
    How Can I do This .
    i have install XE in my machine .When i click On Start-->All Program -->Oracle database 10g Express Edition -->Backup Database
    What is the use of Backup Database .
    Thanks & Regards
    Manoj Kaushik

  • Using Decode in Expression Builder...

    Hi everybody,
    I want to use the DECODE function of SQL in an Expression Builder....
    Of course this function does not exist in any of the transformation categories(arithmetic,character,e.t.c.) in the expression builder.
    I have read in the OWB on-line help that in the Expression Builder there should be an 'Others' drop - down list in order to select any of the available SQL clauses - one of them is 'decode'...
    The problem is that this drop - down list in the Expression Builder is disabled.....
    How can I use this function anyway..????
    Instead of using ... in the Expression Builder...
    decode(<column_name>,'1','val_one','2','val_two') what can I use to do the same....???
    As regards the problem that the drop-down list is disabled , what may be the cause..???
    I use Microsoft XP machine , Oracle 10g (v.10.2) and OWB v.10.1.0.4
    The documentation says....
    "This allows you to deploy the DECODE functionality in all operating modes (setbased, rowbased, etc.) and transparently across Oracle database releases (8.1, 9.0 and 9.2)."
    The above means that the cause is the incompatibility..????
    Thanks , a lot
    Simon

    I am using OWB 9.2.0.8 and I can't reproduce the problem you are having with 10.1, but did you try just typing it into the expression?
    Or, better yet, use CASE. The syntax is easier to read. I think OWB translates DECODEs to CASE when the SQL is generated.
    (Case <column_name>
       When '1' Then 'val_one'
       When '2' Then 'val_two'
    End)

  • More than one user "using an expression" in a BPM Task

    Hello,
    I want to send a notification step for multiple users. I see two options
    1. Choose one or more UME principals.
    2. Use an expression.
    However I have to send the notification for more than one user using an expression. I'm using this expression, 
    getPrincipal(DO_xyz)
    but this only works for one user. I need something like this
    getPrincipal(DO_xyz);  getPrincipal(DO_xyz2);  getPrincipal(DO_xyz3)
    But this is not possible. I can't use a group because all this information is dynamic and it's born within the process.
    Please, How can I solve this?
    Best Regards
    SU

    Hello Abhijeet,
    I've seen that I can use the getPrincipals adding in the XSD an string with 1..* cardinality. However I don't know how to map an attribute from the UITask to that new attribute in the XSD because in Web Dynpro I can't create an string with cardinality 1..*
    I've tried to create a node (1..*) with a String inside in the UI but I couldn't map it to the process context, it shows me an error that I cannot map a node to a String.
    Thanks
    Regards
    SU

  • Compare only DATE portion of a datetime field in Expression builder

    Hi! All,
    This may be a simple question, but I couldn't find the answer. I have a query where I want to say :
    Expression exp = exp1.get("startDateTime").equal(pDate);
    here pDate is a java.util.Date class with a time stamp.
    I wish to basically compare just the DATE portion of the value stored in the data base with only the DATE portion of "pDate" and ignore the time component.
    How do I do this in expression builder?
    By the way we are on Toplink 9.0.4.5
    Thanks

    There are a couple of ways to accomplish this. You could use between(beginningOfDay,endOfDay) where beginning of day is 12:00:00am on the date specified in pDate and end of day is 11:59:59pm on pDate. Or you could consider using a combination of dateName(), datePart(), and/or truncateDate() expressions to compare at the day, month, year level. I am not sure which would give you better performance, so you might need to do some testing to verify.
    In the first case, create beginningOfDay and endOfDay based upon the date housed in pDate. Then:
    Expression selectionCriteria = exp1.get("startDateTime").between(beginningOfDay,endOfDay);
    In the second case, there would be a little more code to write:
    Expression startDateTimeExp = exp1.get("startDateTime");
    Expression dayExp = startDateTimeExp.datePart("day");
    Expression monthExp = startDateTimeExp.datePart("month");
    Expression yearExp = startDateTimeExp.datePart("year");
    int desiredDay = get day of month from pDate;
    int desiredMonth = get month of year from pDate;
    int desiredYear = get year from pDate;
    Expression selectionCriteria = dayExp.equal(desiredDay).and(monthExp.equal(desiredMonth)).and(yearExp.equal(desiredYear));
    Check out the TopLink API docs on the Expression class for more details on what these Expression building methods do : http://download-west.oracle.com/docs/cd/B10464_05/web.904/b10491/index.html
    Hope that helps,
    Doug

  • How to handle the "Must set build.archive.dir"?

    Hi friends,
    When i run my application i see the given bug:
    C:\Users\user\Desktop\ticketing\nbproject\build-impl.xml:91: Must set build.archive.dir
    i will appreciate it if anybody help me
    Thanks
    Reza_mp

    Right. But the parameter screen is driven by the viewer. Unless you create your own parameter screen and pass the parameters to the report via code.
    Another thing I am not sure about:
    "Then by code I want to read all the employees id from the report and send email to them with specified pages of the report. (1 page per employee)"
    How do you plan on reading the employee ID from the report? I am not aware of any API that will read a value in a report so that you can then decide what page to send to whom.
    I think you're approaching this kinda backwards. A question to ask is; can you do what you are trying to do in code in the CR designer? If not, using APIs will not work either. I suspect your approach should be a report that uses an employee filter. Run the report for employee x, get the report populated with the data for that employee and email it. Repeat for employee x1, employee x2, etc.
    - Ludek

  • How to create Import format for building  version Hirerarchy and Node

    Hi
    i Want to know  how to create  Import format for building version  Hirerarchy and Nodes.Can anyone  show me with example  or format  for version  Hierarchy  with few nodes for the hierarchy
    i Want to Build   this   1. Version1 (Version)
                                     2.Account (Hirerarchy)
                                     3. Balancesheet (Limb)
                                     4. Assets (Limb)
                                     5. Cash (Leaf)
    Thanks,

    Please follow the DRM User Guide,
    http://docs.oracle.com/cd/E17236_01/epm.1112/drm_user.pdf
    Below is my preferred approach, by selecting only relation and Hierarchy sections,
    The relation section contains the Node Name and Parent Name ( you can include any other properties, but as a best practice keep the Parent Node as the last column).
    The Hierarchy ( Hier ) section contains the Hierarchy Name, Top Node and Hierarchy description
    Follow the Import steps and provide a Name for the version.
    ++++++++++++++++++++++++++++++++
    [relation]
    AC_BalanceSheet AC_Account
    AC_Asset AC_Account
    AC_Cash AC_Account
    [hier]
    Account AC_Account AccountHier
    ++++++++++++++++++++++
    Note: Please delete all the special characters (TAB) created at the end of  [relation] and [hier] sections while you copy the content from an Excel sheet to a Notepad.

Maybe you are looking for

  • Creative Livecam Vista IM - software problem (WebCam Center)

    Hello, I've just had my camera installed with all the software included. There's one problem - every time I open the WebCam Center, the program tries to install something called "Photo Gallery". However, it's impossible to install that, because some

  • I can't get my creative suite 4 to install on new hard drive

    I purchased Adobe Creative Suite 4 several years ago and installed it on my laptop.  I am still using the same laptop however I recently had them install a new harddrive.  I didn't think about losing my programs they said they'd just put my stuff on

  • Dbus/Hal automount not working in KDE

    Hi I have set portmap dbus hal in rc.conf. In Gnome automount works great but in KDE automount does not work and I don't know why. Can someone please help? All I want to have is when I insert cd,dvd,usbstick to have them automount.

  • How to test if there is an image managed by scene7

    I have a requirement which basically states - don't show products if there are no images - All our images are located and managed by scene 7. The site makes use of the ProductLookup droplet. So I am open to suggestions at this point -

  • FIM Reporting initial sync running long time

    We have installed FIM Reporting last month , afterwards our FIM reporting initial sync powershell script is running from last month to Sync FIM data with SCSM server , but still only half data is synced with SCSM server , we have 4 server 1. Server1