Exempt a field with a button?

So I have a form I am working on, one of the parts is a subtotal, tax, total field. My total field is calculated using sum of subtotal and tax. My tax field is calculated using custom;
var f = this.getField("subtotal");
event.value = Math.round(f.value * 7.00) / 100;
I want a button though that would disable the tax field. This way if I need to apply tax exempt I can press a button and the tax field is no longer automatically calculated and applied.
Any help?

It might make more sense to use a check box. The script could check to see if it's selected and calculate accordingly. Something like:
(function () {
    // Get the subtotal value, as a number
    var v1 = +getField("subtotal").value;
    // Get the value of the "taxable" check box. If not selected, tax = 0
    var v2 = getField("taxable").value;
    // Calculate the tax
    event.value = v2 === "Off" ? 0 : Math.round(v1 * 7.00) / 100;

Similar Messages

  • How do I change the text in a field with radio buttons or check box?

    Hi All:
    I have a form that has a list of things with check boxes (could be done with radio buttons) at the bottom. The client wants a single field at the top of the form that repeats the text next to the checkboxes. For example if a user checks the box next to the words "You did thing 1 wrong" the client wants "You did thing 1 wrong" to appear in this text box at the top of the form. If the user checks the box next to the words "You did thing 2 wrong" the client wants the words "You did thing 2 wrong" to appear in the magic box at the top of the page. There are 10 different check box options, so the box at the top would need to be able to have 10 different things in it.
    Client is not interested in a drop down menu. I asked.
    I am in a bit over my head here, so my question is twofold.
    1. Can you do this in Acrobat Pro 10 on a Mac?
    2. Can you supply me with code?
    Thanks in Advance,
    Amy W.

    Create a text field and make this script its custom calculation script :
         var a ="";
         if (this.getField("Check1").value == "Yes"){
         a="You did thing 1 wrong";
         event.value = a;
    Also, replace "Check1" with the name of your check box or radio button, and give it an export value of "Yes".

  • How to change the caption of a field with a button?

    I have serious trouble, don't know why, in order to change the caption of a field.
    I can't do it with a button as in any other way...dropdown list, ecc...
    Assumes that we have a button and "on click" i want to change the caption of a numeric or text field.
    form1.ppp.Button1::click - (FormCalc, client)
    NumericField1.caption.value.text.value = "whatever you want to set it to";
    TextField1.caption.value.text.value = "whatever you want to set it to";
    xfa.form.form1.ppp.NumericField1.rawValue = xfa.form.form1.ppp.NumericField1.rawValue + 1;
    The numerical value inside the numericalfield1 is increased each click...but the caption still the same.
    Why this happen?
    I check many threads on this forum and on google and i still find these samples...
    please help.
    Thank you

    Yes, it is. Also in preview i checked "dynamic XML". is it right?
    i try to download this sample while searching in the forum to solve my problem
    https://acrobat.com/#d=pxtis4z3OxCqWxajZwDS2Q
    i try to add to that form my code and it's work!! i can't undersand why...
    Below you can find my PDF...i can't understand why here the same code doesn't work
    http://www.hsc350.it/download/Untitled2.pdf
    Thank you again!

  • How do you wrap the text on an input field with type="button"

    I want to put 2 lines of text on an input field.
    The button size is fixed at 75 and if there is more than 10 characters it truncates the text.
    The input field is defined as :
    <input type="button"
    value="CI<br>Discrepency"
    class="buttons75x75"
    onclick="javascript:callForm('ciDiscrepency');"/>
    If you can show me how, I would really appreciate it.
    -Gary

    Dug up the code I used to do this a while back:
    //The style sheet
      <style type="text/css">
        .buttonUp {
          border-style:outset;
          border-width:2px;
          width:3em;
          float:left;
          padding:2px;
          background-color:#ccc;
          text-align:center;
        .buttonDown {
          border-style:inset;
          border-width:2px;
          width:3em;
          float:left;
          padding:2px;
          background-color:#ccc;
          text-align:center;
    </style>
    //... Example buttons
      <div class="buttonUp" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';"
                            onclick="alert('Clicked on Small One');">He</div>
      <div class="buttonUp" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';">Hello</div>
      <div class="buttonUp" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';">Hello World</div>
      <div class="buttonUp" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';">Hello<br/>World</div>
      <div class="buttonUp" style="width:5em;" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';">Hello World</div>You could put any javascript you want on the onclick event, so you would call the javascript you previously used to submit the form and set the input name. In this example I had all the buttons be a fixed width, if you leave out the width in the style sheet then the block will snap to fill the same width as the text inside it, much like normal buttons do. The difference is, with a fixed width then text wrapping occurs automatically (like in the 3rd button) while without a defined width the div will only display a second line when the line break is added. Note the the fixed width can be over-ruled by an inline style if needed (last sample).
    The website I pointed to before has a simpler solution (less javascript events needed). An implementation for his approach would be:
    //The style sheet
      <style type="text/css">
        .button {
          border-style:outset;
          border-width:2px;
          color:#000;
          float:left;
          padding:2px;
          background-color:#ccc;
          text-align:center;
          text-decoration:none;
          display:block;
        .button:active {
          border-style:inset;
          border-width:2px;
          color:#000;
          float:left;
          padding:2px;
          background-color:#ccc;
          text-align:center;
          text-decoration:none;
          display:block;
      </style>
    //... Example buttons
      <a class="button" href="#" onclick="this.blur();alert('Now you clicked linkey');return false;">Hello<br/>World</a>Same deal here with the fixed-width vs.fit-to-content. I add the 'return false;' to the list of the onclick commands so IE doesn't make the 'link clicked' noise and the URL doesn't go to thispage.html#.
    All these buttons work in FireFox 2, IE 7, and Safari 3 if they are running in STRICT mode. The button colors and borders don't precisely match FF and IE buttons, but they are close (although they aren't close at all to Safari buttons).

  • Form on a report - using a field with search button to run report

    I am trying to do a very simple report with a custom search field on the top of the form. I am looking at Denes Kubicek's example of Search form on table. Page 68. I want to have a region with the fields to search on, a button and then a report with the data.
    I am having problems getting the report to run with the data. Is there an easy step by step guide to do this somewhere? Is there a 'trick'? I setup the branches (created by my buttom), the items, the button, the 2 regions (form on table ) and my report. I don't need the process search_empno as i don't have any hidden fields.
    Is there a step by step explanation of how to create the search field and have it call the report? It's wonderful to have the examples but i'm not sure what i am missing
    thanks
    angie

    user629851 wrote:
    Robert
    Thank you very much. I just went through the report wizard and it didn't ask me which field to query on? I wonder if that is only in certain versions? :(There is a little select box: "Enable Search" on one of the wizard pages. It defaults to NO. Set it to YES and the columns to search on are shown.
    i think it is the wizard-page just after you add the query for the report.

  • How do you clear an InputText field with a button click

    I am trying to create a calculator and I want to be able to use a "Clear" button that will reset all the values entered in several InputText fields and the total which is a label.     I can update and clear a label using the UpdateContext
    function, but this isn't working for an InputText field.   Can someone provide an example on how to clear one InputText field?

    Hello,
    To do this you need to do the following
    Add an "Input Text", select the inputText and click Express view (bottom right).
    Set the default value to
    textboxvalue
    without any quotes
    On the behaviour / OnVisible of screen you put the inputText on set for example the following
    UpdateContext({textboxvalue: "Enter text here"})
    You can now add several buttons on the screen that do something
    UpdateContext({textboxvalue: ""})
    or
    UpdateContext({textboxvalue: "Enter Text here"})
    Or you could chain it with another OnSelect that is going on on the screen and reset your textbox. You can then also add the value the user has entered in a collection too (see bottom example)
    Navigate(Screen2, ScreenTransition!Fade);UpdateContext({textboxvalue: "Enter Text here"})
    Collect(inputcollection,{userinput: InputText1!Text});Navigate(Screen2, ScreenTransition!Fade);UpdateContext({textboxvalue: "Enter Text here"})
    I believe this should point you in the right direction
    Regards
    StonyArc

  • I'm having constant problems with pages not working. I.E.: I cannot fill in writeable fields, click on buttons... or anything... nothing on the page works. And, this is not exclusive to a particular site. I can, however, work well in Explorer.

    For the last few weeks I have had constant problems with pages not working. I.E.: I cannot fill in writeable fields, click on buttons... or anything... nothing on the page works. And, this is not exclusive to a particular site. It does seem to be a browser issue, because I can work well in Explorer.

    Both the Yahoo! Toolbar extension and the Babylon extension have been reported to cause an issue like that. Disable or uninstall those add-ons.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Fill fields with actual date / timestamp with button

    Hello,
    I did not find an answer for my following problem.
    I want to put a button my adobe form that fills automactically three fields with data from the PC which are:
    actual time (of the PC and of course timezone info), date and username, so the User has to press one button to fill all these data for convenience. 
    So I think it is necessary to program this in JavaScript as an "on-click" action. Since I'am not too much familiar with this, it would be great if someone can post a little sample coding for this (or has some other tipp).
    regards and happy xmas
    Jörg

    you must have target fields for your Date, Time and Username, for example you have a structure in your data view called "ZINFO" with the fields "EDATE", "ETIME","ENAME"
    in your layout you need a button where you click on
    in the click event you can fill your fields (formcalc)
    xfa.resolveNode("xfa.record.ZINFO.EDATE").value = Num2Date(Date(), "DD/MM/YYYY");  
    xfa.resolveNode("xfa.record.ZINFO.ETIME").value = Num2Time(Time(), "HH:MM:SS", "de_DE");
    so you always get time/date when clicking
    but how do you know who has opened the form?? did you realize some password protection??
    br norbert

  • 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?

  • Auto populate blank text fields with n.a from a button or on print out.

    This seems straight forward but I cannot find an existing questions on this topic.
    I would like to add a form function that will fill any blank text fields with n.a. I do not want to use the default field value as I think it will cause confusion and cannot be applied for text fields formatted for dates. Is it possible to run a script that can do this? It would be OK if the action was triggered from a button or print activity after the rest of the form has been completed.
    Any thoughts would be appreciated.
    Thanks

    The question is whether your form is used only for filling out on screen (and not as a level 0 form, being printed out and filled out manually).
    If so, why not make the default value of the concerned fields to be "n/a" (or whatever you want to name them). That would relieve you from any validating before printing.
    Otherwise, you could maintain a list of field names which should get the n/a value if empty. This list would be an array.
    Your code in the willPrint event (if you want to have it reliably) would then look like this:
    for (var i = 0 ; i < nafieldarray.length ; i++) {
    if (this.getField(nafieldarray[i]).value == this.getField(nafieldarray[i]).defaultValue) {
    this.getField(nafieldarray[i].value = "n/a") ;
    HTH.
    Max Wyss.

  • 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

  • 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);

  • Assigning a value to a number field through a button

    11gxe , apex 4.x ,
    hi all ,
    i am trying to assign value to a number field through a button ,
    i created a button , then a dynamic action for this button , when it is clicked ,
    the dynamic action is based on Pl\Sql code , and the code is
    begin
    :p2_assign := 455 ; -- where the page is "p2" and the number field is "assign"
    end ;
    but it does not work , why ?

    I can see the toolbar now from the last link you provided me with ,
    but you showed me the way to use the static assigning , and assigning with sql , and i want to do it with "Pl\Sql"
    in order to know why my way of writing the code does not work , although it is written properly , and should work .
    every input item is a variable , and i am doing so
    begin 
    :p2_assign := 455 ; -- where the page is "p2" and the number field is "assign" 
    end ;
    to assign a value to a variable ,
    and
    doing this
    begin 
    select 455 into :p2_no from dual ; 
    end ;  
    to select a value into a variable , then
    why does not it work ??
    and how to do it with pl\sql ?
    thanks

  • 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

  • How to allow user to select pdf file on local machine and populate field with file name only

    Folks,
    I have a project requirement that I am stumped on.  I am admittedly a novice, so forgive questions that may seem obvious.
    My requirement is a form running on a client system where the user can click a button and select a PDF file name from a PDF on their local machine and then populate a form field with that file path & filename.  The file names vary between all machines, so there is no static list.  Note that the PDF is not embedded, nothing is executed, I simply need the file name.
    There are several of these on a form (20+), so manual name entry is too error prone.   I would like to use a 'browse' type dialog, but can not figure out how to implement it.
    I've looked at app.browseForFile, but the users can not install a javascript file in their adobe folder or any other files;  the functionality has to be integral with the original PDF. 
    Functionally, this is no different from the image object file browse, except that I need a PDF instead of an image file, so there doesn't seem like there should be a security issue that is any different from those surrounding the image object.
    I've been stumped on this for the entire week, and I have a deadline rapidly approaching, so any examples or suggestions (please remember I'm a novice) would be greatly appreciated! 

    Thanks for the reply Paul - do you have any sample code of how to attach the PDF?  Or how the user can select a PDF to open?  I might be able to attach it, retrieve the file name, and then un-attach it.
    Alternatively, do you know how to retrieve the file name from the imagePath object?  It will let you select PDF files, but I can't find info on how to retrieve the file name.   It should be the way you would retrieve the file name for an image.
    As a novice in this, thanks for your help and patience!

Maybe you are looking for

  • Microsoft DPM 2010 no longer works for WSS 3.0 SP3 farm since moving farm to new SQL cluster

    Hi, I've had Microsoft DPM (first 2007, then 2010) backing up my WSS 3.0 SP3 farm since 2009.  This weekend, I had to migrate the WSS farm to a new SQL 2008 SP1 cluster.  I am using a SQL alias after the move.  I mean, I set the alias up several week

  • HD video

    Hello all, I am new to this forum and haven't been able to find the exact answer to my question. I have a Sony HDR-100 High Def camcorder and I am using Adobe Premiere Elements 7 to try to make movies.  The problem is, the output movies are horrendou

  • Basic questions in SRM for Workflows+need material

    Hi All, I have developed Workflows in SAP R3.I am very new to SRM. I have following questions - 1. What is the use of BADI when we implement Workflow? My understanding till now is to provide all approvers to the    Shooping Cart.That means for workfl

  • Creating variables to a query

    i have a existing query which is created one week back.Now i want to create  variables for that query.but while opening that query it is directly going to Result area(Excel sheet).how to create  variables.can any body throw light on this . Thanx in a

  • Slide Show File Names

    To All, Is it neccessary to have individual file names for all the files in all the slide shows? I created a DVD with several slide shows that contian many images from my digital camera. Some of the files have the same name (ie:, DCS_004). All the sl