Absent Member.
Absent Member.
81 views

How to fill a text field with several lines with web api?

Jump to solution
Hi.

I have one problem. I am creating service calls with web api. I found some problems trying to fill text fields with several lines.

Example:

In a text field we want to fill:
"Tiempo total: x;
Tiempo restante: y;"

If I use:
String strInfo;
strInfo = "Tiempo total: x;\n";
strInfo += "Tiempo total: y;";
sc.setServicecallText1(strInfo);


In ServiceDesk I see an strange character instead of a break line. How can I do that?

Thanks in advance.
0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

Re: How to fill a text field with several lines with web api?

Jump to solution
For web-api use "\r\n".

Vasily

View solution in original post

2 Replies
Highlighted
Absent Member.
Absent Member.

Re: How to fill a text field with several lines with web api?

Jump to solution
HI
Example:
Update Information when support request is created (Update data) Information set to (Concatenate [Registration Created by] With (Concatenate added on With (Concatenate [Registration Created] With (Concatenate EET:%line.separator% With (Concatenate [Information update] With (Concatenate %line.separator%%line.separator%----------------------------------------------------------------------------%line.separator%%line.separator% With [Information]))))))

Vasily
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to fill a text field with several lines with web api?

Jump to solution
For web-api use "\r\n".

Vasily

View solution in original post

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.