Hi All,
I have below requirement
Name provided in Form: ALL ARMYS LTDA
Then in API call - Name 1 : ALL ARMYS LTDA
Name 2 : Empty
Name 3 : Empty
Name 4 : Empty
Example2 :
Name provided in Form: ÖZBEY HİJYENİK ÜRÜNLERİ SANAYİ TİCARET A.Ş. Then in API call
Name 1 : ÖZBEY HİJYENİK ÜRÜNLERİ SANAYİ
Name 2 : TİCARET A.Ş.
If the maximum number of characters (35) is reached in the middle of a word, the logic should revert to the previous separator, which is a space. This means that the segment will not be split within a word; instead, it will only be separated at the last complete word before the character limit is reached. As a result, each Name field will always contain whole words, and no word will be cut off in the process.
If No space and the name is more than 35 chars then allow user to put notification
Can anyone please suggest ,
Hello.
The mostly likely place where you want to split a string like this is to send to an external system
Here is a way to do it in OutSystems as a server action:
Hello Nuno,
Thank you very much for your reply and suggestion.
Regards
unable to debug,Can you please suggest
@Preeti zade : The logic for your requirement is as below
Attached is an implementation using JS (AI generated) . You may implement the same in Server side too following the above algorithm.