problem of refreshment table in the Dvd rental applications (ADf essentials by Sten E.vesterli)

Hi all

I am going through essentials ADF Sten E.vesterli book. I'm done building BC component Tester BC Tester thing works very well.

I build UI for it. I have specific problem

one.png

the code that I will carry out back button is

   public String returDvd() {
        RowKeySet sel = getFilmRentalTable().getSelectedRowKeys();
        Iterator selIter = sel.iterator();
        // get iterator for all data records
        BindingContainer bc =
            BindingContext.getCurrent().getCurrentBindingsEntry();
        DCBindingContainer dcb = (DCBindingContainer)bc;
        DCIteratorBinding rentalIter =
            dcb.findIteratorBinding("RentalUnreturnedIterator");
        RowSetIterator rsi = rentalIter.getRowSetIterator();
        // find the selected record in the data iterator
        Key key = (Key)((List)selIter.next()).get(0);
        RentalVORow r = (RentalVORow)rsi.getRow(key);
        r.registerReturn();
        OperationBinding ob = bc.getOperationBinding("Commit");
        ob.execute();
        //rentalIter.getViewObject().executeQuery();

        return null;
    }


My expected behavior should DVD must go back to the database, it should not be visible on the user interface, only non-returned DVD must appear on this table.

rentalIter.getViewObject().executeQuery();


If I run this line after committing, it works fine, but there is no success of DB.

