Popup with text area & ok/cancel button

Hi all,
My requirement is to display a popup with a text area in editable mode along with 'Confirm' and 'Cancel' button. If the user changes the text, and presses the 'CONFIRM' the text is to be saved in DB.
How do i implement this? Should i use a FM or modal dialog box?

You can use simple modal dialog box ..
using below syntax :
CALL SCREEN 1100 STARTING AT 1 1.
Select modal dialog box ( Screen type).
Thanks
Seshu

Similar Messages

  • Issues in making label selectable when used with text area

    I have used the following code (which was given in the thread : Re: Making Labels and other controls with text selectable for copy&paste ]
    which shows how to make label selectable with text field. )
    public class TrialArea extends Application {
    >>public void start(final Stage stage) throws Exception {
    >>StackPane layout = new StackPane();
    >>layout.setStyle("-fx-background-color: cornsilk; -fx-padding:10; -fx-font-size: 20");
    >>
    >>Label label1 = (new Label("jqhrjhhhhhhdsfdsfdsfdfdsdsfsdfdsdsdsfsddsdsdfsdfsddsfsfsddsfdsdedsfssdfhhhhhhhhhhhhhhhhhhhhkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\njqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\njqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\njqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\n jqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\n jqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\n jqhrkjhejwqrhjwhj ewjrhewjkrjew ewjhrjewjwke \n qwjkhrjkwerehw \n jkehrkjewhrjkew\n "));
    >>
    >>label1.setWrapText(true);
    >> label1.setPrefWidth(480);
    >>label1.setMaxWidth(480);
    >>layout.getChildren().add(
    makeSelectable(label1)
    );>> Scene scene = new Scene(layout);
    >>stage.setScene(scene);
    stage.show();
    /** @return the passed in label made selectable. */
    private Label makeSelectable(Label label) {
    StackPane textStack = new StackPane();
    TextArea textField = new TextArea(label.getText());>>
    >> textField.setEditable(false);
    textField.setWrapText(true);
    textField.setStyle(
    " -fx-background-color: transparent; -fx-background-insets: 0; -fx-background-radius: 0;"
    );>>
    >>
    // the invisible label is a hack to get the textField to size like a label.
    Label invisibleLabel = new Label();
    invisibleLabel.textProperty().bind(label.textProperty());
    invisibleLabel.setVisible(false);
    >> textStack.getChildren().addAll(invisibleLabel, textField);
    label.textProperty().bindBidirectional(textField.textProperty());
    label.setGraphic(textStack);
    label.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);
    return label;
    public static void main(String[] args) {>> Application.launch(args);
    >> }
    }The issue I am facing is that with text area, the scroll bar is visible, which does not go with label. The label is being selected properly, but how to remove the scroll bar?
    Edited by: Amrita Dasgupta on Mar 11, 2012 11:38 PM

    DVD SP is not Flash or Director and it sounds like you using "hotpots" are thinking more along those lines. If someone puts the DVD in a DVD Player they may get rather frustrated having buttons that do not do anything and the navgation is strange
    Also take a look here for some more pitfalls and why another app may be better for you
    http://discussions.apple.com/thread.jspa?messageID=1085629

  • How to change the text in the Cancel button of JFileChooser ?

    Hello,
    In french the standart text in the Cancel button of the JFileChooser class is "Annuler". For a good reason which will be too long to explain, I need to change it by another term.
    I tried to create a super class and redefine the CANCEL_SELECTION string, but this does not work. I can't either change it directly because it has the final attribute.
    Where does JFileChooser get this word from ? ( I guess it is not hard coded for multilanguage support purpose).
    Any help would be appreciated
    Gege

    I believe the standard Look and feel implementations look in UIManager for a string called FileChooser.cancelButtonText.
    Therefore you might be able to change it after you've loaded your LnF by using the following code:
    UIManager.put("FileChooser.cancelButtonText", "---change me---");Note that this would change all file choosers in your application.
    If you only want to update one type of file chooser you could extend, for example, MetalFileChooserUI and set its cancel button text by overriding installStrings. You'd then need to install this UI on the file chooser you want to change.
    There may be an easier way to do this!
    Hope this helps.

  • HT4463 I keep getting the message "The application could not be downloaded. The installation could not be started."  with a "Retry" and "Cancel" button,  I have been re-trying for several hours to no avail.  What is the problem?

    I keep getting the message "The application could not be downloaded. The installation could not be started."  with a "Retry" and "Cancel" button,  I have been re-trying for several hours to no avail.  What is the problem?

    You'll need to contact support and have them check your account
    https://expresslane.apple.com/GetproductgroupList.action

  • Works with paint method but doesn't with text area

    Hi all,
    I have a code which does simple multiplication like 1x2, 2x2 and so on.
    Why is it that when i try to insert the result of multiplication in a "textarea" i get compilation error( I have tried using without textareas and the multiplication is going on well). I want to familiarize with textareas that's why i am testing this out.
    code without textarea(working just fine):
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Goof extends Applet implements ActionListener
    Label promptNumber;
    Label promptStart;
    Label promptEnd;
    TextField typeNumber;
    TextField typeStart;
    TextField typeEnd;
    int tableNumber;
    int startNumber;
    int endNumber;
    int result;
    String resultString;
    Button enter;
    public void init() {
    promptNumber = new Label ("Enter the number: ");
    add(promptNumber);
    promptStart = new Label ("Enter the start number: ");
    add(promptStart);
    promptEnd = new Label ("Enter the end number: ");
    add(promptEnd);
    typeNumber = new TextField(9);
    add(typeNumber);
    typeStart= new TextField(9);
    add(typeStart);
    typeEnd = new TextField(9);
    add(typeEnd);
    enter = new Button ("Enter");
    add(enter);
    enter.addActionListener(this);
    public void actionPerformed(ActionEvent e) {
      tableNumber = Integer.parseInt(typeNumber.getText());
      startNumber = Integer.parseInt(typeStart.getText());
      endNumber  = Integer.parseInt(typeEnd.getText());
      repaint();     
    public void paint (Graphics g)
         for (int i = startNumber;  i <= endNumber; i++)
              int result = i * tableNumber;     
              String resultString = Integer.toString(tableNumber)
                   + " x " + Integer.toString(i)
                   + " = " + Integer.toString(result);
              g.drawString (resultString, 20, i * 20);
    }code with textarea (bummer..)
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class Aaaaa extends Applet implements ActionListener{
         TextArea output;
          Label promptNumber;
         Label promptStart;
         Label promptEnd;
         TextField typeNumber;
         TextField typeStart;
         TextField typeEnd;
         int tableNumber;
         int startNumber;
         int endNumber;
         int result;
         String resultString;
         String b,c,d,e,f;
         Button enter;
         public void init() {
         promptNumber = new Label ("Enter the number  : ");
         add(promptNumber);
         typeNumber = new TextField (9);
         add(typeNumber);
         promptStart = new Label ("Enter the start of Table : ");
         add(promptStart);
         typeStart = new TextField(9);
         add(typeStart);
         promptEnd = new Label ("Enter the end of Table : ");
         add(promptEnd);
         typeEnd = new TextField(9);
         add(typeEnd);
         enter = new Button("Show Table");
         add(enter);
         enter.addActionListener(this);
         output=new TextArea();
         add(output);
         public void actionPerformed(ActionEvent e) {
         tableNumber = Integer.parseInt(typeNumber.getText());
        startNumber = Integer.parseInt(typeStart.getText());
        endNumber  = Integer.parseInt(typeEnd.getText());
         calculate();
         b=Integer.toString(tableNumber);
         c=Integer.toString(result);
         d=Integer.toString(startNumber);
         e=Integer.toString(endNumber);
         f=Integer.toString(i);
         resultString=""+b + " x " + f+ " = "+ c;
         output.insert(resultString, f*20);
         output.append("The Multiplication Table for " +b+ " from " +d+" till "+e+ " is as follows:");
         repaint();
         //append means insert :)     
         private void calculate ()
         for (int i = startNumber;  i <= endNumber; i++)
              int result = i * tableNumber;     
    }

    the only place ' i ' is used is in your method
    Calculate()... and at that it's inititialized inyour
    for loop, so the scope of ' i ' is with in thatloop,
    so you can not use ' i ' elsewhere...
    on that note... is that the ' i ' that you are
    attempting to use ???
    - MaxxDmg...
    - ' I am not me... 'yup.
    I am not going to pretend that i know....
    i really didn't know that 'i' cannot be used
    elsewhere outside the loop
    honest.hey wait a minute if i can't use i outside the loop then how come this code works?
    public void paint (Graphics g)
         for (int i = startNumber;  i <= endNumber; i++)
              int result = i * tableNumber;     
              String resultString = Integer.toString(tableNumber)
                   + " x " + Integer.toString(i)
                   + " = " + Integer.toString(result);
              g.drawString (resultString, 20, i * 20);
              }

  • Problem with text area

    hi
    i am doing a chatting application...
    here my idea is to
    send content of textarea throgh socket..
    and the content will be receiced with string object..
    but the problem is that ...
    i cant get the enire data of textarea ie only one line is visible..
    plz help.....
    thanks in advance..

    r u using the TCP/IP or UDP protocol for Chat appl.
    if u rk using the TCP/IP, then check the size of DatagramPocket size that u r using to send the typed text.
    that size may be too small. If that is the case, increase the size.
    --Subbu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • XSL Stylesheet for Form with TEXT AREA not responding to DATASRC or DATAFLD

    I have a stylesheet for Form which displays data in the input boxes for edit and re submit.
    While all input text boxes show data from the database, TextArea box does not display the value for edit
    <div align="left">
    <table border="0" cellpadding="0" cellspacing="0"
    width="600">
    <tr>
    <td width="600" height="1">
    <font face="Arial" size="2">17. Describe how
    the accident or exposure
    happened</font>
    <textarea rows="3"
    name="P_ACCD_TXT"
    datafld="{ACCD_TXT}"
    onblur="javascript:while(''+this.value.charAt(0)==' ')this.value=this.value.substring(1,this.value.length);"
    cols="72">
    </textarea>
    </td>
    </tr>
    </table>
    </div>
    In other input boxes value="{column_name}" works, but value attribute is not available for textarea. both datasrc="{ACCD_TXT}" and datafld="{ACCD_TXT}" do not work.
    Is it because datsrc and datafld are not supported. Would very much appreciate if some one can clarify on tthis and advise how to go about retreiving data into textarea box
    Thanks

    datasrc and datafld are Microsoft IE specific "data binding" attributes that are supported in the MS IE5 implementation of HTML.
    What you likely want is just the standard HTML way of putting data into a <textarea> that you would do in XSLT like this:
    <textarea>
    <xsl:value-of select="ACCD_TXT"/>
    </textarea>assuming that the current node has a child element named <ACCD_TXT> in the source document.

  • Data loss popup for cancel button on overview page

    Hi Experts,
    Data loss popup generally appears on UI, when i try to navigate with out saving the changes. This is a standard SAP behaviour.
    But, i come across the requirement where this data loss popup should also appear on clicking the 'Cancel' button on overview page on UI.
    I understood that, this popup will be triggered by the methods ON_BEFORE_WA_CONTENT_CHANGE & IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT of the window impl class.
    Please suggest how can i make this popup work in case of Cancel button as well.
    Thanks....

    Hi bkvs,
    Usually when you click the "Cancel" button that means you don't want to save your entry... hence displaying the dataloss popup doesn't make really sense to me. However, you may want the user to confirm that he really wants to cancel.
    So I would suggest to redefine the EH_ON_CANCEL method of your view, to display a simple confirmation popup before you actually cancel everything. This wiki will show you how to do it:
    Creating popup message in webclient UI - CRM - SCN Wiki
    Regards,
    Nicolas.

  • Text are+button, some change in text

    Sorry for that question, but i don't understand.
    I have a text are, and a button. I need, then i selected some text in text area and press the button, the <b>my letters </b> will be add. How do that? I don't undestand at all =(
    Big thx for any help.
    If you don'y mind, please make example. Thx very much

    I solve the problem
    String awd = jTextArea1.getSelectedText();And all code, if any one need
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.datatransfer.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.table.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    * @author mmakarov
    public class TextEditor extends javax.swing.JFrame {
        /** Creates new form TextEditor */
        public TextEditor(
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jButton1 = new javax.swing.JButton();
            jScrollPane2 = new javax.swing.JScrollPane();
            jTextArea1 = new javax.swing.JTextArea();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("jButton1");
            jTextArea1.setColumns(20);
            jTextArea1.setRows(5);
            jScrollPane2.setViewportView(jTextArea1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 243, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap())
                        .addComponent(jButton1)))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(75, 75, 75)
                    .addComponent(jButton1)
                    .addContainerGap(46, Short.MAX_VALUE))
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            pack();
        }// </editor-fold>
        * @param args the command line arguments
         private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
    System.out.print("Hello World ^_________^");
    String asd = jTextArea1.getText();
    String awd = jTextArea1.getSelectedText();
    try {
        if (awd != null)
            jTextArea1.setText("<b>"+awd+"</b>");
       System.out.print(awd);
    else
    System.out.print("la la la~ figna");
    catch (Exception ex)
        System.out.print(ex);
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new TextEditor().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JScrollPane jScrollPane2;
        private javax.swing.JTextArea jTextArea1;
        // End of variables declaration
    }

  • Application Panel Cancel button

    Hi,
    We are using Cancel button provided by Application Panel to navigate back to the previous page (From Create page to Search page). As we hit the cancel button, we launch a popup to continue or stay on the same page. As soon as the popup is launched, the data in the fields of the Create page(the page from which the popup is launched) gets lost. Is this the usual behaviour or there is something else that we need to do.
    Thanks,
    Subhranshu

    Sorry, didn't recognize you are from Oracle Apps. There is no application panel in regular ADF and as such all buttons would be manually added. I am fraig but you will have to check with the Apps folksor forum because I have no experience with the Application Panel and its behavior
    Frank

  • Text Area for long text not appearing properly for BBP_POC_DISPLAY Service

    Hi,
    In our development we have added additional Icon at ITS in Process PO transaction and onclicking  that icon Web dynpro AB screen called with the Purchase Order No of selected row .(SRM 5.0)
    There is one more icon in Web dynpro screen on click of that Purchase order service open in ITS with display mode .This is achieved with service BBP_POC_DISPLAY from Web Dynpro-AB.
    This is also working ok only the issue is in Document tab of PO The Text Area for long text appear at Top  .This functionality is working fine with BBP_POC  service from ITS .
    Has anybody faced this kind of issue ?
    Thanks,
    SMS

    Hi SMS,
    I am unsure of the additional component you are talking about. In general, issues with text area misplacing, is solved by note 1067625. May be you can check it.
    thanks,
    Ashwin

  • File upload component and text area issue

    Hi guys,
    I have static text, text area and button on the same page. Text area binded to session bean value and all works fine (I can input text into text area and press button to save changes).
    After adding file upload component to the same page I have got a problem - now after page refreshing the non english characters inside text gets trashed.
    Other non english characters - inside static text components remains the same - the problem relates only to text area.
    It looks like file upload component code has an encoding related bug. Is that a known issue?
    And may be somebody have a workaround?
    Thanks.

    Hi Rom@n,
    I did some checking and this issue is currently logged as: 6442528. It is scheduled to be available in the next patch release. I'm sorry I don't have a time frame for the patch since it is still waiting for other fixes.
    Sorry for the inconvience.
    Lark
    Creator Team

  • Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    It appears OP solved the problem: [/questions/874744]

  • I have just intalled PSElements 12 on a new PC with windows 8.1. It installed ok but when I open it up it displays different than on my windows 7 PC. The buttons and text are tiny and almosy impossible to see even when I drag it to full screen. How do I a

    I have just intalled PSElements 12 on a new PC with windows 8.1. It installed ok but when I open it up it displays different than on my windows 7 PC. The buttons and text are tiny and almosy impossible to see even when I drag it to full screen. How do I adjust it to look normal?

    Hi Paul ,
    It could be a compatibility issue as well as Acrobat 8 is an older version.
    Do you get any error message while registering for the product?
    Try repairing it and once and also check for updates as well.
    Is it happening with all the word files or any specific one'?
    Regards
    Sukrit Dhingra
    Acrobat 8 and Windows 7 Don't Work

  • I am walking through Apples tutorial getting started with iOS development. I am at the storyboard area and can't seem to drag the cancel button to the green exit. I am not sure why the exit button doesn't except it. Is anyone else having this issue?

    I am walking through Apples tutorial getting started with iOS development. I am at the storyboard area and can't seem to drag the cancel button to the green exit. I am not sure why the exit button doesn't except it. Is anyone else having this issue? Is there a work around? I have done this app twice and still cant get the exit to except the Cancel or Done  bar buttons

    Yes I checked it.  As far as I can see I did everything Apple said to do.  I took some screen shot so you can see how the screens are connected and what and where the code is, and what it does when I drag the cancel and done bar buttons to the exit

Maybe you are looking for

  • Cfspeadsheet not picking up data from cells using excel function indirect

    I am receiving data from comany executive in a sreadsheet and trying to post selected data to a company intranet by reading the data using cfspreadsheet.  for the most part, cfspeadsheet works, however, this speadsheet is rather complicated.  The spr

  • How to find versions of application server components to apply patches

    Hi, I have Oracle Application server 10.1.2.0.2 installed in my linux box. under metalink.oracle.com 1. i read documentation Doc ID: 420061.1 in metalink about patches and i did find one patch# 5922120 for my application middletier. but when i did a

  • Camera won't work in ichat or photo booth

    I have an built-in camera (isight) in my imac. when i try to do a video chat the camera just comes up black. The audio is working fine but not video. Help! I'm not computer savvy but I tried everything I could think of. Restarting didn't work, deleti

  • How set up multiple homepages to open in a separate window (not a tab) when desired...

    I would like to setup and be able to click on a Firefox profile (I assume profile) or pass parameters to the firefox.exe and have firefox open about 6 separate windows (not tabs) set to different home pages. If I use the Pipe Symbol in Options, it wi

  • Drill using SDK in BO6.5

    HI, i m able to view the report and handle prompts using webIntellingence SDK (using WIBEAN) now i have to drill the report using SDK in Business objects 6.5, The format of the report is .rep( Revenue.rep). can i use this report for drilling using SD