![Profile photo of Andreas Pfeiffer](https://www.omnis.net/community/wp-content/uploads/avatars/15/58453e9b65bfd-bpfull.png)
Andreas Pfeiffer
Forum Replies Created
-
Andreas Pfeiffer
AdministratorApril 1, 2024 at 12:02 pm in reply to: Reading Postgresql schemas and Omnis schemasHi 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
AdministratorMarch 21, 2024 at 2:59 pm in reply to: Closing an additional library closes the main windowRobert,
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
AdministratorMarch 21, 2024 at 11:04 am in reply to: Closing an additional library closes the main windowHi Robert,
can you upload a sample lib that shows the problem?
Best,
Andreas
-
Andreas Pfeiffer
AdministratorMarch 21, 2024 at 10:02 am in reply to: Closing an additional library closes the main windowHi Robert,
Yes. Try to add “().$fullname”
Note, the parentheses.
For example: calculate myTextVar as $cinst().$fullname
Best,
Andreas
-
Andreas Pfeiffer
AdministratorMarch 18, 2024 at 1:22 pm in reply to: Closing an additional library closes the main windowHi 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
AdministratorFebruary 19, 2024 at 10:48 am in reply to: Display text horizontally for the left side tab controlHi Roland,
why not simply use buttons for this?
Best,
Andreas
-
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
-
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:
Best,
Andreas
-
This reply was modified 5 months, 1 week ago by
Andreas Pfeiffer.
technotes.omnis.net
Using the oProcess Worker - Omnis Technical Notes
Using the oProcess Worker - Omnis Technical Notes
-
This reply was modified 5 months, 1 week ago by
-
Andreas Pfeiffer
AdministratorJanuary 31, 2024 at 11:11 am in reply to: Copying a class from one library to another libray, with codeHi Nathanael,
If you library and classes are not locked you should be able to achieve this by code:
- Create a new empty class from the same class type using $add
- Copy $classdata from the source to the new class.
- 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
-
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
-
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:
- 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.
- 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
AdministratorFebruary 20, 2024 at 8:00 am in reply to: Display text horizontally for the left side tab controlRoland,
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
-
Hi Mischa,
Yes – all properties but $name need to be read within a client executed method.
Best,
Andreas
-
Ron,
I wonder if a Switch control would be more suitable to achieve this.
Best regards,
Andreas
-
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