(2) if I refresh the page as I can get the same result (but users won't)

one.png

My conclusion

I'm sure that the table is refreshing

I know not iterator runs after you refresh the table (I saw it at in Debug Mode).

My question is without hitting the DB how can I get this expected behavior

Thank you

REDA

Have not read this book (so I don't know what exactly makes r.registerReturn ()) but I guess you can use RowMatch or ViewCriteria to do in memory of filtering:

https://blogs.Oracle.com/IMC/entry/adf_bussiness_components_in_memory

https://blogs.Oracle.com/ADFProgrammers/entry/in_memory_filtering_and_rowmatch

Dario

Tags: Java

Similar Questions

  • I never received the promotion code for the DVD rental free.

    I have registered for free offers DVD rental by entering the email address and never received the promotion code. I spoke with customer support twice and have still not received the promotion code.

    We are looking for in this news and we do not want you to think that we are ignorant you. We just need a little more time to focus on this. If I did not follow with you today, I'm going tomorrow morning as soon as POSSIBLE. Thank you!

  • Problem with web bookmark in the list of applications

    I was on a web page and wanted to save the page.  So I opened the menu drop-down of the web at the top of the screen, clicked on the page and then added as a launcher application.  Now I'm unable to remove the icon from the applications.  It does not appear when I view all the applications on my phone.  How can I remove this?

    Press the orange keyboard while clicking on the icon to the Launcher.

  • Problem with text box on the Page Master application to other pages.

    I've done this before with success, but maybe I'm missing something and don't have the time to waste on this one there...

    I applied a text box to the master page. I applied the master page to all the other pages, but on each page, the text box will appear like this:

    Picture 1.png

    I can not type in the text box or select or something. I have a go back to the Page Master and the text box is a-okay.

    What I'm missing or doing wrong this time?

    Me once again and I have the solution!

    1. place the text boxes where you want on your Master.

    2. go in the 'Pages' Panel and highlight all the pages.

    3. in the "Pages" options of the sliding panel, choose "replace all Master Page items.

    Now, all your pages have a floating text box!

    See you soon!

    Mikey

  • Problem adding new table.

    Hi guys,.

    I have problems, add a table to the following SQL statement.

    Here's my query work.

    SELECT I.SKU_ID,
    DESCRIPTION,
    To_char (I.EXPIRY_DSTAMP, ' DD/MONTH/YYYY') expiry_dt,.
    Sum (case when I.CONDITION_ID is not null Then QTY_ON_HAND else 0 end) AS unavailable,
    Sum (case when I.CONDITION_ID is null Then QTY_ON_HAND else 0 end) AS available
    INVENTORY I SKU S
    WHERE I.SKU_ID = S.SKU_ID
    AND DESCRIPTION = S.DESCRIPTION
    GROUP OF TO_CHAR (I.EXPIRY_DSTAMP, ' DD/MONTH/YYYY'), I.SKU_ID, DESCRIPTION
    ORDER BY I.SKU_ID

    Here's the query I'm trying to achieve

    SELECT I.SKU_ID,
    DESCRIPTION,
    To_char (I.EXPIRY_DSTAMP, ' DD/MONTH/YYYY') expiry_dt,.
    Sum (case when I.CONDITION_ID is not null Then QTY_ON_HAND else 0 end) AS unavailable,
    Sum (case when I.CONDITION_ID is null Then QTY_ON_HAND else 0 end) AS available,
    SUM (P.QTY_DUE)
    The INVENTORY I, S, PRE_ADVICE_LINE P SKU
    WHERE I.SKU_ID = S.SKU_ID
    AND DESCRIPTION = S.DESCRIPTION
    AND P.QTY_RECEIVED IS NULL
    GROUP OF TO_CHAR (I.EXPIRY_DSTAMP, ' DD/MONTH/YYYY'), I.SKU_ID, DESCRIPTION
    ORDER BY I.SKU_ID

    However, when I try to execute the statement I get this error message: Ora-01652: unable to extend temp of 128 segment in tablespace.

    Someone at - it means that I can add the data to the statement? Or a way to stop the error?

    Thank you, Sam.

    OK, ignore the COUNT_RECS for the minute, what gives you:

    SELECT I.SKU_ID,
        I.DESCRIPTION,
        TO_CHAR(I.EXPIRY_DSTAMP, 'DD/MON/YYYY') expiry_dt,
        SUM(CASE WHEN I.CONDITION_ID IS NOT NULL THEN QTY_ON_HAND ELSE 0 END) AS Unavailable,
        SUM(CASE WHEN I.CONDITION_ID IS NULL THEN QTY_ON_HAND ELSE 0 END) AS Available,
        P_ILV.SUM_QTY_DUE + (NVL(P_ILV.SUM_TL,0) * NVL(S.USER_DEF_NUM_3,0)) AS Sum_Qty_Due,
       P_ILV.SUM_QTY_DUE AS SUM_QTY,
      (NVL(P_ILV.SUM_TL,0) * NVL(S.USER_DEF_NUM_3,0)) SUM_SUPPLEMENT
     FROM INVENTORY I
      JOIN SKU S
      ON (I.SKU_ID = S.SKU_ID AND I.DESCRIPTION = S.DESCRIPTION)
     JOIN (SELECT P.SKU_ID, SUM (CASE WHEN P.TRACKING_LEVEL NOT LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) AS SUM_QTY_DUE,
          SUM(CASE WHEN P.TRACKING_LEVEL LIKE 'C%' THEN P.QTY_DUE ELSE 0 END) SUM_TL
        FROM PRE_ADVICE_LINE P
       WHERE P.QTY_RECEIVED IS NULL
       GROUP BY P.SKU_ID) P_ILV
      ON (S.SKU_ID = P_ILV.SKU_ID)
    GROUP BY TO_CHAR(I.EXPIRY_DSTAMP, 'DD/MON/YYYY'), I.SKU_ID, I.DESCRIPTION, P_ILV.SUM_QTY_DUE, NVL(P_ILV.SUM_TL,0), NVL(S.USER_DEF_NUM_3,0)
    ORDER BY I.SKU_ID
    
  • How to let guests to use use the DVD player

    I can't the Ridge a guest account that find no way to let them use the DVD player application.

    Go to Preferences-> Parental control system

    • Select the guest account.
    • On the right, select the applications tab.
    • On the authorized applications research type of DVD sets
    • Check if the DVD player is turned on
  • Order of installation using the ADF Essentials

    Hello
    I want to use JDeveloper and ADF-Essentials and Glassfish.

    I found the page describing the GlassFish Server with ADF-Essentials installation and think I understand this. I'm not sure of is which to install JDeveloper and if I install it before or after configuring GlassFish. http://docs.Oracle.com/CD/E35521_01/admin.111230/e16179/ap_glassfish.htm#BABIEADD
    Java Edition: 11.1.2.3.0
    Oracle JDeveloper 11g (11.1.2.3.0) (without SOA and Webcenter)
    Oracle JDeveloper 11.1.1.6.0. (including SOA and Webcenter).

    Thank you!

    Published by: BobS47 on February 20, 2013 12:17

    The order does not matter as I know.
    ADF essentials jdev 11.1.2.3.0 need do is a red without soa.

    Timo

  • Mr. Fix it cannot fix the DVD/CD, reading and writing problem

    I had a problem a few months ago this onc I put a CD in the CD/DVD drive, it can't read and rejected and ask to put a readable CD, then I run Mr. Fix and the problem disappeared. recently just the same problem, I tried Mr.Fix but it cannot solve the problem, then it is there another way to solve the problem

    Best regards

    Ramzi salameh

    Hello

    Step 1: Please do all the same underneath if you did some before as it is often the set of operations which solves the problem.

    Try this double click Control Panel - Device Manager - CD/DVD - device - tab - click on update drivers (this will probably do nothing) - then RIGHT click the drive of the driver - UNINSTALL - REBOOT this will refresh the default driver stack. Even if the reader does not appear to continue below.

    Then work your way through these - don't forget the drive might be bad, might have a cable loose or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs - a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error during the installation of Windows Vista after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables at both ends. Remove and replace, do not just tight. For laptops, you can often clean power and contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the system manufacturer and the manufacturer of the device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (burn CD & DVD and CD and DVD read). Therefore, it is not unusual for 1 or 2 rooms with not so work that others do it properly.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are some entries in the registry that the troubleshooter does not solve, and those who "could" be the cause.

    Check with your system manufacturer Maker and device for possible firmware updates and the correct registry entries for your car.

    These are the keys in my opinion, are those in question - secondary-keys for the CD/DVD drive of course because there will be other subkeys in these keys. Be sure to ask specific keys involved as well as the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more information here and maybe even registry settings correct for your CD/DVD from someone with the same drive model.

    Forums - much real experts help and hardware information
    http://Club.myce.com/

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" and="" devices="" for="" it :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Problem with the partialTrigger on the Table of the ADF

    JDeveloper Version 11.1.2.3.0

    I've reproduced the problem with partialTrigger on the array element. Sample application can be downloaded from here . He needs to run HR schema.
    Underneath the pageFragment sample, I can try refreshing adf table in two ways
    1. turn the addEmployee button id in partialTrigger of the ADFTable component.
    2. set the id of the button addEmployee in the PanelBox component partialTrigger.

    Note the difference - 1st only works no where as 2nd works very well. Do you have additional constraints when updating using the ADF Board
    partialTrigger?
    I have reproduced the usecase in example below:

    Structure of the PageFragment-

    PanelBox
    |
    | _ ADF Table
    |
    | facet __toolbar
    |
    | _ addEmployee button


    Code PageFragment

    < af:panelBox text = "PanelBox2" id = "pb1" >
    < f: facet name = "toolbar" >
    < af:commandButton actionListener = "#{bindings.addEmployee.execute}" = "addEmployee2" text "
    Disabled = "#{!}" Bindings.addEmployee.Enabled}"id ="cb1"partialSubmit ="true"/ >
    < / f: facet >
    < af:table value = "#{bindings." Var EmployeesView1.collectionModel}"="row"rows =" #{bindings. " EmployeesView1.rangeSize}.
    emptyText = "#{bindings." EmployeesView1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." EmployeesView1.rangeSize}' rowBandingInterval = '0 '.
    selectedRowKeys = ' #{bindings. " EmployeesView1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." RowSelection EmployeesView1.collectionModel.makeCurrent}"="single"id ="t1 ".
    "displayRow ="selected"partialTriggers =": cb1 "styleClass ="AFStretchWidth">
    < af:column sortProperty = "#{bindings." EmployeesView1.hints.EmployeeId.name}"sortable ="false ".
    headerText = "#{bindings." EmployeesView1.hints.EmployeeId.label}"id ="c1">
    < af:inputText value = "#{row.bindings.EmployeeId.inputValue} '"
    label = "#{bindings." EmployeesView1.hints.EmployeeId.label}.
    required = "#{bindings." EmployeesView1.hints.EmployeeId.mandatory}.
    columns = "#{bindings." EmployeesView1.hints.EmployeeId.displayWidth}.
    maximumLength = "#{bindings." EmployeesView1.hints.EmployeeId.precision}.
    shortDesc = "#{bindings." EmployeesView1.hints.EmployeeId.tooltip}"id ="it1">
    < f: validator binding="#{row.bindings.EmployeeId.validator}"/ >
    < af:convertNumber groupingUsed = 'false' pattern = ' #{bindings. " EmployeesView1.hints.EmployeeId.format}"/ >
    < / af:inputText >
    < / af:column >
    < af:column sortProperty = "#{bindings." EmployeesView1.hints.FirstName.name}"sortable ="false ".
    headerText = "#{bindings." EmployeesView1.hints.FirstName.label}"id ="c2">
    < af:inputText value = "#{row.bindings.FirstName.inputValue} '"
    label = "#{bindings." EmployeesView1.hints.FirstName.label}.
    required = "#{bindings." EmployeesView1.hints.FirstName.mandatory}.
    columns = "#{bindings." EmployeesView1.hints.FirstName.displayWidth}.
    maximumLength = "#{bindings." EmployeesView1.hints.FirstName.precision}.
    shortDesc = "#{bindings." EmployeesView1.hints.FirstName.tooltip}"id ="it2">
    < f: validator binding="#{row.bindings.FirstName.validator}"/ >
    < / af:inputText >
    < / af:column >
    < af:column sortProperty = "#{bindings." EmployeesView1.hints.LastName.name}"sortable ="false ".
    headerText = "#{bindings." EmployeesView1.hints.LastName.label}"id = 'c3' >
    < af:inputText value = "#{row.bindings.LastName.inputValue} '"
    label = "#{bindings." EmployeesView1.hints.LastName.label}.
    required = "#{bindings." EmployeesView1.hints.LastName.mandatory}.
    columns = "#{bindings." EmployeesView1.hints.LastName.displayWidth}.
    maximumLength = "#{bindings." EmployeesView1.hints.LastName.precision}.
    shortDesc = "#{bindings." EmployeesView1.hints.LastName.tooltip}"id ="it3">
    < f: validator binding="#{row.bindings.LastName.validator}"/ >
    < / af:inputText >
    < / af:column >
    < af:column sortProperty = "#{bindings." EmployeesView1.hints.DepartmentId.name}"sortable ="false ".
    headerText = "#{bindings." EmployeesView1.hints.DepartmentId.label}"id ="c11">
    "< af:selectOneChoice value =" #{row.bindings.DepartmentId.inputValue} "label =" #{row.bindings.DepartmentId.label} ".
    required = "#{bindings." EmployeesView1.hints.DepartmentId.mandatory}.
    shortDesc = "#{bindings." EmployeesView1.hints.DepartmentId.tooltip}"id ="soc1">
    < f: selectItems value = "#{row.bindings.DepartmentId.items}" id = "si1" / > "
    < / af:selectOneChoice >
    < / af:column >
    < / af:table >
    < / af:panelBox >


    Thank you
    Rajdeep

    Hello

    the reason in my opinion, this has to do with the creation of the employee, who sits on the company and not the iterator that displays the data in the table. Therefore, the iterator must re - query to view the data that you created in silent mode in the background

    Addition of

    employeesViewImpl.executeQuery ();

    to your AppModule Impl class at the end of the creation of the employee solve the problem that you see

    Frank

  • Refresh the table after the creation of the new BO of Toplink

    Hello

    I have the following problem and I hope someone can help me. I use ADF11g/Taskflows with BOs TopLink-mapped (no ADF BC).

    Consider the Taskflow (s) following:

    the main activity is a (display) jsff page showing a table of BOs. From this point of view, two actions-defined results are called 'Edit' and 'create '. The edit action called an another Taskflow constisting of a pageFragment, showing the detailForm of the Soundtrack of data. This Taskflow has an input and output parameter (Soundtrack edit) and two are called "save" and "Cancel". Add Action calls a method called "createNewBO" first, and then calls the Taskflow mentioned also. Each Taskflow has ist own Bean managed in the pageFlowScope to work as a controller and DataControl to the TaskFlow and directly included views.

    The edit action works fine. The action also add except that the table of the default activity of the first taskflow does not update after return from the second Taskflow. I tried to put the property of refreshment in the PageDef of all possible values, in combination with the RefreshCondition, but no combination works. I can do a manual refresh or change the sort then the new Soundtrack is shown in the table.

    Is it possible to call a refresh of a jsff since a taskflow or I can force a refresh on entering the jsff?

    I am really stuck and appreciate any help ;)

    Friedrich

    You can try this:

    -on your taskflow diagram select the page that contains the table that you want to update, and add a Page parameter (from #{true} # {viewScope.refresh})
    -in pageDef page add an invokeAction in executable files and that it points to methodAction which fills the iterator to update
    -for newly created invokeAction, value refresh ifNeeded and condition of refreshment to #{viewScope.refresh}

    This should refresh the iterator each loading of the page (fragment).

    I hope this helps!

    Pedja

  • Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    Hi all

    Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    I did program mentioned above but it does not work. Can you tell me what is the problem?

    There is no error is indicated in the program. If someone knows about it please try to find solutions and help me out of this problem.

    I have attached my program with this message.

    Thank you in advance!

    (1) FOR loops are your friend here.  You can make a slight restructuring using loops, and then you will have less mess to deal with, the inner loop through tunnels of autoindexing to make it even simpler.

    (2) I would only treat the numeric values of the characters.  So go terminal of control of the chain, the capital letters and byte array to before the outer loop.  You can use a size of Board over there to tell how many times the outer loop to iterate.

    (3) the Index table is extensible.  So you only need over the index of the first, and it will increment itself, as it develops.

    (4) you need to finish the lookup table (table 3D)

  • every time I try to load it from the DVD the error appears as: "the application could not be started because SPWIZENG.» DLL was not found. Reinstalling the application may fix this problem. »

    Original title: SPWIZENG.dll

    Hi, I got a cd of Windows 7 from my friend who is a software engineer so he gets all the programs (operating systems). It burned in a DVD instead of CD. So, every time I try to load from the DVD the error appears as:

    «The application failed to start because SPWIZENG.» DLL was not found. Reinstalling the application may fix this problem. »

    Then when I click ok, it says:

    The file 'Autorun.dll' could not be loaded or is corrupt. Setup cannot continue.

    Help, please. I'm not good with computers and I honestly don't know what to do.

    Thanks in advance,

    :)

    Hello

    Are you able to play or open other CD or DVD?

    Step 1: These error messages may be due to corrupted media. Try to use the same media on another computer and check if you are able to use it.

    Step 2: Search for the issue in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    1. click on start and then click Run.
    2. type msconfig and click OK.

    The System Configuration Utility dialog box appears.

    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
    4. When prompted, click on restart to restart the computer.

    Similar problem: http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/windows-upgrade-windows-7-error-code-0x7e/b1bfbe8f-7980-4847-a186-2206e87c6bc4

  • WRT1900ACS - is there a way to reset/refresh/clear/initialize the DHCP client table?

    I have a WRT1900ACS with the 1.0.1.174588 firmware.

    There are several things that are a little weird. I noticed thre were some features missing in the network map, so I looked at the table of the DHCP client to see if they were there. The customer table is a bit a mess.

    Rather than go into all the details, is there a way to reset/refresh/clear/initialize table of DHCP client? I would rather not reset the default router just to refresh a table? If the customer table is toast, it won't be very easy to track down the other expectant.

    Thanks Olivier. Details have been sent according to you demand.

    millerjr

  • Problem with the opening of the DVD player

    I have a Dell Studio 540 which is 7 years old. The past few months when I press the eject button it tries a couple of times to open but may not. To open it, I have to open it manually.

    Also of Windows when I right click and try to eject it try a couple of times and then it says that an error has occurred during the DVD - RW disc ejection.

    If the problem is with the drive I get a new one this week.

    Anyone know what could be the problem.

    Thank you.

    eddiegeer2001

    Looks like the DVD drive failed, best to replace, DVD SATA drives are inexpensive to buy.

    http://www.Newegg.com/CD-DVD-burners/subcategory/id-5

    Bev.

  • If I get the dvd of recovery to win s 7 of the manufacturer, what problems is I meet when I try to boot from a usb dvd player

    Separated from this thread.

    OK here is what I was asking.  If I get the dvd of recovery to win s 7 of the manufacturer, what problems I will get when I try to boot from a usb dvd player.  I worry because my computer is uefi firmware. should I disable secure boot, make sure the dvd usb drive first in the boot order.  What other bios setting I would be worried.

    You will get a facility better if you find the ISO to create such media as discussed in step 1 of the clean reinstall Windows 7 follow these steps to get the best possible installation.  You can even create flash media if that's easier for you.

    Regard to Recov disks that reinstall all the bloatware factory, Yes, you must disable Secure Boot in firmware that doesn't support UEFI to install Windows 7, and then start the media as a UEFI device.

    After installation, you can pick up some performance and optimize the installation by following Clean Up Factory Bloatware .

    You can also do a Clean install Windows 10 improvement using the Windows 7 product key, as this is explained in this link.   You can at any time change to Windows 7, even move back and forth until only is installed at the same time.

    Let us know if there are any questions and how it goes.

Maybe you are looking for