Changing value of a transient attribute  programmatically not working.

Hi ,
I am using Jdeveloper 11.1.2.2.0
I have a ViewObject with following transient attribute
CheckBox       Boolean
ValidTillDate  Date
I want to perform following operation
1. If user selects CheckBox it will give ValidTillDate a future date.and if user uncheck CheckBox then ValidTillDate should become null.
2. If user changes ValidTillDate to current date then both CheckBox should become false and ValidTillDate should become null.
I have implemented it through ValueChangeListener my first requirement is working fine , in the second one though when the user gives current date to ValidTillDate then CheckBox gets unselected but the ValidTillDate is not getting null value.
I have used the following code:
public void ValidTillDateValueChangeListener(ValueChangeEvent valueChangeEvent){
  BindingContext bctx = BindingContext.getCurrent();
  DCBindingContainer binding = (DCBindingContainer)bctx.getCurrentBindingsEntry();
  DCIteratorBinding loationVO1Iterator = (DCIteratorBinding)binding.get("MyVO");
  if(Date.getCurrentDate().compareTo((DATE) valueChangeEvent.getNewValue())>=0){
  loationVO1Iterator.getCurrentRow().setAttribute("CheckBox", false);
  loationVO1Iterator.getCurrentRow().setAttribute("ValidTillDate", null);
}I think its because ValueChangeListener is called before the value is changed , so my programmatic changes are getting overwritten by the value userSelects.
What should I do?
Thanks,
Puneet
Edited by: Puneet on Jul 26, 2012 1:26 PM

Questionably this sort of business logic could/should be implemented in ADF BC rather than the view layer.
CM.

Similar Messages

  • Search on Transient attribute LOV not working properly.

    Hi All,
    I made LOV on a transient attribute of VO. While drag & drop it onto the page I selected the option: List of values-->ADF LOV Input.
    In LOV search form there are 2 fields : org code & org name. Whenever we provide either/both of the search parameters. It works fine but as & when we click on SEARCH button without providing any search parameters(i.e. org code & org name both are blank) it makes subsequent search of LOV with either/both of the search parameters not working.
    Please suggest any solution for the same.
    Thanks & Regards,
    Manu
    Edited by: rechin on May 16, 2012 3:16 AM

    I selected the VO attribute(while VO is opened) on which I want to create LOV. Added list of values for it with following details:
    Configuration tab :
    List Data Source - same VO as VA
    List Attribute - org code
    UI hints :
    Default list type : Input text with list of values
    Display attributes : org code, org name
    List search : All querable attributes
    let me know if you need more details.
    Edited by: rechin on May 16, 2012 3:27 AM

  • When I choose to open a new tab from a website, such as facebook, it always opens it in a new window. How do I change this to just opening a new tab. I tried changing the tab settings but it did not work

    When I choose to open a new tab from a website, such as facebook, it always opens it in a new window. How do I change this to just opening a new tab. I tried changing the tab settings but it did not work. I did not have the problem until I started using firefox 4.

    It is probably a JavaScript link.
    You can probably force it where you want it with a keyboard shortcut
    either "Ctrl+click" or "Ctrl+Shift+click". see
    * Firefox and other Browser Keyboard Shortcuts (Comparison Table)<br>http://dmcritchie.mvps.org/firefox/keyboard.htm
    ''Did that work?''
    Some styles that provide a warning as to the type of link:
    * No Follow links, mouseover id of other links - userstyles.org<br>http://userstyles.org/styles/10987
    * Change cursor on some links with JS. - userstyles.org<br>http://userstyles.org/styles/233
    * Link Warning - Themes and Skins for Mozilla - userstyles.org<br>http://userstyles.org/styles/1301
    * Link warning (cursor hover) - various filetypes - userstyles.org<br>http://userstyles.org/styles/2538
    * Red hand cursor for .pdf links - userstyles.org<br>http://userstyles.org/styles/553

  • Change password on the first use - does not work

    Change password on the first use - does not work.
    Created a user and specified 'Change password on the first use' - when user logs in - the 'Change password' window does not pop- up.
    Please advise.

    (APEX 4.0.2) I am running into this same issue - if you don't set the password expiration and locking to 'Yes', the user gets into the app without being asked to change the pw.
    When you do set expiration and locking - after the user logs on with their temporary password, it does take them to the change password page (4155:50) but the username is blank. Because the username didn't get to the page the old password will never match and you get the "Invalid password" message.
    What am I missing? Anyone successful doing this?
    Simple application, default authentication, no javascript, HTTP_SERVER, no ssl.
    Thanks,
    Steve

  • HT2534 But now , the hole process of sign uping is changed , please remove the wrong guide its not working , and why apple not let to access the free app .!!!

    But now , the hole process of sign uping is changed , please remove the wrong guide its not working , and why apple not let to access the free app .!!!

    Try going to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • The Restriction option to NOT ALLOW CHANGES to Mobile or Cellular data does not work why is this ?

    The Restriction option to NOT ALLOW CHANGES to Mobile or Cellular data does not work why is this ?

    Hi there,
    You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/ht1430
    Additionally, you may want to try completely disabling and re-enabling restrictions.
    -Griff W.

  • Can I exchange for a new laptop? Since December it has been having hardware issues and it has already needed to get parts changed twice already. My laptop is not working properly again. I feel like I have unfortunately gotten a lemon laptop.

    Can I exchange for a new laptop? Since December it has been having hardware issues and it has already needed to get parts changed twice already. My laptop is not working properly again. I feel like I have unfortunately gotten a lemon laptop.

    Apple will repair or replace at its discretions, parts found to be defective in materials or workmanship.
    You will have to discuss whether your history warrants a complete replacement with the folks at the Genius Bar.
    I do not speak for Apple, but it sounds to me like you have been unlucky, but not unlucky enough (or have spent so much time with your MacBook in the shop) to warrant a complete replacement.
    You have not provided any details of what the faults were or what was replaced. If they replaced the motherboard, you already got a new computer -- because everything except the drive and the display is on that board.

  • Since 2012 I have Photoshop Elements always worked without any problem, however now the language is suddenly German how can this be changed, removed the program and re-installed, not working. Program is downloaded and updated via the apple app store?

    Since 2012 I have Photoshop Elements always worked without any problem, however now the language is suddenly German how can this be changed, removed the program and re-installed, not working. Program is downloaded and updated via the apple app store?

    I've done some research on the SQLite database. Whenever Aperture hangs up (like during auto-stack or opening the filter hud) there are thousands of SQLite queries happening. These SQLite queries cause massive file I/O because the database is stored on the disk as 1kb pages. However, the OS is caching the database file; mine's only 12MB. I'm trying to track down some performance numbers for SQLite on osx but having trouble.
    It's starting to look like most of the speed problems are in the libraries that Aperture uses instead of the actual Aperture code. Of course, that doesn't completely let the developers off the hook since they choose to use them in the first place.
    Oh, and if anyone is curious, the database is completely open to queries using the command line sqlite3 tool. Here's the language reference http://www.sqlite.org/lang.html
    Hmm, just found this. Looks like someone else has been playing around in the db http://www.majid.info/mylos/stories/2005/12/01/apertureInternals.html
    Dual 1.8 G5   Mac OS X (10.4.3)   1GB RAM, Sony Artisan Monitor, Sony HC-1 HD Camera

  • How to set default value to a node attribute programmatically?

    Hi Experts
             How to set a default value to a context node attribute programmatically? Any code snippet will be really helpfull. I am talking about the attribute inside a node in context.
    Note: This is for webdynpro for ABAP
    Thanks
    Gopal

    Hi Gopal,
    Assume you have the node called TEST and attribute called NAME then to set the value of NAME, you can use the following code say in WDDOINIT method or any other method.
    data:
        Node_Test                           type ref to If_Wd_Context_Node,
        Elem_Test                           type ref to If_Wd_Context_Element,
        Stru_Test                           type If_Componentcontroller=>Element_Test ,
        Item_NAME                           like Stru_Test-NAME.
    navigate from <CONTEXT> to <TEST> via lead selection
      Node_Test = wd_Context->get_Child_Node( Name = wd_This->wdctx_Test ).
    get element via lead selection
      Elem_Test = Node_Test->get_Element(  ).
    set single attribute
      Elem_Test->set_Attribute(
        exporting
          Name =  `NAME`
          Value = 'Value').
    Note: You can use Weddynpro code wizard to get this code. (Ctrl+F7)
    Regards,
    Srini.

  • Visible attribute does not work for af:showDetailItem using EL

    I cannot get the visible attribute to work using EL and ppr.
    Here is a simple test. I have a jspx with a button (cb1) that toggles a boolean (tab1visible) in a Backing Bean. The af:panelTabbed and af:showDetailItem have partialTriggers="cb1".
    The af:showDetailItem has visible="#{TabTestBk.tab1visible}" and the EL is also set in the title so that I can see how it's set.
    When I press the button (cb1) the visibility of the tab does not change but the title does.
    Any help would be greatly appreciated!
    Here is the code:
    ------------------------- JSPX -----------------------------------------------------
    <?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>
    <af:form>
    <af:spacer height="10"/>
    <af:commandButton text="Toggle Tab 1 - visible = #{TabTestBk.tab1visible}" binding="#{TabTestBk.cb1}"
    id="cb1"
    actionListener="#{TabTestBk.toggleTab1AL}"/>
    <af:spacer height="20"/>
    <af:panelTabbed id="detailNavPane" partialTriggers="cb1">
         <af:showDetailItem id="tab1" visible="#{TabTestBk.tab1visible}" text="Tab 1 visible = #{TabTestBk.tab1visible}" partialTriggers="cb1">
                                  <af:outputText value="Tab 1 Content"/>
    </af:showDetailItem>
    <af:showDetailItem id="tab2" text="Tab 2">
                                  <af:outputText value="Tab 2 Content"/>
    </af:showDetailItem>
    <af:showDetailItem id="tab3" text="Tab 3">
                                  <af:outputText value="Tab 3 Content"/>
    </af:showDetailItem>
    </af:panelTabbed>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    ------------------------- BACKING BEAN -----------------------------------------------------
    package com.riscs.ui.backing.jsp.claim;
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    public class TabTestBk {
    private RichCommandButton cb1;
    private boolean tab1visible = true;
         public void toggleTab1AL(ActionEvent event) {
              setTab1visible(!tab1visible);
         public void setTab1visible(boolean tab1visible) {
              this.tab1visible = tab1visible;
         public boolean isTab1visible() {
              return tab1visible;
    public void setCb1(RichCommandButton cb1) {
    this.cb1 = cb1;
    public RichCommandButton getCb1() {
    return cb1;
    Thanks!
    Matt
    Edited by: Matt Cannon IBI on Apr 3, 2010 2:45 PM
    Edited by: Matt Cannon IBI on Apr 5, 2010 12:20 AM

    Hi Frank,
    Thanks for the reply! When providing the simple example I left partialSubmit="true" off by mistake... I put it on and still does not work...
    Thanks,
    Matt

  • Setting default value of Tabular form item is not working

    Hi,
    I have a tabular form and in that I want to set the default value of the username to app_user. So in the default value of the item, I wrote v('app_user') and type Pl/SQL, but that does not seem to work. I tried the static application & page item with :app_user. That threw an error.
    Also, I wanted to populate the date field in one column. Doesn't sysdate work?
    Thanks,
    Sun

    Bob, I did read that. MY problem is that it is still not working. I am wondering if this is because the table is in execute query mode maybe? I am wondering if the default value needs to be added after the tabular data is populated through some other way? Maybe the default value would work only for static non database items?
    ThanksYou're right, I just tested that using the default setup on the column in report attributes and it did not work.
    I think you'll have to update the columns with the default value post query but I'm not sure exactly what you need to do.
    I have a form that has a weight entry column. I tried changing the query to set the default value in the query
    from..
    Select Weight
    From...
    to
    Select 999.99 Weight
    From...That appeared to work, but the 999.99 value was not populated back to the Database since it wasn't entered through the form UI. APEX maintains the entered values internally so it can do its checksumm processing and update modified rows back to the DB. I'm thinking you could update what needs to be updated using Javascript in a Dynamic Action, but I'm afraid I don't know how to do that.
    Excuse my incorrect assumption when first replying.

  • Marketing Attribute Mass not working with CRM_MKTBP_BPS_OF_TG_ASSIGN_ATT

    Hi,
    I am trying to assign a marketing attribute to target groups I have created and saved in Web UI but the assignment is not working in SE38.
    => The program CRM_MKTBP_BPS_OF_TG_ASSIGN_ATT runs but displays "the charachteristic has been evaluated for 0 business partner(s)".
    Knowing that
    - the target group was saved un Web UI
    - the target group was selected in the program CRM_MKTBP_BPS_OF_TG_ASSIGN_ATT
    - the old and new values set as input
    Any ideas of what might have gone wrong?
    Thanks in advance,
    Eli

    Hi,
    check notes:
    Note 1585130 - ATT: Problem with report:CRM_MKTBP_BPS_OF_TG_ASSIGN_ATT
    Note 1561548 - SEG: problem with report CRM_MKTBP_BPS_OF_TG_ASSIGN_ATT
    Denis.

  • HEELLLP, changing household -keyboard buttons on the sides not working

    Oh, please help me,
    I've completely changed my Blackberry 8310 household (by myself) , and after trying to turn it of and sign Log in password, I've found out that all digits (buttons) on the left (Q, A; Alt and right P,del ) not working!!
    nothing happens when I press, what could have gone wrong?
    Something with contacts? Did i pulled Frond cover to hard when I tryed to replace old one?
    Please, some help?
    thnx

    From what I understand it seems you replaced the front cover of the phone(?), if so it is possible that you may have pushed/pulled to hard and accidentally disconnected something internally. If that is the case you either have to get it fixed by sending it in or get a new phone(?), unless you can live without the use of those keys.
    C41vin Tirr311
    O.O -_-
    -Look through the posts before posting a new question.
    -Kudo people who posted something you found helpful.

  • HT202157 I got a faulty remote with refurbished Apple TV I recently purchased. The remote is not working at all. I changed the batteries too, but it is not working at all. I am so disappointed with the quality of Apple.

    I recently purchased refurbished Apple TV to save few bucks, but I spend more than what I saved on refurbished one. I would suggest every one not to buy any refurbished product from Apple online store. The remote which come along with the unit is not working at all. I changed couple of batteries as I thought initially that the batteries may not be working but no success at all. I saved $14 on refurbished unit, but in total I have spend $10 to fix the issue but still it hasn't been fixed yet. I have taken an appointment for yesterday at Toronto Eaton center Apple store and again it will cost me atleast $25 again ($15 for parking and $10 for gas as I have to drive from Hamilton).
    Does any one else have the same issue like this?

    Amol Soni wrote:
    As I said, I tried everything what the manual says, but hard luck. I have taken an appointment for today, lets see what happens.
    Also there is no activity on unit when I use the remote. The unit is stuck on the first page itself where we have to choose the language. The unit seems to be fine to me but the real problem is remote does'nt have activity. The IR is not responding while pressing any of the button.
    Good luck with your appointment.
    Not much consolation but even new products can have issues and might need a trip to a store to return/replace.
    The reason i asked about the LED on the AppleTV is that occasionally it thinks it's paired with a specific remote and ignores others - the unpair keypress I described is quick and free.
    AC

  • Attribute mapping not working with complex searches

    Hi all,
    We are using "attribute mapping" for some attributes and that works fine as far as we don't make a complex search. We are doing the attribute mapping at the Directory proxy 6.3 so we map businessSector to businessUnit. Everything work fine if we just put businessSector in the search, but if we add something else to the search filter, it will not work.
    So, if we use filter businessSector=XXXXXXX, it will work and make all the mapping, but if we use something like "(&(pocketSizeOffice=Yes)(businessSector=XXXXXXX))", it will not work.
    We have look at the logs and we see the mapping happening in the first case, but not in the second one.
    Have somebody seem this before or is facing this problem?
    Thanks,
    Federico

    Hi Federico,
    I was not able to reproduce the problem with DPS 6.3 in my labs... so the conditions to reproduce it may be more tricky than described. Anyway, this is not a known problem.
    Feel free to contact Sun support to have a fix delivered to you.
    Thanks
    -Sylvain

Maybe you are looking for

  • Issues with IOS 8.0.2 on iPhone 6

    Hello  Users and Apple What is going on with IOS 8 and IOS 8.0.2 my iPhone 6 with the latest update my device while I am using apps my iphone does not respond also battery dies quicker. I aready follow troubleshooting articles from Apple Support but

  • SQL problem with JSP

    In sql statements with JSP. Heres the deal: Access database: Tablename: EVENT FieldName: event_id DataType: Number I want to compare the event_id to an integer variable called "var" in a WHERE clause in an SQL statement through a JSP. String query =

  • How to load firmware maualy into 7960 Phone

    All, First of all , forgive my silly question. Is there any way to load the firmware unzipped file(cmterm-7940-7960-sccp.8-0-8.zip) into a 7960 IP Phone without having to access to a CCM or TFTP server? An alternative Cisco CallManager is not availab

  • Posting Journal Entry in v4.2SP4: Strange Issue. Anyone?

    Behaviour: The post button doesn't work. You can click it but it does nothing When opening the journal manager and selecting the journal id and then posting, it says: "You cannot post/unpost until finishing journal post" After this, you cannot post a

  • Importing MPEG in Adobe Premiere

    Can any one tell me the reson why the Adobe Premiere doesn't support MPEG files? (File format not supported) Any codec missing or any other additional supporting software required or something else. Thx in advance........