Obtaining a split value of a person's full name
I have a field which a person enters their full name (First Name [space] Last Name). I want to have another field obtain and return the substring/split value of the First name only (i.e. up until it encounters a space in the main string).
For example: A value of John Doe will return "John"
Thank you in advance!
Upon further investigation, I found a solution:
var nameArray = this.rawValue.split(" ");
TextField2.rawValue = "Hello " + nameArray[0];
Credit to dperani70 & aks@lc in a different thread. I hope this helps someone else in the future!
Similar Messages
-
How to split Value in a field while importing
Hi,
I want to split Value in Field and map it 2 target Field.
Suppose Street field having values with House number and street name ,need to split at House Number and street name and map it 2 fields
EX : 1123 Dhuram Ave: Need to split 1123 and Dhuram Ave ,need to map it to 2 target field.
Here I don't have any delimeter in the field Value.
Please help on this.
Thanks,
Madhu
Edited by: Madhusudhan Honnappa on Nov 30, 2010 5:19 PMHello. I'm assuming this is a custom import as typically, standard extractors would have the house number and street already seperated into unique fields. Here is a quick routine I tried out that would split the field. Only thing I would add is that if writing this from scratch you would want to check that the first character is numeric and also that all characters before the space are numeric. This routine assumes that the field will be like xx yy where xx = house number and yy is the street. Mainly, it would assume anything before the first space is the house number and anything after is the street.
YLEN = STRLEN( YYINPUT ).
YTIMES = 0.
DO YLEN TIMES.
IF YYINPUT+YTIMES(1) = SPACE.
YOFFSET = YTIMES.
"House Number" = YYINPUT(YOFFSET).
YOFFSET = YTIMES + 1.
"Street" = YYINPUT+YOFFSET.
EXIT.
ENDIF.
YTIMES = YTIMES + 1.
ENDDO.
I'm sure there are many ways to go about this and may be some standard FMs you can call. I just like trying to write it first to get a better understanding. Not sure if this quick example will give you exactly what you need, but hopefully will at least give you a place to start.
Thanks -
I found this fantatic post regarding querying the user profile service
http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx?pi47623=2#comments
However i have an issue whenever the form is opened again either to view or edit, it displays the current users information
instead of the value of the person who completed the form in the first place.
Please help me, I'm turning more grey each minuteI think it is how the current user information is stored based on your logic.
You might be quering current value again when loading the form (Form load Rule).
you have to tweak your logic, after the user submits the form you can set the username to the one who saved it.
or in form load, write a logic to see if the form was not saved before and then query the username( by using internal field like "formstatue")
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if the reply helps you -
Print Tax amt & split values in PO print preview
Dear ABAP GURUS,
my reqmt. is to print TAX AMOUNT along with split values like <b>Excise duty, ECess, VAT</b>, and others.
Kindly help me in accomplishing it.
Thanks.
Reg.
Rajesh DRajesh ,
first u have to get the Vlaues in the driver progra,
how to get ?
first find out how u are capturing in the Ecess and VAT , if u maintaining the Std.SAP settings check u can get it from based on the settings of TAX code.
check my prev.posting on the same issue.
Tcode : FTXP.
Re: Sub: P.O. Invoice ( How to get vat & Excise % )
Regards
Prabhu -
Formula to populate one Person or Group column depending on the value of another Person Group column
I am looking for a way to popluate the Account information of a Person based on another column where there name in another column. I have Two Columns "Name" which is a Person or Group information type and User Account which
is also a Person or Group Information type. When an Invidividuals name is entered into the Name column, I what the User Account column to prepolulate.Hi,
For your issue, you can automatically populate User Information depending on the value of another Person or Group column by connectting with User Information List or connectting with User Profile Web Service:
http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=172
http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
SOAP_EXCEPTION - Value cannot be null. Parameter name: s
Hi All,
I'm getting the following error whicle executing my soap scenaraio.
"Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Value cannot be null. Parameter name: s"
Its IDOC to SOAP scenario.
can some one tell me what might be missing. its not anything to with the data, as we tried extracting the output message from moni and using in the application and it works. we also tried sending a blank idoc and the error is same. so, conclusion is the parameter is not any data in the message but something to do with the soap message setting.
any help will be greatly appreciated.Hi suraj,
i tried opening the url in ie and manually uploading the payload. its all works perfect. error comes only when sent via XI.
the paramets are:
Receiver SOAP
Transport protocol: HTTP
Message protocol: SOAP 1.1
Connection parameters
Target URL: http://**..*.*/XIDynExchange.asmx
no check box checked
Security prameters
not checked
Conversion parameter
no checkbox checked
soap action: http://***.org/SendXMLMsgSA
No advance setting done
what might have gone wrong?
Regards,
Rashmi -
[Crystal Report] Value cannot be null. Parameter name: o
Hi,
I have a stock in warehouse report where the parameter is to select warehouse code.
I used the SAP token, Warehouse@SELECT * FROM OWHS
I linked the parameter to the report via the Select Expert: OWHS.WhsCode is equal to {?Warehouse@SELECT * FROM OWHS}
When I preview in SAP B1, i get the error prompt: Value cannot be null. Parameter name: o
Can someone point me to the right direction to get this work?
Thanks.Creating dynamic parameter will lead to another problem as well. Kindly refer
Re: Crystal Report Dynamic Parameter for SAP B1 version 8.8
That's why I have to use the SAP token. The problem is I can't seem to preview the report in SAP B1 after linking the parameter to my report via select expert. -
QUESTION from an American in India:
How do I find the screen with my personal iPod (my name's iPod) so I can download from my purchased or free songs/pods from my computer? My iPod has opened to that for 3 years and this week I can't find it: not on purchased page or on Apple store page.See:
Recovering your iTunes library from your iPod or iOS device: Apple Support Communities -
Navigational Attribute Filter value selection not showing full name
Hi Experts,
We are having Navigational Attribute TM Responsible. We have created variable in BEX for it. When we are searching for value selection for this in RSRT, its showing only last name and key part. But If I dont pass any values, and display the result its showing full name. Please find the screen shots.
Customer needs full name to be available for selection in filter in above picture 1.
Please suggest what needs to be done.
Thanks,
GovindHi All,
The issue is resolved. Making display as Long text at Infoobject level and at Query display level was not working. Hence I tried to change the display at Multiprovider level as shown below. This fixed the issue.
Right click Navigational attribute -> Provider specific properties
Made the display as Long text.
This setting resolved the problem.
Thanks for help and replies.
Thanks,
Govind -
Set default value for full name based on usename
I have an LOV which as the full name of the user, for example 'John Smith'.
I would like to set the value of this LOV to the full name of the user, based on a match with username. So when JSMITH is logged in, I would like the default value of the LOV to be 'John Smith'.
I have an page process anonymous block which gets the right short username:
DECLARE
p7_assigned_to varchar2(20);
BEGIN
select person_name into p7_assigned_to
from ht_people
where v('APP_USER')=flow_user;
END;
How do I then set the default value of the LOV based on the return value of this block?Where do you use the LOV? Is it being used in a Select list? If so, you will have a place to enter the default value. Edit the Select list, and you will see a place where you can enter Default value.
Ravi -
Sales Opportunity Contact Person showing numeric in query & want full name
Hi,
I have two sql queries as under :
SELECT T0.OpprId,T0.OpenDate, T0.Name, T0.Territory, T1.descript, T0.CardCode, T0.CardName, T0.U_eqno, T2.Name FROM [dbo].[OOPR] T0 INNER JOIN [dbo].[OTER] T1 ON T0.Territory = T1.territryID INNER JOIN OCPR T2 ON T0.CprCode = T2.CntctCode
In the above query the problem is that I want that the Contact Person name which is selected in the sales opportunity to come. But by which query it is only showing those opportunities in which Contact person is there and NOT showing the ones in which Contact person is not there.
and the second query
SELECT T0.OpprId,T0.OpenDate, T0.Name, T0.Territory, T1.descript, T0.CardCode, T0.CardName, T0.CprCode, T0.U_eqno FROM [dbo].[OOPR] T0 INNER JOIN [dbo].[OTER] T1 ON T0.Territory = T1.territryID
Its showing the Contact person code but I want the name of the contcat person as avaliable in the sales opprtunity.
I want result in which the above details come along with the Contact person name. Where I am getting wrong in the query....Please help.
Regards,
Kamlesh GuptaFor Your Second Query, use the following Code that Displays both
Contact person code and Name
SELECT T0.OpprId,T0.OpenDate, T0.Name, T0.Territory, T1.descript, T0.CardCode, T0.CardName,T0.CprCode, (Select T1.Name from OCPR t1 where t1.cntctCODE=T0.CprCode),T0.U_eqno FROM dbo.OOPR T0
INNER JOIN dbo.OTER T1 ON T0.Territory = T1.territryID -
操作系统:XP
MAX版本:14.0
IMAQdx版本:4.3.5
摄像头:北京嘉恒中自图像OK_AC1360
生产商的应用软件中使用正常。在AMCAP软件(视频测试软件)中使用也正常。
连接Gige摄像机时出错:Error:0xBFF69012 Attribute value is out of range Attribute Name CameraAttributes::AutoFunction::AutoTargetGrayValue
试着修改 ‘AutoTargetGrayValue’ 属性值,但是MAX会无相应并死掉。
Solved!
Go to Solution.Sometimes, camera firmware is the problem. Sometimes, the camera XML file is the problem. Sometimes, the way that IMAQdx tries to force settings onto the camera is the problem.
Things to try:
1. Check with the manufacturer, and ask if new firmware is available for the camera. If the firmware cannot be updated by the end user, you will need to get a Returm Merchandise Authorization number, and send the camera in for the upgrade.
2. Edit the XML file that was downloaded from the camera, and remove all references to CameraAttributes::AutoFunction::AutoTargetGrayValue. Do not alter, or remove the zip file that resides in the same location as the XML. If you do, IMAQdx will request a fresh copy from the camera, and overwritew your changes. You can find the XML file in C:\Users\Public\Documents\National Instruments\NI-IMAQdx\Data\XML
3. Edit the camera .icd file in C:\Users\Public\Documents\National Instruments\NI-IMAQdx\Data, and remove the reference to CameraAttributes::AutoFunction::AutoTargetGrayValue.
Machine Vision, Robotics, Embedded Systems, Surveillance
www.movimed.com - Custom Imaging Solutions -
Search combination of Org Name1 and Person First + Last Name
Hi Everybody,
Business Case:
We have organizations witch have persons who are in a relationship to the organization. It must not be "contact person of". When a Person calls now our employee he had to find the correct person. To make this search easier i need a combined search for organization name1 and person fist + last name. The result must be all persons with a relationship to the company searched.
Environment:
SAP CRM 4.0 SP9 with Add On for Service Industries.
User Interface: PC-UI.
Is there a function module or class to do this search?
Regards
GregorHi Everybody,
I've found a solution by implementing this Function module and adding it to the Query method:
FUNCTION z_org_pers_search.
*"*"Lokale Schnittstelle:
*" IMPORTING
*" REFERENCE(NAME_ORG1) TYPE BU_NAMEOR1
*" REFERENCE(NAME_ORG2) TYPE BU_NAMEOR2 OPTIONAL
*" REFERENCE(NAME_LAST) TYPE BU_NAMEP_L
*" REFERENCE(NAME_FIRST) TYPE BU_NAMEP_F OPTIONAL
*" CHANGING
*" REFERENCE(CT_PARTNER_KEYS) TYPE CRMT_BSP_OBJECTKEY_TAB
* Daten definition for partner search with COM_BSP_SEARCH_BP
DATA: ls_search_criteria TYPE comt_bsp_bp_seareq_incl,
ls_control TYPE comt_bsp_search_control.
* Daten definition result tables
DATA: it_org_keys TYPE bup_partner_guid_t,
it_org_with_rel TYPE bup_partner_guid_t,
it_pers_keys TYPE bup_partner_guid_t,
ls_org_with_rel LIKE LINE OF it_org_with_rel,
ls_pers_keys LIKE LINE OF it_pers_keys.
* Search for Organizations
ls_search_criteria-bp_name1 = name_org1.
ls_search_criteria-bp_name2 = name_org2.
ls_control-organizations = 'X'.
CALL FUNCTION 'COM_BSP_SEARCH_BP'
EXPORTING
* IV_PARTNER1 =
is_search_criteria = ls_search_criteria
is_control = ls_control
* IV_MAX_HITS =
* IV_CHECKS = 'X'
* IMPORTING
* EV_HITS =
* ET_BUT020 =
CHANGING
ct_partner_keys = it_org_keys.
* Search for Persons
FREE: ls_search_criteria, ls_control.
ls_search_criteria-bp_name1 = name_last.
ls_search_criteria-bp_name2 = name_first.
ls_control-persons = 'X'.
CALL FUNCTION 'COM_BSP_SEARCH_BP'
EXPORTING
* IV_PARTNER1 =
is_search_criteria = ls_search_criteria
is_control = ls_control
* IV_MAX_HITS =
* IV_CHECKS = 'X'
* IMPORTING
* EV_HITS =
* ET_BUT020 =
CHANGING
ct_partner_keys = it_pers_keys.
SELECT partner2 AS partner INTO CORRESPONDING FIELDS OF TABLE it_org_with_rel FROM but050
FOR ALL ENTRIES IN it_org_keys WHERE partner1 = it_org_keys-partner.
DELETE ADJACENT DUPLICATES FROM it_org_with_rel COMPARING partner.
LOOP AT it_org_with_rel INTO ls_org_with_rel.
READ TABLE it_pers_keys WITH KEY partner = ls_org_with_rel-partner INTO ls_pers_keys.
IF sy-subrc = 0.
APPEND ls_pers_keys-PARTNER TO ct_partner_keys.
ENDIF.
ENDLOOP.
ENDFUNCTION.
Best regards
Gregor -
Full Name Refiner Values in Language Refiner
Hi,
is it possible to display the language refiner in the SP2013 refinement panel Web Part written with its full name?
Let's say I get refiner values from the "languages" refiner for German and English, written as "de" and "en" and those texts appear in the refiner like this.
But what I actually want to display is "German" and "English", including a localization to the current display language.
So when switching to German language I would see "Deutsch" and "Englisch".
Is there a way to accomplish this in a simple way without creating translations for every language by hand and mappping these in the default refiner item display template?
Kind Regards
SebastianHello Sebastian,
Are you able to find solution for this Problem? I am also looking for the same Kind of Problem. It would be great if you could share, if you already have solution for it.
Thanks,
Regrds,
Aruna -
Populate AWS_CHOICES values into LC workbench process route names
Hi All,
Sometimes we want to give your users a choice, which will affect the routes that are taken within the LiveCycle process. If we put a bit of text into the AWS_CHOICE text field, such as “Approve,Deny”, .you can see the screenshot .now my problem is i need to populate AWS_CHOICES values into LiveCycle workbench process route names .
I am following the suggestions given in the url http://www.avoka.com/blog/?cat=11 .
in the section Giving the user a choice
i was unable to find the checkbox that says “Populate Form with Routes when Assign task activity.
Any response will great appriciation.Hi ,
Thanks for the quick response.
i am using version Adobe LiveCycle Workbench ES2 Version: 9.0.0.0.20091021.2.223388 ,but i was not found for "Populate Form with Route Name" option for Assign task activity.
Please could you confirm which activity has the option "Populate Form with Route Name" .
Thanks
Anjaneyulu.
Maybe you are looking for
-
Some songs don't show up on my iPod at all.
And other songs show up, but only in the song section, not the artist section...I'm thinking this MAY have something to do with faulty id3 tags, but I'm stumped as to how to fix it. Please help shed some light on my problem, thanks.
-
New iPod shuffle, INVISIBLE to Mac/PC
Have bought a silver ipod shuffle 3G, and charged it fully. When headphones are plugged in it says ' please sync with itunes' - so the headphones function correctly, as well as charging as the batt is full, and the light is constant orange when plugg
-
I just updated my iTunes and now I get a message that the application has failed to start because MSVCR80.dll was not found. What happened and how do I fix this? I can't access any of my music now.
-
No. of Channels in a PXI Embedded Controller
How many DMA channels are present in the NI PXI 8105 controller ? I have read that in NI PXI 7831 r, there are a total of 3 DMA channels, So if I am using 3 such cards I need to have 9 DMA channels in my controller for sending the data to these cards
-
Hi , any body can send real time problems they faced
hi every body this is siva from banglore, any body can send the real time problems they faced in sap crm and how they solved if any body kindly send to my id : [email protected]