Displaying Text When Button Pushed

I am preparing a form in Designer with multiple check-boxes. The instructions for each check-box are so detailed that even an experienced user will occasionally want to review the detailed parameters. I would like to place a button next to each check-box which, when pushed, displays pdf or typed text of the relevant portion of the instructions (i.e. - every button would display a different pdf/text). Can this be done with a limited amount of scripting? Also, can the pdf/text be "embedded" into the form?

Steven,
We had a similar requirement for one of our forms. What we did was to create a multi line text field called additional_guidance.
Then in the mouseEnter event of each field we had the following Formcalc:
additional_guidance = "This is further information about this checkbox"
On the mouseExit event we had:
additional_guidance = null
Alternatively, you could set up the root container as a flowed content. Then the checkboxes would be in a positioned content subform and subsequent fields in another positioned subform. In between these you would have a hidden invisible flowed subform which contains the notes in a text field or static text. This would appear or be hidden depending on mouseEnter events or click events on buttons.
If you need to provide alot of detailed information in a formatted layout, then you could set up a page for each checkbox (or one page for all of the checkboxes) at the end of your form (e.g. called checkbox1_notes). You would set the presence to hidden. Then your button next to checkBox1 would have javascript like this in the click event:
checkbox1_notes.presence = "visible";
xfa.host.currentPage = xfa.host.numPages - 1;
Remember to put a hide button on this help page with the folloeing javascript in the click event:
checkbox1_notes. presence = "hidden";
xfa.host.setFocus(xfa.form.form1.p1.checkbox1); //this would be the full reference for your object
Good luck,
Niall

