Post Closed
29
Views
9
Comments
Solved
String Split from the entityattribute and use the first letter of first name
Application Type
Reactive
Service Studio Version
11.54.27 (Build 62849)

I want  split the entity string to take the first letter of first name in the table and use it in email

EmailApp.oml
Solution

Hello @Urvashi Sharma 

Based on what I understand from your question and oml you should try this:

Thanks 

Anees

EmailAppSolved.oml

But I need the email to be generated through that check button with the first letter of the name and surname like anees mansoori = amansoori@ciginsurance.com


Try this, here I have skipped middle name just to showcase the example.

Thanks 

Anees

It was a success that you so mu7ch.
Please let me know how to make this visible in the home screen list as it is not appearing there


Glad it helped, I have checked your code further.

Seems like you are not saving that generate Email in database. you have to assign that email to the correct variable as shown in the image.

Thanks

Anees

EmailAppNew.oml

what if the email already exista in the table and we need to set the email as
eg 1) anees mansuri - amansuri@ciginsurance.com
eg 2)anees ahmad mansuri - aamansuri@ciginsurance.com
eg 3) anees ahmad mansuri - aahmansuri@ciginsurance.com

eg 4) anees ahmad mansuri - aahmmansuri@ciginsurance.com

we will like keep increasing the value of middle name 



Hi Urvashi,

This forum is meant to help you when you are stuck. Mohd already did so, answering your initial question. This forum is not meant to keep asking people to write your code for you. If you are a developer, you should be able to come up with things like this yourself. If you are stuck at a specific point, create a new topic. Thanks.

Hello Urvashi,

You can use built in function Substr(text,startIndex,NumberOfCharacters).

In your case 

Text will be FirstName

StartIndex will be 0

NumberOfCharacter will be 1 

so it will be like this Substr(FirstName,0,1).

Please check URL below for more details about text built in functions:

https://success.outsystems.com/documentation/11/reference/outsystems_language/logic/built_in_functions/text/#Substr

Champion

Hi Urvashi,

You can use substr() built in method to get the required substring.

regards

Solution

Hello @Urvashi Sharma 

Based on what I understand from your question and oml you should try this:

Thanks 

Anees

EmailAppSolved.oml

But I need the email to be generated through that check button with the first letter of the name and surname like anees mansoori = amansoori@ciginsurance.com


Try this, here I have skipped middle name just to showcase the example.

Thanks 

Anees

It was a success that you so mu7ch.
Please let me know how to make this visible in the home screen list as it is not appearing there


Glad it helped, I have checked your code further.

Seems like you are not saving that generate Email in database. you have to assign that email to the correct variable as shown in the image.

Thanks

Anees

EmailAppNew.oml

what if the email already exista in the table and we need to set the email as
eg 1) anees mansuri - amansuri@ciginsurance.com
eg 2)anees ahmad mansuri - aamansuri@ciginsurance.com
eg 3) anees ahmad mansuri - aahmansuri@ciginsurance.com

eg 4) anees ahmad mansuri - aahmmansuri@ciginsurance.com

we will like keep increasing the value of middle name 



Hi Urvashi,

This forum is meant to help you when you are stuck. Mohd already did so, answering your initial question. This forum is not meant to keep asking people to write your code for you. If you are a developer, you should be able to come up with things like this yourself. If you are stuck at a specific point, create a new topic. Thanks.