How do I hide a pulldown menu if one of it's values has been selected but not others?

Through searching this forum, I've been able to figure out how to hide pull downs and fields that only have numeric info in them. I.e if the user selects. or if the pulldown value is zero. The item does not show or print on the form.  What I cannot find, is how do you accomplish this if the values in the  pulldowns are text? I.E. the pull down has three choices "choose an item", "ITEM 1", "ITEM 2". It defaults to "choose an item" and if left this way, I want it to be hidden or set to null, but if ITEM 1 or 2 are selected. Then it shows/prints ITEM 1 or ITEM 2 in the spot.
thank you for your help on this issue.

I figured it out
and need to give kudos to George Johnson due to an answer he gave in 2008 pointed me to the solution.
http://forums.adobe.com/message/1152008
First I assigned a calculated value to each of the text items.
Then here is my script.
// Get field value
var v1 = +getField("Description1").value;
// If the value does not equal 0 then use the value
if (v1 !== 0) {
    event.value = v1;
} else {
//If the value does equal 0 then blank the value
event.value = "";
Message was edited by: AXNUCorp due to a funky cut and paste

Similar Messages

  • How to identify whether a TransientVO value has been changed or not on jsff

    Hi
    I have a TransientVO view object dragged onto jsff page. Is there any way to identify in backing bean or in Application Module to identify whether there is any attribute value has been modified or not?
    Thanks in advance !!

    Hi:
    My understanding is that's ADF's internal business to keep track of RowSet changes. In your code, it's not expensive to explicitly call commit OperationBinding. When your code issue an explicit commit, ADF will check if a real commit necessary or not. If any row or attribute changed, a real commit will happen.
    If your application really want to get notified when any attribute changes, and you feel it too much to implement a valueChangeListener for every inputText, you should try a more generic one: rowUpdated(). I never use this one, but according to the manual, your probably can set a flag in your overwritten rowUpdated to flag an attribute value change when it happens.
    But I really recommend you simply issue a commit and let ADF decide the necessity of a real commit. If you are really interested in which specific field changes, to me you have only 2 options, 1 is to do valueChangeListener, the other is try to figure out if rowUpdated() helps.
    If you feel my answer helps, please mark it as 'helpful'; If it is correct, please mark it as 'correct'.
    Thanks,
    Alex

  • How can we find out data in an editable ALV grid has been changed or not?

    Hi Experts,
    How can we find out whether a data in an editable ALV grid has been changed or not.
    I am using the
    FM -> REUSE_ALV_GRID_DISPLAY_LVC
    for ALV display.
    I have to chekc whther data has been changed or not befor saving. if changed then only i want to
    SAVE
    . I cannot use the internal table comparison method for this purpose also i am not using OOP ALV.
    So kindly sugest me an alternative.
    Thanks and Regards,
    Shahana

    Hi,
    Thanks for your answer. I already saw this post.
    See this method.
    CALL METHOD reuse_alv_grid->check_changed_data
    IMPORTING
    e_valid = lv_check.
    This will update the internal table with the edited values. Then we can go for internal table comparison.
    But my scenario will not allow me for itab comparisons.I just want to know the ALV data has been changed or not.
    Regards,
    Shahana

  • How can I access the help menu on the top bar? It tells me I am not connected or to try later.

    How can I access the help menu on the top bar? It tells me I am not connected or to try later.

    Is your Internet connection working? What application are you seeing this behavior in?

  • How do I keep file menu open after CheckBox has been selected?

    The following represents a written code for a menu with checkboxes. I would like the menu to stay open after a check box has been selected. Does anyone have a suggested modification for this to occur?
    Thanks,
    JR
    public class NewJFrame extends javax.swing.JFrame {
    /** Creates new form NewJFrame */
    public NewJFrame() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
    jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();
    jCheckBoxMenuItem3 = new javax.swing.JCheckBoxMenuItem();
    jMenu2 = new javax.swing.JMenu();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jMenu1.setText("File");
    jCheckBoxMenuItem1.setSelected(true);
    jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");
    jMenu1.add(jCheckBoxMenuItem1);
    jCheckBoxMenuItem2.setSelected(true);
    jCheckBoxMenuItem2.setText("jCheckBoxMenuItem2");
    jMenu1.add(jCheckBoxMenuItem2);
    jCheckBoxMenuItem3.setSelected(true);
    jCheckBoxMenuItem3.setText("jCheckBoxMenuItem3");
    jMenu1.add(jCheckBoxMenuItem3);
    jMenuBar1.add(jMenu1);
    jMenu2.setText("Edit");
    jMenuBar1.add(jMenu2);
    setJMenuBar(jMenuBar1);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 400, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 279, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new NewJFrame().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem2;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem3;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    // End of variables declaration
    }

    Sorry Jack.
    Here is the code so that it appears more readable whenever it gets moved.
    public class NewJFrame extends javax.swing.JFrame {
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jMenuBar1 = new javax.swing.JMenuBar();
            jMenu1 = new javax.swing.JMenu();
            jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
            jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();
            jCheckBoxMenuItem3 = new javax.swing.JCheckBoxMenuItem();
            jMenu2 = new javax.swing.JMenu();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jMenu1.setText("File");
            jCheckBoxMenuItem1.setSelected(true);
            jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");
            jMenu1.add(jCheckBoxMenuItem1);
            jCheckBoxMenuItem2.setSelected(true);
            jCheckBoxMenuItem2.setText("jCheckBoxMenuItem2");
            jMenu1.add(jCheckBoxMenuItem2);
            jCheckBoxMenuItem3.setSelected(true);
            jCheckBoxMenuItem3.setText("jCheckBoxMenuItem3");
            jMenu1.add(jCheckBoxMenuItem3);
            jMenuBar1.add(jMenu1);
            jMenu2.setText("Edit");
            jMenuBar1.add(jMenu2);
            setJMenuBar(jMenuBar1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 400, Short.MAX_VALUE)
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 279, Short.MAX_VALUE)
            pack();
        }// </editor-fold>
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
        private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem2;
        private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem3;
        private javax.swing.JMenu jMenu1;
        private javax.swing.JMenu jMenu2;
        private javax.swing.JMenuBar jMenuBar1;
        // End of variables declaration
    }

  • How to get that the invoice has been printed or not?

    Hi Experts,
    I have a issue in Printing Invoice. I have to make 2 copies of an invoice. One is Original and another is Duplicate. I have made that with copy windows. But the requirement is that when the original copy of a selected invoice has been printed then from the second time only the duplicate copy will be printed. How to do that in ABAP? How to get the information that the invoice has been printed or not?
    Regards,
    SURYA

    Hi Surya,
    Try the below approach, i think this is better than the previous approach and takes care of the print from "text menu" as well
    select from z table.
    if sy-subrc eq 0.
      call "SMARTFORM_COPY"
    else.
    While calling the smartform, make sure you import the "JOB_OUTPUT_INFO" parameter,
    and after you call the smartform,
    call "SMARTFORM_ORIG"
    exporting...
    Importing...
    job_output_info = w_job_output_info
    exceptions...
    If sy-subrc eq 0.
      if w_job_output_info EQ 'X'.
        update the Z table.
      else.
        do not update the z table
      endif.
    endif. 
    endif.
    Regards,
    Chen

  • How do I troubleshoot installation/distribution of a LabVIEW .exe which processes data using Matlab when it works on some computers but not others?

    I've been given the unenviable task of troubleshooting and installing/distributing software written by a former co-worker. I've modified the LabVIEW code and built an .exe file. I've successfully installed the Labview .exe file on several computers, but it won't work on some others. What's more baffling is that I installed it successfully on one computer, uninstalled it, and tried reinstalling it with no success. In fact, it's a new error (Dr. Watson for Windows NT application error). It doesn't help that I have different versions of LabVIEW and Matlab on the target computers. Some have LabVIEW 5.1, some
    have 5.0, and some don't have it at all. Some have Matlab 5.2, some have 5.3 (R11) and some have 6.0 (R12). It's also not clear to me where the Matlab m files should be located. I'm not sure if it's a LabVIEW Runtime Engine problem, or if it's a Matlab problem. I've also wondered how LabVIEW and Matlab talk to each other. When LabVIEW calls Matlab, it seems that Matlab is running in the background. In other words, clicking on the Matlab Command Window and typing "whos" or any other command/variable doesn't work.

    Jay del Rosario wrote:
    >
    > How do I troubleshoot installation/distribution of a LabVIEW .exe
    > which processes data using Matlab when it works on some computers but
    > not others?
    Poke around zone.ni.com and
    http://digital.natinst.com/public.nsf/$$Search/ .
    Good luck, Mark

  • How can i fix my iphone i can't update or download apps, when i try it tells me toput my credit card info and i do but when i push done it tells me my payment has been declined, but why do i have to pay to update or download free apps. How can i fix this?

    how can i fix my iphone i can't update or download apps, when i try it tells me toput my credit card info and i do but when i push done it tells me my payment has been declined, but why do i have to pay to update or download free apps. How can i fix this?

    You must contact iTunes support to get the problem resolved.
    http://www.apple.com/support/itunes/contact/
    If there is a problem with your account or payment info, you cannot
    download anything (including free apps or updates) until the matter
    is resolved.
    In countries where the iTunes Store only sells apps, the accepted payment methods are Visa, MasterCard, and American Express. Other payment types such as gift cards, store credit, monthly allowances, ClickandBuy, and PayPal are not accepted. Depending on your App Store country, prices may be listed in your local currency, US Dollars, or Euros.    http://support.apple.com/kb/HT5552

  • How to forbid any further changes for PO (QTY and price ) after it has been

    Hi,
    How to forbid any further changes for PO (QTY and price ) after it has been done GR and LIV? Thanks.

    Hi,
    Price anyway cannot be changed once GR is posted on the PO item, it can be changed only by cancelling the GR, the same applies to IR too.
    But quantity can be changed at any time.
    So if you are looking at blocking qty too, then a customized message through save exit is the option, I am not aware of any standard SAP messages that can be configured to achieve this..
    Ramesh

  • How can I register the iTunes without a credit card? No "None" can be selected but only different kinds of credit cards. Thanks!

    How can I register the iTunes without a credit card? No "None" can be selected but only different kinds of credit cards. Thanks!

    Get an iTunes gift card & redeem that in iTunes using your existing Apple ID.
    Then the option for none, regarding a credit card should appear.

  • HT204053 My wife and I have an iphone each using one apple id. How do we stop items being deleted from one phone and then find it has been deleted from the other?

    My wife and I have an iphone each using one apple id. How do we stop phone contacts being deleted from one phone and then find it has been deleted from the other?
    Also this works when one of us downloads an app it appears on the other iphone

    You need to use separate iCloud accounts. This will mean that you can both have your own separate contracts and calendars and put an end to them being deleted by each other.
    Whether or not you have a separate iTunes account, is up to you. If you have a separate iTunes accounts you will not be able to access the music, books, apps that have been purchased by the other. This may be exactly what you want, but it also means that you both may end up purchasing the same item.

  • A relative synced my iphone with his laptop without me knowing. It had a passcode on the phone but the sync still worked. I have since found out he is quite IT knowledgeable and has been known to track other peoples phones.  How is this data useful to him

    A relative synced my iphone with his laptop without me knowing. It had a passcode on the phone but the sync still worked. I have since found out he is quite IT knowledgeable and has been known to track other peoples phones that he wants to know information about.  How is my data useful to him and can he restore this data on another iPhone and run it parallel to mine? I have had people send me messages which I have not received. These have been screen shot to me later including time and I have just not got them. I had 4 weeks worth of messages go missing from my phone..I know that he synced my phone because his work laptops I'd came up in my settings. Also if the above can be done can he change the settings on my actual phone and access my location without placing tracking software on my phone.  Can someone please help here as I can't restore a backup to my phone for obvious reasons and refuse to change my number because of this loser.

    Connect the device to the computer.
    In iTunes, select the content desired to sync.
    Sync.
    This is all described in the User's Guide, reading it may be a good place to start.

  • On my PC, in I-Tunes, my iPod (touch) button disappears every time I try to sync or update.  Everything has been rebooted, but no changes. Any ideas on how to sync to the IPod?

    On my PC, in I-Tunes, the iPod (touch) button disappears every time I try to sync or update.  Everything has been rebooted, but no changes. Any ideas on how to sync to the IPod?  Better yet, how to keep the ipod button on screen when itunes is open and the ipod is connected?

    - Have you tried another USB port and cable?
    - Inspect the dock connector for bend or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.

  • I reinstalled my computer's operating system.  How do I transfer music from my Ipod to my music library?  It transfered some, but not all my music.  I authorized the computer, but it did not help.

    I reinstalled my computer's operating system.  How do I transfer music from my Ipod to my music library?  It transfered some, but not all my music.  I authorized the computer, but it did not help.

    The sync is one way - computer to ipod.  The only exception is itunes purchases.
    The ipod is not a backup device.
    You need to copy everything back using your backup copy.

  • Find my iPhone on my iPad has been disable, how can I get it back?, Find my iPhone on my iPad has been disable, how can I get it back?

    Find my iPhone on my iPad has been disable, how can I get it back?, Find my iPhone on my iPad has been disable, how can I get it back?

    I have been talking with apple about losing Siri when I download iOS 7. They had me disabled it. I go to setting now on the iPad and it just shows locate my iPad. Went I go to my iPhone 5 with iOS 7 it just shows me to locate my iPhone. Both are on. This ios7 has gotten me mixed up.  Thanks

