
Paul Mulroney Mulroney
Forum Replies Created
-
Paul Mulroney Mulroney
MemberJune 24, 2022 at 1:37 am in reply to: Convert Microsoft Access to OmnisHi $All
This project has popped up again, so I thought I’d see – does anyone have anything that can do this?
Regards,
Paul.
-
Thanks Gav, that sounds like a great idea!
-
Paul Mulroney Mulroney
MemberJune 24, 2022 at 12:40 am in reply to: Linux Headless Server – too many usersWhich version of Omnis are you using? I thought that the developer license had a 5 user number so you could test multiple connections?
Alternatively you can kill the process from the command line with “killall omnis” – this isn’t a nice way to stop everything, but it does work!
-
Paul Mulroney Mulroney
MemberJune 20, 2022 at 1:44 am in reply to: Omnis running as a Windows ServiceIf you run the service as a particular user, then there are files stored in the users App Data folder – this is important when you want to run software updates etc.
Also keep in mind that mapped drives are tied to a particular user – if you reference files on mapped drives, you must be running as a user that has access to those drives.
-
Paul Mulroney Mulroney
MemberJune 20, 2022 at 1:30 am in reply to: Best IDE for Mobile App DevelopmentI agree with Rainer – Omnis is a pretty good mobile platform to work with, because you can get both iOS and Android with the same code base. You can also get device controls eg camera, gps, contacts etc from the device so there are lots of options available.
There are other platforms like Android Studio, or XCode for iOS, or Xojo (iOS only), or others. A quick Google search will show you plenty of options.
-
Paul Mulroney Mulroney
MemberJune 9, 2022 at 11:18 am in reply to: Omnis Studio 10.2 and VCS not workingThere was a patch for Studio 10.2 if you’re using Postgres for your VCS. Look at https://www.omnis.net/developers/resources/download/tools/libraries.jsp for the VCS library for Studio 10.2
-
Paul Mulroney Mulroney
MemberAugust 19, 2021 at 1:50 am in reply to: Getting the page number that an object is on, inside a $sendallHi Everyone,
With help from the list, and some personal replies, here’s what I found:
At first, I couldn’t get the $sendall to work, so I coded this which did work:Do vlObjects.$define(vrObject) ;Create a list of objects that we want to work with
Do $cinst.$objs.PagedPane.$objs.$sendall(vlObjects.$add($sendallref)) ;Add all objects from this page pane into a list
Begin reversible block
Set current list vlObjects
End reversible block
For each line in list from 1 to #LN step 1
If $cinst.$objs.PagedPane.$panenumber(vlObjects.vrObject)=pnCurrentPage ;This is on the page that we want to validate
Do vlObjects.vrObject.$validate() ;Call this specific validate method
End If
End ForThen I received a couple of replies, which led me to this:
Do $cinst.$objs.PagedPane.$objs.$sendall($ref.$validate(),$cinst.$objs.PagedPane.$panenumber($sendallref)=pnCurrentPage)
Note using $ref in the first part, and $sendallref in the second part.
See also this tech note which explains it more fully: https://www.omnis.net/developers/resources/technotes/tngi0027.jsp
Regards
Paul. -
Paul Mulroney Mulroney
MemberFebruary 17, 2021 at 8:53 am in reply to: IOS Dev : is it possible to Include AR KitHi 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 creative! lol 🙂 🙂 🙂
Regards,
Paul. -
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 become available.
Regards,
Paul. -
Paul Mulroney Mulroney
MemberFebruary 17, 2021 at 8:38 am in reply to: Creating a drag rectangle on the thick clientOK, 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 a shortcut to access the shape object
When we want to enable the shape object, we have a button to enable it with this code:
Calculate irBox.$selected as kTrue ;; Enable selection handles
When we save the record, capture the following:- irBox.$top
- irBox.$left
- irBox.$width
- irBox.$height
Don’t forget to disable selection:
Calculate irBox.$selected as kFalse ;; Disable selection handles
It’s a little clunky, but it serves our purpose. Maybe others will find this useful! -
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 27"}
When done,
Unload error handler ccPWM/ErrorHandler
In your error handler, you can then take whatever action necessary, and include eg
SEA continue execution
You can test the #ERRCODE and #ERRTEXT for specific errors eg
Switch #ERRCODE
Case 27
; Our special error signal
Case kerrBadnotation
; Notation error
Case kerrDiskfull
; OS file ops related
Default
; All other cases here
End Switch
SEA continue execution
Hope this helps!
Regards,
Paul. -
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 Mulroney
MemberApril 17, 2020 at 1:56 am in reply to: IOS Dev : is it possible to Include AR KitHi 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 OK.
We haven’t done this yet ourselves, but we were looking into Machine Learning and wanted to use some of Google’s frameworks to do specific OCR functions that would be used inside Omnis.
The new SDK opens a world of possibilities …
Regards,
Paul. -
Paul Mulroney Mulroney
MemberApril 17, 2020 at 1:39 am in reply to: WIndows 64-bit Runtime Omnis 10.1Hi 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 the user’s profile), our software then copies our libraries from the server into the local app data > omnis > startup folder. That process is a lot faster than the first copy, and they’re really the only components that change.
There’s no workaround for copying into the user’s app data folder, except to make the Program Files folder writable, and that’s frowned upon by Microsoft. If you make the program files > omnis folder writable, then you can do away with the firstruninstall folder, put everything in the Omnis application tree like we used to do prior to UAC, and you get the desired result – one set of libs for all users on a workstation. Not sure how that will work in Windows 10, we stopped doing that since Windows 7 was first introduced.May I also ask which version of $O you are using?
We’re currently using Studio 8.1, but we’re working to update our clients to 10.1. We still have some clients using O$ 5.2, so it’s a bit of mix of versions right now. The same principles work on all versions.
Regards,
Paul. -
Paul Mulroney Mulroney
MemberApril 16, 2020 at 1:23 am in reply to: WIndows 64-bit Runtime Omnis 10.1Hi 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 software in their user profile, it will ask them where the LANUpdates folder is. When they locate it, it copies all the other parameters like database connection details etc to the user’s AppData folder. Once they have the connection details, it can then query the database for the latest version and download the updated libs to their profile.
If you don’t have any kind of central server, but you want the software to be same across profiles on the workstation, perhaps you can use a central location such as the “Program Data” folder? The local app data profile still has some Omnis components, but you could have a “startup library” that points to the actual libraries in the Program Data folder, so that all profiles access the same libs.
Regards,
Paul.