How to have a button remove itself when clicked?

Here is my code...it should technically work, shouldn't it? Yet when you try it out and click the first button it will fail to refresh or update the frame. When I resize the frame after clicking the first button, the three buttons that were there before disappear and the new button appears. What can I do to fix this? Please help, try it out for yourself and see.
Also, if you can explain to me, how can I center these buttons all to the right?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CPT extends JPanel implements ActionListener
protected JButton AddEntryButton, ViewEntriesButton, SearchEntriesButton, AddButton;
private final static String newline = "\n";
public CPT ()
super (new GridLayout (10, 10));
AddEntryButton = new JButton ("Add Entry");
AddEntryButton.setVerticalTextPosition (AbstractButton.TOP);
AddEntryButton.setHorizontalTextPosition (AbstractButton.LEFT);
AddEntryButton.setToolTipText ("Click this button to add a database entry.");
AddEntryButton.setMnemonic (KeyEvent.VK_A);
AddEntryButton.setActionCommand ("AddEntry");
AddEntryButton.addActionListener (this);
ViewEntriesButton = new JButton ("View Entries");
ViewEntriesButton.setVerticalTextPosition (AbstractButton.CENTER);
ViewEntriesButton.setHorizontalTextPosition (AbstractButton.LEFT);
ViewEntriesButton.setToolTipText ("Click this button to add view all database entries.");
ViewEntriesButton.setMnemonic (KeyEvent.VK_V);
ViewEntriesButton.setActionCommand ("ViewEntries");
ViewEntriesButton.addActionListener (this);
SearchEntriesButton = new JButton ("Search Entries");
SearchEntriesButton.setVerticalTextPosition (AbstractButton.BOTTOM);
SearchEntriesButton.setHorizontalTextPosition (AbstractButton.LEFT);
SearchEntriesButton.setToolTipText ("Click this button to search through all database entries.");
SearchEntriesButton.setMnemonic (KeyEvent.VK_S);
SearchEntriesButton.setActionCommand ("SearchEntries");
SearchEntriesButton.addActionListener (this);
AddButton = new JButton ("Add");
AddButton.setVerticalTextPosition (AbstractButton.TOP);
AddButton.setHorizontalTextPosition (AbstractButton.RIGHT);
AddButton.setToolTipText ("Click this button to add a database entry.");
AddButton.setMnemonic (KeyEvent.VK_A);
AddButton.setActionCommand ("Add");
AddButton.addActionListener (this);
add (AddEntryButton);
add (ViewEntriesButton);
add (SearchEntriesButton);
public void actionPerformed (ActionEvent e)
if ("AddEntry".equals (e.getActionCommand ()))
remove (AddEntryButton);
remove (ViewEntriesButton);
remove (SearchEntriesButton);
add (AddButton);
if ("ViewEntries".equals (e.getActionCommand ()))
remove (AddEntryButton);
remove (ViewEntriesButton);
remove (SearchEntriesButton);
if ("SearchEntries".equals (e.getActionCommand ()))
remove (AddEntryButton);
remove (ViewEntriesButton);
remove (SearchEntriesButton);
// Create the GUI and show it. For thread safety,
// this method should be invoked from the
// event-dispatching thread.
private static void createAndShowGUI ()
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated (true);
//Create and set up the window.
JFrame frame = new JFrame ("Swisha Computer House");
frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
JComponent newContentPane = new CPT ();
newContentPane.setOpaque (true); //content panes must be opaque
frame.setContentPane (newContentPane);
//Display the window.
frame.pack ();
frame.setSize (300, 300);
frame.setVisible (true);
public static void main (String[] args)
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater (new Runnable ()
public void run ()
createAndShowGUI ();
}

You should tell the container it needs to be layed out again and then request for a UI update.
Your first clause in actionPerformed:
if ("AddEntry".equals (e.getActionCommand ()))
  remove (AddEntryButton);
  remove (ViewEntriesButton);
  remove (SearchEntriesButton);
  add (AddButton);
}would then be:
if ("AddEntry".equals (e.getActionCommand ()))
  remove (AddEntryButton);
  remove (ViewEntriesButton);
  remove (SearchEntriesButton);
  add (AddButton);
  invalidate();
  updateUI();
}The same applies for the two other clauses, resulting in:
public void actionPerformed(ActionEvent e)
   if ("AddEntry".equals(e.getActionCommand()))
      remove(AddEntryButton);
      remove(ViewEntriesButton);
      remove(SearchEntriesButton);
      add(AddButton);
      invalidate();
      updateUI();
   if ("ViewEntries".equals(e.getActionCommand()))
      remove(AddEntryButton);
      remove(ViewEntriesButton);
      remove(SearchEntriesButton);
      invalidate();
      updateUI();
   if ("SearchEntries".equals(e.getActionCommand()))
      remove(AddEntryButton);
      remove(ViewEntriesButton);
      remove(SearchEntriesButton);
      invalidate();
      updateUI();
}

