How to add form values into a single line...

How can we add numerous form values (say surname, first name and middle initial) into a single line? thanks in advance^^  

You can use the "+" operator which is both the addition (number) and concatenation (string) operator. JavaScript makes the decision about how this operator will work by the type of the value of being processed. Two numbers JavaScript performs addition, character string and number, number and character string, or 2 character strings then concatenation.
If you just use the '+' operator and spaces, you will get extra spaces unless you add code to allow for null fields and adjusting the spacing or other punctuation as needed. You may also need to force numeric values to character stings or you might end up with an addition and not concatenation.
Adobe provided a example of a funciton to properly join 3 fields with full versions of Acrobat:
function fillin(s1, s2, s3, sep) {
  // Concatenate 3 strings with separators where needed
  // convert passed strings to a string value
  s1 = s1.toString();
  s2 = s2.toString();
  s3 = s3.toString();
  // assign a numeric value for presence of a given string(s)
  var test = 0; // no passed strings
  if (s1 != "") test += 1; // s1 has a value
  if (s2 != "") test += 2; // s2 has a value
  if (s3 != "") test += 4; // s3 has a value
  // return appropriate combination based on passed strings
  if (test == 0) return ""; // no stings passed
  if (test == 1) return s1; // s1 only
  if (test == 2) return s2; // s2 only
  if (test == 3) return s1 + sep + s2; // s1 and s2
  if (test == 4) return s3; // s3 only
  if (test == 5) return s1 + sep + s3; // s1 and s3
  if (test == 6) return s2 + sep + s3; // s2 and s3
  if (test == 7) return s1 + sep + s2 + sep + s3; // s1, s2, and s3

Similar Messages

  • How to add one value into Input Entry Screen of Element

    Hi ,
    How to change the "Input Value" of Element which has already been processed and assigned. Its not allowing to update even though its been date tracked.
    I want to add one more Value into Input Value screen.
    Thanks
    Ram

    You cannot remove existing input values or add new one if you have created any entries for the element
    to know more details to maintain an element you can refer the following link
    http://ramesh-oraclehrms.blogspot.com/2007/08/maintaining-element.html
    Regards
    Ramesh Kumar S

  • Passing 900 character value into a Single line

    Hi Experts,
    I have a scenario that i have to pass 900 character value to a single field. After that i need to download this internal table into an text file.
    What happening after some characters the values are not getting passed into my varaibale.
    So please help me how to accomodate all the 900 character values in a single field.
    With Regards,
    Sumodh.P

    Hi,
       Chk this ...
    DATA : BEGIN OF IT_ITAB900 OCCURS 0,
             VAL(900) TYPE C,
           END OF IT_ITAB900.
    INITIALIZATION.
    CONCATENATE 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
    INTO
    IT_ITAB900-VAL.
    APPEND IT_ITAB900.
    START-OF-SELECTION.
    DATA : P_FILENAME TYPE  STRING.
    P_FILENAME = 'C:\Documents and Settings\testingis on.txt'.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    = BIN_FILESIZE
        FILENAME                        = P_FILENAME
      TABLES
        DATA_TAB                        = IT_ITAB900 .
    This writes all the characters ....
    Regards,
    Srini.

  • How to Add Input Values into a XML in Flex AIR Application

    I need a help, now I am developing a flex windows AIR application, in this I am displaying data using a xml file,
    I have some input fields in my application,if the application user filled the input field and press submit button, the inputs
    Should be stored in that xml. How can I do this using flex, can you  anyone please provide me a sample file with tutorial.
    Thanks in advance
    Vasanth,
    Chennai

    You can use the "+" operator which is both the addition (number) and concatenation (string) operator. JavaScript makes the decision about how this operator will work by the type of the value of being processed. Two numbers JavaScript performs addition, character string and number, number and character string, or 2 character strings then concatenation.
    If you just use the '+' operator and spaces, you will get extra spaces unless you add code to allow for null fields and adjusting the spacing or other punctuation as needed. You may also need to force numeric values to character stings or you might end up with an addition and not concatenation.
    Adobe provided a example of a funciton to properly join 3 fields with full versions of Acrobat:
    function fillin(s1, s2, s3, sep) {
      // Concatenate 3 strings with separators where needed
      // convert passed strings to a string value
      s1 = s1.toString();
      s2 = s2.toString();
      s3 = s3.toString();
      // assign a numeric value for presence of a given string(s)
      var test = 0; // no passed strings
      if (s1 != "") test += 1; // s1 has a value
      if (s2 != "") test += 2; // s2 has a value
      if (s3 != "") test += 4; // s3 has a value
      // return appropriate combination based on passed strings
      if (test == 0) return ""; // no stings passed
      if (test == 1) return s1; // s1 only
      if (test == 2) return s2; // s2 only
      if (test == 3) return s1 + sep + s2; // s1 and s2
      if (test == 4) return s3; // s3 only
      if (test == 5) return s1 + sep + s3; // s1 and s3
      if (test == 6) return s2 + sep + s3; // s2 and s3
      if (test == 7) return s1 + sep + s2 + sep + s3; // s1, s2, and s3

  • How to add a report into the SAP-SCRIPT .using PERFORM ......ENDPERFORM

    My question is that How to add a report into the SAP-SCRIPT .
    by using PERFORM ......ENDPERFORM
    I don't know how to used it .

    Hi Sandeep,
    Please check this link
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    http://www.allinterview.com/showanswers/37425.html
    Calling ABAP Subroutines: PERFORM
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (u2018First pageu2019, u2018Next pageu2019, u2018Last pageu2019) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY u2018PAGEu2019.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018NEXTPAGEu2019.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018BARCODEu2019.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = u2018|u2019. "First page
    ELSE.
    OUT_PAR-VALUE = u2018||u2019. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = u2018Lu2019. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Best regards,
    raam

  • I have just added an album to my iTunes from a CD. But the tracks are now displayed in 2 places in my iTunes library. How do I consolidate them into a single album?

    I have just added an album to my iTunes from a CD. But the tracks are now displayed in 2 places in my iTunes library -- as if I had downloaded 2 seperate albums. How do I consolidate them into a single album in my iTunes?

    Did you use the same method to add each of the six albums to your library?  With some of iTunes configuration options, some imports (CDs, Store purchase, use of the Automatically add to iTunes folder) will go into the standard media folder location, but the other methods to add media files already on your PC (Add File to Library..., Add Folder to Library..., drag and drop) will leave the files in their original spot.
    The other factor that may influence where iTunes locates media files is the setting of the "part of a compilation" flag in the media metadata.  When this flag is set iTunes (when configured to organize your media and copy all additions to the media folders) will place files in iTunes Media\Music\Compilations\album_title rather than iTunes Media\Music\artist_name\album_title.

  • In Scom,How to add CAC value in given MP (management pack)? Please give me in detail procedure with example if possible.

    In Scom,How to add CAC value in given MP (management pack)? Please give me in detail procedure with example if possible.

    Hi 
    CAC is System.ConsolidatorCondition condition detection module used to consolidate the monitoring i.e. you can generate an alert on multiple occurrence of issues instituted of generating single alert for issue.
    refer below link for more information
    http://msdn.microsoft.com/en-us/library/ee809324.aspx
    http://social.technet.microsoft.com/wiki/contents/articles/20301.how-to-add-consolidation-for-url-monitoring-in-scom-20072012.aspx
    Regards
    sridhar v

  • Is there possibility to add dimension value into hierarchy using dml or spl

    1 Is there possibility to add dimension value into hierarchy using dml or spl?
    If such possibility exists how to do that.
    2 Is it possible to sort dimension values inside one branch of the hierarchy?

    What version of OLAP are you using and how did you create your AW (e.g., AWM)?
    Assuming that you're used either AWM or the Java API for AWs in 10g, there isn't an OLAP DML for adding a dimension member to a dimension (and have all the meta data kept in sync); you must load dimension members using AWM the Java API for AWs.
    So, make your changes in the the dimension table and process that table.
    For sorting, you can add a sort attribute to the dimension. Add the sort attribute to the model, indicate that it's used for sorting, add the sort attribute to your dimension table and maintain the dimension.

  • How is a distribution list created in 'Mail'?  Everyone I need to include is already in my contact list so how do I copy them into a single list which I've created?

    How is a distribution list created in 'Mail'?  Every address I need to include is already in my 'Contacts', so how do I copy them into my single list?

    In Contacts, add a new group, and then add all the desired recipients to the group.
    Contacts – Create Mail Group

  • How to add integer value of two buttons?

    how to add integer value of two buttons (any button) in VI and display it in output text box? i have attached example program, but i know its wrong.. please help
    Solved!
    Go to Solution.
    Attachments:
    add.vi ‏8 KB

    thanks for reply. i am trying to assign an integer value to a button and the button should send the assigned integer value to TCP/IP write, only when the button is pressed. i am able to send data using string control (as shown in the attachment) but i want to replace it with several buttons. for example, if i enter 2 in string control, this data will be sent to a robot (robot has wifi card)  through tcp/ip protocol, it moves front. 3 will make it to move back, 8 is left, 6 is right. this numeric data is already burnt into blackfin processor of the robot. so just by entering numbers in labview can make my robot move in specified direction. can you please help me to create a button with value and convert it into string and send it to tcp/ip write. this should happen only when the button is pressed. because, if i enter numbers in string control, it dosent looks good..... if i have buttons... i think my VI will look good and hitech.
    Attachments:
    robo.vi ‏9 KB

  • How to add new field into dynamic internal table

    Hello Expert.
    how to add new field into dynamic internal table.
    PARAMETERS: P_TABLE(30).    "table name
    DATA: I_TAB TYPE REF TO DATA.
    FIELD-SYMBOLS: <TAB> TYPE standard TABLE.
    *Create dynamic FS
    create DATA I_TAB TYPE TABLE OF (p_table).
      ASSIGN I_TAB->* TO <TAB>.
    SELECT * FROM (p_table) INTO TABLE <TAB>.
       here i want to add one more field into <TAB> at LAST position and my 
       Field name  =  field_stype     and
       Field type    =  'LVC_T_STYL'
    could you please helpme out .

    Hi,
    Please find the code below.You can add the field acc to your requirement.
    Creating Dynamic internal table
    TYPE-POOLS: slis.
    FIELD-SYMBOLS: <t_dyntable> TYPE STANDARD TABLE,  u201C Dynamic internal table name
                   <fs_dyntable>,                     u201C Field symbol to create work area
                   <fs_fldval> type any.              u201C Field symbol to assign values 
    PARAMETERS: p_cols(5) TYPE c.                     u201C Input number of columns
    DATA:   t_newtable TYPE REF TO data,
            t_newline  TYPE REF TO data,
            t_fldcat   TYPE slis_t_fldcat_alv,
            t_fldcat   TYPE lvc_t_fcat,
            wa_it_fldcat TYPE lvc_s_fcat,
            wa_colno(2) TYPE n,
            wa_flname(5) TYPE c. 
    Create fields .
      DO p_cols TIMES.
        CLEAR wa_it_fldcat.
        move sy-index to wa_colno.
        concatenate 'COL'
                    wa_colno
               into wa_flname.
        wa_it_fldcat-fieldname = wa_flname.
        wa_it_fldcat-datatype = 'CHAR'.
        wa_it_fldcat-intlen = 10.
        APPEND wa_it_fldcat TO t_fldcat.
      ENDDO. 
    Create dynamic internal table and assign to FS
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = t_fldcat
        IMPORTING
          ep_table        = t_newtable. 
      ASSIGN t_newtable->* TO <t_dyntable>. 
    Create dynamic work area and assign to FS
      CREATE DATA t_newline LIKE LINE OF <t_dyntable>.
      ASSIGN t_newline->* TO <fs_dyntable>.
    Populating Dynamic internal table 
      DATA: fieldname(20) TYPE c.
      DATA: fieldvalue(10) TYPE c.
      DATA: index(3) TYPE c. 
      DO p_cols TIMES. 
        index = sy-index.
        MOVE sy-index TO wa_colno.
        CONCATENATE 'COL'
                    wa_colno
               INTO wa_flname. 
    Set up fieldvalue
        CONCATENATE 'VALUE' index INTO
                    fieldvalue.
        CONDENSE    fieldvalue NO-GAPS. 
        ASSIGN COMPONENT  wa_flname
            OF STRUCTURE <fs_dyntable> TO <fs_fldval>.
        <fs_fldval> =  fieldvalue. 
      ENDDO. 
    Append to the dynamic internal table
      APPEND <fs_dyntable> TO <t_dyntable>.
    Displaying dynamic internal table using Grid. 
    DATA: wa_cat LIKE LINE OF fs_fldcat. 
      DO p_cols TIMES.
        CLEAR wa_cat.
        MOVE sy-index TO wa_colno.
        CONCATENATE 'COL'
                    wa_colno
               INTO wa_flname. 
        wa_cat-fieldname = wa_flname.
        wa_cat-seltext_s = wa_flname.
        wa_cat-outputlen = '10'.
        APPEND wa_cat TO fs_fldcat.
      ENDDO. 
    Call ABAP List Viewer (ALV)
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_fieldcat = fs_fldcat
        TABLES
          t_outtab    = <t_dyntable>.

  • How to add an item into the Newsstand

    How to add an item into the Newsstand.  Please do NOT reply using  "tech-language." Use standard- normal everyday English. Thanks,
    Don Otlin
    Franklin Square, NY

    Open Newsstand. Tap on the "Store" button in the upper right. Any newspaper or magazine you download from the store will appear in Newsstand.

  • How to add PDF files into a slides? (Flash 8)

    I am new to flash and I am using Macromedia Flash 8. My task is simple enough: I need create a Presentation with Screens from PDF files: I have 10-12 PDF files which I want convert into flash presentation.
    I have read this tutorial:
    http://w3.id.tue.nl/fileadmin/id/objects/E-Atelier/Phidgets/Software/Flash/fl8_tutorials.p df
    Chapter 11: Basic Tasks: Create a Presentation with Screens.
    I'm having trouble how to add PDF files into a slides: I want insert a whole pdf file as separate slide, without splitting pdf file into separate elements: pictures, text, etc. I tried import pdf file into Flash, wheen import there is shown prompt how program should process this pdf file(add in stage, library, as keyframes, etc) , not clear which option is correct for my task. What I got is pdf file splitted into multiple images, text, - which is not what I want. I want keep PDF files without changes, preserve original design and formatting, just convert this pdf into flash, so presentation will consist of PDFs organized in correct order, then add navigation buttons and some effects. How to solve this task?

    Just to avoid potential confusion... PDF is an Adobe format, but Flash 8 is/was not.  Flash 8 came out before Adobe bought Macromedia.  Even today, I don't believe anything has been done to accomodate direct integration of PDF content in Flash.

  • Does anyone know how to add multiple pictures to a single frame in iMovie?

    Does anyone know how to add multiple pictures to a single frame in iMovie?

    Maybe you would be better off posting this in the iPhoto or iDVD categories of the forums.
    http://discussions.apple.com/category.jspa?categoryID=143
    http://discussions.apple.com/category.jspa?categoryID=128
    The answer to your question depends on what you ant to do with the DVD.
    Do you want a DVD menu, slide show etc.
    iPhoto will allow you to burn straight to a DVD. Just select the album you want to burn then go to share in the tool bar and select Burn.

  • Asset related question - How to add a record into table ANLC?

    Hello experts,
    Could anyone tell me how to add a record into table ANLC?
    Thanks very much!
    Christina.

    how you want add?
    you want add direct in table???.
    Normally if yo post any transaction this table will update.
    ex;acquisition;
    chandra

Maybe you are looking for

  • Reg: Html file download from server

    My requirement is download file from server. Am using jsp and servlet this. While downloading the file a dialog box with open, save and cancel option. When try to open html file it, open in the same window . Req: it should be open in seperate window

  • [Solved] Default interface routing issues

    I have two network interfaces connected to my newly installed ArchLinux server,  one LAN and one WAN connection.  The trouble is that all traffic that is trying to connect to the wan interface gets no response, while the LAN connection work without a

  • Skype does not see camera

    Skype does not see the camera any more. I think it was working before - camera works fine with facetime, etc. I installed recently ESET - could that be it? Any help greatly appreciated. Fedele

  • How do i start a recovery?

    I allready  have have a recovery cd , i just dont know how to start it. I have satellite a300 . please help

  • Enterprise Manager not working after installed 10.2.0.4 Patch Set 6810189

    I installed the 6810189 patch for Windows 32-bit and now I can't bring up Enterprise Manager (I don't have Grid Control, just plain jane EM). Any ideas on why this would be? Thanks, ivalum21