Adding a text box dynamically when a button is clicked in normal form

Hi all ,
i have a form where a Add button , creates a text box when ever it is clicked .
can you please tell me how to achieve that functionality ..
my form is normal form .... it is not a tabular form .
Regards ,
Nandini .

How about
<script type="text/javascript">
function getElementsByClass( searchClass, domNode, tagName)
     if (domNode == null) {
     domNode = document;
     if (tagName == null) {
     tagName = '*';
     var el = new Array();
     var tags = domNode.getElementsByTagName(tagName);
     var tcl = " "+searchClass+" ";
     for(i=0,j=0; i<tags.length; i++) {
          var test = " " + tags.className + " ";
          if (test.indexOf(tcl) != -1)
               el[j++] = tags[i];
               if (tags[i].innerHTML.indexOf('DoFilters') > 0 )
               tags[i].innerHTML = tags[i].innerHTML.substring(0, tags[i].innerHTML.length - 7 )
                                   + " onfocus=javascript:alert('Put your javascript here'); >Go</a>"
               alert (tags[i].innerHTML);
     return el;
</script>
<script type="text/javascript">
     var tabs = getElementsByClass('minibuttonOn');
</script>
regards
John
http://www.obiee101.blogspot.com/

Similar Messages

  • Adding to the content pane when a button is clicked

    Hi there,
    Could you have a look at my code please and tell me how I would execute the following code when a perticular button is pressed,
    Container pane = getContentPane();
    pane.setBackground(Color.white);
    panel = new SwingOvalDrawing();
    panel.setBackground(Color.white);
    pane.add(panel,"Center");
    If the code is left in the main method it will draw the oval when the program is launched, but if I insert the same code in the Action Performed method and press the button nothing happens, not only that but upon compiling the code the following error is shown
    "local variable pane is accessed from within inner class; needs to be declared final"
    Any help would be appreciated.

    I tried declaring it as an object variable but still when the button is pressed nothing shows.
    This is the button code
    // Add the buttons.
    JButton dCircleButton = new JButton("", buttonCircleIcon);
    dCircleButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
         System.out.println("Button works ok");
         //canvasPanel = new Panel();
         //canvasPanel.add(panel, "Center");
         pane.add(panel,"Center");
    });

  • How to use the SSO functionality when a button is clicked in Adobe Form?

    I have an offline interactive form - when the user clicks on a SUBMIT to SAP button, it asks for user id and password.
    However he user does not have a password to log into SAP directly - he will be logging in via Single Sign On.
    Can you please advise on how to achive this functionality?
    1. Click on a SUBMIT to SAP button on the Adobe Form
    2. Take this info and get the Single Sign On token from SAP portal
    3. Use this ticket/token and log into SAP ECC or validate this info within SAP ( for this 3rd step - probably use function module SUSR_CHECK_LOGON_DATA?)
    Thanks

    Hi
      I think you want to know the row number, in this case , what i would suggest is , in the action ,there is a parameter WDEVENT , which gives you the complete row where you clicked.
    In WDEVENT , you have GET_CONTEXT_ELEMENT method as well as GET_DATA method to fetch the data and it doesnt require any lead selection.
    Thanks
    Anzy

  • Add a new check box when a button is clicked?

    Hi ,
    I was trying to add a check box dynamically when a button is pressed.
    The check box contains title and a textbox for the user to enter data.
    For example , when the user hits addnew button , a new check box (title-name)
    with a textbox for entering name should appear on the form.
    Please give me any examples.
    Please help
    thanks

    here i m posting a similar code. just have a look at it and try it by yourself.
    str1="<select id=select"+ac+" name=select"+ac+">";
                        for(count1=0;count1<document.form1.select4.length;count1++){
                             str1 = str1 + "<option value='"+document.form1.select4.options[count1].value+"'>"+ document.form1.select4.options[count1].value  + "</option>"
    c[3].innerHTML= str1 + "</select>"     
    innerHTMLis userful for your requirement. and check somemore exaples like adding a row dynamically to a html page.
    Diablo

  • Acrobat 9 hangs when adding a text box

    It seems that any installation of Acrobat 9 I have come across, Acrobat hangs when adding a text box from "Forms>Add or Edit Fields".
    I may need to apply an update or two but this problem seems very consistent and reproducable.
    I plan on trying Acrobat 9 Pro on Windows XP to see if it makes any difference, but does anyone have any ideas?  OTHER than upgrading to Acrobat X?

    Textbox takes few extra seconds to establish himself, but it never hangs for me. Did you tried to click-n-drag to create Textbox?

  • Carry over formatting to the next page without adding a text box

    I've written 15 books on the old pages and had no trouble carrying the formatting to the next page without adding a page or adding a text box to the added page.  I just kept on typing.  I've added the new pages and had trouble right from the start so I went back to the old and got a good start, but going through that added procedure on every new page gets old in a hurry.
    It shows the number of pages at the bottom, but a new page doesn't come on automatically  when I type. 
    Please help.
    Thanks,
    Ron  -  [email protected]

    1. Why not continue to use Pages '09 in your Applications/iWork folder?
    2. In Pages 5:
    Setup (gear icon far right of toolbar) > check Document Body
    and the text will flow from page to page.
    Peter

  • Cannot print document with added barcode text boxes

    G'day
    I'm adding two text boxes to an illustrator document with Applescript, but when I go to print, ?I get an error 'Cannot print the illustration. The Color Management settings are inconsistent.'
    The error message is not error trappable.
    I have to barcode thousands of documents a year, and this is a big deal breaker. Is there any fix, please?
    Regards
    Brian Christmas
    try
      set printerName to my theLargePagePrinter as string
      set paperOptions to {class:paper options, name:largePaperSize}
      set jobOptions to {class:job options, designation:all layers} # , print options:printOptions}
      set colorOptions to {class:color management options, profile kind:printer profile}
      set flatOpts to {class:flattening options, clip complex regions:true, gradient resolution:360, rasterization resolution:360}
      set printOptions to {class:print options, printer name:printerName, paper settings:paperOptions, flattener settings:flatOpts, job settings:jobOptions, color management settings:colorOptions}
      try
      set p to 17
      tell application "System Events" to tell process "Adobe Illustrator"
      click menu item "Fit to Artwork Bounds" of menu 1 of menu item "Artboards" of menu 1 of menu bar item "Object" of menu bar 1
      end tell
      end try
      set p to 18
      say 7
      print document 1 options printOptions
      say 8
      on error errmsg number errnum
      tell application "System Events" to display dialog "Error in printing illustrator document. " & errmsg & " number " & errnum giving up after 40
      end try

    G'day Owen, & W_J_T.
    Unfortunately your suggestions did not work for me.
    I've tried using the GUI to access the print dialog box, but as usual with Adobe, they've stuffed that up too. What I did find however, that the print dialog box recognised keystrokes, and always defaults to the Printer box when opening.
    Also, the Printer box sets itself to a matching item of whatever key is pressed, and so does the Printer Preset box.
    So, even tho I can't select any given box, provided I have a Printer Preset set, I can access it by the following (slower) method...
    activate
      tell application "System Events" to tell process "Adobe Illustrator"
      keystroke "p" using command down
      keystroke (character 1 of (my theLargePagePrinter as text)) as text
      repeat 17 times
      keystroke tab
      tell current application to delay 0.1
      end repeat
      keystroke (character 1 of (my theLargePagePrinter as text)) as text
      keystroke return
      end tell
    Note that if you have more than one printer or Printer Preset starting with the same letter, then you'll have to use more than just the first character of your printer name.
    Regards
    Brian Christmas

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Load text or txt file into a table when a button is clicked by the user

    Can anyone please help me,
    I have a form where a user comes and uploads a text file(Unicode UTF-8) and clicks a button(Upload) ,
    when the button is clicked - it should load the text file data into the database table for the corresponding columns.
    Note: in text file columns are sapreted by tab(\t)
    & First row of text file contains column names.
    & Table name should be that text file name
    Can anyone please suggest me a possible solution or an approach.
    Thanks,
    Rathore
    Edited by: Rathore on May 14, 2010 1:49 AM

    Hi Legends and experts
    please reply give me some solutions

  • Hello, I can not use my text field in PS cc. I can drag a text box, but when I write something in, I can't see the letters!

    Hello, I can not use my text field in PS cc. I can drag a text box, but when I write something in, I can't see the letters!

    Opacity at 100?
    Does the cursor move as you type?
    Reset the tool by right clicking here to see if that is the remedy.

  • Safari and chrome, text box disappears when scrolling (created in adobe muse)

    I have noticed with creating three different sites, that when you scroll, sometimes the text boxes disappear, when you scroll back up, the box reappears.
    I have changed the font to a websafe font, so that it isnt rasterised as a picture..
    If anyone has experienced similar or the same I would be so interested to hear from you.
    Thankyou all in advance,
    Squirrelnuts

    Anybody any luck. Are you guys able to replicate the issue?

  • How to get a form to appear on the same page when a button is clicked?

    Hi,
    I have a report on a page with a create button. When a user clicks the create button, a form should appear on another region in the same page....how do i go about doing this?
    I know how to do this if the form is on a different page, but i'd like the form to appear on the same page as the report and only when the button is clicked.
    Thanks.

    Hi,
    I did the following, but it didnt work....
    1) Created a hidden item on the page, and in the Default Value field, I set the value to N.
    2) Created a button in the report with the following values under "Optional URL Redirect":
    Target is a: Page in this application
    Page: 4
    Set these items: P1_SHOW_FORM
    With these values: Y
    3) Created a form of HTML text type with the following values under "Conditional Display":
    Condition Type: Request=Expression 1
    Expression 1: P1_SHOW_FORM='Y'
    What have I done wrong or have i missed something?
    Thanks.

  • Display success message in same page when submit button is clicked

    I have a jsp page, where i use a form to submit data into my database.when submit button is clicked, i am able to display "Data entered Successfully" in a different page. But i want to display the message in the same jsp page.
    what do i do?
    PS :- i have tried a javascript message box, but that is not working properly. I need this solved urgently.
    Thanks

    Hi Deeptha,
    What is APEX version your using and is it your select list with submit option ?
    Regards,
    Ajay Periwal

  • Is it possible to fire an event when radio buttons are clicked in a report?

    Hi All,
    I have got a requirement. In the selection screen i have certain input fields and three radio buttons. When radio buttons are clicked i have to grey out certain input fields. Is it possible to fire an event when i write program through se38??
    Thanks
    Rakesh

    Hi Rakesh,
    Check this code.
    SELECTION-SCREEN BEGIN OF BLOCK FINPUT WITH FRAME TITLE TEXT-001.
    PARAMETERS  : FILENAME(132) TYPE C LOWER CASE  NO-DISPLAY,
                  FDLOAD RADIOBUTTON GROUP RAD1
                  USER-COMMAND R1 ,
                  FUPLOAD RADIOBUTTON GROUP RAD1 .
    SELECTION-SCREEN END OF BLOCK FINPUT.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FUNAME(132) TYPE C LOWER CASE MODIF ID AA.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTION USER-COMMAND
                     BTNACT MODIF ID AA VISIBLE LENGTH 8 .
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCEL USER-COMMAND
                     BTNCAN MODIF ID AA VISIBLE LENGTH 8  .
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FDNAME(132) TYPE C LOWER CASE MODIF ID BB.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTIONS USER-COMMAND
                     BTNACT1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCELS USER-COMMAND
                     BTNCAN1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN END OF BLOCK B2.
    DATA : ACTNAME(8) TYPE C,SCRGRUP(2) TYPE C.
    INITIALIZATION.
    ACTIONS = 'Download'.
    CANCEL = 'Cancel'.
    ACTION = 'Upload'.
    CANCELS = 'Cancel'.
    ACTNAME = 'Download'.
    SCRGRUP = 'AA'.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF FUPLOAD = 'X'.
         MOVE 'Upload' TO ACTION.
         MOVE 'Upload' TO ACTNAME.
    ELSEIF FDLOAD = 'X'.
         MOVE 'Download' TO ACTION.
         MOVE 'Download' TO ACTNAME.
    ENDIF.
    AT SELECTION-SCREEN.
    IF SY-UCOMM = 'R1'.
        IF ACTION = 'Download'.
          SCRGRUP = 'AA'.
         MESSAGE S007(ZMESSAGE).
        ELSEIF ACTION = 'Upload'.
          SCRGRUP = 'BB'.
         MESSAGE S008(ZMESSAGE).
       ENDIF.
    ELSEIF SY-UCOMM = 'BTNCAN' OR SY-UCOMM = 'BTNCAN1'.
      LEAVE PROGRAM.
    ENDIF.
    *AT USER-COMMAND.
    CASE SY-UCOMM.
       WHEN 'ACTIONS'.
         LOOP AT SCREEN.
           IF SCREEN-NAME = 'FUNAME'.
           ENDIF.
         ENDLOOP.
    ENDCASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FUNAME.
      PERFORM call_filedialog CHANGING FUNAME.
    PERFORM call_filedialog CHANGING FUNAME.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Download' .
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Upload'.
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    FORM call_filedialog CHANGING fname.
      DATA: li_filetable TYPE STANDARD TABLE OF file_table,
        lv_return TYPE i,
        lw_filetable TYPE file_table.
      CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
        TABLES
          file_table = li_filetable
        EXCEPTIONS
          cntl_error = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE li_filetable INDEX 1 INTO lw_filetable.
      fname = lw_filetable-filename.
    ENDFORM.                    "call_filedialog
    Reward Points, if useful.
    Regards,
    Manoj Kumar

  • Copy and Paste when a Button is clicked

    In the current form that I am creating, I have a dropdown which automatically populates a text field depending on which option the user clicks in the dropdown called "Client Requirement/Suggestion" . After this first instance, I will have a button that when clicked, the same dropdown and text field from the first instance will appear again without overriding or deleting what was selected in the first and the user will be able to select something else. Any help would be greatly appreciated. Thanks in advance.

    Friends I want to open any of the four forms randomly when a button is clicked. buttonA, FormA, FormB, FormC, FormD. Teach me please.
    Use the example here to create a random number from 0 to 3.  
    https://msdn.microsoft.com/en-us/library/2dx6wyd4(v=vs.110).aspx
    Then use an example from here to use that number to control the form that opens.
    https://msdn.microsoft.com/en-us/library/cy37t14y.aspx

Maybe you are looking for