Multiline input in text box is changed to single line
Text entered into form
Source: TEST
Destination: TEST2
After applying this text to a service request
Source: Test Destination: TEST2
Is there any way I can prevent the Cireson portal from doing this? I have researched possible CSS changes and formatting the data with powershell but have come up empty handed. Any help would be greatly appreciated. Thank You.
Best Answer
-
Konstantin_Slavin-Bo Customer Ninja IT Monkey ✭✭✭✭Okay, I see. Maybe something gets lots in translation to/from XML? We are (rather were before Advanced Request Offerings, which you really should check out!) doing it the same way, just without any SQL, which I honestly don't understand why are using? In Orchestrator, you can simply get the SR with all the custom properties and input those directly into the Description or whatever of the SR, with any formatting and ordering you want. What do you need the db for?
Also, you say you are parsing the user input by parsing the XML. Why is that? Why don't you just access the properties directly in a Get Object activity and then update the SR with an Update Object activity? This should get you the raw input as strings, so any line breaks etc should be preserved.
Here's a simple example from on of our (old) runbooks, where the editor is for Description:
I realize this doesn't answer your actual question, but it seems like you could do this whole thing a better way. I can of course be missing out on why you are doing it the way you're doing it, in which case just ignore what I said, and lets find out why it isn't working. But if not, you should design your runbooks this way, in my opinion of course.
And I would like to give another shoutout to Advanced Request Offerings, which is really awesome, because you get to skip all these custom properties and runbooks for every RO, as you can simply map every prompt / question to e.g. the description field or anything else, ordering it the way you want, writing additional text, anything you want. And that's not even talking about the dynamic-page prompts!
5
Answers
Which property/field are you mapping the input to?
From what I can tell the issue is between the submitting of the RO and Orchestrator parsing the XML. In the portal the input stays as multi line, but as soon as it is submitted the input is transformed to one line. The input stayed as multi line with the Microsoft portal and I really don't want to go back to that, as the Cireson portal is much nicer.
Also, you say you are parsing the user input by parsing the XML. Why is that? Why don't you just access the properties directly in a Get Object activity and then update the SR with an Update Object activity? This should get you the raw input as strings, so any line breaks etc should be preserved.
Here's a simple example from on of our (old) runbooks, where the editor is for Description:
I realize this doesn't answer your actual question, but it seems like you could do this whole thing a better way. I can of course be missing out on why you are doing it the way you're doing it, in which case just ignore what I said, and lets find out why it isn't working. But if not, you should design your runbooks this way, in my opinion of course.
And I would like to give another shoutout to Advanced Request Offerings, which is really awesome, because you get to skip all these custom properties and runbooks for every RO, as you can simply map every prompt / question to e.g. the description field or anything else, ordering it the way you want, writing additional text, anything you want. And that's not even talking about the dynamic-page prompts!
However, I did not know that you could reference the extensions of the service request in Orchestrator. I was always using the default Class 'Service Request' and not my saved extension class therefore I never saw my extension as options. I changed the runbook to update the description field from my extension class and it now comes in on multiple lines as typed in the RO. Thank you very much! Based on this, the SQL and parsing does seem unnecessary.
I have looked into the Advanced Request Offerings and it looks great, would love to have dynamic forms! Maybe one of these days...
Thanks again!