-
Paul Mulroney replied to the topic IOS Dev : is it possible to Include AR Kit in the forum Omnis General Coding 2 weeks ago
Hi Rainer,
I still want to do this, but so little time for “recreational programming”! 🙂
I was thinking, using the new SDK would also be the way to allow Omnis to interact with Apple Watch – you could build views for Apple Watch in the SDK and then trigger these with endpoint calls to/from Omnis.
If only someone could pay me for being…[Read more]
-
Paul Mulroney replied to the topic Dynamic server port in the forum Omnis General Coding 2 weeks ago
I don’t think so. Is there a reason why you’re not assigning a port number? You could pick a known value, then there wouldn’t be any issues.
We had some code that would dynamically set the server port, but only after it determined that the port wasn’t already in use. This would prevent Omnis from hanging on startup waiting for the port to…[Read more]
-
Paul Mulroney replied to the topic Creating a drag rectangle on the thick client in the forum Omnis General Coding 2 weeks ago
OK, so I worked out something that works for us.
You can create a shape object, with these properties
- $backpattern: kPatTranparent
- $bordercolor: something bright eg kYellow
- $linestyle: something obvious eg Line: 2
- $shape: kRect3D
- $effect: kBorderPlain
In $construct of the window:
Set reference irBox to $cwind.$objs.objBounds ;; Make this…
[Read more] -
Paul Mulroney started the topic PDF Watermark using node.js in the forum Omnis General Coding 2 weeks ago
Hi Everyone,
A few people on the Omnis List have expressed interest in using node.js to manipulate PDFs. I’ve created a small demo to show the basic theory. The demo puts a watermark diagonally across the first page of the document. The sample works in Studio 10.1.
I’ve put the code up on github -…[Read more]
-
Paul Mulroney replied to the topic try catch block in the forum Omnis General Coding 5 months, 2 weeks ago
Hi Scott,
It’s not ideal, but how about “Load Error Handler”? eg
Load error handler ccPWM/ErrorHandler (first error, last error)
After that have your code. If you want to catch OS level events like timeouts etc, it should happen automatically. If you want to create your own custom errors, you can eg
Signal error {27,"Something bad happened, Err…
[Read more] -
Paul Mulroney started the topic Creating a drag rectangle on the thick client in the forum Omnis General Coding 8 months, 2 weeks ago
Hi Everyone,
I’m working on a feature where I want the user to be able to draw a rectangle onto an image on a window in the runtime. At the moment it’s pretty basic – I can track the mouse down and mouse up events, and then it draws the box. However, it would be really cool if the user saw a rectangle as they moved the mouse after clicking…[Read more]
-
Paul Mulroney replied to the topic O7 -> O$ Monospaced Fonts in the forum Omnis forum 10 months, 1 week ago
Hi Jim,
No I didn’t get an answer on this. We’re living with chunky courier for now, figuring out a workaround for it.
Regards,
Paul. -
Paul Mulroney replied to the topic IOS Dev : is it possible to Include AR Kit in the forum Omnis General Coding 10 months, 2 weeks ago
Hi Rainer,
With the latest versions of the App Wrapper, there’s now a SDK that allows you to make calls into/out of Omnis to other platform specific features. So, it should be possible to use AR-Kit and Cam with Omnis. You’ll need to write some iOS code to act as an interface between Omnis and these frameworks, but after that you should be…[Read more]
-
Paul Mulroney replied to the topic WIndows 64-bit Runtime Omnis 10.1 in the forum Omnis General Coding 10 months, 2 weeks ago
Hi Scott,
Thanks for your message.
so every windows users on a the workstation your omnis app copies the entire contents of AppData/Local from the server?
To clarify, Omnis copies everything from the firstruninstall folder into the user’s local app data. Once that’s copied over (and that’s a one-time thing, when the app is first launched in…[Read more]
-
Paul Mulroney replied to the topic WIndows 64-bit Runtime Omnis 10.1 in the forum Omnis General Coding 10 months, 3 weeks ago
Hi Scott,
When we deploy to businesses, they typically have a server, and we have either Postgres or the Omnis Databridge installed on that server. Each workstation has a config file that points to the database. We set it up as an INI file, so we can have other parameters including the location of the LANUpdates folder. When they first run the…[Read more]
-
Paul Mulroney replied to the topic WIndows 64-bit Runtime Omnis 10.1 in the forum Omnis General Coding 10 months, 3 weeks ago
Hi Scott,
I’ll say “me too” – we’ve had the same issue. First time you launch the app for a user, it seems to take a long time and there’s no visible indicator to the user that anything is happening. Sometimes we’ve had users try to launch twice, and then we get weird errors about “file already exists”.
We have our libraries etc setup in the…[Read more]
-
Paul Mulroney replied to the topic Simple problem but i can't solve it. in the forum Omnis General Coding 1 year, 1 month ago
Hi Mimmo,
If you need to create the file, then you need to swap $openfile() for $createfile()
$openfile() will open an existing file, but it won’t create a new file. if you pass kTrue as the second parameter, it will open the file read-only and you will not be able to write to it.
It’s probably a good idea to test the lError between each line…[Read more]
-
Paul Mulroney replied to the topic JSclient Printing in the forum Omnis forum 1 year, 1 month ago
(disclaimer: I haven’t tried this, but I’ve done something similar a long time ago)
You could try:
begin print job
set report name <report #1>
<print report #1>
set report name <report #2>
<print report #2>
set report name <report #3>
<print report #3>
end print job
That’s how you could treat three Omnis reports as one print job. I’m assuming…[Read more]
-
Paul Mulroney replied to the topic A lot of "Obsolete Command". in the forum Omnis General Coding 1 year, 1 month ago
Obsolete commands usually means that in some future version it will no longer exist. This is a warning – you should replace these commands with more modern equivalents.
We had similar issues with other commands with an old Studio 6.1 app. When it moved to 10.1, suddenly it stopped working properly, because “Set return value” (which was a…[Read more]
-
Paul Mulroney replied to the topic Custom OK Message Window in the forum Omnis General Coding 1 year, 1 month ago
You’re welcome!
-
Paul Mulroney replied to the topic Simple problem but i can't solve it. in the forum Omnis General Coding 1 year, 1 month ago
For Omnis Studio 8.0 and above, you need to use POSIX style pathnames, which means that:
Macintosh HD:users:administrator:desktop:nomefile.txt
becomes
/Volumes/Macintosh HD/Users/administrator/Desktop/nomefile.txt
You can use the FileOps.$converthfspathtoposixpath() function to convert if you’d prefer.
-
Paul Mulroney replied to the topic Custom OK Message Window in the forum Omnis General Coding 1 year, 3 months ago
This is definitely possible!
You need to have something like this in the $construct:
enter data
if flag true
; user has clicked OK
else
; user has clicked cancel
end if
do $cwind().$close
quit method <some result>
You should have an OK button with the $buttonmode set to kBMok, and a cancel button with the $buttonmode set to kBMcancel
The…[Read more]
-
Paul Mulroney replied to the topic Subform Set Panels in the forum Omnis General Coding 1 year, 10 months ago
Hi Coralie
We hit the same issue. You need to remove the subform set when you’re done. We have a “done” button on the subform set, so when the user clicks the button it calls this:
Do $ctask.trSubForm.$RemoveSFS()
In the main form that created the subform, we have this method: $RemoveSFS() which does this:
; Remove the subform from the…
[Read more] -
Paul Mulroney replied to the topic Save a PDF print jpb in the forum Omnis General Coding 1 year, 10 months ago
You need to do the following (assuming Studio 8.0 or higher):
Do $cdevice.$assign(kDevOmnisPDF) ;; Switch to the Omnis PDF device.
Calculate $prefs.$reportfile as ‘full path to PDF file’ ;; Omnis PDF uses the $prefs.$reportfile to determine where to write the PDF.
Print report -
Paul Mulroney replied to the topic Migrating DML to SQL in the forum Omnis General Coding 1 year, 10 months ago
We’re looking at the Studio 10 DML to SQL stuff, but there still seems to be a few issues. We’re working with tech support to get them resolved because we still have a few DML based clients that we’d like to get to PostgreSQL.
- Load More