How can I see changes in table with insertrow();postchanges()without commit

Hi friends;
I use jdeveloper 10.1.3.1 with jheadstart 10.1.3.1.
I create two view object.In the first page I create table with one view object.
In the second page I create table (with tableselectmany) with other view.
I select many rows in second page and in the managed bean,
I insert selectted rows atributes to first pages tables attributes.
I use this code.
public String commandbuttonaction(){
CoreTable table = this.getTable1();
Set rowSet = table.getSelectionState().getKeySet();
Iterator rowSetIter = rowSet.iterator();
BindingContainer bindings = getBindings();
DCIteratorBinding pr_dcib = (DCIteratorBinding)
bindings.get("DeptIterator");
int i=206;
while (rowSetIter.hasNext()){
Key key = (Key) rowSetIter.next();
pr_dcib.setCurrentRowWithKey(key.toStringFormat(true));
RowImpl prRow = (RowImpl) pr_dcib.getCurrentRow();
String AM="model.AppModule";
String CF="AppModuleLocal";
ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
ViewObject emps = empSvc.findViewObject("EmpsView1");
Row newEmp = emps.createRow();
newEmp.setAttribute("Manager",new Number(1));
newEmp.setAttribute("Department",new Number(1));
newEmp.setAttribute("Depno",new Number(3));
emps.insertRow(newEmp);
try {
newEmp.validate();
catch (Exception ex) {
System.out.println("validate catch");
try {
empSvc.getTransaction().postChanges();
catch (Exception ex) {
System.out.println("post catch");
Configuration.releaseRootApplicationModule(empSvc,true);
i=i+1;
In this code I only postchanges() in first view and dont want to commit.
But I cant see changes row in the page .If I press save I see transaction completed succesfully message.
But in database not insertted any rows.
If I write commit() after postchanges() code I see rows in the table .But I dont want to commit.Only post
my changes and if necessary I press save button in page.
How can I see changes in the page without commit???Thanks for all....

You should NEVER use statements like this in managed beans:
ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
This will create a separate application module instance, not shared by the the web pages. That's why you do not see the changes.
Instead, you can use the following code:
ApplicationModule am = (ApplicationModule)JsfUtils.getExpressionValue("#{data.MyAppModuleDataControl.dataProvider}");
where MyAppModuleDataControl shoud be replaced with the name of your am data control.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • How can I load data into table with SQL*LOADER

    how can I load data into table with SQL*LOADER
    when column data length more than 255 bytes?
    when column exceed 255 ,data can not be insert into table by SQL*LOADER
    CREATE TABLE A (
    A VARCHAR2 ( 10 ) ,
    B VARCHAR2 ( 10 ) ,
    C VARCHAR2 ( 10 ) ,
    E VARCHAR2 ( 2000 ) );
    control file:
    load data
    append into table A
    fields terminated by X'09'
    (A , B , C , E )
    SQL*LOADER command:
    sqlldr test/test control=A_ctl.txt data=A.xls log=b.log
    datafile:
    column E is more than 255bytes
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)

    Check this out.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch06.htm#1006961

  • How can I see the whole week with calendar built-in app ?

    How can I see the whole week with calendar built-in app ? My husband has an ipad and he can see the whole week and the whole year... is it possible with iphone 4 ?

    What you see is what is available.
    Turning the iPhone into landscape mode with Month, Day, or List view selected provides the closest thing to seeing an entire week.

  • HT201272 How can I see the whole week with calendar built-in app ?

    How can I see the whole week with calendar built-in app ?  My husband has an ipad and he can see the whole week and the whole year... is it possible with iphone 4 ?

    You have posted in the itunes store forum.  This has nothing to do with the itunes store.

  • HOW CAN I SEE THE ENTIRE STRUCTURE WITH FINDER?

    Hi Folks,
    I need an help. How can I see everything in my hdd, the exact content of it, using Finder and not an 'easy view'? For example, in the hdd root there are folders like 'tmp', 'var', 'usr' and so on but I can't see them from Finder just using the command prompt. How can I do?
    Thanks in advance.
    LS

    Open the AppleScript Editor in the /Applications/Utilities/ folder and run the following:
    tell app "Finder" to quit
    do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
    delay 2
    tell app "Finder" to run
    This script will not allow you to access anything which is set not to be readable by your user account. The /dev/ folder on the startup disk is hardcoded to be hidden to the GUI and cannot be revealed in the Finder by this or any other method. To turn it off, replace the 1 with a 0.
    (53705)

  • How can I see / change the smtp ports in use by FF 12.0 on my WIN2K antique?

    My webmail account works, though slowly, when I'm using NetScape 7.1. When I try to use the same program and service with FireFox 12.0, I can receive email, but sending email gets me an error message that's something like "Could not establish an SMTP commection with the server." The service tells me that my outgoing smtp port should be 465 if I'm using SSL, and 25 if I'm not using SSL. Also, if I'm asked about "authentication," it should be "the same as incoming." Where do I find these settings in FF12.0?
    I'm asking this question on another computer, not the one I'm having trouble with. My problem child is an IBM Aptiva running Windows 2000 Version 5.0 (Build 2195; Service Pack 4) Copyright 1981-1999 Microsoft Corp. Physical memory available to Windows: 64,824 KB

    Gingerbread_Man, you were right on the nose with the answer to the problem. After I installed Simple Mail v. 2.83.2, my webmail began to work with Firefox v. 12.0. My s-l-o-w computer is now a bit faster, as well, though I don't know how that could have had any connection with Simple Mail. Oh, Telga, TechnalXS, the developer, changed versions to 2.84 while I was installing 2.83.2, so I started over and finished up with the new one. What had me going was that every time I tried to print a copy of their web site, Firefox crashed and burned. Had to be that document, because other things print just fine. Anyway, thanks for your help. I'm going to recommend that Santa put you on his "good list!"

  • Opening my Ipad I have an exchange window asking me my password. I'm (almost)sure I type the good one but it doesn't accepIt it. Unable to go around that window so IPad useless. How can I check/change my password with my IPad (stuck) or my home computer ?

    Opening my iPad2 I have an "Exchange " window asking me my password. I'm (almost) sure I type the good one, but it doesn't accept it. Unable to go around it, so iPad useless... How can I recover/check my password on my home PC (or make that window disappear ?

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • How can i see folders and files with a 'Ñ' on his names?

    hi everybody, i'm a newer with MacOS, i've buy a MacBook Pro last Friday on Bogotá - Colombia, last nigth i plugged an external hard disk drive with many folders including a folder called: "Microsoft Office 2011 Español", when i explorer the hard disk i can't see this folder, i rename this folder on my pc on windows 7 and remove the word "Español" after that i was able to see the folder
    i think that it is a configuration of OS, so can anybody help me to fix this problem?

    Halo Mattias,
    i using this function get file file name and directory:
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
        exporting
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = 'P_FILE'
        importing
          file_name     = p_file.
    Rgds,
    Wilibrodus

  • How can I use itunes store credit with Apple TV without the credit card code?

    I would like to allow guests in my home to use the credit in my iTunes account to purchase movies and TV shows on the Apple TV in my guest room.
    Unfortunately, it seems that in order to make a purchase they will need my credit card security code.  If they have this, then they could purchase an arbitrary number of movies, but I would like to limit purchases to the credit in the account.
    Is there any solution here?  How can I give my guests an Apple TV "allowance" (not a monthly allowance, a one-time allowance) and not give them my credit card security code?

    You can't really do this with an already existing AppleID from what I know. Now, if you don't have an AppleID, here's the run-down of how to do it:
    http://support.apple.com/kb/HT2534
    Hope that helps.

  • How can I see the whole day in day view without scrolling?

    I'm using iCal 4.0.4 on my MacBook. I'd like to see the whole day of events without having to scroll down. Right now I can only see about 5 hours at a time. I've set the day to start at 8am to midnight. Is there a way to see 12-16 hours at a time with no scrolling?

    Hi,
    Go to iCal > Preferences General. If I remember correctly there should be a "Show XX hours at a time" option there.  There certainly is in version 6.0.
    Best wishes
    John M

  • How can I see all mail associated with my account simultaneously

    My boss has tasked me with finding a way to be able to see all sent & received mail associated with an account in mail simultaneously. InBox, Sent, Trash, Drafts, all at once, is that possible?
    Thanks

    Hello!
    If you want to see all of that in a single mailbox, you can create a Smart Mailbox from the "file" menu in the top left corner of your screen. It's a bit of trial and error before you get the rules correct, perhaps, but that will work.

  • I want to sync Windows laptop to Android. My email address is 'already in use' but i have no account details. how can i see/change them?

    Firefox > Set up sync > create an account - this screen tells me my username/email is already in use. i have reset the password but now need my recovery key. I have no idea what this is as i do not remember setting up an account in the past.

    hello aaronmcl4, go to ''firefox > sync > setup sync > i have an account > i don't have the device with me'', fill in your account name and password and click on "i have lost my other device" in order to initiate a reset of the recovery key.

  • How can I see/change the assigned portlets for a page

    I have a need to identify what portlets will be shown on a portlet pages and adjust
    the groups.
    I find the tag setPortletsForUser in select_portlets.jsp but I can't find where
    it's is documented.

    Maybe this:
    Tools menu > Page Info > Media tab

  • How can i see what is happining with my ipod touch 5g

    i just orrderd my ipod like 3 days ago and i have not got any emails or anything and i want to know what is happining to it.

    Call the Apple Store or the dealer from whom you ordered the iPod and ask. That's the only way you're going to get any useful information.
    Regards.

  • How can I see, use and edit contacts on PC without...

    Now I finally worked out how to sync my contacts to my N95 8G (see earlier posts), I would like to use this data, plus the calendar data on a daily basis on my PC and update it where necessary, before finally synching back to the N95 at the end of the day.
    Has anybody any ideas how this can be done ?
    With my old Palm-based system I would use the Palm desktop but the PCSuite (v. 7.0) doesn't seem to offer this functionality.
    Now the contct and calendar data must be copied there on the PC as I've performed a back-up via the Suite, but how do I get to see and edit this data (or a copy thereof) on the PC ?
    If Nokia can't be bothered to work out how to do this, has anybody come across any third party vendors who have ?

    01-Sep-2008 12:17 PM
    larrygt wrote:
    Hi - sorry for the tardy response.
    When I saw that my Palm device was fading rapidly and that it was no longer supported by upgrades to new versions of Windows (a Sony Clie of 2002 vintage that I used for everything bar phone calls), I backed up my palm desktop contacts, calendar etc. to my Yahoo account with no problems.
    My other posts on this forum described my frustration at not being able to simply export a file back out of Yahoo that the N95 would understand, without losing bits of the contacts (e.g. all the telephone numbers). In the end I had to go via Outlook - my other post (copied below) describes how I did it.
    The approach is not perfect and I intend it to be a once only thing. I will still suffer the hassle of entering new contacts into both my N95 and my online address book as the Nokia PC Suite does not appear to accurately read csv files created by Yahoo.
    My poor user experience with N95 will make me think seriously about going back to a Palm-based / Blackberry device when upgrade time comes around again.
    1: Open Outlook and back up the existing contacts (that you wish to keep separate from your N95 contacts) by exporting them to the desktop in a .pst - "outlook.pst"
    2: Once they are backed up to Outlook.pst, select all these contacts in Outlook and delete
    3: In Yahoo, export all contacts to an Outlook format .csv file (note, Yahoo offers different .csv formats) - "Personal.csv"
    4: In Outlook, import the new Personal.csv file you have created. Check contacts. Delete duplicates, and check/update errors (i.e. use Outlook like the PIM that PC Suite ought to be and isn't !).
    5: In Nokia PC Suite, use the Synchronise function to synchronise the N95 with Outlook
    6: Select all personal contacts in Outlook that you just imported via persoanl.csv, delete them to clean out Outlook.
    7: Re-import the Outlook.pst file you originally created above to restore your original (work?) outlook contacts.
    Thanks for taking the time to share "our" frustrations. As you've indicated, after enjoying the ease of managing Palm data both on the device and on the desktop, the Nokia N95 simply falls flat on its face (despite the shopkeeper's assurance it was far and above better). I have found that at least the generic PC Suite has a means to view the calendar and contacts on the desktop provided the phone is hooked up by USB. I still had to manually enter everything onto the phone to get it all as I want it, and have decided to only put the stuff I truly need to have with me at all times. I also tried to download an MP3 program but it won't accept the format (and I thought Sony had the wrap on exclusivity!?). When Nokia or another company comes up with a truly do-it-all-right format, I'll be first in line. Meantime, I will take my Palm on trips, and will tuck the MP3 player in a side pocket. This was an expensive mistake that I won't make again.

Maybe you are looking for

  • F4580 and can't connect to new modem/router

    This printer was working ok with the old router but won't connect with new modem/router.

  • Java.util.zip.ZipException: a device attached to the system is not function

    getting a java.util.zip.zipexception : a device attached to the system is not functioning error - what could cause such an error? My program finds all zip files in an archive and then searches through them for xls files, which it extracts and re-loca

  • Network printing without the network

    I currently work in a lab where we have 3 computers attempting to share a common printer on a rather "Mac-unfriendly" network. All of the computers are running OSX 10.4.4 and are printing to an hp color laserjet 3500. The network administrators are g

  • SNAPSHOT ERROR 0x906

    Hi! I have a problem with snapshot on windows 2008 r2 after ntdsutil command activate  instance ntds snapshot: create i reiceve thi error: error 0x906 (this shared resource does not exist.) I maked windows update but the problem is the same can help

  • Can not turn on location services

    The "Location Services" on my iPhone 5 is greyed out and will not allow me to turn it on? Whats up? I just installed IOS 7, Find my iPhone is selected, on my phone, my iMac and the iCloud. They all have the same message, "Online, Location Services of