Uwe Smidt
Forum Replies Created
-
<div>Hi Matthew,</div>
I suppose Omnis is working on it, but maybe not with the highest of priorities, When I open Omnis 11, I get a short & small dialog saying ‘restoring IDE’
And with Shift F3 you can store individual window settings – so it’s all there, just needs to be assembled to one ‘save workspace’ command. So vote my idea
https://www.omnis.net/community/forums/forum/discussion/saving-named-workspaces/up by one, then we may see it a bit earlier… 😉
Regards
Uwe
PS: I had this topic earlier with Omnis support, but then the only advice was to have 2 separate installations …
https://www.omnis.net/community/forums/forum/discussion/positioning-studio-ide-windows-by-code/
omnis.net
Saving named Workspaces - Omnis Forum
I am using my notebook both stand-alone and in multi-monitor-mode. It would be great to be able save named workspaces, like 'on the road',…
-
Hi Matthew,
I work with different environments, so saving named workspaces is on my wish list (https://www.omnis.net/community/forums/forum/discussion/saving-named-workspaces/)
In the meantime, I helped myself with an AppleScript that helps me to arrange windows for different settings like ‘mobile’ or ‘mobile + external screen’.
As you are on MS Windows, maybe there is an equivalent automation shell?
Regards
Uwe
omnis.net
Saving named Workspaces - Omnis Forum
I am using my notebook both stand-alone and in multi-monitor-mode. It would be great to be able save named workspaces, like 'on the road',…
-
… and here is the test library for your convenience:
-
Dear $Omnis,
Have you been able to review this yet? -
Hi Andreas,
Yes, it did help!
I now have a security/login solution that makes me happy!
The first level is to allow only access to the web server to users who have a client certificate, as described in my post above.
The second level is a convenience level, where upon first login through a login dialog, a cookie is set via clientcommand(savepreference..), and on any further calls to the app, no login is required since the user is identified via clientcommand(loadpreference…).
Via a logout button, the cookie (after login set to the user id), can be set to ‘loggedOut’, so the login dialog will pop up again on the next connection.
I’ve put all this logic into the super class rfSuper, also the $init, so it doesn’t matter if I enter through index.htm (based on rfSuper) or if I choose to take a shortcut directly to some form like rfQuickEntry.
Since all the rf.$constructs (which may already load data) run before the first $init (initiating user authentification), I’ve put a $clientcommand(‘showloadingoverlay’,row(kTrue,#NULL,’anmelden…’)) in the $construct of rfSuper which is released as soon as the user is logged in.
If anyone wants more details, please don’t hesitate to ask!
Regards
Uwe
-
Dear Mats & Paul,
Well, I suppose you are right!
I am aware local actions are always faster than remote actions, but the scenario ‘Omnis AND Postgres on VPS’ is – in a way – a remote BUT still lightning fast scenario, since I see the results in my browser – which is remote to Omnis and Postgres. But I assume that delivering ‘just’ a finished page is far less data than the back and forth of ten little queries between Omnis & Postgres that will eventually result in one page being sent.
When I query the remote (VPS) Postgres with my local PGAdmin, the query is executed in 0.2 sec on average – not lightning fast, but fast. Waiting for my local Omnis App (powered by Omnis Studio 11, i.e. the developer app) connected to the remote VPS Postgres to update the screen, takes 5-10 seconds, so I thought that something beyond ‘local vs remote networks’ was wrong.
You are right, Paul, in recommending optimising my design & code – so far, the amount of data was small, and connection was local.
But as we are moving on, it helps to have some helping minds like yours’1
Thank you!
Bye
Uwe
-
Hey Mats,
I assume that the clientmethod ‘savepreference’ and ‘loadpreference’ does nothing else but creating or reading a cookie – but my problem is that I can’t read the instance variable that ‘loadpreference’ write into.
I suppose I can only read it on the client side, but I need it on the server side when I call the client method.
Yes, maybe Andreas can give me a hint…
-
$Dear all,
Thank you for your help!
I have mastered half-way through ‘secure log in’ issue:
With a little help from ChatGPT, I decided to perform a mutual TLS (mTLS) authentication. In that setup, the server verifies the client’s identity through a certificate, in addition to the client verifying the server’s identity (as in regular TLS). So whenever someone not having a valid client certificate tries to enter my site/web app, Apache will tell to get lost. This works fine and should be super secure. If you want a step by step guide, let me know!
But now I’m stuck again with the seemingly simple task of using Andreas suggestion to use the jsPreferences sample:
Saving the prefs works fine, but loading the pref seems to keep the instance variable into which the PrefValue is saved local to client-only. But my understanding was that instance variables are kept in sync between client and server!?!
Please see my few code lines, and the tool tip saying ’empty’, i.e. the variable icPrefValue has no access to its value. On the remote form, however, <b style=”background-color: var(–bb-content-background-color); font-family: inherit; font-size: inherit; color: var(–bb-body-text-color);”>icPrefValue does display its value.
How (or when) can I access icPrefValue on the server?
Best regards
Uwe
-
Uwe Smidt
MemberJanuary 14, 2025 at 11:49 am in reply to: Electronic Invoices – State of the Union?Hey guys,
Finally. some life in this matter – which should be relevant to everyone in the EU – but maybe to a different extent.So there does not seem to be a common framework to be used, as I understand only the XML Object.
Luckily, for me there is currently no urgent need to implement this, but I’d be happy to keep this thread alive with common approaches.
Thank you, guys!
Best regards
Uwe
-
Hi Diego,
Thank you! I’ll look into that, too!
-
Hi Andreas,
Thanks for your hint – I’ll have a look at it!
-
Uwe Smidt
MemberJanuary 6, 2025 at 6:26 pm in reply to: Omnis Headless Server on Ubuntu 24.04 LTS – no connection to PostgresDear Mats,
As I understand, Debian is the ‘pure’ Server OS, but Ubuntu LTS comes in server flavours as well, as lean & mean as possible. And since UpCloud offer both Debian 12 and Ubuntu 24.04 LTS as VPS images, I wanted to give it a try, because I also have web sites to host with wordpress, and I ran into many problems (e.g. an old, not updateable WordPress itself) with Debian 12 being to old.
With Ubuntu 24.04, wordpress was up and running without any efforts, so I tried to set up Omnis on Ubuntu, too, in order not to learn and maintain to many different systems.
Anyway, I did check permissions & ownership, but they were as all the other libs that loaded without a glitch.
So I assume that it must be something about the version of ‘libldap’ that keeps Omnis OHS from connecting to Postgres.
But many thanx for your input!
Bye
Uwe
-
Uwe Smidt
MemberJanuary 5, 2025 at 12:12 pm in reply to: Omnis Headless Server on Ubuntu 24.04 LTS – no connection to PostgresHi Mats,
Happy New Year to you!
As I said, I do not suspect it to be a Postgres config problem – it seems more in the way that my Ubuntu 24.04 installation is lacking some dependencies…I’ve got: postgresql.conf
listen_addresses = '*'
and in pg_hba.conf
# Database administrative login by Unix domain socket
local all postgres peer
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 scram-sha-256
# IPv4 remote connections:
host all all 0.0.0.0/0 password
# IPv6 local connections:
host all all ::1/128 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all peer
host replication all 127.0.0.1/32 scram-sha-256
host replication all ::1/128 scram-sha-256
I can connect from my VPS Debian 12/OHS instance to postgres on the Ubuntu instance, but not from Ubuntu/OHS to Ubuntu/Postgres…
-
Finally – after ‘only’ 10 days, I’m up and running !
What really helped me were…– RTFM:
- https://omnis.net/developers/developers/resources/onlinedocs/WebDev/07deployment.html#installing-the-headless-server-linux
- https://www.omnis.net/developers/resources/technotes/tnjs0003.jsp#content
- https://www.omnis.net/developers/resources/technotes/tnli0007.jsp
- of course, Auntie Google
– Mats
- he hinted me at upcloud.com. They have an affordable, transparent yet powerful and scalable cloud platform for virtual servers & much more
- Mats’ step-by-step tutorial to set up a server and site at upcloud.com
- and his support in all the nitty gritty little problems arising along the way!
Thank you, Mats!
My last hick-up was trying to use the omnis_module with Nginx – but it works for Apache only.
Now my server is Apache only, no Nginx. And so far, I don’t seem to need Nginx’s reverse proxy, since Apache has the concept of virtual servers, which does the same for me: having multiple sites on one web server, being addressed either by different IPs or by different domains.
-
Hi Götz,
Thank you for taking the time to check!
As I am no longer on paid maintenance scheme, will there be a free bug fix release, or will I have to live with this bug?
Best regards
Uwe
