Af:CommandButton and Dialog

Hi All,
I'm using ADF BC, JDev 11G. I would like to know If I can use a Dialog box to display a confirmation message in context of Deleting a record.
If its possible can i have some guidance as to how i can proceed.
Thanks and Regards
Jyothi

Just use something like this (this is for 11g):
<af:commandToolbarButton shortDesc="Delete"
partialSubmit="true"
id="dltCat">
<af:showPopupBehavior popupId="popupDialog"
align="afterEnd"/>
</af:commandToolbarButton>
<af:popup id="popupDialog" partialTriggers="tabCat">
<af:dialog title="Delete confirm"
dialogListener="#{backingBean.removeMethod}"
affirmativeTextAndAccessKey="Delete"
noTextAndAccessKey="Cancel" id="delDial">
<af:panelGroupLayout id="pgl2">
<af:outputText value="Are you sure?"
id="ot1"/>
</af:panelGroupLayout>
</af:dialog>
</af:popup>

Similar Messages

  • JSF problem Session Scoped and dialog

    Hello All! i have one problem with using ajax and session scoped .
    I'm using JSF 2.0 and Primefaces for build 2 dialog.
    I have one icon to click on it dialog 1 will display and show all list of customers and when i click details of customer on dialog 1, dialog 2 will display , and details of customer show base on <h:form>
    but my problem is when i click details of customer with id #1 it not show details of customer it return null, i must refresh this page and click on customer #1 and it display, but when i click on customer with id #3 it still display customer with id #1,and i must refresh page again to view customer with id #3 and after that if i want see details of other customer such as customer with id #5 i must click and refresh page, after refresh page i click on any id of customer if always show the last id of customer before refresh page, it mean because i use p:commandButton with ajax and 2 dialog inside one page, i know , if using session scoped i must pass value from one page to another page. But i want get id in the same page with session scoped this mean when i use p:commandButton call dialog 2 for pass id value from dialog one to dialog two it will get value don't refresh page . How can i do it? or can i call dialog from another show on the same page contain dialog 1?
    Primefaces dialog http://www.primefaces.org/showcase/ui/dialogHome.jsf

    Hello All! i have one problem with using ajax and session scoped .
    I'm using JSF 2.0 and Primefaces for build 2 dialog.
    I have one icon to click on it dialog 1 will display and show all list of customers and when i click details of customer on dialog 1, dialog 2 will display , and details of customer show base on <h:form>
    but my problem is when i click details of customer with id #1 it not show details of customer it return null, i must refresh this page and click on customer #1 and it display, but when i click on customer with id #3 it still display customer with id #1,and i must refresh page again to view customer with id #3 and after that if i want see details of other customer such as customer with id #5 i must click and refresh page, after refresh page i click on any id of customer if always show the last id of customer before refresh page, it mean because i use p:commandButton with ajax and 2 dialog inside one page, i know , if using session scoped i must pass value from one page to another page. But i want get id in the same page with session scoped this mean when i use p:commandButton call dialog 2 for pass id value from dialog one to dialog two it will get value don't refresh page . How can i do it? or can i call dialog from another show on the same page contain dialog 1?
    Primefaces dialog http://www.primefaces.org/showcase/ui/dialogHome.jsf

  • Process and dialogs

    I am refering to the below article.
    http://www.oracle.com/technology/products/jdev/101/howtos/adfdialog/index.html
    But there is no useDialog option on the commandButtons and commandLinks. Is this an outdated document. Or am I missing anything here...
    - Gana

    Gana,
    The way to get a command button/link to use a dialog is to use a navigation case that starts with "dialog:" If you'd like the dialog to appear in a pop-up window, also set useWindow=true.
    Hope this helps,
    John

  • What is difference between report programming and dialog programming?

    hi,
    what is difference between report programming and dialog programming? plz provide some example code
    bye

    ABAP programming
    Basically reports are used to read database and represent the results in lists.
    Reports are collections of processing blocks that the system calls depending on events.
    We can use reports to evaluate data from database tables.
    Reports are stand alone programs and controlled by events.
    A report itself never creates events
    steps in report:
    Processing the selection screen
    Reading the database
    Evaluating the data and creating lists
    Outputting a list.
    1st u write simple logics, after that u can enhance the code as step by step.
    http://venus.imp.mx/hilario/Libros/TeachYrslfAbap4/index.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802cfc454211d189710000e8322d00/frameset.htm
    http://www.sapdev.co.uk/reporting/reportinghome.htm
    Dialog Programming
    Structure of a Dialog Program
    A dialog program consists of the following basic components:
    Screens (dynpros)
    Each dialog in an SAP system is controlled by dynpros. A dynpro (DYnamic PROgram) consists of a screen and its flow logic and controls exactly one dialog step. The flow logic determines which processing takes place before displaying the screen (PBO-Process Before Output) and after receiving the entries the user made on the screen (PAI-Process After Input).
    The screen layout fixed in the Screen Painter determines the positions of input/output fields, text fields, and graphical elements such as radio buttons and checkboxes. In addition, the Menu Painter allows to store menus, icons, pushbuttons, and function keys in one or more GUI statuses. Dynpros and GUI statuses refer to the ABAP/4 program that control the sequence of the dynpros and GUI statuses at runtime.
    ABAP/4 module pool
    Each dynpro refers to exactly one ABAP/4 dialog program. Such a dialog program is also called a module pool, since it consists of interactive modules. The flow logic of a dynpro contains calls of modules from the corresponding module pool. Interactive modules called at the PBO event are used to prepare the screen template in accordance to the context, for example by setting field contents or by suppressing fields from the display that are not needed. Interactive modules called at the PAI event are used to check the user input and to trigger appropriate dialog steps, such as the update task.
    All dynpros to be called from within one transaction refer to a common module pool. The dynpros of a module pool are numbered. By default, the system stores for each dynpro the dynpro to be displayed next. This dynpro sequence or chain can be linear as well as cyclic. From within a dynpro chain, you can even call another dynpro chain and, after processing it, return to the original chain.
    Check this link for basics.
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    Check this link for Dialog Programming/Table Control
    http://www.planetsap.com/Tips_and_Tricks.htm#dialog
    Check this SAP Help for Dialog Program doc.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    Check this SAP Help link for Subscreens.
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm
    Check this link for subscreen demo program.
    http://abapcode.blogspot.com/2007/05/demo-program-to-create-subscreen-in.html
    Also check this link too.
    http://abapcode.blogspot.com/2007/06/dialog-programming-faq.html
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld004.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/52/670c17439b11d1896f0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/52/670c17439b11d1896f0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ccf35c111d1829f0000e829fbfe/frameset.htm
    http://abapprogramming.blogspot.com/

  • How to delete help button in the wizard and dialogs.

    Hello,
    I am trying to delete the Help button in the wizard and dialogs provided by bibeans and having problems. Can someone give me an advise regarding the following three issues please? Thank you.
    bibeans:bibeans903a
    JDeveloper:JDeveloper903
    1)Deleting the Help Button from the Print Dialog.
    I'm using "oracle.dss.dataView.gui.PrintDialog" for the Print Dialog and this class has method to delete the Help button(setHelpEnabled(Boolean)).
    But, the Help button is always displayed even when I set false for this method like below.
    PrintDialog.setHelpEnabled(false);
    2) Deleting the Help button from Open Dialog and BI Explorer.
    I am using "PersistenceObjectChooser" class for Open Dialog and "Explorer" class for BI Explorer. But, these classes does not have a method to delete the Help button like the PringDialog class has. How can I delete the Help button for these dialogs?
    3) Deleting the Help button from Calculation Builder.
    I am using "CalcBuilderStepStorage" class to build a calculation and trying to delete the Help button like this.
    ((DefultBuilderDialog)calcBuilderStepStorage.getContainer()).getWizard().setHelpAvailable(false);
    But, again the Help button will be displayed

    hi,
    Use this code..
    REPORT  Z_TEST999                               .
    DATA itab TYPE TABLE OF sy-ucomm.
    PARAMETERS test(10) TYPE c.
    AT SELECTION-SCREEN OUTPUT.
      APPEND: 'E' TO itab.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
           EXPORTING
                p_status  = sy-pfkey
           TABLES
                p_exclude = itab.
    Regards,
    Sailaja.

  • Displaying menus and dialogs in different languages

    According to
    http://docs.info.apple.com/article.html?artnum=303588
    Mac OS X could not display menus and dialogs in Polish even when it was selected as the primary language. In other words, Finder was operating only in languages further in the language preference list. I wonder whether users of Macintosh computers sold in Poland had to really use them in English or another language.
    My particular problem is that I am passing iMac indigo running OS X Panther to my father who lives in Poland and knows only Polish. I searched left and right and I can't find anyway to make menus and dialogs to display in Polish. Obviously, Polish dictionary for Finder is missing (my Mac has English and German). But somehow I can't believe that Apple was successful selling computers in Poland without Polish language. Some applications in Panther, like iTunes, do speak Polish.

    I would buy Polish OSX Panther if I was sure that this solves my problem.
    Apple itself never provided a Polish localization for Panther, which was released 5 years ago. But at that time I believe that http://www.apple.com/pl/ did have a special add-on to provide this. You would need to ask them whether they still have that available someplace.
    It would be a lot better to run Leopard, which has Polish included, if possible.

  • Change menu and dialog fonts in PE7

    Is there a way to change the size or face of the PE7 menus and dialogs? I find it hard to read some of the menu choices.
    - Robert

    You can't change the fonts.
    In preferences you can modify the darkness and lightness of the whole program. Go to Edit > Preferences > User Interface and move the brightness slider. You might find a spot where the text is easier to read.

  • Region and dialog return bug in JDEVELOPER 11.1.1.1.0

    SomeOne know hot to fix this bug...??
    http://adfbugs.blogspot.com/2009/08/region-and-dialog-return-bug.html
    ADF_FACES-60058: Attempt to re-register component with different model.
    Cause: An IllegalStateException occurred.
    Action: Contact Oracle Support Services.
    Level: 2
    Type: INCIDENT_ERROR
    Impact: Logging
    I have trying and trying and trying to solve this but didnt get a fix....

    John Stegeman wrote:
    The comments in that blog seem to indicate it was fixed in 11.1.1.2 - so two choices for you:
    1). upgrade
    2). File a support request and ask them to backport the fix.
    Since there is a bug filed with support, you can just contact them to see what the current status is.
    Johnas i heard from August 1, 2011 Oracle has stopped supporting 11.1.1.1.0 ......only 11.1.1.2 or later is supported (or may be they told us this to FORCEFULLY upgrade :P)
    so upgrade would be better choice.
    Zeeshan

  • Differences in Background jobs and Dialog jobs

    Hi everyone,
    I am new to SAP and would like a little clarification regarding what is meant by Background jobs and Dialog jobs/processes. We had a situation at our client location where the system got completely bogged down to the point that it almost froze and many of the process chains were failing in BI. As per the basis team, the jobs were triggered as "dialog jobs" instead of "background" jobs which caused a heavy load on the system.
    What is the difference? What happens when the jobs are run in the background or as dialog? Can both be checked in SM37?
    Points will be awarded
    Thanks.

    **Dialog Work process:** The Dialog work process fulfill all requests for the execution of dialog steps triggered by an active user. The dialog work process are not used for request which take long time and which use more cpu. Every dispatcher requires at least two dialog work processes. The dialog work process default time is 300 secs. If the dialog work process does not respond in this time, it will be terminated. Also dialog work process are multiplexed to handle large no of user request.
    **Background Work process:** The background work processes execute programs that run without user interaction. At least two background work processes are required per SAP system. More than one background work processes can be configured per dispatcher. Usually the background work process are used for carrying jobs that take long time to finish, like client copy, client transport etc.., . There are two types of background work process. They are A type and B type. A type background work process are used for mission critical jobs. Background jobs of priority a have high priority than B type back ground jobs.
    you can check your job using tcode SM50.
    Thanks
    Dhiraj

  • CI (ABAP+Java) & DB in one AIX box and dialog Instance on a Linux box

    We trying to install SAP, CI+DB in one AIX box and dialog Instance on a Linux box. We are facing problem when trying to install Java Dialog Instance. Is it possible and recomended to install in the above manner?
    Has anyone done this? please share your exepeirience.
    thanks & regards,
    Harsha.
    ps we have read the Note 1067221 - Central Note for Heterogeneous Installation, which indicates this is possible.

    If you would have stated, which kind of problem you are facing, we could have seen, if the problem is related to because of heterogeneity or because of something different.
    It should be possible to do that - yes
    Markus

  • What Font is used as the default LabView System and Dialog Font on a windows?

    What font is used as the default LabView System and Dialog font on a Windows system?
    Can I use the default system and dialog font in another software (i.e; Win word or Illustrator etc.)

    For Windows XP, the font is Tahoma. I don't know if Windows has a method for changing this (I thought it would be in the display settings, but couldn't find it). Maybe in the registry?
    For more details, see here.
    Try to take over the world!

  • Disable alert and dialog box in vb script

    Pls. help to disable the alert and dialog box for indesign CS3 in vb script?
    I have try to add the following code to my vb script:
    myIndesign.ScriptPreferences.UserInteractionLevel=1699640946
    (Indesign still display missing Link alert box)
    myIndesign.ScriptPreferences.UserInteractionLevel=idUserInteractionLevels.idNeverInteract
    (Indesign shows need object idUserInteractionLevels)
    myIndesign.ScriptPreferences.UserInteractionLevel=idNeverInteract
    (Indesign shows values should be idUserInteractionLevels enumerator)
    Vb script is running outside Indesign. Script will be automatically stop running when open a missing link document.
    Pls. Help. Thank you!

    Check out this link, it might help.
    http://indesign.objectsdefined.com/adobe/indesign/CS3/clsidUserInteractionLevels.htm

  • Replacing form and dialog text to foreign language

    Hi
    I'm trying to translate some english text to foreign language, but I just cant get it to work in webforms and popup dialog boxes.  It works fine with text that I have typed on the page, but the system-generated text just stay's unchanged
    please help!      This is the javascript that works fine with all text except system-generated test:
    <script type="text/javascript">
    checkLoad();
    function checkLoad(){
    if (document.readyState === "complete") {
    document.body.innerHTML = document.body.innerHTML.replace(/Not set/g, "Ikki &aacute;sett");
    } else {
    setTimeout('checkLoad();', 1500)
    </script>
    Would like the text "Not set" in event bookings (when capacity is not defined) to say "Ikki ásett"  ... but it just does'nt work ..    And dialog pop-ups like "Please enter ..."  to be translated to  "Vinarliga útfyll"

    what do you mean by convert? if you really mean translate then no. there are no good tools in existence anywhere for computer translation from one language into another. that's very hard. there are some online tools like this one http://translate.google.com/# but they do poor job of actual translation if you need to translate actual text and not single words as anybody who used them can testify.

  • How to create smart device application and dialog control using Visual C++ (Visual Studio 2005)

    Hai all,
     Good day. I am new to Visual C++. I tried and done some simple programs and dialog based programs  in MFC application using Visual C++. But when i am trying to do
    VC++ smart device win32 smart device project application project, not getting how to add event handler function for button.  I tried serial communication in smart device application. i have inserted dialog and  in that
    no event handler. Can you please guide me to make a project for embedded board in  VC++ smart device application.
    Thanks & Regards Sasi ................. Go Green

    Hi kvg,
    Thanks for posting in MSDN forum.
    From your post, it seem that this issue is better ask to the
    Visual Studio Smart Device Development - Native C++ Project forum. I will move your thread to that forum for a better support. Thanks for your understanding.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Difrence between module pool and dialog programming

    Hi abapers,
    can plz tell me difrence between module pool and dialog programming.

    Hi,
    Actually Dialog Programming is Module pool Programming.
    Please go thru this , see if your dbout gets clear.
    Basic components of dialog program?
    - Screens (Dynpros)
    - Each dialog in an SAP system is controlled by dynpros.A dynpros consists of a screen
    And its flow logic and controls exactly one dialog step.
    - ABAP/4 module Pool.
    Each dynpro refers to exactly one ABAP/4 dialog program .Such a dialog program is also called a module pool ,since it consists of interactive modules.
    Regards,
    Priyanka.

Maybe you are looking for

  • ERS??

    Hello All, I have been trying to run the ERS process..... 1. I have ticked GR based IV and ERS in vendor master 2. Then I created a PO for this vendor with the GR based IV ticked in the PO 3. Now I go to txn MRRL and run the Txn in test mode 4. I get

  • Syntax in "Where" clause

    can you give me an example with operator Like in Where clause. I need to do something like this: Select Column from Table where Column like "request.getParameter("value") Thanks.

  • After updating to 10.7.4, my second monitor lost its color profile, for Photoshop and Lightroom. I'm on a 2011 MBP with the AMD video chip

    Has anyone else had this happen? Is Apple aware - how can I inform them of my issue - do I have to wait months and months till 10.7.5 comes out, for a solution? Thanks, George

  • Best approach to migrate DB2 UDB V7 for z/OS

    It seems that the latest migration workbench still doesn't work for DB2 UDB V7 on z/OS. What is the best approach to migrate DB2 UDB V7 for z/OS (about 10 GB) to Oracle 10g? Any suggestions/advices are greatly appreciated. Thanks. George

  • Error: Excel cannot complete this task with available resources

    Hello - I am encountering an error when refreshing an EvDRE report in SAP.  The error message is: Excel cannot complete this task with available resources.  Choose less data or close other applications. Other Info: We are running Office 2007. We have