
Andreas Pfeiffer
Forum Replies Created
-
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 1 year, 5 months 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 1 year, 5 months 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
AdministratorJanuary 15, 2024 at 8:20 am in reply to: 'Millio/en'nium PANE^ BackgroundHallo Herr Köhler,
Entschuldigung der Post ist leider nicht zu lesen. Bitte posten Sie erneut – wenn es geht ohne die HTML Tags.
Vielen Dank.
Mit freundlichen Grüßen
Andreas H. Pfeiffer
-
Andreas Pfeiffer
AdministratorJanuary 15, 2024 at 8:18 am in reply to: ‘Millio/en’nium PANE^ HintergrundHallo Herr Köhler,
der Text Block scheint schon das richtige Instrument zu sein. Der Statementblock ist gedacht für SQL Statements.
Probieren Sie zunächst ob der HTML Text dem Sie der HTML Komponente zuweisen wollen so mit der Komponente funktioniert indem Sie das HTML mit Copy&Paste in die $html Eigenschaft des Controls hinein kopieren. Beachten Sie, dass das HTML entweder in einem Frame oder in einem DIV sein muss damit dies in der Komponente funktioniert.
Wenn das klappt, dann prüfen Sie den Code, den Sie für die Zuweisung verwenden. Haben Sie die richtige Referenz zur Komponente? Steht der HTML Code korrekt in der Variablen die Sie für den Text Block verwenden?
Mit freundlichen Grüßen
Andreas H. Pfeiffer
-
Hi Mischa,
I am still not sure what you are trying to achieve here. Would you mind sending a test case to the Omnis support so it can be investigated and if there is a fault they will raise it to Engineers.
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