Updatable property of Calculated Field in ViewObject does not work

Hello,
I have set the Updatable property of some ViewObject attributes to "while new".
In the page those attributes are shown as <af:inputListOfValues> components.
When creating a new row, those components properly appear as enabled and let me insert any values, since the row is new.
However, after a following commit, once the table in the page is refreshed, I still see some components enabled on the row I committed before. This only happens with attributes based on calculated fields, not with those based on real table fields, as if the "while new" property specified on the ViewObject calculated fields was ignored.
Do you know why? Is there a solution or work around?
Below are the ViewObject XML section and the af:component definition based on the attribute.
<ViewAttribute
Name="Cod"
IsPersistent="false"
PrecisionRule="true"
Precision="15"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="COD"
Expression="COD"
SQLType="VARCHAR"
IsUpdateable="while_insert"
LOVName="LOV_Cod">
<DesignTime>
<Attr Name="_DisplaySize" Value="15"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="input_text_lov"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<af:inputListOfValues id="ilov1"
popupTitle="Search and Select: #{bindings.BLOCK.hints.Cod.label}"
value="#{row.bindings.Cod.inputValue}"
model="#{row.bindings.Cod.listOfValuesModel}"
required="#{bindings.BLOCK.hints.Cod.mandatory}"
columns="#{bindings.BLOCK.hints.Cod.displayWidth}"
shortDesc="#{bindings.BLOCK.hints.Cod.tooltip}"
autoSubmit="true">
<f:validator binding="#{row.bindings.Cod.validator}"/>
</af:inputListOfValues>

Helga,
The question is what does this "require" flag do? We read the book of life (cl_htmlb_inputfield), and see that this flag only controls in the first instance a little red * that is rendered next to the input field. This is a pure visualization for the user of the page.
In addition you can ask that a check be done in the browser. This you can do with:
  <htmlb:inputField  id = "wander"
                     value = "E"
                     required = "TRUE"
                     doValidate="true" />
However, I would not serious recommend this. Now even if you user presses a cancel button, or link, or breadcrumb, or..., the check will still complain.
What we currectly do (and recommend), is to set the required flag on the <htmlb:<b>label</b>/> tag. And then do the actual checking on the server (must be done in anycase). If no value, or not correct, then also set the "invalid" flag, render out error message and redo page.
++bcm

