Forum Replies Created

Page 3 of 14
  • Andreas Pfeiffer

    Administrator
    April 1, 2024 at 12:02 pm in reply to: Reading Postgresql schemas and Omnis schemas

    Hi Martin,

    If using schema classes you would need to prefix the schema class name in the “server table or view” field of the schema class.

    The $sqlclassname property of the table class should take the name of the schema class.

    Hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    March 21, 2024 at 2:59 pm in reply to: Closing an additional library closes the main window

    Robert,

    would you let me know what steps are required to reproduce this problem? Do I need to open both libraries? When I run the Export Library button it simply closes the library.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    March 21, 2024 at 11:04 am in reply to: Closing an additional library closes the main window

    Hi Robert,

    can you upload a sample lib that shows the problem?

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    March 21, 2024 at 10:02 am in reply to: Closing an additional library closes the main window

    Hi Robert,

    Yes. Try to add “().$fullname”

    Note, the parentheses.

    For example: calculate myTextVar as $cinst().$fullname

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    March 18, 2024 at 1:22 pm in reply to: Closing an additional library closes the main window

    Hi Robert,

    This could be because the window instance that you are talking about is probably running inside the task instance of the library that you close. Although the window class may sit in another library the instance can live in a task of another library. This is all about who has opened the window instance. If the instance that opened that window is also part of the task instance the new instance will be in the same task instance. Etc.

    You can find out if you check what the current task instance is using $ctask().$name (note the parentheses). That gives you the name of the current task instance.

    If you want to make sure to open the window instance in another task instance you would need to open the window instance either directly from the $construct of that task or from another instance (menu etc.) that was opened from that $construct.

    I hope that makes sense.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    February 19, 2024 at 10:48 am in reply to: Display text horizontally for the left side tab control

    Hi Roland,

    why not simply use buttons for this?

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    February 15, 2024 at 5:32 pm in reply to: Trapping a button click

    Hi Ron,

    I am not sure if I understand you correctly. Typically you would put an evClick within the $event method of the button. So whenever the button is clicked the code after On evClick will be executed.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    February 9, 2024 at 8:04 am in reply to: PDF’s Images on Linux

    Hi Manuel,

    Well it looks like you would need to provide PNG files if using the Headless Server.

    Alternatively you could probably use oProcess worker to run terminal commands or oPython worker to do the conversion outside of Omnis?

    Check out these technical notes:

    https://www.technotes.omnis.net/Technical%20Notes/Extending%20Omnis/Using%20the%20oProcess%20Worker/index.html

    https://www.technotes.omnis.net/Technical%20Notes/Extending%20Omnis/Using%20the%20Python%20Worker/index.html

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 31, 2024 at 11:11 am in reply to: Copying a class from one library to another libray, with code

    Hi Nathanael,

    If you library and classes are not locked you should be able to achieve this by code:

    1. Create a new empty class from the same class type using $add
    2. Copy $classdata from the source to the new class.
    3. Finally copy the properties on the class that you think are important.

    In case of the system class, i.e. #icons omit the first step.

    I hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 16, 2024 at 11:48 am in reply to: $label trouble

    Micha,

    Again this is hard to say without having the library. Would you mind sending me a small sample library that demonstrates the problem?

    Thanks and best regards,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 15, 2024 at 10:43 am in reply to: $label trouble

    Hi Mischa,

    I am not sure what you are trying to achieve using the $prepare of a row variable when using a schema.

    Actually my recommendation always using a table class rather a schema class directly. If doing so there are two ways to use a table class:

    1. The table class has an attached schema class in its $sqlclassname property. If so that table class is best use for a row variable where you would typically use its $select, $fetch, $update, $insert etc. methods to manipulate one specific record.
    2. The table class has no schema class involved. In this case you would typically have a statement block and then using $cinst.$statementobject().$prepare() to execute the statement block. The result set then determines the columns of the current instance which would be typically a list variable to represent a number of records.

    I hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    February 20, 2024 at 8:00 am in reply to: Display text horizontally for the left side tab control

    Roland,

    Just type in the css class name (without the leading dot). Once you have used it it should appear in the drop list too.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    February 19, 2024 at 10:47 am in reply to: Subform questions

    Hi Mischa,

    Yes – all properties but $name need to be read within a client executed method.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    February 15, 2024 at 7:50 pm in reply to: Trapping a button click

    Ron,

    I wonder if a Switch control would be more suitable to achieve this.

    Best regards,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 17, 2024 at 8:11 am in reply to: $label trouble

    Hi Mischa,

    If this turns out to be a conversion problem I would like to recommend that you present this to the local Omnis support team. I think handling this here might be too specific for the public forum.

    Best regards,

    Andreas

Page 3 of 14