[ADF, JDev12.1.3] When you use create/restoreSavepoint... Restore operation is still useful? And other doubts...

Hallo,

Dario and Timo advised me (in this thread Re: [ADF, JDev12.1.3] Master w/playback af:form only af:tables detail: how to handle insert and edit through forms?) I make a request using the functions create/restoreSavpoint to this fragment in my application.

The tables are read-only, and the user can insert and modify records by a form of popup.

Each table has its own pop-up that I created using a btf executed as diaolog (*).

Before I open the popup, I create the backup point.

BindingContext bctx = BindingContext.getCurrent();  
DCDataControl dcDataControl = bctx.getDefaultDataControl();  
String sph = (String) dcDataControl.createSavepoint();  
AdfFacesContext.getCurrentInstance().getPageFlowScope().put("AdfmSavePoint", sph); 

When the popup is closed, I restore the backup point if the Cancel button was clicked...

Object confirmOrCancel = returnEvent.getReturnValue();  
if (((String) confirmOrCancel).equals("cancel")) {  
  String sph = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AdfmSavePoint");  
  BindingContext bctx = BindingContext.getCurrent();  
  DCDataControl dcDataControl = bctx.getDefaultDataControl();  
  dcDataControl.restoreSavepoint(sph);  
} 

I have these doubts:

  1. the button "CANCEL ALL" (so far) AM restore operation is still meaningful (is always useful) when you use the check points? Or can I avoid using the restore of the AM operation, creating a backup point before you enter the fragment and restore it if the user clicks on "RESTORE ALL"?
  2. for all tables: before opening the popup insert/change the backup point is implemented pageFlowScope under the same key 'AdfmSavePoint '. Is it OK or would it be better to use a different key for each table (for example 'AdfmSavePointTable1', 'AdfmSavePointTable2',...)?
  3. If the pageFlowScope already contains a checkpoint under the "AdfmSavePoint" key... What does if I give the floor to new .put ("AdfmSavePoint", sph)? Can I be sure that the old value is overwritten?
  4. is this safe with nested savepoint? For example in my case I want to create a backup before the fragment in the image point is displayed (and restore if the user leaves the fragment by clicking "RESTORE ALL"), then within the fragment, as I said above, I would manage other points of record when inserting/editing tables.
  5. I noticed that clicking on the button "RESTORE ALL" when it relates to the AM-restore operation causes this strange thing: when before displaying the fragment I call SetCurrentRowWithKey on the master istance VO... If I click on "ROLLBACK ALL" posted master VO Records changes and 1 minutes of the main of the VO table is displayed. Why the master istance VO is not reimain in the folder I've previously selected by SetCurrentRowWithKey?
  6. With reference to the expression (*) above. The BTF 'dialogue' I created contains only the page jspx with shape and a return to activity. I also tried a) create (and restore) the backup point, b) to call createInsert inside the "dialog box" operation BTF (see images below), but the createInsert on retail VO istance called inside the 'dialogue' BTF seems not to reflect on the table as when I call createInsert by calling btf. I have to make some adjustments in the 'dialogue' of BTF?

Thank you

Federico

Federico,

(1) Yes, what should happen if a user add or edit vo1 and click ok in the dialog box but decided that ask to work must be restored?

(2) as long as you don't have that a dialog box is open, it should work.

(3) the flowrate range of page is a map. You can put the same key more than once. If the key already exists, the value is replaced.

(4) in fact, I don't know, but the sounds of complicated design. I guess you can record more points, but only in the order of creation. It's as if you try to rebuild the framework. BTF yo it even for you, when worn right. Please go to ADF Architecture Square and read and watch it task flow of related things.

(5) this behavior is as expected. A restore resets all the iterators so thagetto point at the top of he. http://www.Oracle.com/technetwork/Developer-Tools/ADF/learnmore/OCT2010-OTN-Harvest-183714.pdf 'keep the line after cancellation' shows how to handle this situation.

(6) I suppose have you refresh the table iterator, once you close the dialog box for the new data. But that's only a guess because it depends on how the btf share control of data and the your involved.

Timo

Tags: Java

