976 questions
Advice
0
votes
0
replies
13
views
Projecting or morphing a text onto a wave-like loft prior to extruding it
I am in desperate need of some advice. After spending several hours of yesterdays evening, most of last night and the whole morning today in eager discussion with Copilot and Gemini, I'm pretty lost.
...
5
votes
2
answers
772
views
In the Rhino JavaScript engine, how can a custom Java object be an instance of final class java.lang.String?
UPDATE: Based on various feedback, I'm significantly updating my question so much so that it is different from (though still related to) the original one. I don't know what the proper protocol is for ...
0
votes
0
answers
130
views
Getting StatusCode 415 "Unsupported file type" when sending a PDF in an HTTP request via Mirth Connect
I am using Mirth Connect to automate healthcare data processes, and part of my task involves sending a PDF file over HTTP. I receive the PDF as a base64 string, which I then convert into a file and ...
0
votes
1
answer
235
views
How to add mozilla dependency in updated android studio
implementation 'org.mozilla:rhino:1.7.13'.
its giving syntax error in updated version
Am trying to import mozilla library in java.anyone can please guide me regarding this error.i want to use built ...
0
votes
1
answer
101
views
Copying files in Javascript Rhino
I'm looking for the easiest solution to copy a file from /pathA/filename to /pathB/filename. No relative paths or file modifications are needed.
I'm trying to copy a file in Javascript Rhino. The code ...
0
votes
1
answer
662
views
Rhino 1.7.14 supports ES6 functionalities like promises, but I am not able to use VERSION_ES6 flag
It is mentioned in Rhino 1.7.14 as Rhino can support ES6 features if VERSION_ES6 flag is used.
Flag to be used in Rhino 1.7.14
But there were no clear documentation of how & where to use the flag
...
2
votes
1
answer
361
views
How to use the properties query with Drive.Files.List in Google Apps Script v5
I'm trying to use the Advanced Google Drive service in Google Apps Script to find files with a given custom property value
Drive.Files.list({
"corpora": "allDrives",
...
0
votes
1
answer
649
views
How to import java packet in javascript when using rhino-android script Engine in Android development?
I'm trying to migrate a PC java project to android.
The project structure looks like:
https://github.com/speedyHKjournalist/CosmicAndroid/tree/main
Javascript files are under directory: app/src/main/...
0
votes
1
answer
113
views
How can a BIRT Rhino script load a class from a different osgi bundle?
I am integrating a BIRT report engine (4.13) in an RCP app (2023-09, Java17).
I want a bundle (B) to be able to submit a rptdesign to the bundle (R) containing the report engine. One report in bundle ...
-3
votes
1
answer
126
views
Remove special characters like space,bracket,plus symbol,hyphen from phone number string [duplicate]
I am considering below cases to remove garbage values ,or space bracket from a telephone number string.
Below are the examples I am considering.
//Ignore Special char
phone = "+1-555-555-1234&...
-1
votes
1
answer
135
views
Phone Number Masking with brackets or special characters present [duplicate]
I am trying to replace the below string like below:
Some of the cases I am considering are:
//Ignore Special char
phone = "+1-555-555-1234"
result = xxx-xxx-1234
phone = "1(800)555-...
1
vote
3
answers
208
views
Mask and insert hyphen after every 3 digits
I am trying to replace the below string like below:
var phone = "9871234567"
result = xxx-xxx-4567
Below is the js code I have worked upon, but this is not giving me the correct result.
var ...
0
votes
0
answers
178
views
Cannot access value from Mirth Connect server's globalMap
My Mirth Connect server contains many fields in its globalMap, and they are visibly present via an up-to-date dashboard view. I ensured it's updated by clicking Refresh as well as re-connecting to the ...
0
votes
1
answer
132
views
How to get events from an embedded JavaScript Rhino engine
I have a webapp project running on tomcat that uses an embedded Rhino engine to execute custom scripts uploaded by (power) users; from the execution point of view, everything is working as expected, ...
0
votes
1
answer
469
views
Pentaho Data Integration: convert a text in number (Rhino)
I'm using Pentaho Data Integration and I need to convert the string value content in a variable named "density" in a numeric value.
For example if density = "6.5" I need to ...