
Andreas Pfeiffer
Forum Replies Created
-
Hi Kevin,
very well spotted. Yes Omnis Studio allows you to have multiple subforms on a form and you are able to address them from outside once they are constructed. For performance reason the subform on the pages that are initially not visible are constructed once they become visible the first time.
You could check if the instance is there using a $cando property on the method. For example:
If $cinst.$objs.sub.$subinst().$load.$cando
Do $cinst.$objs.sub.$subinst().$load(myID)
End ifThe $loadfinished is not something you would call. This method is automatically executed once all subforms have been loaded. The problem you face here is that it won’t be executed until you make all subforms become visible – meaning you would need to change the paged pane. You can see $loadfinished like the $construct. You override it and then this code will be executed once all subforms are loaded. It would be much easier if you do not control the behaviour from the outside of the subform. Let the subform do its own job. Once it becomes constructed it could call a method in the container form.
Btw. this difference behaviour of the remote classes did lead me into slightly different development paradigm and in return it led me change my development style for fat client windows as well. I discovered that it is much more OO when bringing the power to the subwindows/forms rather trying to control everything from the outside.
I hope this helps you.
Best regards,
Andreas
-
Andreas Pfeiffer
AdministratorJuly 30, 2025 at 7:30 am in reply to: Button event for Hold-Remote forms Omnis Studio 11Hi Sameera,
Sorry for the late answer. For some reason your post stuck in the inbox and we were not be alerted. However for other users to see the solution I will post the answer we sent you directly from the German support team:
Unfortunately there is no built-in/native On evLongPress or evHold in Omnis Studio or even in JavaScript.
We have now been able to build our own “evLongPress” event with the JavaScript events “mousedown”, “touchdown”, “mouseup” and “touchend”.
The whole thing involves some JavaScript on the client side.
An example library is attached to this email. To implement the whole thing for you, you would need to adjust the reference to your button in the $init and then implement the client method $onlongpress to your button. So that the click is not triggered after the LongPress, you would then have to copy the code from our “onlongpress”. Then another click will be prevented after a long press.
I hope this helps you.Library attached.
Best regards,
Andreas
-
Hi Kevin,
I assume the subform on the next page is not instantiated yet when you are trying to send a message. Therefore you will not be able to get a reference to that instance. Only when the page will become visible it will create the instance inside the subform field.
My advice is to get rid of the page pane and use one subform that loads the data itself. Add a control (i.e. tab strip) that simply assigns the $classname of the subform. Every time you do this its $construct will be executed and from there you can call a method in the main form to get information from it and rebuild its own data. Note that $multipleclasses needs to be kFalse. Otherwise the instance will stay alive and you cannot rely on having its $construct executed when the the $classname is assigned.
You may want to check out the contacts web application sample library that I posted in this forum. It uses this technique. It does use a paged pane. However there is only one sub window on page two and this one gets dynamically assigned.
Hope this helps.
Best regards,
Andreas
omnis.net
Contacts Web Application - Omnis Forum
This is the Contacts Web Application created as a demo version for the Madagascar ODC event. You can download and run it with the Omnis…
-
Hi Bill,
From Omnis Studio 10 onwards it comes with a true type editor only.
When you start typing, the code assistant will popup and give you suggestions that you can confirm using the tab key or navigating with the arrow keys first. That way you will be even faster entering code with the new editor.
I’ll promise, once you get the hang of it – it is hard to work with the old click&point editor again.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorJuly 14, 2025 at 2:17 pm in reply to: Issues with oBrowser in a Complex GridHello 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
-
Andreas Pfeiffer
AdministratorJuly 8, 2025 at 2:14 pm in reply to: Issues with oBrowser in a Complex GridHi 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,
very good idea!
I will vote for it too.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorJune 23, 2025 at 8:39 am in reply to: Future of Omnis Community EditionUwe,
have a look at the Omnis.net website. Click onto the Store button in the top right corner. You will see that there are actually two Community Editions now.
Hope this helps.
Best,
Andreas
-
Hi Rui,
What are you referring to?
Best,
Andreas
-
Andreas Pfeiffer
AdministratorApril 14, 2025 at 8:23 am in reply to: Transbutton hotbutton currentindicatorcolor propertiesMartin,
Attached please find the test library made with Omnis Studio 11.1 CE and the required user.css that you would need to copy into your installation. If you have already contents in the user.css then you can simply copy the CSS class from this user.css into your own user.css.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorMarch 27, 2025 at 10:07 am in reply to: Transbutton hotbutton currentindicatorcolor propertiesMartin,
We found a little glitch with this approach. Apparently when adding the bottom border, the text on the button jumps a little. So instead using a CSS class for the button we use a container (i.e.scroll box) and put the button or trans button into that container given it an edge float kEFPosnClient. Note that it does not look nice if the button has rounded corners. Hence we set $borderradius to zero for both the button and the container.
Now the container will receive a CSS class like this:
.showbottomborder:hover {
border-bottom: 3px solid red;
}If you put “showbuttomborder” into $cssclassname (without the quotes) it will show a 3px, solid and red line at the bottom when hovering with the mouse without affecting the button itself.
Kudos to Maurin for this.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorMarch 26, 2025 at 9:08 am in reply to: Transbutton hotbutton currentindicatorcolor propertiesHi Martin,
You can achieve this with a CSS class.
Add the following to the user.css within your installation:
.mytransbutton:hover {
border-bottom-width: 3px !important;
border-bottom-color: darkblue !important;
}
Then add the name of this CSS class “mytransbutton” to the $cssclass property of your transbutton.
When testing this, the transbutton should show a 3px, dark blue border at the bottom when hovering with the mouse.
I hope this helps.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorMarch 12, 2025 at 8:30 am in reply to: Integrating AmCharts into Omnis StudioHi Martin,
It could be that the sample library was created using the Omnis Studio Professional Edition. In that case you cannot open it using the Community Edition. But I am not sure. Maybe you can ask the author.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorJuly 17, 2025 at 7:15 am in reply to: Issues with oBrowser in a Complex GridHi 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
-
Andreas Pfeiffer
AdministratorApril 14, 2025 at 5:52 pm in reply to: Transbutton hotbutton currentindicatorcolor propertiesMartin,
Maybe you might try this with the latest version though. I was using Build 37266
Best,
Andreas