Concatenate the initials of last names, first and middle initials of the name of a field.

Hi all

Nice day. Please, I have a written script problem in cocatenate the first letter of the last name, first letter of the first name and the other initial for a name field.

Is there an example that I can use.

Thank you

v/r

Tammy

Tammy,

Could you please an example miss - name?

I assumed that miss him - name is "Mathew Easow Jacob"

Try script on field Miss initial below.

var names = Rater_Name.rawValue.split("");

initials of var ="";

for (i = 0; i

initials = initials + names [i] .charAt (0);

}

this.rawValue = original;

Here is the screenshot.

Let me know if you need more information.

Sofiane

Tags: Adobe LiveCycle

Similar Questions

  • Concatenate the address lines (some fields will be empty)

    Hi people,

    I need to format an address with transport flows properly and no blank lines between the two. I tried to look for a similar thread but did not find anything (I'm sure that). I leave the names in this exercise that my main problem is with formatting the address correctly.

    Assumptions:

    1. city, State and ZIP Code on a single line

    2. Add 2 and Add3 should be on the same line

    My exits address should be the following:

    Student ID 1001

    2070

    The University Avenue

    Berkeley, CA 94704 (city, State and ZIP Code on a single line)

    Student ID 1002

    Department of physics

    2111 Bancroft way Berkeley UC (add 2 and Add3 should be on the same line)

    Berkeley, CA 94720

    Student ID 1003

    100 market Street

    San Francisco, CA 94114

    Student ID 1004

    342 happy Valley Road

    Fremont, CA 94212

    Table scripts and data:

    create table STUDENT_ADDRESS_TB (student_id   
    VARCHAR2 (4).
    street_numberVARCHAR2 (20).
    ADD2VARCHAR2 (50).
    Add3VARCHAR2 (50).
    CityVARCHAR2 (30),
    StateVARCHAR2 (2),
    Zip_codeVARCHAR2 (10));

    insert into student_address_tb (student_id,street_number,add2,add3,city,state,postal_code) values ('1001','2070','University Avenue',null,'Berkeley','CA','94704');
    insert into student_address_tb (student_id,street_number,add2,add3,city,state,postal_code) values ('1002','Physics Department','2111 Bancroft Way','UC Berkeley','Berkeley','CA','94720');
    insert into student_address_tb (student_id,street_number,add2,add3,city,state,postal_code) values ('1003',null,'100 Market Street',null,'San Francisco','CA','94114');
    insert into student_address_tb (student_id,street_number,add2,add3,city,state,postal_code) values ('1004',null,null,'342 Happy Valley Road','Fremont','CA','94212');
    
    

    Any help in this regard would be great!

    Here's what I came up with but it does not work as I want it.

    SELECT street_numberLigne_adresse_1,
    decode (add2, null, add3, add2 |) » '|| Add3)Ligne_adresse_2,
    decode (city, null, null, city | ',' |) State | » '|| Zip_code)address_line_3
    OF student_address_tb;

    Thanks in advance.

    Post edited by: Roxyrollers

    Hello

    Roxyrollers wrote:

    Hi Frank,.

    I'll leave the separate name and include any in my exercises:

    Looks like his work for the first two, but I get the distribution additional return for 1003 and 1004 students. This is of course due to the first CHR (10) as student 1003 and 1004 have no street number. I tried to change x, but I still land by getting the return transport.

    NVL2 (street_number, NULL, street_number | 10 |)

    Remember how NVL2 works.  The 2nd argument is what you want to return if the 1st argument is not NULL, and the 3rd argument is what you want, if it is NULL.  So you say, ' if street_number is not NULL, then return NULL; otherwise return newline. »

    Reverse 2nd and 3rd arguments, like this:

    NVL2 (street_number

    street_number | CHR (10)

    NULL

    )

    Notice how, in response to #2 above, the 2nd argument of NVL2 was never NULL; It was the 3rd argument which was NULL,

  • HP Deskjet 2541: HP 2541 prints last page first

    The printer prints the last page first, and I need to print the first page first.  I looked in the settings and can't find where to change it.

    Thanks RnRMusicMan

    I actually just finished with HP technical support.  The person I was dealing with was in fact installed the driver of HP 6980 because 2541 driver does not back to front / front rear option.  Thank you for taking the time to answer

  • I want that my address book to view all entries by first or last name and have filled all the information accordingly.

    Original title: address book

    I want that my address book to view all entries by first or last name and have filled all the information accordingly. However, I have a mixture of the first name and the name of the list alphabetically when I scroll down tom insert name in an e-mail message. My list of contracts is organized by all the names first. How can I sync the address book to match the list of contacts?

    Hi tgblueblade,

    1. what email program are you using?

    2 are. what device or software you using Sync?

    If you use Windows contacts, then this isn't the ability to synchronize the list of Windows contacts to be identical to the list of e-mail contacts.

    Manage your contacts

    http://Windows.Microsoft.com/en-us/Windows-Vista/managing-your-contacts

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I would like to change the name in my profile my name and my company name, so when my clients receive a signature on the Forms application, my company name is displayed in the email as opposed to my first and last name. How can I change

    I would like to change the name in my profile my name and my company name, so when my clients receive a signature on the Forms application, my company name is displayed in the email as opposed to my first and last name. How can I change this? I tried to edit my profile however my first and last name are not editable fields.

    Hello Laurag92400722,

    You connect with Adobe ID account E-Sign? If Yes, then you can directly connect to your Adobe ID account and can update the name as the name of the company and it will reflect in your E-Sign account as well.

    -Usman

  • InDesign - prevent breaks between the first and last names in a very long list of names?

    Is there a quick way to do?  Having the list 800 names in a text box and want to prevent the first & last names being split at the end of the line.  Other than choosing each name and apply the rule "no break" (a lot of time).  Any other suggestions?

    This is a more elegant solution:

    (?<=[\l\u]) (?="">

    Apply style: no pause

    It detects all single space between two letters

  • Extract the first name and last names of a string

    Hello people,
    I am trying to extract the last name, first name, first name and initial of some names of students for a report. I have some success with the first name and the first names, but have some difficulty to come with the other two. I use Oracle 9i and would like to come with the SQL.

    Script to create the table:
    create table grad_student_tb
    (student_id varchar2(3) primary key,
     salutation varchar2(4),
     student_name   varchar2(60));
    Script to insert records into the table:
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('001','Mr','Adams,Robert Murphy');
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('002','Mr','Green,Eric Craig');
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('003','Miss','Brown,Jennifer William H');
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('004','Mr','Adams,Michael William H');
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('005','Miss','White,Snow');
    Here's what I would like on my report:
    Student ID   First Middle Name    Last Name   First Name   Initial
    ==================================================================
    001          Robert Murphy        Adams       Robert       M
    002          Eric Craig           Green       Eric         C
    003          Jennifer William H   Brown       Jennifer     W
    004          Michael William H    Adams       Michael      W
    005          Snow                 White       Snow
    Currently my SQL looks like this:
    select student_id,
           SUBSTR(student_name, INSTR(student_name,',')+1, LENGTH(student_name)) first_middle_name,
           SUBSTR(student_name,1, INSTR(student_name,',')-1) last_name
    from   grad_student_tb;
    Output:
    STUDENT_ID FIRST_MIDDLE_NAME                                            LAST_NAME                                                    
    ---------- ------------------------------------------------------------ ------------------------------------------------------------ 
    001        Robert Murphy                                                Adams                                                        
    002        Eric Craig                                                   Green                                                        
    003        Jennifer William H                                           Brown                                                        
    I need to come up with the first name and initial of the students.

    Any help is greatly appreciated!

    Thank you

    Published by: Roxyrollers on August 18, 2011 12:53

    Assuming that each name is exactly the same format

    SQL> ed
    Wrote file afiedt.buf
    
      1  select student_id,
      2         SUBSTR(student_name,
      3                INSTR(student_name,',')+1,
      4                LENGTH(student_name)-INSTR(student_name,' ')) first_name,
      5         SUBSTR(student_name,
      6                INSTR(student_name,' ')+1) middle_name,
      7         SUBSTR(student_name,
      8                INSTR(student_name,' ')+1,
      9                1) middle_initial,
     10         SUBSTR(student_name,1, INSTR(student_name,',')-1) last_name
     11* from   grad_student_tb
    SQL> /
    
    STU FIRST_NAME      MIDDLE_NAME          MIDDL LAST_NAME
    --- --------------- -------------------- ----- ---------------
    001 Robert          Murphy               M     Adams
    002 Eric            Craig                C     Green
    003 Jennifer        William H            W     Brown
    

    In general, of course, analysis names as it is much more complicated because you have to deal with the family as "la Hoya" names that contain spaces and cannot easily be distinguished from someone with several names.

    Justin

  • SEPARATE THE FIRST NAME AND LAST NAME

    How to separate the first and last name? the first name is always first.

    With the help of 10g,.
    select (Tim Tebow) from dual

    Not an easy task.

    Sir Nicholas Mimsy Porpington
    John Jacob Jingleheimer Schmidt
    Dear

  • 10.10.5 running on macbook pro. I want my email when received on the receiver side to read with my first initial, followed by my first name, and last name. But it always appears as name the middle initial, then last name.

    I want my email, as it appears to the recipient to read: my first initial, followed by my middle name, then my family name. But no matter what I try,

    It always appears as name the middle initial, then last name. any suggestions?

    Not knowing what you have already tried

    -Preferences - accounts - e-mail did change the name of the account alias help?

  • How to sort by last name and first name, family name

    I'm unable to find a path in the address book to find a way to sort by first name

    Thanks for your help

    To sort by first name:
    View > Show name as: "first of all, the last

    To sort by last name:
    View > Show name as: ' last, first

    View > sort by > name and order growing

    In your case, affect the 'Show name for what is' first of all, the last
    then set the name and ascending sort

  • BlackBerry Smartphones do how do you import Contacts appear in the order first name, last name

    I just got the 9530 as a gift.  I spent several hours trying to import my Microsoft Outlook contacts into the Blackberry.  I am running Outlook 2007 and the contacts are in the order first name, last name.  I tried syncing with Outlook and import an ASCII file, buy the contacts on the upcoming Blackberry Dungeon in the first name, last order.  Help!

    molawrence wrote:
    I just got the 9530 as a gift.  I spent several hours trying to import my Microsoft Outlook contacts into the Blackberry.  I am running Outlook 2007 and the contacts are in the order first name, last name.  I tried syncing with Outlook and import an ASCII file, buy the contacts on the upcoming Blackberry Dungeon in the first name, last order.  Help!

    Change the display options for contacts

    You can change the appearance of your contacts in all applications, including the phone, list of messages, contacts, and calendar.
    1. in the terminal options, click language.
    2. change the name field.
    3. press the Menu key.
    4. click on save.

    Good luck and welcome to the community!

    Jamie

  • How to select lines if a column has the same first and last characters?

    Hello

    I have a scenario that one of the columns in the table of the student is having names student, (Ex) John, Mary, Donald, Ana, Maria. In this case how can we write a query to retrieve lines for the values if the first and the last character of the student of identical names? Production is expected to be Donald, Ana.

    Frank answers the question in the subject of your post, but looking at your examples, I think you wanted

    WHERE lower (SUBSTR (student_name, 1, 1)) - 1 character

    low = (SUBSTR (student_name,-1)) - last character

  • Can only see the first and last frame of the item in the editing HELP PLEASE

    Hi, my first time and I find an answer, but fails. I first elements 4 and I'm trying to worm. 9. in version 4 clips in the timelin shows all the frames, but in ver 9 it only shows the first and last frame clips. Is it possible to make all the images to display. I mean by "all frames", clips from filling with frames. I wanted to see all of the images in the scenario, it is easier for me to select and cut the pieces on.

    My features are Core 2 Duo 6750, Nvidia 8600GTS, 4 G of Ram and Vista Home Premium. 3 HARD DRIVE 3 TB.

    Thank you for having responded

    Werner

    Werner,

    Welcome to the forum.

    In the header of the video track, there is an icon for Clip thumbnail display. It's a cycle, and you can scroll through the Modes to display the first frame, first & last, all, or none (name of file only). In pre 4.0, it's on the far left in the header of the track. I guess that's about the same place in pre 9.0.

    Good luck and hope that helps.

    Hunt

  • Hide the first and the last Division in the WPF chart axis

    I want to hide the default marker of the first and the last major division in an axis of a chart of WPF. I tried to extend RangeDivisionsMode and define my own class object to the MajorDivisions.Mode property on the axis. But even when I returns a list empty in RangeDivisionsMode.GetDivisions(...), the first and the last marker is drawn.

    Thanks in advance, Jonas

    The minimum and maximum labels are transmitted separately when displaying a scale (even if technical RangeDivisionsMode custom can be used for the minor divisions).

    There is no direct configuration option to hide extreme labels, but you can achieve this effect by initializing the LabelPresenter property on MajorDivisions by a custom implementation:

    class CustomFormatter : GeneralValueFormatter {

            protected override UIElement VisualizeCore( TData value, ValuePresenterArgs args, UIElement existingVisual ) {

                UIElement element = base.VisualizeCore( value, args, existingVisual );

    var axis = (Axis)args.Context;

                Range range = axis.Range;

                var comparer = range.Comparer;

                bool isExtreme =

                       comparer.Compare( range.Minimum, value ) == 0

                    || comparer.Compare( range.Maximum, value ) == 0;

                element.Opacity = isExtreme ? 0.0 : 1.0;

    return element;

            }

        }

  • How to change the Outlook Express contacts to first name last name

    Original title: Organize Contacts

    My Outlook Express contacts were transferred to the new computer but now read by first name.  How can I change to name? Thank you.

    Hi Kathleen,.

    Please refer to this link:

    How to sort by last name addresses in Outlook Express

    http://support.Microsoft.com/kb/282253/en-us

    Please let us know if you have any questions on the issues related to Windows.

Maybe you are looking for