Similar Messages

  • I want  to display a text when button pressed

    Hi guys
    I want to display a text when a button is pressed , but the compiler says cannot resolve variable text ,can you please help me
    here is my program
    import  java.awt.Color .*;   import java.awt .*; import java.awt.event.*; import java.awt.event.*;   import javax.swing.*; import javax.swing.JTable.*;   public class sannaa extends JFrame implements  ActionListener {[code] public sannaa( )  {
    super("����� ������" ); setLayout(new FlowLayout()); TextField text = new TextField(20); JButton ok=new JButton( "return"   ); add(text); ok.addActionListener(this);  
    Container   contentPane  =  getContentPane(    ); 
    JLabel hellolabel=new JLabel("google"); hellolabel.setForeground(Color.black); hellolabel.setBackground(Color.blue);   String[ ] columnNames =
    {"First Name",   "Last Name", "Sport",
                             "# of Years",
                             "Vegetarian"};
                            Object [    ][     ] data =
    {"Mary", "Campione", "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml", "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath", "Knitting", new Integer(2), new Boolean (false)},
    {"Sharon", "Zakhour", "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne", "Pool", new Integer(10), new Boolean(false)} };
    JTable table = new JTable(data, columnNames); JButton enter=new JButton( "search"   ); ok.setBackground(Color.pink); ok.setForeground(Color.white); JFrame frame=new JFrame("EL  "); enter.setMaximumSize(new Dimension(900,
                                           100)); enter.setForeground(Color.blue); contentPane.setBackground( Color.white); for(int i=0;i<10;i++) {[code]JButton rami=new JButton( ""+ "" +i );
    contentPane.add(rami);
    rami.setBackground(Color.blue); }
    contentPane.add(ok);
    JPanel panel=new JPanel(new BorderLayout(500,500) ); contentPane.setLayout(new FlowLayout( )); contentPane.add(panel); panel.add(enter,  BorderLayout.PAGE_START); panel.add(table, BorderLayout.PAGE_START); panel.add(hellolabel,  BorderLayout.PAGE_START); panel.setBackground( Color.white ); panel.setLayout(new BorderLayout()); panel.add(table.getTableHeader(),BorderLayout.PAGE_START )  panel.add(table, BorderLayout.CENTER); panel.add(hellolabel,BorderLayout.PAGE_END);   setVisible(true); }
    public void actionPerformed(ActionEvent   e  ) {  [code] text.setText("Button Clicked ");
    public static void main (String [] args) {[code] sannaa van=new sannaa( );
    } }  

    Thanks
    I have changed my program to the following and its compiled truely, but when I press thte button in the application no text appeared?
    help me please
    import  java.awt.Color .*;   import java.awt .*; import java.awt.event.*; import java.awt.event.*;   import javax.swing.*; import javax.swing.JTable.*;    public class sannaa extends JFrame implements  ActionListener { 
    public sannaa(   ) {
    super("����� ������" ); JButton ok=new JButton( "return"   );
    ok.addActionListener(this);  
    Container   contentPane  =  getContentPane(
    JLabel hellolabel=new JLabel("google");
    hellolabel.setForeground(Color.black); hellolabel.setBackground(Color.blue);
        String[ ] columnNames =
    {"First Name",   "Last Name", "Sport",
                             "# of Years",
      "Vegetarian"};
                            Object [    ][     ] data =
    {"Mary", "Campione", "Snowboarding", new Integer(5),
    new Boolean(false)},
    {"Alison", "Huml", "Rowing", new Integer(3), new
    Boolean(true)},
    {"Kathy", "Walrath", "Knitting", new Integer(2),
    new Boolean (false)},
    "Sharon", "Zakhour", "Speed reading", new
    Integer(20), new Boolean(true)},
    {"Philip", "Milne", "Pool", new Integer(10),
    new Boolean(false)} };
    JTable table = new JTable(data,
      columnNames); JButton enter=new JButton( "search"
         ); ok.setBackground(Color.pink); ok.setForeground(Color.white); JFrame frame=new JFrame("EL  "); enter.setMaximumSize(new Dimension(900,
      100));
    enter.setForeground(Color.blue); contentPane.setBackground( Color.white);
    for(int i=0;i<10;i++) {  [code]JButton rami=new JButton( ""+ "" +i );
    contentPane.add(rami);
    rami.setBackground(Color.blue); }
    contentPane.add(ok);
    JPanel panel=new JPanel(new
      BorderLayout(500,500) ); contentPane.setLayout(new FlowLayout(
      )); contentPane.add(panel); panel.add(enter,  BorderLayout.PAGE_START);
      panel.add(table,
      BorderLayout.PAGE_START); panel.add(hellolabel,
       BorderLayout.PAGE_START); panel.setBackground( Color.white ); panel.setLayout(new BorderLayout());   panel.add(table.getTableHeader(),BorderLayout.PAGE_START ) ;
       panel.add(table, BorderLayout.CENTER);
    panel.add(hellolabel,BorderLayout.PAGE_END);
       setVisible(true); }
    public void actionPerformed(ActionEvent   e  )
      {  [code] TextField text=new TextField ("") ;
    text.setText("Button Clicked     ");     }
    public static void main (String [] args)
    sannaa van=new sannaa( ); } }  

  • Display rows when button clicked

    Hi
    I have a few text fields in the jsp .
    After them, i have search button .
    When i click it, list of rows should be displayed
    underneath the search button in the same jsp/page .
    Any idea how can i do it?
    thanks
    chandra

    Sure, it can be done.
    Just have one file with your form and the jsp code to display results. Put the jsp code in a conditional loop (if submit == null). What this would do is that if submit is null, only the form will be displayed, else the form will be displayed and the results of the search will be displayed.
    Hope it helps.

  • Have new mini.  When starting 1st time, it stop and displays a picture to push start button on WiFi keyboard.  I have USB Apple Kekboard.  Can't get pass the display to Startup Assist.

    Have new mini.  When starting 1st time, it stop and displays a picture to push start button on WiFi keyboard.  I have USB Apple Kekboard.  How can I get pass the display to Startup Assist?

    Have new mini.  When starting 1st time, it stop and displays a picture to push start button on WiFi keyboard.  I have USB Apple Kekboard.  How can I get pass the display to Startup Assist?

  • Get Header Texts from a Sales Order when you push 'Save Button'

    Hello,
    I am developing a user exit run when you push 'Save' Button in Sales Document and I do not know how to retrieve current header texts.
    I cannot access to database tables because they haven't been saved yet and I cannot the sales document number.
    Does anyone have any ideas?
    Many thanks!!

    Hi Fernando,
    use the below sample code to get the run time header text.
    write the below code in USEREXIT_SAVE_DOCUMENT_PREPARE.
    DATA : begin of wa_tline,
            tdformat like tline-tdformat,
            tdline like tline-tdline,
       end of wa_tline.
       data it_tline like table of wa_tline.
    data temp_vbeln(70) type c.
           temp_vbeln = xvbak-vbeln.
           CALL FUNCTION 'READ_TEXT'
             EXPORTING
    *         CLIENT                        = SY-MANDT
               id                            = 'Z053'
               language                      = 'E'
               name                          = temp_vbeln
               object                        = 'VBBK'
    *         ARCHIVE_HANDLE                = 0
    *         LOCAL_CAT                     = ' '
    *       IMPORTING
    *         HEADER                        =
             tables
               lines                         = IT_TLINE
    *       EXCEPTIONS
    *         ID                            = 1
    *         LANGUAGE                      = 2
    *         NAME                          = 3
    *         NOT_FOUND                     = 4
    *         OBJECT                        = 5
    *         REFERENCE_CHECK               = 6
    *         WRONG_ACCESS_TO_ARCHIVE       = 7
    *         OTHERS                        = 8
           IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
    Thanks,
    Sumanth P

  • 6th generation iPod nano automatically turns off when I push het sleep/wake button or when screen turns black after a while. How can I solve this ?

    My 6th generation iPod nano automatically turns off (=stops the music) when I push het sleep/wake button or when screen turns black for power saving mode. Does anyone know how to solve this ?
    I have already tried resetting, connecting to PC/iTunes to check the software version, turning off/on, I don't have any inspiration anymore.
    Thanks for your suggestions!

    Hi VeerleD,
    If your iPod touch unexpectedly powers off, you may want to use the steps in this article to troubleshoot -
    iPhone: Hardware troubleshooting (The steps apply for the iPod touch) -
    Specifically -
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • I'm trying to buy a book. The book is made in I-Photo and when I push buy book button it starts to process and than says--  There was a problem communcating wit the apple store   " help"

    I'm trying to buy a book I made in I-photo. I have made a 20 page book in I-photo and when I push the "buy book" button it starts to process and then pops up a sign that say'es There was a problem commucating with the apple store. Please try again.   Help

    Are you buying from the correct Print Products Store?  If you are using the wrong store, your AppleID may not be valid.
    Is the Print Products Store set correctly in iPhoto Preferences > Advanced?  It should be set to the  same country as your billing address and delivery address, and match the settings of the Apple ID you are using.
    And you are using iPhoto '09 or '11, right?  you can no longer buy books from earlier versions.
    When you reenter your settings as LarryHN described, don't forget to enable Express Checkout. It is required.

  • HT201263 Unable to update, restore or recover. Slider doesn't slide and number pad doesn't work for passcode. What next? Worked last night . Battery charged. When I push Home button I get my backgroung but can't slide slider. Device is recognized by iTune

    Unable to update, restore or recover. Slider doesn't slide and number pad doesn't work for passcode. What next? Worked last night . Battery charged. When I push Home button I get my backgroung but can't slide slider. Device is recognized by iTunes.Help! Thank you.

    Besweet, I'm having the very same problem with 60GB colour which was bought new and worked for 6 months before suddenly just not being recognised by PC. I hadn't changed anything at all.
    I've followed all troubleshooting advice and reinstalled and updated iTunes and iPod updater software but all troubleshooting routes seem to hit the dead end of either the need to access the iPod via the PC (which isn't possible as it's not showing up at all) or the iPod in disc mode stuck at "ok to disconnect".
    It's still under 1yr warranty so will have to take to a dealer.
    I'm sorry that's not much help for you but at least you know it's not a unique problem.
    PC   Windows XP  

  • Right now my ipod is set on 'music'. When I push the menu button, it will not go back to the main menu's, but I can still go to all the music and play it.

    Right now my ipod classic is set on 'music'. When I push the munu button, it will not go back to the main menus, but it will still go forward and select and play music normally. I tried resetting it by holding the menu and center buttons until the apple logo appeared, but the problem is still there.

    If your battery level is low, recharge it first for at least 2 hours, preferably 4 hours.
    After the Apple Logo, you release the buttons, what do you see on the iPod screen? (language selection?)
    Have a nice day!

  • While using my Iphone 5, all of a sudden  black and white stripes where on the screen. I have tryed to turn the phone off and on again, but there are only the stripes. I can't use it, and nothing happens when I push the buttons. Can someone help me?

    While using my Iphone 5, all of a sudden  black and white stripes where on the screen. I have tryed to turn the phone off and on again, but there are only the stripes. I can't use it, and nothing happens when I push the buttons. Can someone help me?

    Try resetting your phone, hold the home and sleep/wake button down until the apple symbol comes up, then release. If that doesnt work, you may have damaged your phone and need to take it to an apple genius bar.

  • How can I add a password request when I push on the Mail button ?

    Hi,
    I want to secure the access to my emails on my iphone, because anyone can read them when they got my iphone. How can I secure this ?
    I mean the easiest is to ask for a password when you push the Mail button or the SMS one.
    Someone know how to do that ?
    Thanks for your help.

    This is not supported with the iPhone but who has access to your iPhone that would take the liberty to check your email accounts and SMS messages when using it?
    My iPhone is never out of my sight but if lost or stolen, I have my iPhone password protected which prevents access to any iPhone functions.

  • DVD Player hangs when Fast Forward (F9) or Rewind (F7) buttons pushed

    When I push and hold down the fast forward and rewind keys in DVD Player, the video does indeed fast forward and reverse. But when I push and immediately release, the picture freezes, and the computer hangs. Cannot do shut down, have to do shut down by holding on/off button and then restarting.
    Very frustrating, lost a bunch of notes I was taking while watching the lecture. Any thoughts?
    Sigh,
    Dave

    Also, if you're at the computer or have a wireless keyboard, hold down the apple key (command) and and press an arrow key for FF and RW. Pressing again should step up the speed, depending on the capabilities of the 11D. Mine (104D) can FF up to . . . I think it's 32 times?
    If you have the apple remote, it's press and hold.

  • How can I do to delete some lines of a 2D array when I push a button ?

    With Labview 5.1 : I have a 2D array and I want to delete a line ( I think to delete its first one or its last one could be easier) when I push a control button. How can I do ?
    Regards.
    Cyril.

    I only have LV 6.1, take a look the pic and hopefully that will help. You need to use delete from array and then select which row or column you want to delete. then put it inside the case structure.
    Best Regards,
    Saw
    Attachments:
    test.bmp ‏81 KB

  • How to edit a particular row in the table ctrl when a push button is clickd

    Hi Experts,
    How to edit a particular row (except the Primary keys) after selecting it in the TABLE CONTROL when a
    push button is clicked in the table control.
    For Eg. If you have a push button say "Modify", the particular row what we select in the table control should be in a
    editable mode after clicking "Modify" Push button.
    Please help me out.
    Thanks in advance.

    Hey Ram,
    Thanks a ton.
    Its working fine...sorry for the late reply.
    The reason behind the delay is because i had modified my code as per your logic it worked fine but the thing is that the whole column was in editable mode but not a single row.
    For E.g  If i want to edit a particular row, first i select the row and then  click on "Modify" button. After i click on the button, the whole column gets in a editable mode including the one which i intentionally selected.
    Here, the solution is that you have to set a flag in PBO so that once it is done with PBO then it need not come back again after we click on "Modify" button.
    And one more query is that after you modify a particular row in the table control ( When it is in editable mode) and click on the "Save" button, it is not getting updated to database.
    To update the database, we need to select the row once again after modifying it and click on the "Save" button.
    Here, database is updating only when it is selected again. If it is not selected, it is not getting updated.
    If you have any alternative solution, then please help me out.( I hope i am clear with the question.)
    Thanks,
    Ananth.

  • Display Item not showing Text when form is opened in Forms 6i

    Hi,
    I am using Oracle Forms 6i & I have taken DisplayItem control on a canvas and want to show some text over that e.g., "Your Name". For that I set 'Initial Value' property of that control in Property Palette to "Your Name". But I am not getting any such text message when I run the form nor it is coming at form design time. Can anyone please let me know where I am missing and how to display text in forms using DisplayItem control?
    Can you also suggest from where to learn these basic things about Oracle Forms 6i?
    Thanks in advance.

    bootstrap escribió:
    Can I initialize this object using Property Palette? If not why so?
    can you please tell how to use go_block & where to call this method?
    Yes, just as you did with the initial value property, but you have to "initialize" the record in that block. Navigating in runtime to the block is a way to achieve that, so you have to put the "focus" in the block with built-in GO_BLOCK . For example, in the W-N-F-I trigger.
    Another way to put the focus there, as indrabudiantho sugested, is dragging the block to the topmost place in the list of block in design time. Thus, when you enter your form in runtime, the focus will go to the first navigable item in the first block as defined at design time.
    About the resource docs, I think there was a "Oracle forms developer guide" bundled in paperback with a quite old version of the product which wasn't too bad. Not the "forms builder reference" , which is more or less the online forms help, but the guide. Also, there must be commercial books about forms & reports.

Maybe you are looking for