Welcome!

This community is for professionals and enthusiasts of the Genio platform.
Share your questions and challenges, and help your partners!

3

1
Carlos Nogueira
On 4/23/20, 2:25 PM

Hi, 

@ is a special caracter, so, in order to get it working you must 'escape' it.

I've tried directly on the genio formula, and its working as expected:


Edit: Please note that this solution is only viable when working on interface level, with default formulas. Server formulas will not cope with this, so go with Maksym solution if that's that case.

Regards,



1
Maksym Hrytsko
On 11/21/19, 12:52 PM

To be safer, create in Genio a function that does string formatting. The '@' character in MVC projects will give problems in JavaScript of this formula.



Implementations
CSharp:
return "@" + teamsName + ".com";

JavaScript:
return '@' + teamsName + '.com';

T-SQL:
RETURN '@' + @teamsName + '.com';


Then you can use this function in the formula



Note: Choose the type of formula depending on what is most appropriate for you.

  • Flag

Hello Maksym, i had the same trouble as João and after trying your solution it didn't work, "@" acts as a special character overriding the string concatenation.

An image describing my problem is available for your analysis after João's question.

Tiago Parente
on 11/21/19, 5:27 PM

I updated my answer. For use the functions that more safety for this cases when used some Razor special characters.

Maksym Hrytsko
on 11/21/19, 6:48 PM

0
Tiago Parente
On 11/21/19, 5:24 PM



Keep Informed

About the Community

This platform is for beginners and experts willing to share their Genio knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers. Read Guidelines

Question tools

14 follower(s)

Stats

Asked: 11/20/19, 11:03 AM
Seen: 1876 times
Last updated: 4/23/20, 2:28 PM