Forum Replies Created

Page 1 of 3
  • Paul Mulroney

    Member
    May 3, 2024 at 12:37 pm in reply to: Picture upload via API

    Try something like this:

    Calculate vsImageEncoded as utf8tochar(bintobase64(vrResult.delSignature)) ## bintobase64 returns UTF8 ready to send, but we need char because we're building the file ourselves.

    Then you can append this to the start

    Calculate vsImageEncoded as con(‘data:image/jpeg;base64,’,vsImageEncoded)


    Good luck!

    Regards,

    Paul.

  • Paul Mulroney

    Member
    August 10, 2023 at 1:55 am in reply to: Retrieve current list

    #CLIST has the name of the current list. I’m sure there’s a notation-y way to do it, but I’m not sure how that works.

    Regards,

    Paul.

  • Paul Mulroney

    Member
    June 24, 2022 at 1:37 am in reply to: Convert Microsoft Access to Omnis

    Hi $All

    This project has popped up again, so I thought I’d see – does anyone have anything that can do this?

    Regards,

    Paul.

  • Paul Mulroney

    Member
    June 24, 2022 at 12:42 am in reply to: Type Ahead

    Thanks Gav, that sounds like a great idea!

  • Paul Mulroney

    Member
    June 24, 2022 at 12:40 am in reply to: Linux Headless Server – too many users

    Which 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

    Member
    June 20, 2022 at 1:44 am in reply to: Omnis running as a Windows Service

    If 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

    Member
    June 20, 2022 at 1:30 am in reply to: Best IDE for Mobile App Development

    I 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

    Member
    June 9, 2022 at 11:18 am in reply to: Omnis Studio 10.2 and VCS not working

    There 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

  • Hi 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 For

    Then 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

    Member
    February 17, 2021 at 8:53 am in reply to: IOS Dev : is it possible to Include AR Kit

    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 creative! lol 🙂 🙂 🙂
    Regards,
    Paul.

  • Paul Mulroney

    Member
    February 17, 2021 at 8:46 am in reply to: Dynamic server port

    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

    Member
    February 17, 2021 at 8:38 am in reply to: Creating a drag rectangle on the thick client

    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 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!

  • Paul Mulroney

    Member
    September 17, 2020 at 1:47 am in reply to: try catch block

    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.

  • Paul Mulroney

    Member
    April 28, 2020 at 3:30 am in reply to:

    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

    Member
    April 17, 2020 at 1:56 am in reply to: IOS Dev : is it possible to Include AR Kit

    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 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.

Page 1 of 3