Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Issues with oBrowser in a Complex Grid

  • Issues with oBrowser in a Complex Grid

    Posted by Rui Morim on July 8, 2025 at 9:26 am

    Hello!

    I’m trying to use the oBrowser component within a Complex Grid.
    I’ve tried every configuration I can think of, but I haven’t found a single setup that doesn’t crash the application when it’s instantiated.
    Is it simply not possible to use oBrowser in this context?

    As an alternative, I created a ‘Scroll’ component and then added multiple oBrowser components to it, matching the number and dimensions of the Complex Grid’s rows.
    Everything seemed fine at first, but unfortunately, the $vscroll value of the Grid is completely unrelated to the $vscroll value of the Scroll component.
    Since I couldn’t get them to align, I had to abandon that approach.

    In summary:

    Is there a way to use the oBrowser component within a Complex Grid?

    Is there a way to synchronize the $vscroll of a Complex Grid with a kScroll component?

    thks

    Andreas Pfeiffer replied 1 week, 6 days ago 2 Members · 5 Replies
  • 5 Replies
  • Andreas Pfeiffer

    Administrator
    July 8, 2025 at 2:14 pm

    Hi Rui,

    I do not think the Complex Grid is designed to hold the oBrowser in its record section. Can you give more background what are you trying to achieve?

    Best,

    Andreas

  • Rui Morim

    Member
    July 8, 2025 at 4:00 pm

    Thks for reply Andreas.

    I need to display one photo per row in my application.
    Initially, everything was working great using the standard components.
    Until someone reported that opening a specific document caused the application to crash.

    I quickly pinpointed the images as the root cause.
    There’s something inherent in some images that, for an unknown reason, makes the application crash when it’s run in a Citrix environment.

    I was told the issue might be related to ‘progressive JPEGs.’
    To troubleshoot, I’ve tried every omnis componente for image and all conversion option available in Omnis, changing sizes, qualities, colors, and so on. But nothing has worked! Nothing at all!

    The main challenge is that I have no control over the image characteristics; they’re retrieved by HTTP service.

    My first alternative was the oBrowser component, which can display any image type.
    But, Complex Grid doesn’t support it and simply freezes.

    My next alternative was to put oBrowser components inside a scrollbox component.
    In this example, the oBrowser displays the images without any problem, but it’s inside a kScrollbox container, and I can’t get it to synchronize with the Grid’s scrollbar.
    This is despite having the same number of entries and each one having the same height.

    I’m at a dead end.

  • Andreas Pfeiffer

    Administrator
    July 14, 2025 at 2:17 pm

    Hello Rui,

    You could possible use the oBrowser control and display a remote form there. The remote form could then itself have a complex grid with either a picture control or a background component to display the picture.

    The remote form can use $cwind.$getData to receive data from the current window.

    Does that help?

    Best,

    Andreas

  • Rui Morim

    Member
    July 15, 2025 at 1:51 pm

    Hello Andreas,

    It’s a possibility… but since I haven’t explored omnis remote forms yet, it ends up being a more complicated path!

    Given everything that’s already been done, all that would be needed is a formula that gives me the correct positioning between the $vscroll of the Scrollbox starting from the $vscroll of the ComplexGrid.

    Best regards,

    Rui Morim

    • Andreas Pfeiffer

      Administrator
      July 17, 2025 at 7:15 am

      Hi Rui,

      Honestly I do not think synchronising of the two is a good idea. You will always end up having both scrolling slightly differently. Also what do you do if you have more records in the complex grid than you have oBrowser components in the scrollbar?

      What if you have just one oBrowser outside the complex grid and you update it with the picture when the user clicks on a line or a button within the complex grid?

      Best,

      Andreas

Log in to reply.