Input in fields with buttons like calculator

Hello,
i have an dynpro inputfield and i want to make a on screen keyboard, so that i can write in it without a real keyboard.
Is that possible that when i push my buttons that the input is made in realtime in that inputfield?
Thanks

I want to click in one of the two input fields on the left and then i want to insert my input with my buttons on the right.
And when i click in the secoond input field i want to fill that with my button input
Regards

Similar Messages

  • Performance on searching a name field with the like clause

    Hi.  We run 2012 std and I suspect we'll be running into challenges as my user has expressed an interest in searching data based on a like clause across a contact name column that is varchar(80).  The like clause is shown below.  The
    question is whether or not an index on this column will (if we make one) even be used when a like clause is introduced?  And any other advice the community may offer.  I'll ask my user if they could limit the search to patterns that match starting
    in position 1 but suspect they'll say no.  Currently the table has 1.5 million rows , one pk, and is approx 1100 bytes wide if varchars are fully used.
    where ltrim(rtrim(e.[ContactName])) like '%' +IsNull(@contactName1,'') + '%'

    Hi.  We run 2012 std and I suspect we'll be running into challenges as my user has expressed an interest in searching data based on a like clause across a contact name column that is varchar(80).  The like clause is shown below.  The
    question is whether or not an index on this column will (if we make one) even be used when a like clause is introduced?  And any other advice the community may offer.  I'll ask my user if they could limit the search to patterns that match starting
    in position 1 but suspect they'll say no.  Currently the table has 1.5 million rows , one pk, and is approx 1100 bytes wide if varchars are fully used.
    where ltrim(rtrim(e.[ContactName])) like '%' +IsNull(@contactName1,'') + '%'
    Hi db042190,
    >> The question is whether or not an index on this column will (if we make one) even be used when a like clause is introduced?
    A simple index use an exact value in order to compare it (it orer the tree according to the value). For most cases it will not be a good solution for filtering by "like" (in some cases it can help you use "index scan", but it will not
    be able to use "index seek"). There are several options that can help in this issue dapending on your interface and the way you use the data:
    (1) Full Text Index as Olaf mentioned
    (2) Another option, which is very useful in some cases, based on using an external table, which store list of searching words (if the user try a new search then you can scan the original table, which this is one-time-job for each new word). This is actually
    work on the same idea of using FTS, but it is more flexible and give you direct control if you need to use word searching and not phrase/free-text searching. This table is indexed and the search is done on this table, and not the original table. Those two
    tables have relations many-to-many, and you use a simple JOIN to get the results 
    >> limit the search to patterns
    This can be a game changer!
    There is a simple solution that might help you in this case which is very useful! you can create a computed column that store the value according to your patterns, and then create index on that
    column. For example if the your pattern is filter by "starting with 10 specific char" then you can use simple LEFT function like in this code:
    CREATE TABLE t (LongText nvarchar(MAX), MyPatSearch as convert(nvarchar(10),LEFT(LongText,10)));
    GO
    CREATE NONCLUSTERED INDEX IX_MyPatSearch ON t (MyPatSearch);
    GO
    * using computed column with string like in this example, you have to use CONVERT since Data type is requirements for index computed column.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Developing a screen with buttons like keyboard buttons

    I want to develope a screen with a keyboard buttons (same as keyboard modal) in swings.Plz help me on this topic.
    Thanks in advance.

    Is there any predefined code to develope a screen with buttons same as keyboard buttons functionality model in swings technology.

  • Edit Field with button (...)

    I'm beginner in Java. I'd like a cell in a table with a button (...) on the right side to open a Dialogbox (FileDialog to put a filename in the cell). Thank you in advance for any help.
    Regards
    Museti

    Hi
    I have tried the codes below but can't get it right. Could you tell me what is going wrong here? Thanks.
    //MyTableCellRenderer
    package testrenderer;
    import javax.swing.UIManager;
    import java.awt.*;
    public class MyTableCellRenderer {
    boolean packFrame = false;
    /**Die Anwendung konstruieren*/
    public MyTableCellRenderer() {
    FrameCellRenderer frame = new FrameCellRenderer();
    //Frames �berpr�fen, die voreingestellte Gr��e haben
    //Frames packen, die nutzbare bevorzugte Gr��eninformationen enthalten, z.B. aus ihrem Layout
    if (packFrame) {
    frame.pack();
    else {
    frame.validate();
    //Das Fenster zentrieren
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width) {
    frameSize.width = screenSize.width;
    frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    frame.setVisible(true);
    /**Main-Methode*/
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception e) {
    e.printStackTrace();
    new MyTableCellRenderer();
    // FrameCellRenderer.java
    package testrenderer;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class FrameCellRenderer extends JFrame
    implements MyTableData
    JPanel contentPane;
    JMenuBar jMenuBar1 = new JMenuBar();
    JMenu jMenuFile = new JMenu();
    JMenuItem jMenuFileExit = new JMenuItem();
    JMenu jMenuHelp = new JMenu();
    JMenuItem jMenuHelpAbout = new JMenuItem();
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel jPanel1 = new JPanel();
    BorderLayout borderLayout2 = new BorderLayout();
    JScrollPane jScrollPane1 = new JScrollPane();
    JTable jTable1 = new JTable(DATA, COLHEADS);
    BrowseButtonEditor be = new BrowseButtonEditor();
    /**Den Frame konstruieren*/
    public FrameCellRenderer() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    /**Initialisierung der Komponenten*/
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(FrameCellRenderer.class.getResource("[Ihr Symbol]")));
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Table Cell Renderer");
    jMenuFile.setText("Datei");
    jMenuFileExit.setText("Beenden");
    jMenuFileExit.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jMenuFileExit_actionPerformed(e);
    jMenuHelp.setText("Hilfe");
    jMenuHelpAbout.setText("Info");
    jMenuHelpAbout.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jMenuHelpAbout_actionPerformed(e);
    jPanel1.setLayout(borderLayout2);
    jMenuFile.add(jMenuFileExit);
    jMenuHelp.add(jMenuHelpAbout);
    jMenuBar1.add(jMenuFile);
    jMenuBar1.add(jMenuHelp);
    contentPane.add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(jScrollPane1, BorderLayout.CENTER);
    jScrollPane1.getViewport().add(jTable1, null);
    this.setJMenuBar(jMenuBar1);
    jTable1.getColumn("URL").setCellRenderer(new BrowseButtonRenderer());
    jTable1.getColumn("URL").setCellEditor(new BrowseButtonEditor());
    /**Aktion Datei | Beenden durchgef�hrt*/
    public void jMenuFileExit_actionPerformed(ActionEvent e) {
    System.exit(0);
    /**Aktion Hilfe | Info durchgef�hrt*/
    public void jMenuHelpAbout_actionPerformed(ActionEvent e) {
    /**�berschrieben, so dass eine Beendigung beim Schlie�en des Fensters m�glich ist.*/
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    jMenuFileExit_actionPerformed(null);
    // MyTableData.java
    public interface MyTableData {
    public static final String[][] DATA = {
    {"Vertrag 01","c:\\vertrag\\deutsch\\vertrag01.htm"},
    {"Vertrag 02","c:\\vertrag\\deutsch\\vertrag02.htm"},
    {"Vertrag 03","c:\\vertrag\\franz�sisch\\vertrag03.htm"},
    {"Vertrag 04","c:\\vertrag\\franz�sisch\\vertrag04.htm"}
    public static final String[] COLHEADS = {
    "Bezeichnung", "URL"
    // BrowseButtonEditor.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class BrowseButtonEditor
    extends AbstractCustomCellEditor
         private BrowseButtonRenderer br;
         public BrowseButtonEditor()
              br = new BrowseButtonRenderer("...");
              this.addMouseListenerToLabel();
         public BrowseButtonEditor(String title)
              br = new BrowseButtonRenderer(title);
              this.addMouseListenerToLabel();
         public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,
                                                      int row, int column)
              JButton button = br.getButton();
    button.setText("...");
              String sStr = new String(((String)value));
    setCellEditorValue(sStr);
    JLabel label = br.getLabel();
    label.setText(sStr);
              return br;
         public boolean stopCellEditing()
              JButton button = br.getButton();
    JLabel label = br.getLabel();
              setCellEditorValue(new String(label.getText()));
              return super.stopCellEditing();
         private void addMouseListenerToLabel()
              br.getLabel().addMouseListener(new MouseAdapter()
                        public void mousePressed(MouseEvent e)
                             if (e.getClickCount() == 2)
                                  cancelCellEditing();
    // BrowseButtonRenderer.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.TableCellRenderer;
    public class BrowseButtonRenderer
    extends JPanel implements
    TableCellRenderer
         private BorderLayout borderLayout1 = new BorderLayout();
         private JLabel label = new JLabel();
         private JButton button = new JButton();
         public BrowseButtonRenderer()
              this.setSize(40, 40);
              this.setLayout(borderLayout1);
              button.setPreferredSize(new Dimension(40, 30));
              this.add(label, BorderLayout.NORTH);
              this.add(button, BorderLayout.EAST);
              label.setHorizontalAlignment(JLabel.LEFT);
              label.setHorizontalTextPosition(JLabel.LEFT);
              // add change listener to button
              button.addChangeListener(new ChangeListener()
                        public void stateChanged(ChangeEvent e)
                             label.setText("" + button.getValue());
    button.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    button_actionPerformed(e);
         public BrowseButtonRenderer(String title)
              this();
    button.setText(title);
         public Component getTableCellRendererComponent(JTable table, Object value,
                                                      boolean isSelected, boolean hasFocus, int row, int column)
              String v = (String)value;
              String sStr = (String)value;
              label.setText(sStr);
              button.setEnabled(isSelected);
              label.setEnabled(isSelected);
              label.setBackground(isSelected && hasFocus ? table.getSelectionBackground() : table.getBackground());
              button.setBackground(isSelected ? table.getSelectionBackground() : table.getBackground());
    label.setBackground(Color.white);
              this.setBackground(isSelected ? table.getSelectionBackground() : table.getBackground());
              this.setForeground(isSelected && hasFocus ?     table.getSelectionBackground() : table.getBackground());
              this.setFont(table.getFont());
              return this;
         public JButton getButton()
              return button;
         public JLabel getLabel()
              return label;
    void button_actionPerformed(ActionEvent e)
    JFileChooser datei = new JFileChooser();
    String sFile = new String("");
    int returnVal = datei.showOpenDialog(this);
    if (returnVal == JFileChooser.APPROVE_OPTION)
    sFile = datei.getSelectedFile().getName();
    System.out.println("You chose to open this file: " + sFile);
    label.setText(sFile);
    // AbstractCustomCellEditor.java
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import javax.swing.tree.*;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    * <P>
    * This abstract class can be extended in order to customize the look and
    * feel of the editor for a table cell. This will allow the use of any type
    * of component (i.e. JComboBox, JSlider, JCheckBox, or other custom renderers)
    * </P>
    * <P>
    * This class uses and EventListenerList to maintain a list of CellEditorListeners
    * and provides two protected methods for firing editing-stopped and editing-canceled
    * events to listeners.
    * </P>
    * <P>
    * This class also maintains an Object reference that represents the editor's value.
    * In addition to implementing the TableCellEditor.getCellEditorValue() method, this
    * class also provides a setter method for this value - setCellEditorvalue(Object value)
    * </P>
    * <P>
    * This class, like DefaultCellEditor, provides a clickCountToStart property that
    * specifies the number of mouse clicks required to initiate editing.
    * </P>
    * <P>
    * This class defines a cell to be editable if the event passed to
    * isCellEditable() is a mouse event and the click count is equal to (or greater than)
    * the clickCountToStart.
    * </P>
    * <P>
    * This class also defined all cells to be selectable.
    * </P>
    * <P>
    * The stopCellEditing and cancelCellEditing methods fire appropriate events, and
    * stopCellEditing returns true, indicating that editing was stopped.
    * </P>
    * <P>
    * Important Note: This class leaves the getTableCellEditorComponent method defined
    * by TableCellEditor unimplemented. Extensions of this class MUST implement
    * getTableCellEditorComponent().
    * </P>
    * <P>
    * Note: This code was extracted and modified from:
    * Graphic Java 2 - Mastering the JFC vol. II: Swing (3rd. ed)
    * by: David M. Geary
    * ISBN: 0-13-079667-0
    * Chapter 19: Tables
    * AbstractCellEditor
    * </P>
    * <P>
    * @author A. Timpone
    abstract class AbstractCustomCellEditor implements TableCellEditor
         protected EventListenerList listenerList = new EventListenerList();
         protected Object value;
         protected ChangeEvent changeEvent = null;
         protected int clickCountToStart = 1;
         * This method returns tha value (as an Object) stored within
         * the editor
         * @return The Object representation of the editor's value
         public Object getCellEditorValue()
              return value;
         * This method is used to set the value of the editor
         * @param value The value you wish to set the editor component to
         public void setCellEditorValue(Object value)
              this.value = value;
         * This method is used to control the number of mouse clicks required to invoke
         * the editor
         * @count Defaulted to 1, this is the number of clicks you wish performed to invoke the editor
         public void setClickCountToStart(int count)
              clickCountToStart = count;
         * The method returns the number of clicks required to invoke the editor
         * @return The number of mouse clicks required to invoke the editor
         public int getClickCountToStart()
              return clickCountToStart;
         * This method determines if a cell extending this class is editable based on
         * the type of event performed on the cell. If this event is of type MouseEvent,
         * it will invoke the editor if the correct number of clicks is performed
         * @param anEvent The type of event being performed on the cell
         * @return true of false indicating the cell is editable
         public boolean isCellEditable(EventObject anEvent)
              if (anEvent instanceof MouseEvent)
                   if (((MouseEvent)anEvent).getClickCount() < clickCountToStart)
                        return false;
              return true;
         * This method determines if the cell should be selected.
         * By default, this method returns true
         * @param anEvent The type of event being performed on the cell
         * @return true of false indicating the cell is selected (Default to true)
         public boolean shouldSelectCell(EventObject anEvent)
              return true;
         * This method executed the TableCellEditor.fireEditingStopped() method
         * indicating that editing on the current cell has stopped
         * @return true or false indicating cell editing has stopped (Default to true)
         public boolean stopCellEditing()
              fireEditingStopped();
              return true;
         * This method executed the TableCellEditor.fireEditingCanceled() method
         * indicating that editing on the current cell has been canceled
         public void cancelCellEditing()
              fireEditingCanceled();
         * This method adds a CellEditorListener to the cell entending this class.
         * This listener is added into the listener list
         * @param l This is the CellEditorListener you wish to add to the specific cell
         public void addCellEditorListener(CellEditorListener l)
              listenerList.add(CellEditorListener.class, l);
         * This method removes a CellEditorListener from the cell entending this class.
         * This listener is removed from the listener list
         * @param l This is the CellEditorListener you wish to remove from the specific cell
         public void removeCellEditorListener(CellEditorListener l)
              listenerList.remove(CellEditorListener.class, l);
         * This method loops through all of the listeners within the listenerList
         * and calls the appropriate editingStopped() method passing in the
         * ChangeEvent
         protected void fireEditingStopped()
              Object[] listeners = listenerList.getListenerList();
              for (int i = listeners.length-2; i>=0; i-=2)
                   if (listeners[i] == CellEditorListener.class)
                        if (changeEvent == null)
                             changeEvent = new ChangeEvent(this);
                        ((CellEditorListener)listeners[i+1]).editingStopped(changeEvent);
         * This method loops through all of the listeners within the listenerList
         * and calls the appropriate editingCanceled() method passing in the
         * ChangeEvent
         protected void fireEditingCanceled()
              Object[] listeners = listenerList.getListenerList();
              for (int i = listeners.length - 2; i >= 0; i -= 2)
                   if (listeners==CellEditorListener.class)
                        if (changeEvent == null)
                             changeEvent = new ChangeEvent(this);
                        ((CellEditorListener)listeners[i+1]).editingCanceled(changeEvent);

  • DividedBox with buttons (like SplitPane in JSwing-JAVA)

    Anyone knows if there's a component in flex that acts as the SplitPane in java?? basically i need a HDividedBox with the buttons to expand/contract the two childs.
    Thanks.

    Hello Risha,
    I have used buttons as  tabstrips , i am not able to paste the source code .However, all you have to do is :
    1. Place 2 buttons say btn1 and btn2, one having a dark color and other a lighter color.
    2. Place two subforms say sf1 and sf2.sf1 has content of first tab , and sf2 has content of second tab.
    3. By default btn1(darker color) & sf1 will be visible.
    4. On click of btn2 , interchange the color of buttons & visibilty of subforms.
    I hope the above statements suffice.If you want the whole source code just contact at virag.shinde(@)lntinfotech.com
    Regards,
    Virag

  • How to make a Input Field with multiple lines?

    hey folks,
    i need to make a popup window or a dynpro with 2 input fields, where the user can write on multiple lines. why isnt there such an input field in the screen painter? how can i make this? if i can do this with a dynpro it would be nice but a popup with that feature would be better. didnt found any infos anywhere except for that thread, but its answer didnt work with my dynpro:
    How to make a input/output field with multiple lines
    thx for any helping answer

    i made it just like in that thread but there is an error message telling that gv_custom_container is not declared.
    *  MODULE status_0110 OUTPUT
    MODULE status_0110 OUTPUT.
      CREATE OBJECT custom_container
        EXPORTING
          container_name              = 'TEXT_CONTROL'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5.
      CREATE OBJECT text_editor
        EXPORTING
          parent                     = gv_custom_container
          wordwrap_mode              = cl_gui_textedit=>wordwrap_at_windowborder
          wordwrap_to_linebreak_mode = cl_gui_textedit=>false
        EXCEPTIONS
          error_cntl_create          = 1
          error_cntl_init            = 2
          error_cntl_link            = 3
          error_dp_create            = 4
          gui_type_not_supported     = 5.
      SET PF-STATUS 'STATUS_0110'.
      SET TITLEBAR 'TITLE'.
    ENDMODULE.                    "status_0110 OUTPUT
    Edited by: rafe b. on Oct 26, 2009 2:56 PM

  • How Can i send the data entered in Input text fields to e-mail?

    Iam Jennifer, Iam having a doubt in Flash, I hope that you
    are going to solve my problem, Iam taking 3 Static text fields as
    Name, Age and Country and besides each and every static text fields
    i have taken 3 input text fields with different instance names,
    when i enter my Name, Age and Country details in the input text
    fields and after entering those details if user clicks the submit
    button the data should be send to some mail address, is it possible
    Im not so good at action script, but i hope that any one can
    help me...
    Iam attaching the action script code also, please find the
    attachment below, the actions are given to button.
    Attach Code
    Btn.onPress = function ()
    mail_lv = new LoadVars();
    mail_lv.dummy1 = "";
    mail_lv.subject = "Details";
    mail_lv.message = "hi";
    mail_lv.username = "name_txt".text;
    mail_lv.age = "age_txt".text;
    mail_lv.country = "country_txt".text;
    mail_lv.onLoad = function ()
    trace("Sent successfully...");
    trace("mail_lv.subject = " + mail_lv.subject);
    trace("mail_lv.message = " + mail_lv.message);
    mail_lv.send("mailto:[email protected]", "_blank");

    The names of your variables, "name_txt", for instance, should
    NOT have quotes around them. Use:
    mail_lv.username = name_txt.text;
    mail_lv.age = age_txt.text;
    mail_lv.country = country_txt.text;

  • Accessing input/ouyput field from report

    Hi All,
    I have one input/output field in the Screen painter.
    But when i am accessing the field from the PAI i am getting a syntax error saying that the field is unknown .
    Please give your help regarding this.
    Thanks in Advance.

    Hi Mayank Verma,
    You should declare the variable with the same name as it's in Screen Painter for that Input/Output field with the associated Dictionary type..
    Once you will declare it the screen will pass the data you entered in screen to the varible you declared in your program..
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Calculations in input text fields

    Hello,
    I'm making an engineering game. Students need to input force
    equations and to check the equation is right it has to add up to
    zero. There are two input text fields, one the student sees with
    the force values expressed in letters like HA, VA, and MA, and one
    hidden field where the values are expressed as numbers. They also
    input operators as part of the equation. I need to make it so when
    they click a button to check if their equation is correct, the
    contents of the text field are calculated to see if the equation
    adds up to zero. I know you can express the contents as a number
    with say Number (this.my_hidden_text.text), but how do I get the
    operators in the equation, which are +, -, *, /, (, ), and ^ to
    mean something and do what they're supposed to?
    Any assistance would be most welcome.
    Thank you for your time,
    Beatie3

    Thank you for your quick response. Would you mind explaining
    more how to use the strings method to find the operators, please?
    It's a bit messy but my code currently looks like this:
    stop();
    //hide stuff
    this.tickb._visible = false;
    this.crossb._visible = false;
    //declare the variables
    var check1:Number = parseInt(display_secret.text);
    var display1 = "";
    var display_secret = "";
    //function for the calculation
    function onCalculate() {
    if(this.display_secret = 0){
    this._parent.tickb._visible = true;
    this._parent.crossb._visible = false;
    } else {
    this._parent.crossb._visible = true;
    this._parent.tickb._visible = false;
    check02_btn.onRelease = function():Void {
    trace(display1);
    trace(check1);
    if(check1 == 0){
    this._parent.tickb._visible = true;
    this._parent.crossb._visible = false;
    } else {
    this._parent.crossb._visible = true;
    this._parent.tickb._visible = false;
    //load external images
    pic04_container.loadMovie("fig_3_1a.gif");
    //takes you back to the previous scene
    back02_btn.onRelease = function() {
    gotoAndStop("Scene 2", 1);
    //Takes you home
    home02_btn.onRelease = function() {
    gotoAndStop("Scene 1", 1);
    //moves to the next scene
    next02_btn.onRelease = function() {
    gotoAndStop("Scene 3a", 1);
    //calculator buttons workings
    left_btn.onRelease = function() {
    display1 = display1+ "(";
    display_secret = display_secret + "(";
    plus_btn.onRelease = function() {
    display1 = display1+"+";
    display_secret = display_secret +"+";
    times_btn.onRelease = function() {
    display1 = display1+"*";
    display_secret = display_secret +"*";
    right_btn.onRelease = function() {
    display1 = display1+")";
    display_secret = display_secret +")";
    minus_btn.onRelease = function() {
    display1 = display1+"-";
    display_secret = display_secret +"-";
    peek_btn.onRelease = function() {
    display1 = display1+"^";
    display_secret = display_secret +"^";
    slash_btn.onRelease = function() {
    display1 = display1+"/";
    display_secret = display_secret +"/";
    ha_btn.onRelease = function() {
    display1 = display1+"HA";
    display_secret = display_secret +"108";
    va_btn.onRelease = function() {
    display1 = display1+"VA";
    display_secret = display_secret +"0";
    ma_btn.onRelease = function() {
    display1 = display1+"MA";
    display_secret = display_secret +"1296";
    c_btn.onRelease = function() {
    display1 = "";
    display_secret = "";
    vd_btn.onRelease = function() {
    display1 = display1+"VD";
    display_secret = display_secret +"0";
    w_btn.onRelease = function() {
    display1 = display1+"w";
    display_secret = display_secret +"12";
    a_btn.onRelease = function() {
    display1 = display1+"a";
    display_secret = display_secret +"18";
    b_btn.onRelease = function() {
    display1 = display1+"b";
    display_secret = display_secret +"9";
    thank you very much for your help,
    Beatie3

  • JS error while using input fields with type=file on XP SP2

    Hi all,
    we found a new problem in applications which use input fields with type=file running in a browser on Microsoft Windows XP with SP2.
    A typical test layout might look like:
    <html>
      <head>
        <title>File-Upload</title>
      </head>
      <body>
        <form action="/cgi-bin/upload.pl" method=post
              enctype="multipart/form-data">
          <input type=file size=50 maxlength=100000 name="file"
                 accept="text/*"><br>
          <button onclick="document.forms[0].submit();">Send</button>
        </form>
      </body>
    </html>
    When you add a link without the fully qualified path (for example pic01.jpg instead of c:\pictures\pic01.jpg) and click on the 'Send' button, nothing happens and you get a Javascript error 'Access denied'.
    The solution can be found in the MS Knowledge Base article 892442:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;892442
    We still investigate this issue and will inform you about the further proceeding.
    Regards,
    Rainer

    Hi Yepin Jin,
    I am facing the same issue did you solved it?
    Regards,
    Orlando Covault

  • Auto populate text fields with a trigger such as entering text into input fields in ADF

    Hello all,
    I am not able to auto populate text fields with a trigger such as entering text into input fields in ADF.
    I tried AdfFacesContext.getCurrentInstance().addPartialTarget(val); in the back end using setter method of input text field.
    its not working ..
    is there any way to achieve it
    Regards,
    Shakir

    Hi,
    Always mention your JDev version.
    The valueChangeListener would fire only when you set the autoSubmit property of the field to true. Can you elaborate your requirement? What do you mean by related data? Are you performing some sort of search?
    If you want to get the value you entered on the field, just set autoSubmit to true and get the new value from the valueChangeListener. If your requirement is something like as and when you type, do something, you need to check out this approach :https://blogs.oracle.com/groundside/entry/auto_reduce_search_sample
    -Arun

  • Paging a data table with input text fields

    I've created a datatable with input text fields so that contents can be edited. I have 'save' and 'cancel' buttons on the page so that changes can be saved or abandoned. That seems to work fine.
    However, I have a problem with paging. If I modify an input text field, page to the next page in the datatable and then page back, the modified input text field reverts to the original entry in the database. Does anyone know how I can preserve this change (without issuing a commit) until the user clicks on the save button?
    Here is a snippet of jsp with datatable.
    <h:dataTable binding="#{DocTypeDetail.doctypeMetadataTable}" headerClass="list-header" id="doctypeMetadataTable"
    rowClasses="list-row-even,list-row-odd" rows="5" style="left: 240px; top: 312px; position: absolute"
    value="#{DocTypeDetail.doctypeMetadataTableModel}" var="currentRow">
    <h:column binding="#{DocTypeDetail.column2}" id="column2">
    <h:inputText binding="#{DocTypeDetail.textField1}" id="textField1" value="#{currentRow['name']}"/>
    <f:facet name="header">
    <h:outputText binding="#{DocTypeDetail.outputText5}" id="outputText5" value="Name"/>
    </f:facet>
    </h:column>
    <h:column binding="#{DocTypeDetail.column3}" id="column3">
    <h:inputText binding="#{DocTypeDetail.textField2}" id="textField2" value="#{currentRow['value']}"/>
    <f:facet name="header">
    <h:outputText binding="#{DocTypeDetail.outputText8}" id="outputText8" value="Value"/>
    </f:facet>
    </h:column>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header">
    <h:panelGroup binding="#{DocTypeDetail.groupPanel1}" id="groupPanel1" style="display: block; text-align: center" styleClass="list-paging-header">
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_firstPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderFirstButton}" id="doctypeMetadataTableHeaderFirstButton"
    image="resources/paging_first.gif" immediate="true"/>
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_previousPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderPreviousButton}" id="doctypeMetadataTableHeaderPreviousButton"
    image="resources/paging_previous.gif" immediate="true"/>
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_nextPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderNextButton}" id="doctypeMetadataTableHeaderNextButton"
    image="resources/paging_next.gif" immediate="true"/>
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_lastPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderLastButton}" id="doctypeMetadataTableHeaderLastButton"
    image="resources/paging_last.gif" immediate="true"/>
    </h:panelGroup>
    </f:facet>
    </h:dataTable>

    I know by now you must have figured it out. If not you might want to try keeping the backing bean in session instead of request scope.
    Hope that helps,
    HeMan

  • Jdeveloper 11.1.1.2.0 with ADF 11g.  add a adf button like ADD(+)

    Hi,
    I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
    I'm display'g view object i.e, i drag some xxxvo1 from datacontrol and drop on jsf with from - i selected ADF form. Now i add a adf button like ADD(+) on top of the panel form.
    here when i fire Add button , i want to add the same set of input text box with label of ADF form i mean the above i have created ADF form.
    like
    ADF FORM
    + --> ADD BUTON
    EMPNO ________
    EMPNAME ______
    EMPDEPT ____
    when i fire "+" ADD BUTTON
    + -- > ADD BUTTON
    EMPNO ________
    EMPNAME ______
    EMPDEPT ____
    EMPNO ________
    EMPNAME ______
    EMPDEPT ____
    i hope above example give some idea.
    thanks in advace

    See the example code as below. I use the countries table from HR schema.
    <af:table value="#{bindings.CountriesRO1.collectionModel}" var="row"
    rows="#{bindings.CountriesRO1.rangeSize}"
    emptyText="#{bindings.CountriesRO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.CountriesRO1.rangeSize}"
    rowBandingInterval="0" id="t1" columnSelection="none"
    rowSelection="none" horizontalGridVisible="false"
    verticalGridVisible="false" contentDelivery="immediate"
    contextMenuSelect="false">
    <af:column sortProperty="CountryId" sortable="false"
    id="c2" >
    <af:panelFormLayout id="pfl1">
    <f:facet name="footer"/>
    <af:inputText value="#{row.bindings.CountryId.inputValue}"
    label="#{bindings.CountriesRO1.hints.CountryId.label}"
    required="#{bindings.CountriesRO1.hints.CountryId.mandatory}"
    columns="#{bindings.CountriesRO1.hints.CountryId.displayWidth}"
    maximumLength="#{bindings.CountriesRO1.hints.CountryId.precision}"
    shortDesc="#{bindings.CountriesRO1.hints.CountryId.tooltip}"
    id="it2">
    <f:validator binding="#{row.bindings.CountryId.validator}"/>
    </af:inputText>
    <af:inputText value="#{row.bindings.CountryName.inputValue}"
    label="#{bindings.CountriesRO1.hints.CountryName.label}"
    required="#{bindings.CountriesRO1.hints.CountryName.mandatory}"
    columns="#{bindings.CountriesRO1.hints.CountryName.displayWidth}"
    maximumLength="#{bindings.CountriesRO1.hints.CountryName.precision}"
    shortDesc="#{bindings.CountriesRO1.hints.CountryName.tooltip}"
    id="it1">
    <f:validator binding="#{row.bindings.CountryName.validator}"/>
    </af:inputText>
    <af:inputText value="#{row.bindings.RegionId.inputValue}"
    label="#{bindings.CountriesRO1.hints.RegionId.label}"
    required="#{bindings.CountriesRO1.hints.RegionId.mandatory}"
    columns="#{bindings.CountriesRO1.hints.RegionId.displayWidth}"
    maximumLength="#{bindings.CountriesRO1.hints.RegionId.precision}"
    shortDesc="#{bindings.CountriesRO1.hints.RegionId.tooltip}"
    id="it3">
    <f:validator binding="#{row.bindings.RegionId.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.CountriesRO1.hints.RegionId.format}"/>
    </af:inputText>
    </af:panelFormLayout>
    </af:column>
    </af:table>

  • Using a button to check an input text field

    I am an educator and I am designing an interactive activity for my students. I created two buttons named button_B and button_G, and an input textfield named in_Text.  When a student presses button_B, the letter "B" is entered into the input text field; if a student presses button_G, the letter "G" is entered into the input text field. More than one letter entry is acceptable as a student's answer: for exmple the entry BBB, BGB within the input field is okay.  I have no trouble writing AS3 to accomplish this task, however:
    For a student's solution to the input text field to be correct, it has to contain the four values BBB, GGG, BGB, and GBG in any order. I created an array named solution_S with these values. I also have an enter the solution button named enter_btn. The student can check their solution by pressing the enter_btn button; if the input textfield is correct, the quiz moves on to the next frame in my timeline; if it is incorrect, it moves to a different frame in my timeline. How would I enter this actionscript to accomplish this? Thanks much!

    var check:Boolean=false;
    for(var i:uint=0;i<solution_S.length;i++)
      if( solution_S[i].toString()==in_Text.Text)
    check=true;}
    if(check)
    gotoAndStop(...);
    else
    gotoAndStop(...);

  • Create Multiple Signature and Date fields with a custom Toolbar Button

    First off, thanks in advance!  I am a scripting newbie and I am trudging my way through with very little experience with scripting of any kind.  I am good at taking other's scripts and forming them into something I need, but I can't seem to find anything to do what I want.
    Using Adobe Acrobat X, I am trying to create a toolbar button that I can press to create multiple signature and date fields with predetermined locations.
    Below is the script I have that is working to create just a single signature box, but I can't seem to figure out the exact syntax to have that same button create multiple fields.  In total it is 9 signature fields and 9 date fields need to be created.  If you can just give me an example of what the button would look like with multiple scripts?  I was assuming I would set up multiple variables and then in the cExec property of the toolbar button I could just call out all of those variables? 
    var sigswm = "addField('sigSWM', 'signature', '0', [108, 198, 494.64, 72])"
    app.addToolButton({cName: "dotbutton", cExec: sigswm, cLabel: "Place Signature and Date Blocks",});
    Thanks in advance for any help you can provide.
    Billy Sweeney

    Thanks!  That was probably the only thing I didn't try.
    I do have one more question.  What I want is when the signature field is clicked it fills out a specific date field. I beleive the script I want would be:
    var currentTime = new Date()
        var month = currentTime.getMonth() + 1
        var day = currentTime.getDate()
        var year = currentTime.getFullYear()
        var signingTime = day +"/"+month+"/"+year
        var f = this.getField("dateSWM"); 
        f.value = signingTime;
    I found this on another thread that mentioned it could be placed in the Signed tab of the signature properties dialog.  I am assuming it would be placed in my button script file as a setAction script for each signature, but I am not real sure exactly where or how?

Maybe you are looking for