Maybe you are looking for

  • Adobe 8.1.2 crashes PDF; Can't read PDF anymore Mac OS 10.4.11 PPC

    Ever since Adobe 7 and Mac OS 10.4.9 I've been updating/installing and still crashes on PDF reads from within Browsers or Adobe itself. I have an iMac 800 17" (Mac OS 10.4.11 with OS 9.2 PPC) recently maxed RAM 1Gb has backup eDrive by TechTool Pro.

  • File Writing - Missing some files without any error

    I am executing the following code: String message = XMLHelper.getDocumentXML(_doc);      File outFile = getFile();      RandomAccessFile raf = new RandomAccessFile(outFile, "rw");      FileChannel channel = raf.getChannel();      ByteBuffer buf = Byt

  • XML support in Oracle 8i

    Hi, I have a requirement of storing XML documents in the Oracle database. As Oracle claims support for XML in Oracle 8i, I would be thankful if the following questions could be answered. There will be around 15000 or more XML documents generated annu

  • Multiple Apple Boxes, One House ?

    My dad is in the living room watching a movie off the apple box, but when I tried watching it in my room it doesn't go trhough. Can one not watch movies at the same time under one network because its streaming a movie?

  • How can I download photoshop element 12 during off hours

    I want to purchase Element 12 but it is 1 Gb and I don't have that much available in my internet plan per day.  How can I set it to download from 3a to 7a and then restart what isn't finished the next night?