Similar Messages

  • Firefox 14 - How to have my start page launched when clicking on the 'new tab'-button?

    I want to my startpage (Google) launched with clicking on the + Tab at the top. However,I donot want another plug-in added.
    Can this be configured one way or the other?
    TIA
    =

    Hi tkpeters,
    Please see [https://support.mozilla.org/en-US/kb/removing-babylon-searchqu-or-mystart this]. Mystart & incredibar could also come bundled with another add-on, or another entirely different Windows application and the exact names may not be always obvious in Firefox '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''', or the Windows OS '''Control Panel''' > '''Programs and features'''.
    You can also [https://support.mozilla.org/en-US/questions/new/desktop start a new thread] which would help to provide specific details relevant to your configuration/issue.

  • How to make another button to availabe when click one button

    Hi,
    There are two buttons (Button A and B)on my page. The disable property of button A is false. The disable property of button B is ture. My issue is when I click Button A, how can I change the disable property of button B to false. Then Button B can be pressed.
    Thanks,
    Eileen
    Message was edited by:
    Eileen

    Generate a PPR event from button A and handle the PPR event, in the code after handling the event, write logic to set the enabled property of button B to true.
    read PPR chapter in devguide to understand thr details.
    Thanks
    Tapash

  • How to have a button to reset a field and not the whole form?

    Hi,
    Can anyone help me with this dilemma please? All tutorials online demonstrates how to have a button to reset the whole form, but i only want the user to clear 1 field in the form.
    I have a form which has a field representing a persons name who has booked out a piece of equipment. I would like the administrator to be able to clear the field quickly without having to select the whole name and then delete it, ready to insert the name of another booker.
    Any help would be very much appreciated. (If it is using dreamweaver features than that is better.)
    Thank you!

    There's nothing in DW that will do this for you.
    This script from the internet seems to do the trick. Add this to the <head> section of your page...
    <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>
    <script type='text/javascript'>//<![CDATA[
    $(window).load(function(){
    function resetForm() {
      $(this.previousSibling).val(function() {
      return this.defaultValue;
    $( "input[type='button']" ).bind( "click", resetForm );
    });//]]> 
    </script>
    Then add your form in the <body>...
    <form>
      <label for="textfield1">Text Field:</label>
      <input type="text" name="textfield1" id="textfield1"><input type="button" value="reset" /><br />
      <label for="textfield2">Text Field:</label>
      <input type="text" name="textfield2" id="textfield2"><input type="button" value="reset" /><br />
      <label for="textfield3">Text Field:</label>
      <input type="text" name="textfield3" id="textfield3"><input type="button" value="reset" /><br />
      <label for="textfield4">Text Field:</label>
      <input type="text" name="textfield4" id="textfield4"><input type="button" value="reset" /><br />
    </form>
    EDIT: Ha! Same script as you found Nancy, posted originally at the exact same time too (I threw a couple modifications in)...
    Good times, good times.

  • How can I create an icon that when clicked will open and maximize an image file?

    How do I create a icon that when clicked will open and maximize an image file?  I have tried to use the simple image widget with maximize upon tap/click - however I am can only size the image really small and put on the page.  I'd prefer to have a graphic that when clicked it simply opens up the image.  This is for a very simple question/answer book.   The user is suppose to look at a picture and locate something.  I want to put an 'Answer' graphic on the image and then the user can click the 'answer' graphic and it will open up the picture with the answer identified. 
    Is this possible?

    Have yiu tried the PopOver widget?  You can drop an image into it, maximise the image and the widgets window...But, you cannot get it full screen.
    With iBooks Author, you either learn to use what is available within the app, or look online for third party widgets to purchase which suit your project.

  • Is it possible to create a standard form that can be emailed to anyone and once filled out by the receiver, have a button that the receiver clicks and the form is encrypted and attached an email back to the sender and a preset admin password would open it

    Is it possible to create a standard form that can be emailed to anyone and once filled out by the receiver, have a button that the receiver clicks and the form is encrypted and attached to an email back to the sender and a preset admin password would open it?

    Hello Graphicsguy123,
    You would need to first create the form ( or Widget in EchoSign) first to generate a url which you can paste it in the email being sent to customers. You would need to make sure you have a Document Cloud Enterprise Premium account in order to create a Widget. If you don't have the account, you can use the trial version to test it. Here is the link:
    Global Trial Registration | eSign services from Adobe
    -Rijul

  • Share button on Toolbar when clicked takes time to load ? Do you get that ?

    Share button on Toolbar when clicked takes time to load ? Do you get that ?

    After activating your iPad, go to the App Store and search for your free apps:
    1. Pages
    2. Numbers
    3. Keynote
    4. iPhoto
    5. iMovie
    6. GarageBand
    If apps are still showing the price: sign out>reboot>and sign in again
    Settings>iTunes and App Store>Apple ID

  • How to maintain dynamic rows with data when click on Previous button?

    Hi,
    I have 1 aspx page and divided into 3 pages using panels.Each panel has "Next" and Previous buttons
    I have created and deleted dynamic table rows when click on Add button using javascript. whenever i click on Next button it will navigate to same page of next panel.
    when i click on previous button then it goes to previous panel but whatever i have added dynamic table rows in 1st panel that got removed.
    Can u please help me for how to maintain state of dynamic table rows with entered data when click on Previous button?
    How to get dynamic table rows with entered data in previous panel when click on Previous button?
    Please find the below javascript code:
    function insertRow() {
    if (index >= 2) {
    document.getElementById('deleteRow').style.display = "inline";
    else { document.getElementById('DeleteRow').style.display = "none"; }
    var table = document.getElementById("myTable");
    var row = table.insertRow(table.rows.length);
    cell1 = row.insertCell(0);
    t1 = document.createElement("select");
    t1.options[t1.options.length] = new Option('--Select--', '0');
    t1.id = "ddlYear" + index;
    cell1.appendChild(t1);
    for (var i = 1975; i <= 2015; i++) {
    opt = document.createElement("option");
    opt.value = i;
    opt.text = i;
    t1.add(opt);
    t1.style.width = "155px";
    var cell2 = row.insertCell(1);
    t2 = document.createElement("Select");
    t2.options[t2.options.length]=new Option('--Select--','0');
    t2.options[t2.options.length]=new Option('State Board','1');
    t2.options[t2.options.length]=new Option('CBSE','2');
    t2.options[t2.options.length]=new Option('ICSE','3');
    t2.options[t2.options.length] = new Option('Others', '4');
    t2.style.width = "155px";
    t2.id = "ddlCourse" + index;
    cell2.appendChild(t2);
    var cell3 = row.insertCell(2);
    t3 = document.createElement("input");
    t3.id = "txtCity" + index;
    cell3.appendChild(t3);
    var cell4 = row.insertCell(3);
    t4 = document.createElement("input");
    t4.id = "txtInstitute" + index;
    cell4.appendChild(t4);
    var cell5 = row.insertCell(4);
    t5 = document.createElement("Select");
    t5.options[t5.options.length] = new Option('--Select--', '0');
    t5.options[t5.options.length] = new Option('English', '1');
    t5.options[t5.options.length] = new Option('Hindi', '2');
    t5.options[t5.options.length] = new Option('Telugu', '3');
    t5.options[t5.options.length] = new Option('Others', '4');
    t5.style.width = "155px";
    t5.id = "ddlMedium" + index;
    cell5.appendChild(t5);
    var cell6 = row.insertCell(5);
    t6 = document.createElement("input");
    t6.id = "txtSpecialization" + index;
    cell6.appendChild(t6);
    var cell7 = row.insertCell(6);
    t7 = document.createElement("input");
    t7.id = "txtFnl" + index;
    cell7.appendChild(t7);
    index++;
    function DeleteRow(index) {
    var table = document.getElementById("myTable");
    table.deleteRow(index);
    // if (index = 2) { alert("There is no rows added.Please add the new row"); }
    Design:
    <tr style="font-size: 12pt" id="trSecond" runat="server">
    <td colspan="3">
    <table id="myTable" width="100%" border="0">
    </table>
    <tr>
    <td colspan="3" align="right">
    <input type="button" title="Add" value="Add" onclick="insertRow();" />
    <input type="button" id="deleteRow" title="Delete" value="Delete Row" onclick="DeleteRow(this);" style="display:none" />
    </td>
    </tr>
    Thank you.

    Put the button click into an action listener and build the new frame there. The code I have below isn't exactly what you're doing (it's amazingly oversimplified), but it's probably similar enough to get your wheels turning in the right direction.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class sample
         public static void main(String[] args)
              JFrame frame = new JFrame("Sample");
              frame.setSize(400,400);
              Container content = frame.getContentPane();
              content.setLayout(new FlowLayout());
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              final JTextField text = new JTextField(10);
              content.add(text);
              JButton button = new JButton("Send");
              content.add(button);
              frame.setVisible(true);
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        JFrame myframe = new JFrame("Results");
                        myframe.setSize(200,200);
                        Container mycontent = myframe.getContentPane();
                        mycontent.setLayout(new FlowLayout());
                        String mytext = text.getText();
                        JLabel label = new JLabel();
                        label.setText(String.valueOf(mytext));
                        mycontent.add(label);
                        myframe.setVisible(true);
    }

  • How to make a button stay down when I click on it in  CSS nav bar.

    So I have created a horizontal navigation bar, I use the CSS
    Sprites/Pixy method to get the hover working with the same image as
    the link/in active stage of the buttons.
    Now how do I make the button stay down when someone click on
    them?
    These are the codes for the nav bar.
    #nav{
    width: 780px;
    list-style: none;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    padding: 0;
    height: 40px;
    #nav li{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    float: left;
    padding: 0;
    #nav a{
    width: 125px;
    display: block;
    color: #000000;
    text-decoration: none;
    text-align: center;
    background-image: url(ZITTO_IMAGES/button_set1a.jpg);
    background-repeat: no-repeat;
    background-position: center 2px;
    padding-top: 14px;
    padding-bottom: 10px;
    background-color: #000000;
    #link2,#link3,#link4,#link5,#link5,#link6 { margin-left:
    6px;}
    #nav a:hover{
    background-image: url(ZITTO_IMAGES/button_set1a.jpg);
    background-repeat: no-repeat;
    background-position: center -36px;
    color: #FFFFFF;
    width: 125px;
    padding-top: 14px;
    padding-bottom: 10px;
    background-color: #000000;
    Everything works so far, the hover works when you roll the
    mouse but when you click the button goes right back.
    How can I make it stay down and then go back to normal when
    you click on another link/button?
    Thanks very much.
    Patrick

    Read my suggestion again. You are missing a critical point. I
    show you
    exactly where to put the stylesheet. And it doesn't matter
    how many
    stylesheets you have on a page.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Webethics" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Change this -
    >
    > #nav a{
    > width: 125px;
    > display: block;
    > color: #000000;
    > text-decoration: none;
    > text-align: center;
    > background-image: url(ZITTO_IMAGES/button_set1a.jpg);
    > background-repeat: no-repeat;
    > background-position: center 2px;
    > padding-top: 14px;
    > padding-bottom: 10px;
    > background-color: #000000;
    > }
    >
    > #link2,#link3,#link4,#link5,#link5,#link6 { margin-left:
    6px;}
    >
    >
    > #nav a:hover{
    > background-image: url(ZITTO_IMAGES/button_set1a.jpg);
    > background-repeat: no-repeat;
    > background-position: center -36px;
    > color: #FFFFFF;
    > width: 125px;
    > padding-top: 14px;
    > padding-bottom: 10px;
    > background-color: #000000;
    > }
    >
    > to this -
    >
    > #nav a{
    > width: 125px;
    > display: block;
    > color: #000000;
    > text-decoration: none;
    > text-align: center;
    > background-image: url(ZITTO_IMAGES/button_set1a.jpg);
    > background-repeat: no-repeat;
    > background-position: center 2px;
    > padding-top: 14px;
    > padding-bottom: 10px;
    > background-color: #000000;
    > }
    >
    > #link2,#link3,#link4,#link5,#link5,#link6 { margin-left:
    6px;}
    >
    >
    > #nav a:hover{
    > background-position: center -36px;
    > color: #FFFFFF;
    > }
    >
    > Then on each individual page, change this -
    >
    > </head>
    >
    > to this -
    >
    > <style type="text/css">
    > #nav a#link4 {
    > background-position:center - 36px;
    > }
    > </style>
    > </head>
    >
    > (for link4, for example)
    >
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "Webethics" <[email protected]> wrote
    in message
    > news:[email protected]...
    > >
    quote:
    Originally posted by:
    Newsgroup User
    > > When they click on a button, do they go to another
    page? And is each
    > > button
    > > uniquely identified?
    > >
    > > If so, then put a little stylesheet on each such
    page that sets the
    > > particular button to the down sprite settings,
    e.g.,
    > >
    > > a#link6 { downspritevalues }
    > >
    > > --
    > > Murray --- ICQ 71997575
    > > Adobe Community Expert
    > >
    > >
    > > This is the link to the page.
    > >
    http://www.patrickjudson.com/zitto_web1d.html
    > > What state do I use to get this effect? The active
    or the visited?
    > >
    > > I want the buttons to remain down when click or
    even better, how do I
    > > get
    > > the
    > > welcome button to appear down when a person visits
    the page to show them
    > > they
    > > are at the home page.
    > >
    > > Thanks so much. Patrick
    > >
    > >
    > >
    >
    >
    >
    > Hey! Murray, thanks very much for the efforts. However
    I'm still confused
    > as
    > to where to insert the individual styles on each page.
    >
    > The pages already have a style sheet, in fact they all
    share the same
    > style
    > sheet. The following codes below is what you instructed
    but I'm confused
    > as to
    > where to insert them since the page already has a head
    opening and closing
    > as
    > well as a style opening and closing tags. Can you please
    add the codes you
    > instructed so I can see where they go and how to
    implement them?
    >
    > Thanks - Patrick
    >
    >
    > Then on each individual page, change this -
    >
    > </head>
    >
    > to this -
    >
    > <style type="text/css">
    > #nav a#link4 {
    > background-position:center - 36px;
    > }
    > </style>
    > </head>
    >
    > (for link4, for example)
    >
    >
    >
    >

  • How to have push button in Table control

    Hi Experts,
       I have an internal table which I populate in table control. How can I have pushbutton in table control(in every row). If done how to have funtion code which will trigger PAI.
    Thanks and regards.
    Venkat

    Hi,
    I dont think that pushbuttons will be of much use as when you click a button same code will be executed all time.
    So, you can take either selection column in table control (use the SELCOL in the table attributes)
    or you can also take a checkbox in table control and then can perform action on lines which were selected by the user.
    Hope this helps you out.
    Regards,
    Tarun

  • SUBMIT button works only when clicked twice... Online interactive form

    Hi,
    I have created a interactive form with SubmitToSAP button. In this I will enter a contract number and will click SUBMIT button.
    For the first time it is fetching the contract details properly.
    In the same form, i am changing  the previously entered value with another contract number and clicking SUBMIT.
    Now the details for the previously entered contract number is only displayed. Again if i try for the same value ( which i used for the second time )  and press submit, it is workin correctly.
    So, the problem is, except for the very first time SUBMIT button action, the button works fine only when clicked twice..
    please help me in solving this issue..
    Regards,
    Surya.

    Hi,
        In addition to my previous post, I am also using RESET FORM button from Library.
    First I am entering the contract number (say 400000000) in the form and clicking submit button. The contract details are fetched and displayed in the form.
    Now i am Resetting the form using Reset Button, and giving new contract number (say 400000020).  When  I pressed Submit button , the details of the first entered contract number (400000000)  is coming.
    Then again I am giving 400000020 or any other number, it is fetching the details correctly for that number...
    Can anyone help me in this issue..
    Thanks,
    Surya.

  • How to trigger a button without having to click it

    In the view i have defined a button, and if a condition is met, i want that button to be triggered/clicked automatically so the processing continues as if someone had clicked the button.
      <phtmlb:matrixCell row = "2"
                         col = "1" />
      <htmlb:button id      = "newEntry"
                    text    = "<%= otr(paoc_rcf_ui/new_entry) %>"
                    width   = "10%"
                    onClick = "onNewEntry" />
    <b>  <%
      if not controller->pt_work_experience is initial.
      %>
      Trigger the above described button automatically
      <%
      endif.
      %></b>
    Any simple code examples for this ?
    Thanks in advance

    is that case the js is right
    <script>
    document.getElementById('newEntry').click();
    </script>
    should work.
    we need to resolve the js issue, if its resolved, this solution will work.
    the following is a small sample page which i created. test it in your browser and let me know.
    page attribute:
    test type string.
    test1 type string .
    layout.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form >
          <htmlb:button id = "MYB"
                              text    = "Press Me"
                        onClick = "myClickHandler" />
    <% if test = 'Y' . %>
    <script>
    document.getElementById('MYB').click();
    </script>
    <% endif .
    %>
       <%= test1 %>
          <% clear:test, test1 . %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    oninputprocessing
    test1 = 'Button Clicked' .
    clear test .
    save activate the page. run the page by passing ?test=Y at the end of the url, you will see the button automatically getting clicked pass test=N and notice its not getting clicked.
    to identify the js error , i have to see the whole layout code of your page.
    Regards
    Raja

  • Form distribution submit button: how to avoid this or remove it when it's automatically inserted?

    I've form(s), created in Acrobat X Pro, that I want to put on a web page for download and fill in.  I tried this with FDF but... because I have a number of forms it proved very time consuming to match the FDF data to the relevant form.  I'm now trying to do this through acrobat,com and form distribution.
    Help pages for Acrobat X Pro state;
    "Home / Using Acrobat X Pro / Forms
    Setting action buttons
    Add a submit button
    When you distribute a form, Acrobat automatically checks the form. If it doesn’t find a submit button, it adds a Submit Form button to
    the document message bar. Users can click the Submit Form button to send completed forms back to you. If you don’t plan to use the
    Submit Form button created by Acrobat, you can add a custom submit button to your form."
    My form already has a submit button (whose target I changed to acrobat.com) which also submits to PayPal for payment and pops up a warning message to avoid (hopefully) double submission etc. (which works OK in the undistributed form) but the wizard doesn't detect this and inserts an additional submit button - top right, in the purple area.
    How can I avoid this or remove it?
    Acrobat X Pro
    Win 7 32 Ult

    *Image Block: https://addons.mozilla.org/firefox/addon/image-block/

  • 10133 ADF: How to stop search button to execute when there is an error

    Hi,
    I have two dropdownlists in a search criteria on a search page. The search result is at the bottom of the same page. The two values in the dropdownlists need to be validated when the search button is clicked. The validation logic is put in the searchBtn_action method binded to the search button. In the logic, when an invalid combination happens, I am able to post some error message on top of the page. But how can I stop the application to execute the sql statement? I mean if there is any method I can call to exit if there is an error? Thank you very much.
    Regards,
    Annie

    This is most likely an optimization problem. I know such behaviour existed in the past with some functions and NI usually fixed it in some later release, but the recent changes in the LabVIEW compiler to use LLVM and various optimization improvements may have added this "feature" back in. The default value behaviour is certainly correct and consistent but the behaviour without default value feels not right to me for LabVIEW. In C I would say ok this is simply undefined behaviour and that means the produced code is entitled to even format your harddisk, since C explicitedly says all undefined behaviour is subject to choices by the implementor and is allowed to do whatever the implementor sees fit, including changing behavior between any version of the compiler.
    But LabVIEW as a high level language has explicitedly so called default default data, which in this case should be used. Just having read a bit about LLVM I know they are wrestling with C undefined behaviour as well and LLVM being used a backend by several C compilers already has to deal with them. The reason that C explicitedly has many undefined behaviours is to allow various and sometimes significant optimizations, that could not be done, if the C standard would explicitedly require specific behaviour in certain cases (for instance uninitialized variables).
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to have SharePoint 2013 open Excel when opening an XLSX file?

    Hello,
    I have SharePoint 2013 and Excel 2010 files in SharePoint.  When I click on the Excel file, it opens the Excel spreadsheet within the
    browser, and does not open the Excel application.  I have to click a button to get SharePoint to open the file in Excel.
    How can I change this for all users in a site collection, so when they click on the Excel file, Excel is opened with the file?
    Paul

    Hi Paul,
    Do you have Office for Web Configured, if so you can override the behavior by using PowerShell Cmdlets -
    New-SPWOPIBinding and
    Set-SPWOPIBinding 
    see here for more information
    Set the default open behavior for browser-enabled documents (Office Web Apps when used with SharePoint 2013)
    http://technet.microsoft.com/en-us/library/ee837425(v=office.15).aspx
    or activate Open Documents in Client Applications by Default in Site Settings->Site Collection Adminstration ->Site Collection Features
    alternatively you can also run the below powershell cmdlet to activate the feature (from the above link)
    for specific site collection
    Enable-SPFeature 8A4B8DE2-6FD8-41e9-923C-C7C3C00F8295 -url <SiteCollURL>
    for all site collection
    Get-SPSite -limit ALL |foreach{ Enable-SPFeature 8A4B8DE2-6FD8-41e9-923C-C7C3C00F8295 -url $_.URL }
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

Maybe you are looking for