RAM API RAMAsset.setDescription - how can we set multi-line Long Description in an asset via API?
![]()
We are trying to read a text file, and set the contents of that file as the Long Description in a RAM Asset via API calls. But, when we do this, all of the line endings are lost so that the Description contains one long line consisting of all lines concatenated together. We've done some testing, trying to pass strings containing "\n" or "\r\n", but are unable to get this working.
Is there some special syntax to use to insert line endings into the Long Description? Here is what we have been trying.......... String LongDesc = "Line1\nLine2\nLine3\n"; System.out.println(LongDesc); asset.setDescription(LongDesc); But, here is what the Description looks like in the asset after running this......... |
Accepted answer
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.