Similar Questions

  • [ADF, JDev12.1.3] When you rename problems see criteria and link vars used in VO

    Hallo,

    1)

    I changed the name of a view VO criterion, but I'm not able to buld the project.

    Error: myapp.model.vo.MyVO: could not find the referenced object. Object =VC_OLD_NAME Owner = myapp.model.vo.MyVO

    But if I look everywhere in the application I'm not VC_OLD_NAME.

    How can I solve this problem?

    When you rename a VC, JDev auto updates all references to this VC in the application? Or I don't have to worry about it?

    2)

    I renamed a binding var defined for a VO where clause.

    JDev seems to auto update all references to this var binding, but the strange thing is that, in the original Version, the old name is still present (he doesn't).

    Why?

    3)

    Perhaps in the future I would better take not to rename this kind of objects?

    Thank you

    Federico

    1)

    JDev sometimes has problems with refactoring.

    Maybe you can try to close jdev and remove .data folder in your project.

    2)

    Because there is no exact reference to link var if you need to change this manually.

    3)

    Perhaps in the future the jdev will have less bugs

    Dario

  • [ADF, JDev12.1.3] When the operationBinding.getErrors () .isEmpty () which are 1) common causes and 2) actions recommended to do?

    Hallo,

    When you call a method from the link layer errors my arrive and the code base to make sure it is...

    if (! operationBinding.getErrors().isEmpty()) {
      // Error handling
      return false;
      }
    

    In the error handling, we can save the error and perform other actions.

    List errors = operationBinding.getErrors();
    Throwable t = null;
    Iterator<Throwable> it = errors.iterator();
    while (it.hasNext()) {
      t = it.next();
      log(t.getMessage());
      // Specific action for the exception
      }
    

    Given that my error handling section don't ever serve during the tests... I ask you what kind of error may occur when you call a method in the link layer?

    What are the common mistakes that can happen?

    What actions are usually performed in case of error?

    Cancellation of the transaction?

    Output of the application?

    What have I to do not forget to check?

    Thank you

    Federico

    Federico, read http://www.oracle.com/technetwork/issue-archive/2013/13-mar/o23adf-1897193.html , who read the part called "Oracle ADF Error Handling Architecture". Frank described here kind of mistakes that each layer can lift and how to manage them. You can even start your own exceptions derived from local and get in the list.

    Delivery errors, it's something you have to decide on each case. Get an error while you commit could do a necessary restore, but only sometimes display a form one let the fix for the user of the problem. If you call a method in the rich throws module request a mistake because a service is not available, you can continue if you do not need data he or so while the application if the data are required.

    It must be decide for ach calls you make. In general you must connect at least a message with error to leave to find the best solution in a later version, and then just to save the message.

    Timo

  • When you use "close other tabs" I skip confirmation?

    Are there options?

    You can set the Boolean browser.tabs.warnOnCloseOtherTabs false pref on the topic: config page.

    You can open the topic: config page through the address bar

  • In XP, when you open a folder, why are some black paper and other securities is blue?

    Desktop computer is fine, but when I opened a file, most of the titles of document remain black but there are several that have turned blue. Why?

    * original title - computer office is fine, but when I open a file, most of the titles of document remains black but there are several that have turned blue. Why? *

    A file name that is displayed in green indicates a file of EFS encryption.
    A file name that is displayed in blue indicates a compressed file.

    "How to use file Compression in Windows XP"
      <>http://support.Microsoft.com/kb/307987 >

    HTH,
    JW

  • Receive no printers installed error when you try to print. There is still printers, and one has been defined as the default value.

    We have seen an increase in the number of calls from customers indicating that when they try to print from Outlook 2007 (Windows XP SP3 + all updates), they receive an error indicating that there is no installed printer.  However, they have not only more than one printer installed, but they also have a default printer set.  Restart the print spooler solves this problem, but it is not clear what caused its all first.  When we stop and possibly restart the spooler, we notice that for a while, it crashes when stop and the following appears in the event viewer:

    Event type: error
    Event source: Service Control Manager
    Event category: no
    Event ID: 7011
    Date: 10/20/2009
    Time: 09:38:48
    User: n/a
    Computer: XX-YYY-123456
    Description: Delay (30000 milliseconds) waiting for a response from the spooler service transaction.

    Event type: error
    Event source: Service Control Manager
    Event category: no
    Event ID: 7011
    Date: 10/20/2009
    Time: 09:39:18
    User: n/a
    Computer: XX-YYY-123456
    Description: Delay (30000 milliseconds) waiting for a response from the service transaction.

    Related to this, last week we received a number of calls from users telling us their machines suspended once during the logon process to enter their credentials.  Even 20 minutes of waiting does not solve the problem and restart the machine took care of her.  We have a long login script so I added the lines that surround and inside the different functions, calls, WMI queries etc. within a specified period that he might be the cause of the problem.  Turns, when the script got to the point where he enumerated the list printers, he hung the machine.  (The code below at the bottom.)  Once this comment out code, users were connecting to fine, and the same timeout error preceding appeared in the login script.  What gives!

    Sounds to me as we have a problem of possible spooler, but outside the removal & time printers and their drivers, I'm not sure where to look, or why it affects only a small percentage of our population and more importantly again, suddenly.  I'm open to suggestions.

    * Excerpt from Login Script
    login_printer_list = «»
    Set colSettings = objWMIService.ExecQuery ("" Select * from Win32_Printer ' ")
    "I already had a 'debug' function that will write to a log file
    "just prior to each registration statement."  Then the newspaper
    "appearing on line indicating he was beginning the process..."
    For each objWMI_Item in colSettings
    "It was not anything beyond the code above in the process."  Where this
    "comment is, I got another line, where he would be out
    ' objWMI_Item.name in the debug log.
    login_printer_list = login_printer_list & "-" & objWMI_Item.name
    If objWMI_Item.Default = True Then login_default_printer = objWMI_Item.name
    Next
    -EOF

    Any help is greatly appreciated.

    --
    Julius G. Perkins, IV
    Enterprise systems
    Architect job

    Please click on the link for the information below:

    http://support.Microsoft.com/default.aspx/KB/811428
    MOEEN AJAZ KHAN MD - MCP/N + / A +.

  • When you use Windows Live Photo Gallery SCREENSAVER, monitor off, regardless of power parameters. The power settings work with all the other screen savers.

    Windows Live Photo Gallery screensaver does not extinguish whatever my power settings.  This is the case with Windows Live Photo Gallery.  When you use any other screen saver, the screen turns off according to the way in which the power settings are defined.  It is quite frustrating because I prefer to use as my screen saver Windows Live Photo Gallery.  But he will stay indefinitely if I stop it manually.  Someone has any idea how to solve this problem?   Thank you.

    Hi MaynardCrossman


    As the issue seems to be specific to Windows Live Photo gallery, you can contact the Windows Live support team. I would recommend posting your query to community specific to Microsoft Windows Live. Please visit the link below to find a community that will provide the support that ask you in the right direction for Windows Live -http://windowslivehelp.com/product.aspx?productid=20

    I hope this helps.

  • problem in the form of master-detail when you use the ADF table for detail

    Hello

    jdev version - 11.1.2.1.0


    I create master shape detail using datacontrol drag as ADF master shape secondary Table.


    Now when I create a new line in the detail table using the key CreateInsert a new empty row created on top of the secondary table.

    and other show line that the previous record data based on the master.

    problem is I want to when I click on the createInsert button all the line of the secondary table must be empty and what line to fill two or three user then validate.



    Thanks in advance

    Hello

    If a secondary table has data, then createInsert adds to them. If you want to hide the existing lines, create a new instance of the View object and set the option "extract database" to "No. Rows. Use an af:switcher to change the specified table when the user clicks the createInsert button. There is some coding needed to have this use case in the ADF, but its essentially declarative. Bottom line, is that there is no option automated other than to create new lines in a separate page or dialog box if you are bothered by existing lines

    Frank

  • When you use the pen tool when I click and create an anchor point and release the mouse button the pen tool emerges from the anchor and allow me to go and select a new anchor point. The right pen tool keeps adding lines that I move the mouse.

    When you use the pen tool when I click and create an anchor point and release the mouse button the pen tool emerges from the anchor and allow me to go and select a new anchor point. The right pen tool keeps adding lines that I move the mouse.  How can I get the pen tool to release the anchor

    Try this.go in the menus. Select cc illustrator > preferences > display selection & anchor > then make sure the box "activate the rubber band for" the pen tool is not selected. Then press OK. It should work.

  • When you use the brush in the development module and I have a lot less brushes to create an image, the program hangs up to what I sometimes have to use windows to complete the task.  I have ICC Intel i7 3.4 and 16 GB of RAM to operate Windows 7.  Why hang

    When you use the brush in the development module and I have a lot less brushes to create an image, the program hangs up to what I sometimes have to use windows to complete the task.  I have ICC Intel i7 3.4 and 16 GB of RAM to operate Windows 7.  Why hang up LR

    Doing a lot of brushing up on an image using Lightroom is known to have this problem. The first thing to try is to turn off the graphics acceleration (go to Preferences/Performance tab and then uncheck the box here). IF this does not help, then you can consider doing your brush in Photoshop Elements or Photoshop, instead of brushing in Lightroom.

  • Firefox does not open after the update. Cannot open the profile technical, even when you use the directory in cmd line path

    I'm using Firefox on a Windows 7 computer. Firefox does not open after the last update. I read the help articles and it seems that I need to create a new profile because my settings were probably corrupted. I'm unable to open the profile technical, even when you use the directory in cmd line path. I tried the following commands in the command line:

    Firefox Pei
    "C:\Program Files (x 86) \Mozilla" PEI

    Nothing happens with every order.

    I am also running Norton Internet Security. I read a help of virtual navigation features Re article that can cause a problem. The article says to check the setting of virtualization in the internet security software and to clear the virtual cache. I went through all the menus of settings in Norton Internet Security version 21.6.0.32 and I don't see anything that looked like in "virtualization" settings, so I guess that does not apply to me. "

    If you have any ideas, I had appreaciate that your expertise!

    Hello arcandl, at the launch of the firefox is not after you double-click the shortcut, it is sometimes also a sign of active malware on a system.
    you might want to try running a scan with some various other security like the free version of malwarebytes and adwcleaner tools that are specialized to remove the adware and browser hijackers.

    Fix Firefox problems caused by malicious software

  • Crashes when you use safari

    MY Mac Pro 2009 crashes when you use Safari. I can tell when it is about to happen. The screen will start to Flash and the mouse still moves, but you cannot select anything. Sometimes I can get it to unlock by pressing the ESC key.

    When the freeze on Safari, note the exact time: hour, minute, second.

    These must be run as administrator. If you have only one user account, you are the administrator.

    Run the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Each message in the journal begins with the date and time when it was entered. Highlight date back to the time you noted above.

    Select the messages entered since then until the end of the episode, or until they begin to repeat, whichever comes first.

    Copy messages to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost all this is useless to solve any particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name, may appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • Loop Finder crash after upgrading to El Capitan.  'Finder close unexpectedly when you use the plug-in finder' - the message really is in Norwegian, so it may be different for the English operating system.

    'Finder close unexpectedly when you use the plug-in finder' - the message really is in Norwegian, so it may be different for the English.  The e is a compatibility issue with dropbox or Google drive in El Capitan?  Those are the plug-ins only that I could find.  Thank you very much.

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    Step 1

    For this step, the title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    In the upper right corner of the Console window, there is a search box to filter. Enter the name of the application crashed or process. For example, if Safari has crashed, you would enter "Safari" (without the quotes).

    Each message in the journal begins with the date and time when it was entered. Select the messages since the time of the last fall, as appropriate. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name, may appear in the log. Anonymize before posting.

    Step 2

    In the Console window, clear the search box, and then select

    DIAGNOSIS AND diagnostic USE information reports ▹ user

    (not diagnose them and use Messages) in the list of logs on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points downwards. You will see a list of reports of incidents. The name of each report begins with the name of the process and ends with ".crash". Select the most recent report on the process in question. The content of the report is displayed at right. Allows you to copy and paste to validate all of the content, text, not a screenshot.

    I know that the report is long, perhaps several hundred lines. Please report all this anyway. If the report is only a few lines, make sure that you have disabled the search box.

    If you don't see any report, but you know, he had an accident, you have chosen diagnostic and using the list of Log Messages. INFORMATION on the USE of DIAGNOSTIC AND choose instead.

    In the interest of privacy, I suggest that, before posting, you change the UUID ' anonymous, ' a long string of letters, numbers and dashes in the header of the report, if it is present (it cannot be). "

    Please do not post other types of diagnostic report - they are very long and rarely useful.

    When you post the journal excerpt or the accident report, you might see an error message on the web page: "you have included content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • When you use a left and right axis, how to choose what issed axis for the value of y GetGraphCursor?

    I use a graph with a left and right axis (2 data sets).  I try to use a slider to select a point in time (x) and the values of y in the two sets of data.  I can't understand how the control, the value that is returned for the value is when you use the GetGraphCursor call.

    GetGraphCursor (panelHandle, PANEL_GRAPH, yourCursorNumber, & x & y)

    Using SetCursorAttribute with the attribute ATTR_CURSOR_YAXIS must be what you are looking for. The online help for this attribute explains wery well:

    Description: Used to change the y-axis which is associated with the bar graph.
    When a graphics cursor is created, the Y axis with which it is associated is determined by the value of ATTR_ACTIVE_YAXIS.  Subsequently, the association can be changed using ATTR_CURSOR_YAXIS.
    The y-axis associate serves as reference for the coordinates of the cursor position in calls to SetGraphCursor and GetGraphCursor.

  • When you use the media player, it is possible to take a song that's already torn in our library and announced another song or part of the same song at the end? kinda like a mix.

    When you use the media player, it is possible to take a song that's already torn in our library and announced another song or part of the same song at the end? kinda like a mix.

    Windows Media Player is not a Publisher.

    You can use Windows Movie Maker to split
    and combine audio files, but it works better
    If they are in the. WMA format.

    Also the free Audacity software may be worth a try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Audacity

    http://Audacity.sourceforge.NET/

    How to split a long recording into multiple files or CD tracks?
    http://Audacity.sourceforge.NET/Help/FAQ?s=files&i=split

    How to combine two files into one longer file?
    http://Audacity.sourceforge.NET/Help/FAQ?s=editing&i=join

    How to mix songs with Audacity
    http://www.ehow.com/how_5061510_mix-songs-audacity.html

Maybe you are looking for