Best approach to implement reusable confirmation dialog ?

Hi,
What's the best approach to implement reusable confirmation dialogs with ADF 11g?
e.g.: "Do you realy want to delete this client record (yes/no)?" should be used on several pages but with different message text.
Also I have to know in the calling page which button (yes, no, ...) the user has pressed in the af:dialog.
If it's af:popup is it possible to place af:dialog within page template to avoid placing af:popup within each page?
regards
Peter

Hi,
What's the best approach to implement reusable confirmation dialogs with ADF 11g?
e.g.: "Do you realy want to delete this client record (yes/no)?" should be used on several pages but with different message text.
Build a declarative component
Also I have to know in the calling page which button (yes, no, ...) the user has pressed in the af:dialog.
You can do this through a method reference in a declarative component. Its a method on the calling page's managed bean that is invoked from the declarative component
If it's af:popup is it possible to place af:dialog within page template to avoid placing af:popup within each page?
May not make sense but should be possible
Frank

Similar Messages

  • Looking for best approach to implement all ERP and CRM Analytics

    There is a scope to implement all the ERP Analytics (HR, Finance, SCM, Procurement & Spend, Project) and CRM Analytics (Sales, service, Marketing, Contact Center, Price, Loyalty ). Just want to know the best approach for impelmentation of both ERP and CRM analytics
    1- Work with two separate containers with separate execution plan for ERP and CRM
    2- Work with one container with one execution plan for both ERP and CRM
    3- Work with one container with separate execution plans for both ERP and CRM
    Also, Please let me know if there any standard document to achieve both the implementations simultaneously.
    Thanks!

    Answer, as always, is "it depends". Here is a list of things to consider w the 3 approaches you mentioned:
    1- Work with two separate containers with separate execution plan for ERP and CRM
    This is a good approach if you plan on a different frequency of ETL loads for each container or different timings. As long as the targets are the same and you run INCREMENTAL loads from both containers, then the refresh dates will be updated. This is usually a good idea if your ERP and CRM users have different timing and load requirements and do not want to "interfere" w each other. You will also have DATASOURCE NUM ID uniquely defined for each system so the data will be segregated. By default, each source system will have its own container
    2- Work with one container with one execution plan for both ERP and CRM
    This is good if you are ok w the same exact load time for both. Its a simple approach and all tables will be loaded at the same time to avoid any confusion.
    3- Work with one container with separate execution plans for both ERP and CRM
    Not sure what the advantage of this option versus keeping them in separate containers (like Option 1).
    I would also review the secion in the DAC guide for "MultiSource Execution Plans"
    if helpful, pls mark correct

  • Is there an easy way to implement a confirm dialog?

    Hi All,
        I'm wondering is there an easy way to show an confirm dialog to user with out create a new view manually?
        Thanks,
    YiNing

    Hi ,
    use the below code for confirmation box , with 2 options "OK "
    and "Cancel"
    IWDControllerInfo controllerInfo =     wdControllerAPI.getViewInfo().getViewController();
    IWDConfirmationDialog dialog =     wdComponentAPI.getWindowManager().createConfirmationWindow
                                    ( String dialogText,controllerInfo.findInEventHandlers                                ("ok"),"Ok");
                        dialog.addChoice(controllerInfo.findInEventHandlers                                          ("cancel"), "Cancel");
                        dialog.open();     
    Thanks,
    Sunitha Hari

  • Best approach to implement this requirement in OIM

    Hi experts
    We have an application(say App1) in which we use GTC DB connector to provision users from OIM. But due to some limitations in App1, the communication has to be changed from GTC to custom webservices one.
    For this we have done the following configurations
    1. Introduced new mandatory fields to same process form of App1(as per the req.)
    2. Cleaned all the GTC adapters in the process def of App1 and attached the webservice related adapters.
    So after introducing webservices, the known issues could be
    1. Revoke user fails for existing users since the existing users are already provisioned using GTC conn.
    The reason is, by default if we revoke a user then the revoke user task contains newly created Webservices adapter which will not complete the operation saying that mandatory values are missing for the fields in process form.
    2. Same is the case for Disable/Enable users.
    what would be the best approach to perform the above said operations for existing users who are already provisioned.
    we are not willing to go for creating new Resource Object for webservices communication.
    Any valuable pointers are highly appreciated.

    Hi
    I am trying to run the FVC utility to update the process form fields for old users.
    The FVC properties file looks like
    fvc.properties
    ResourceObject;GTCConnector
    FormName;UD_GTCFORM
    FromVersion;v1.0
    ToVersion;v3.0
    Parent;UD_GTCFORM_DUMMYFIELD;Default;Update
    The field UD_GTCFORM_DUMMYFIELD has been created in latest active version v3.0. I am trying to update some value to older versions of the process form
    When I run the script fvcutil_websphere.cmd, it is throwing me error message below.
    WSCL0100E: Exception received: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at com.ibm.ws.client.applicationclient.launchClient.createContainerAndLa
    unchApp(launchClient.java:747)
    at com.ibm.ws.client.applicationclient.launchClient.main(launchClient.ja
    va:469)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:183)
    at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:90)
    at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:72)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformAct
    ivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
    va:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
    va:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.jav
    a:245)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:73)
    at com.ibm.websphere.client.applicationclient.launchClient.main(launchCl
    ient.java:238)
    Caused by: java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(StringTokenizer.java:347)
    at com.thortech.xl.util.fvcutil.FVCUtil.initialize(Unknown Source)
    at com.thortech.xl.util.fvcutil.FVCUtil.<init>(Unknown Source)
    at com.thortech.xl.util.fvcutil.FVCUtil.main(Unknown Source)
    ... 26 more
    Does any one came across this type of error.
    Thanks in Advance

  • OIM + OAM .. best approach of implementation

    Hi There,
    We have two sets of users, one in MS - AD and one in SUN LDAP..
    Both users, access two applications, App1 and App2
    App1 authenticates MS - AD
    App2 authenticates SUN LDAP
    What is the best approach for Single Sign ON to such use - case ?
    approach i thought of is
    1. Reconcile both repositories in OIM
    2. Deploy OAM by configuring OIM as OAM back end ?
    Any other best approach ?
    I have skill sets for OIM , but OAM a new bee :-|
    Please provide inputs..
    Cheers,
    Gops

    OVD would act as a facade for OAM and make the two LDAP directories look like one for OAM.
    Another option is to use OIM as a kind of metadirectory and replicate all information from AD and Sun LDAP into either one of the directories or an OID. OAM will then use the consolidated directory.
    The main reason to use the OVD approach is that it is hard or impossible to use the metadirectory approach to replicate passwords as they are usually stored in one way hashes.
    Best regards
    /Martin

  • Best approach to implement feature "I found a mistake" in SAP EP

    Hi All,
    We are planning to implement functionality where any end user can log in the mistake he/she found while using Portal i.e. "I found a mistake".
    This is very critical to Business since
    1) Evryday we post lot of content
    2) There will be always some improvement areas which we do not notice
    Regards,
    Ganga

    Hi,
    Thanks for your reply. But I need to know following details:
    1) Send a message to your local SAP Support. - Where we need to configure this?
    2) Can we change configuration so that an email will be sent once the user logs the error
    3)Component --- Can we taek out this and since we are reporting for an specific iView, can we make it to point to name of iView
    4) Attach any relevant files (optional).-- Where attachments are stored?
    5) What are the database tables involved in this?
    Regards,
    Ganga
    Edited by: Hiremath Gangadharayya on Jul 25, 2008 7:39 PM

  • Confirmation Dialog Box

    Hi All,
    With ADF UIX, what is the recommended way to implement a confirmation dialog box to get user's confirmation before an action is actually executed? Any UIX element like <messagebox>?
    Thanks.
    Elton.

    Elton,
    The best examples we have publicly available are at http://download.oracle.com/otn/nt/ids/uix/217/uix-demo-2.1.7.zip
    (I hope the link still works)
    This is for UIX 2.1.7, which is what ships with JDev 9.0.3. You'll want to do some things a bit differently if developing with UIX 2.2 in JDeveloper 10G.
    Hope this helps,
    Ryan

  • Best approach -Tabs based ADF Tree left side navigation with Dynamic Regions with out UI Shell

    Hi,
    Somebody can help for the best approach to implement the following requirement.
    Req: When the user select the ADF Tree left side navigation menu, each menu will open as multiple tabs(Dynamic Tabs) in right side content area with out UI Shell Template.
    I completed the
    Step-1: From the Model project, I can able to render ADF Tree in the using view and view links. I can get the adf tree which is having 3 menu items. Each menu item having 2 sub menu's.
    I took each menu item as one(1) taskflow, each taskflow will have two(2) fragments.
    Total I have 3 task flows as Menu Items and 6 fragments for sub menu's.
    Step-2:  My question is How do I implement Tab based the ADF tree navigation (left side area to dynamic regions in content area) through dynamic regions? Please provide the steps in view layers.

    Than ks for your response.
    This is working fine for ADF Tree navigation with dynamic regions if the taskflow having only one fragment. if the taskflow having more than one fragments, this will not work. The following conditions are always satisfies one page fragment of either "employees" or "departments" task flow.  If the "employees" task flow have 2 page fragments, it's not work even you pass parameters through routers.
    public TaskFlowId getDynamicTaskFlowId() {
    if (currentTaskFlowID == null ||
    currentTaskFlowID.equalsIgnoreCase(“employees”)) {
    return TaskFlowId.parse(employeetaskFlowId);
    if (currentTaskFlowID != null &&
    currentTaskFlowID.equalsIgnoreCase(“departments”)) {
    return TaskFlowId.parse(departmetaskFlowId);
    return TaskFlowId.parse(employeetaskFlowId);
    My question is "Same use case with Dynamic Tabs" when the user click on any adf tree node.

  • Best way to implement a 3 tier architecture

    Hi,
    I have just been given a project to implement...basically it involves providing access to an oracle database to about 20 of our customers from a webpage. The way I initially intended to go was to use an applet GUI, java RMI and JDBC. Is this the best way to go...key requirements are ability to copy lots of existing database field entries to new entries, ease of use and pretty good speed??
    Is an applet GUI the best approach or is there an easier way via just enetering data directly to the webpage (i.e CGI type approach??)
    This is my first fairly big project...I know a reasonable amount of java but not a lot about web development.
    Advice on the best approach to implement this project would be greatly appreciated.
    thanks inadvance
    Willie

    Unless you need some GUI feature that HTML can't provide, I would avoid the use of applets. There are too many gotchas that you'll have to work around. Instead, I would recommend servlets and JSPs running on your web server (that's the Java equivalent of "CGI") and communicating with the user via HTML. Then you wouldn't have to deal with RMI, either, your servlets could talk to the database directly.

  • Best approach for building dialogs based on Java Beans

    I have a large amount of Java Beans with several properties each. These represent all the "data" in our system. We will now build a new GUI for the system and I intend to reuse the beans as far as possible. My idea is to automatically generate the configuration dialogs for each bean using the java.beans package.
    What is the best approach for achieving this? Should I use PropertyEditors or should I make my own dialog-generator using the Introspetor class or are there any other suitable solutions?
    All suggestions and tips are very welcome.
    Thanks!
    Erik

    Definitely, it is better for you to use JTable. Why not try it?

  • Multiple Confirmation dialog boxes event handling

    Hi all,
    I had a scenario, where i need to display two confirmation dialog boxes based on timers.
    At the first timers timeout confirmation dialog box poped up and user haven't done anything.
    second confirmation dialog popup appears after second timer timeout.
    But, my problem is closing or destroying the first dialog box, when handling the second dialog event or before second dialog popup on screen.
    Can anyone suggest the best approach to handle dialog destroy functionality.
    regards,
    Venkat

    hi!
    also refer to this link if you are going for dialog windows
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1
    thanks
    vishal

  • Submiting JSF form on clicking ok of Confirm dialog box

    Hi,
    We are using JSF 1.2 and Seam 2 in our project.
    We have set of requirements
    1)To throw a confirmation dialog box when user tries to navigate away from page with out saving the data changes. It includes browser closure, back button and refresh as well along with other application navigation links.
    2) upon clicking ok we need to save the current JSF form and redirect to where user is intended to navigate.
    Please let me know the best ways of implementing the above requirements.

    For the first point, I totally agree with Raymond and you can use the javascript function like this:
    <script>
    window.onbeforeunload =
    function(){
    if((window.event.clientX<0) || (window.event.clientY<0)){
    //create new confirm window here
    //I guess you can check on opening a new JSF page itself as a pop up.
    //in that page with normal form and submit buttons, I guess you can call JSF action methods.
    </script>

  • Confirm Dialog on Closing Web Application with unsaved data?

    Hi all,
    I am searching for best-practices or official solutions for implementing the following functionalty:
    User is trying to close the browser window or tab (Mozilla Firefox) by hitting the "X". We need to ask him if he is sure cause there might be unsaved data.
    The only solution we now see is the following:
    - event "onbeforeunlad":
    window.onbeforeunload = function (oEvent) {
      oEvent.returnValue = 'Sure? Unchanged data might be lost'
    Problem is that this event also runs, when youre navigating in the analysis item, e.g. expanding a hierarchy. You have to switch it of for every single Item with onmouseover and switch it on again later.
    And further on: It still has to be bound to the data... if data hasn't changed, it shouldnt pop up.
    Question: Are there any official suggestions from SAP? Seems to be a standard requirement. If not, do you know any better solutions for implementing this functionality?
    Thanks in advance for your help,
    Michael

    try capturing the onBeforeUnload event and display a modal confirmation dialog asking the user if he really wants to navigate away from the page; and warning him that if he does so, all the changes he made hitherto will be gone.
    However, you need to handle this intelligently since you need to identify if any fields in the form have changed and only then warn the user to confirm his decision to go away from this page.
    You can do this by having a flag which is initialized to false but when onBeforeUnload event is fired, you would check if any of the form fields in the page have changed by iterating over each and every form field,and then setting the flag to true if some thing changed
    the onBeforeUnload Handler will always return this flag, if it is true, you will get this confirmation popup, else the page will go away. To show a customized confirmation dialog, perhaps you would have to invoke the custom dialog call from with in the onBeforeUnload handler. When the user says yes, return false;else true.

  • Displaying Multiple Values on GUI components - best way to implement

    Hi,
    my program needs to implement a basic function that most commercial programs use very widely: If the program requires that a GUI component (say a JTextField) needs to display multiple values it either goes <blank> or say something more meaningfull like "multiple values". What is the best way of implementing it?
    In particular:
    My data is a class called "Student" that among other things has a field for the student name, like: protected String name; and the usual accessor methods (getName, setName) for it.
    Assuming that the above data (i.e. Student objects) is stored in a ListModel and the user can select multiple "Students", if a JTextField is required to display the user selection (blank for multiple selections, or the student "name" for a single selection), what is the best (OO) way of implementing it? Is there any design pattern (best practice) for this basic piece of functionality? A crude way is to have the JTextField check and compare all the time the user selections one by one, but I'm sure there must be a more OO/better approach.
    Any ideas much appreciated.
    Kyri.

    Ok, I will focus on building a solution on 12c.
    right now I have used a USER_DATASTORE with a procedure to glue all the field together in one document.
    This works fine for the search.
    I have created a dummy table on which the index is created and also has an extra field which contains the key related to all the tables.
    So, I have the following tables:
    dummy_search
    contracts
    contract_ref
    person_data
    nac_data
    and some other tables...
    the current design is:
    the index is on dummy_search.
    When we update contracts table a trigger will update dummy_search.
    same configuration for the other tables.
    Now we see locking issues when having a lot of updates on these tables as the same time.
    What is you advice for this situation?
    Thanks,
    Edward

  • What are the best approaches for mapping re-start in OWB?

    What are the best approaches for mapping re-start in OWB?
    We are using OWB repository 10.2.0.1.0 and OWB client 10.2.0.1.31. The Oracle version is 10 G (10.2.0.3.0). OWB is installed on Linux.
    We have number of mappings. We built process flows for mappings as well.
    I like to know, what are the best approches to incorportate re-start options in our process. ie a failure of mapping in process flow.
    How do we re-cycle failed rows?
    Are there any builtin features/best approaches in OWB to implement the above?
    Does runtime audit tables help us to build re-start process?
    If not, do we need to maintain our own tables (custom) to maintain such data?
    How did our forum members handled above situations?
    Any idea ?
    Thanks in advance.
    RI

    Hi RI,
    How many mappings (range) do you have in a process flows?Several hundreds (100-300 mappings).
    If we have three mappings (eg m1, m2, m3) in process flow. What will happen if m2 fails?Suppose mappings connected sequentially (m1 -> m2 -> m3). When m2 fails then processflow is suspended (transition to m3 will not be performed). You should obviate cause of error (modify mapping and redeploy, correct data, etc) and then repeat m2 mapping execution from Workflow monitor - open diagram with processflow, select mapping m2 and click button Expedite, choose option Repeat.
    In re-start, will it run m1 again and m2 son on, or will it re-start at row1 of m2?You can specify restart point. "at row1 of m2" - I don't understand what you mean (all mappings run in Set based mode, so in case of error all table updates will rollback,
    but there are several exception - for example multiple target tables in mapping without corelated commit, or error in post-mapping - you must carefully analyze results of error).
    What will happen if m3 fails?Process is suspended and you can restart execution from m3.
    By having without failover and with max.number of errors=0, you achieve re-cycle failed rows to zero (0).This settings guarantee existence only two return result of mapping - SUCCSES or ERROR.
    What is the impact, if we have large volume of data?In my opinion for large volume Set based mode is the prefered processing mode of data processing.
    With this mode you have full range enterprise features of Oracle database - parallel query, parallel DML, nologging, etc.
    Oleg

Maybe you are looking for

  • Why is iDVD compressing images in my menu template?

    Hi All I am compiling a movie in iDVD ver 6.0.3 on Mac Pro using the "Lines" template from 5.0 Themes for my DVD menu. This template let's you drop in some photos that scroll across the screen. So, I dragged & dropped some high resolution images into

  • How do I move songs into one album/file?

    When I copy a CD into my library, it copies as 16 albums of one tune each instead of one album of 16 tunes.  How do I move the songs into a single album and how do I keep this from happening when I copy a new CD?

  • How do you get the os 4.3.

    how do u updaTE THE OS 4.3.

  • Aaaaargh!!

    iWeb, brilliant, made my new page and love it, published it but the hyperlinks don't work from my own front page to the ones after it.. I assumed they would link automatically but is that the case? If not can anyone advise how to get them to link

  • Where there are effects in the menubar?

    Hi, I've Logic Pro 9.6 and Soundtrack Pro 3. Sometimes. In this last time I would like to insert a plugin in a part of an audiofile. Once a time I used to go in the menubar searching PROCESS > EFFECTS and then find a list of plugins, but now there is