Similar Messages

  • When I attempt to updates apps on my ipad my password does not work. I tried updating them one at a time and it still doesn't work. I've reset my password and I can use the new password and update apps on my PC but not on my ipad. Why?

    When I attempt to update apps on my ipad my password does not work, even when I attempt to update each app separately. When I change the password it works on my PC but not on my ipad.  Why?

    Try logging out of your account on the iPad by tapping on your id in Settings > Store and then log back in and see if it then works.

  • Hello, I just did an update and now the second Language - Hebrew - does not working. why?

    Hello, I just did an update and now the second Language - Hebrew - does not working. why?

    More information please.
    If you are on adobe cloud, download indesign that support hebrew from CC desktop. Click on the preference gear on the top right then select App language.

  • I updated to Yosemite, now my laptop keyboard does not work in MS Word for Mac. Help!

    I updated to Yosemite, now my laptop keyboard does not work in MS Word for Mac. Help! Any suggestions for fixing this?

    Did you ever get a solution to your problem? Because I am having the same problem. I was actually in the middle of using Word when the keyboard stopped working. But it works in other apps, including in Excel.
    Thing is that my laptop just got back from Apple for repairs and they replaced everything but the display - including the hard drive.
    So not only do I have plenty of hard drive space, but it should be virus and error free otherwise.
    I have only installed a few programs and redownloaded some of my files from places like Dropbox, but otherwise is essentially a new system.
    Oh - and it came with Yosemite, so I did not upgrade to Yosemite and still Word doesn't work.
    I've always had trouble getting Word to play nice with my Mac but that was also with the old, full hard drive.
    This is a fresh install. And since I lost all my files, I only had like 1 old file I have downloaded from email and accessed and was in the process of
    creating a new file when it crashed. I got no error, the keyboard just stopped working (to type). I also cannot even get Word > Preferences to even open,
    so it is completely unresponsive.
    I did a Google search and under the Microsoft communities two suggestions to that person were that there may be multiple copies installed -
    I have only the one - and that one is in the wrong place - again, I only have the one and it installed to the Hard drive (visible in Launchpad / Apps).
    Another suggestion was that there was some problem with the updates. I ran updates and they installed fine. That helper suggested that the user
    may have had different updates that worked for the other Office apps (Excel, PPT etc.) but not Word and that was at least part, if not all of his problem,
    but all my Office apps show the same update version 12.3.6, so that cannot be the issue with me.
    I've not yet tried uninstalling and reinstalling, but as I got no errors on the original install or updates, I'm not sure if that would fix it.
    I've found that Mac just doesn't play nice with some programs at all.
    And even though I have a factory installed version of Yosemite on a new, fresh hard drive, even when I booted up, my iPhoto app (which is empty) crashed. I am not sure if my iPhone or iPad was charging at the time, but I don't think so. iPhoto that I still have not even used has crashed several more times since, most notably when plugging in my iPhone / iPad to charge, namely when I declined to upload photos (by default) to DropBox. That may not be related at all, but thus far seems the only other problem I have encountered until this Word problem.
    I'm on a MacBook Pro, Sept. 2009, running OS X Yosemite 10.10.1 factory installed from Apple repairs running Office: 2008 for Mac (Home and Student edition).
    Please advise if you found a resolution and what it was.
    Thanks

  • HT3180 In the middle of the updating, iTV was unplugged. Now it does not work at all. Do you have experience, what to do now?

    In the middle of the updating, iTV was unplugged. Now it does not work at all. Do you have experience, what to do now?

    Ouch.  I am afriad the news is not good.  If there is no longer a working firmware instance on ATV there is nothing you can do.  That's why it has that message about not unplugging it during the update.
    Nothing happens when you plug it in?

  • Silverlight 5 binding on a property with logic in its setter does not work as expected when debug is attached

    My problem is pretty easy to reproduce.
    I created a project from scratch with a view model.
    As you can see in the setter of "Age" property I have a simple logic.
        public class MainViewModel : INotifyPropertyChanged
                public event PropertyChangedEventHandler PropertyChanged;
                private int age;
                public int Age
                    get
                        return age;
                    set
                        /*Age has to be over 18* - a simple condition in the setter*/
                        age = value;
                        if(age <= 18)
                            age = 18;
                        OnPropertyChanged("Age");
                public MainViewModel(int age)
                    this.Age = age;
                private void OnPropertyChanged(string propertyName)
                    if (this.PropertyChanged != null)
                        PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    In the MainPage.xaml 
         <Grid x:Name="LayoutRoot" Background="White">
                <TextBox 
                    Text="{Binding Path=Age, Mode=TwoWay}" 
                    HorizontalAlignment="Left"
                    Width="100"
                    Height="25"/>
                <TextBlock
                    Text="{Binding Path=Age, Mode=OneWay}"
                    HorizontalAlignment="Right"
                    Width="100"
                    Height="25"/>
            </Grid>
    And MainPage.xaml.cs I simply instantiate the view model and set it as a DataContext.
        public partial class MainPage : UserControl
            private MainViewModel mvm;
            public MainPage()
                InitializeComponent();
                mvm = new MainViewModel(20);
                this.DataContext = mvm;
    I expect that this code will limit set the Age to 18 if the value entered in the TextBox is lower than 18.
    Scenario: Insert into TextBox the value "5" and press tab (for the binding the take effect, TextBox needs to lose the focus)
    Case 1: Debugger is attached =>
    TextBox value will be "5" and TextBlock value will be "18" as expected. - WRONG
    Case 2: Debugger is NOT attached => 
    TextBox value will be "18" and TextBlock value will be "18" - CORRECT
    It seems that when debugger is attached the binding does not work as expected on the object that triggered the update of the property value. This happens only if the property to which we are binding has some logic into the setter or getter.
    Has something changed in SL5 and logic in setters is not allowed anymore?
    Configuration:
    VisualStudio 2010 SP1
    SL 5 Tools 5.1.30214.0
    SL5 sdk 5.0.61118.0
    IE 10
    Thanks!                                       

    Inputting the value and changing it straight away is relatively rare.
    Very few people are now using Silverlight because it's kind of deprecated...
    This is why nobody has reported this.
    I certainly never noticed this problem and I have a number of live Silverlight systems out there.
    Some of which are huge.
    If you want a "fix":
    private void OnPropertyChanged(string propertyName)
    if (this.PropertyChanged != null)
    //PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    Storyboard sb = new Storyboard();
    sb.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 100));
    sb.Completed += delegate
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    sb.Begin();
    The fact this works is interesting because (I think ) it means the textbox can't be updated at the point the propertychanged is raised.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • TS1702 When I update to IOS6 on my 4S Facebook does not work properly, the news feed never updates it only says no new storeys and shows a picture of an antenna. When I reset my phone and go back to IOS5 Facebook works fine. What's up with IOS6 ????

    When I update my iPhone 4S to iOS six Facebook does not work properly the newsfeed doesn't load properly and I can never see what's going on all I see is a picture of an antenna and a little thing underneath it says no new stories when I reset my phone back to iOS 5 then it works just fine and I don't have any issues so there must be something wrong with iOS six that isn't letting Facebook load properly

    No I did not use any unauthorized methods for anything, I simply reset my phone back to factory.
    <Edited By Host>

  • Typeahead function in search field inside Facebook does not work in Firefox 13.0

    Until 3 or 4 days ago, cool typeahead function inside search field inside Facebook always worked in Firefox. Now since 4 days ago, it does not work. But the typeahead function works inside search field inside Facebook on Internet Explorer BUT I prefer to use Firefox and do NOT want to switch to IE!!!
    Is there anything I can do to regain that function?
    Aharon

    Shalom DJST,
    Thank you for reply.
    The behavior did not start with Firefox 13. I actually upgraded to Firefox 13 in hope it would solve the problem that happened in previous older versions. It failed to solve the problem.
    It had been working for 3 years on Firefox until last or 2 weeks ago.
    Regarding search, I mean by "type-ahead" which is that FB's search field offers a drop down list of possible search results as I type. For example, if I type S, it will show list of all people or groups with first letter S. If I type sk, it will show list of anything such as people or groups that starts with Sk, and so on. This is most valuable time saving technique to look for my pals to say hi or groups that I do not belong to but want to read their news or info.
    I think it is Facebook's programming problem but if I ask them, they will point to Firefox's fault by saying that it works for my Internet Explorer but not for Firefox and I do not want to get involved into tug war between Facebook and Mozilla.
    I am just bummed that the valuable time saving search method no longer exists on Firefox.
    Regards,
    Aharon

  • TS2634 After I updated my iPod touch with iOS6, it does not work with my Logitech docking station. Is this a problem with iOS6?

    Does updating the 4th generation iPod touch with iOS6 keep it from working with a Logitech docking station/boombox? Nothing is wrong with the boombox.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    iOS: How to back up your data and set up as a new device
    If it still does not work that means that the update broke compatibility. That happens sometimes. You will have to wait for an update to either iPod's iOS or the dock's firmware.

  • Image Field Scale Proportionally does not work

    Dear all,
    we are using LiveCycle Designer ES 8.2 to program a dynamic form in which we want to use image fields. Users filling the form should choose the picture to display in the image field.
    We set the Image Field to embed data (so it can be saved) and to scale proportionally.
    Testing the form with Adobe Reader 8.1.4 or 9.1, it’s possible to insert a picture, but it does not get scaled and seems to be positioned in the Background of the form.
    Who can help us fixing this problem? If helpful, i can provide a copy of the form draft. Thanks in advance for any help und
    kindest regards
    Tobias

    Yehaaa,
    figured it out by myself. Sometimes it's good to sleep a night over it ...
    The solution is: In the Layout Tab of the image field, no exact measures were defined (extend to fit boxes checked). This way the poor program goes into a circuit.
    Cheerio
    Tobias

  • HT5682 April 22, just installed the latest update to fix the Java problem, it does not work.

    About a week ago I installed a MAC update. I discovered that I was unable to play POGO games. I know that is not up there with all other uses of MAC... let's get back on track here. I have uninstalled and reinstalled, and reset preferences at least 6 times to get JAVA back.
    Some of my new BFF sites:
    Java for OS X 2013-002: How to re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality.
    Why is Java not working on my Mac?|EA Help
    Re: Bridge - Page 2 - Answer HQ   Java POGO
    Java for OS X 2013-003    get applet from Oracle
    My Intel MAC  circa 2009, is  running MAC OS X Lion  10.7.5   Safari 6.0.4
    Today I received another update from Apple stating it would provide the answer to POGO 6 and you can select certain sites that can be accessed.  
    This also was a FAIL!
    I now know the steps, can access TERMINAL without shaking, have learned to use GO to access UTILITIES.  I still end up with JAVA not recognizing that their software has a place in my heart and I truly hope on my computer soon.
    I have been playing a horrible game of Solitaire on another site.
    Are there others out there with this problem or is it just me? Can anyone suggest anything else?

    Thank you BDAua. This is what I typed and the reply from Terminal
    java -version
    java version "1.6.0_45"
    Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406)
    Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode)
    BTW - this application does NOT show up in the Applications folder and I consider that a bit odd.
    I also  tried typing Java for my computer to search for and this is what I got under
    Overview:
    PID: 944
    Host: localhost
    Main class: <unknown>
    Arguments: <none>
    JVM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01-451, mixed mode)
    Java: version 1.6.0_45, vendor Apple Inc.
    Java Home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    JVM Flags: <none>
    Heap dump on OOME: enabled
    I hope something is helpful within all of this info!

  • After 10.5.4 update, mac osx system proxy client (HTTPS) does not work!!!

    after 10.5.4 update (some minutes ago) i can't go on https web pages with browser safari and the other applications that uses the system proxy client (for example google notifier). i'm connecting to internet trough my macbook pro cable lan adapter into a LAN with a proxy server (before the update the mac osx system proxy client does work right).
    Help me!!!

    Hello Robert:
    I am sorry to be simplistic, but Apple cannot possibly be responsible for Safari (or any other software product) working in every possible environment. In my business life I used several methods to seamlessly link with my corporate servers from home or on the road. In each case, it was possible, but not without the help of my excellent IT people.
    Barry

  • After i updated firefox --my autofill for my email does not work. i have to enter the complete contact name instead of being completed automatically

    before i upgraded my firefox my email would autofill. now it does not. i have tried to switch back to my previous version but can not seem to do that either

    Update firefox to the latest version. If necessary use http://www.mozilla.org/en-US/firefox/all/.
    Some problems have been fixed in Firefox 18.0.2 it may help to update to that version.
    *use http://www.mozilla.org/en-US/firefox/all/ and see also [[Install Firefox on Windows]]
    * CARE you do not need to uninstall Firefox first and do NOT use any option that offers to delete personal information, because you will destroy bookmarks and passwords.

  • Lightroom 5 - Update from 5.0 auf 5.7 does not work. When I try to do the online update I get a message the programm does not find an *.msi file.  Any ideas ?

    Lightroom has been installed on my Laptop with a DVD.
    In the Adobe Programm Folder on my harddrive I do not find a *.msi file.
    Any ideas ?

    Hello I was not sure where to find the right temp Folder. So I deinstalled the program and installed it again.
    But with the same negative effect.
    There are two ways for the update:
    1) Within Lightroom: search for newer Version.
    2) At the Adobe Website
    1) Did not work
    2) worked perfectly
    Thanks for your help

  • I can not open firefox, i updated it to 8.0 now it does not work i tried to unblock it with my firewall but still its not opening.. i need help

    it does not crash or close unexpectedly cause it does not open at all i click on it but nothing happens..

    See:
    *http://kb.mozillazine.org/Browser_will_not_start_up
    *http://kb.mozillazine.org/Error_loading_websites

Maybe you are looking for

  • File Adapter Sender - Does XI support Active connection mode?

    Does the file adapter support Active connection mode?

  • How to upload the files

    how to upload the files from javascipt.can any body send the code for that.

  • HP PSC 1410 PRINTER

    I AM INSTALLED HP PSC 1410 ALL IN ONE SOFTWARE (AROUND 382 MB)  BY DOWN LOADING FROM HP SITE. BUT I CAN'T TAKE PRINT. PRINTER DRIVER NOT INSTALLING.!!  I CAN SCAN AND COPY.  FROM THE SYSTEM oPERATING SYSTEM : WINDOWS 7 PROFESSIONAL PRODUCT NO " HP PS

  • Using JButtons in a JTable

    I'm trying to find some information about how to use a JButton within a cell of a JTable. I'm able to insert the button using a custom cell renderer. Basically I create my own renderer which is triggered for JButton.class. That works well. Of course

  • Help me with the right print method?

    I have several pages of data in my database that I need to print. The printing should have header and footer, and print several pages. My question is which print method should I use and how? Am offering 2 Duke Dollars for this...