Re: Preserving text formatting info in a service return from an API call

2023-05-16 Thread Daniel Watford
Hi Richard, When viewing the string in webtools, please could you view the string in your browser's developer tool's element view - e.g. right-click the string and choose Inspect. Alternatively you could right-click the page and choose 'View Source' I suspect the formatting is preserved in the

Re: Preserving text formatting info in a service return from an API call

2023-05-16 Thread Richard Fleming
Daniel,Thanks for your quick response!I'm running 17.12.06 The service is a simple java service that calls chatGpt and returns the text response as a json object.I use jackson to create the response text as a String. I've run the java response  string out to a file(textfile.txt) and to both the

Re: Preserving text formatting info in a service return from an API call

2023-05-16 Thread Daniel Watford
Hi Richard, I don't think OFBiz service engine should be altering the content of a string return value. If it was doing so I would have assumed that to be a bug. Do you have a small reproduction case we can check? How are you observing that the return value has changed? Any chance the place you

Preserving text formatting info in a service return from an API call

2023-05-16 Thread Richard Fleming
Hi all, I have a service that creates a prompt and calls an outside API endpoint. The return from the API is formatted text.But when I get the return field from the ofbiz service, the formatting is lost. Is there a way for ofbiz to keep the text formatting in the return field? In this case the

AW: Editing Inventory Items

2023-05-16 Thread Ingo Wolfmayr
Hi Emad, I start with the second question: For example: You may have produced the inventory yourself and just added it with the form. You can also create an Inventory Item via the manufacturing app without the use of purchase orders. First: I had cases where the productId of a product has

Re: ChatGPT answer to my Ofbiz question :)

2023-05-16 Thread ofbiz . user
The answer from ChatGPTm may be a very good one. The central problem is: When you start relying on AI to have business cases and functionality explained to you in contrast to learning in man to man communication and self-study preceding own solution design and implementation work, you are