![Profile photo of Andreas Pfeiffer](https://www.omnis.net/community/wp-content/uploads/avatars/15/58453e9b65bfd-bpfull.png)
Andreas Pfeiffer
Forum Replies Created
-
Hi Uwe,
You might want to look at a technical note I wrote a while ago. It provides a tool that generates a CSV file for the client by a given list variable. https://www.omnis.net/developers/resources/technotes/tnjs0011.jsp
CSV is a standard that should be easy to import in Excel or Numbers.
Hope this helps.
Best,
Andreas
-
This reply was modified 7 months, 3 weeks ago by
Andreas Pfeiffer.
-
This reply was modified 7 months, 3 weeks ago by
-
Andreas Pfeiffer
AdministratorNovember 7, 2023 at 3:08 pm in reply to: How to Retrieve Domain Name of current Windows user in Omnis Studio?Roland,
One more thing. If you want to know what environment variables are available on the system you can use the listenv() method. This method returns a list with the env variables together with their value.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorNovember 7, 2023 at 3:04 pm in reply to: How to Retrieve Domain Name of current Windows user in Omnis Studio?Roland,
ok – correction. getenv(‘hostname’) does not seem to work. Obviously it is not an environment variable.
However you can use oProcess to make any call into the system. For example if you type in “whoami” within a CMD prompt and you find this is the result you are looking for then you could use the oProcess external to do exactly this.
Here is the documentation about oProcess: https://www.omnis.net/developers/developers/resources/onlinedocs/ExtendingOmnis/06oprocess.html#chapter-6oprocess
Here is a technical note that explains quite well how to deal with it: https://www.technotes.omnis.net/Technical%20Notes/Extending%20Omnis/Using%20the%20oProcess%20Worker/index.html
If interested I can upload a zip example that uses oProcess to zip and unzip.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorNovember 7, 2023 at 2:56 pm in reply to: How to Retrieve Domain Name of current Windows user in Omnis Studio?Hi Roland,
getenv() receives any Windows environment variable.
For instance you could use getenv(‘hostname’) to get the hostname of the system. Here is the documentation: https://www.omnis.net/developers/resources/onlinedocs/FunctionRef/Functions_A-Z/getenv.html#getenv
Does that help?
Best,
Andreas
-
Andreas Pfeiffer
AdministratorNovember 7, 2023 at 8:47 am in reply to: How to Retrieve Domain Name of current Windows user in Omnis Studio?Hello Roland,
You can get this by using the getenv() function:
Do getenv(‘USERDOMAIN’) Returns myDomain
Best regards,
Andreas
-
Andreas Pfeiffer
AdministratorNovember 6, 2023 at 8:18 am in reply to: ERROR: failed to bind Omnis Server SocketHello Uwe,
you can change this in remote_debug_server_config.json, located in the folder clientserver/server/remotedebug in the data folder of the Omnis installed tree.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorNovember 3, 2023 at 10:52 am in reply to: ERROR: failed to bind Omnis Server SocketHi Uwe,
looks like the socket for the node interface is already in use. It should not matter if you are not using the javascript worker object.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorOctober 17, 2023 at 7:16 am in reply to: Date Picker Control displaying wrong datesYes – good idea 🙂
Best,
Andreas
-
Andreas Pfeiffer
AdministratorOctober 17, 2023 at 7:01 am in reply to: Date Picker Control displaying wrong datesHello Minh,
I did a quick test in Omnis Studio 11 (35659) and it appears to be fixed.
Best,
Andreas
-
Hi Martin,
I get what you mean.
This is hard to determine as when the subtotal header is printed it cannot know how much space the records will need for this subtotal.
Therefore the only solution that I can see here is to estimate the number of space that is needed from the amount of records you are going to print in that section and then set the $pagespacing of the subtotal header to the appropriate space. This requires to have the $pagemode setting on kTestspace. So for example if you know that it will require 11 cms you can then set it to 11 etc.
I hope this helps.
Best,
Andreas
-
Martin,
There is a property on the section $pagemode. Try to set it to kFitonpage
Does that help?
Best,
Andreas
-
Great! I am glad it works for you.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorNovember 8, 2023 at 8:23 am in reply to: How to Retrieve Domain Name of current Windows user in Omnis Studio?Hi Roland,
The Whoami is in the tech note: https://www.technotes.omnis.net/Technical%20Notes/Extending%20Omnis/Using%20the%20oProcess%20Worker/3.Simple%20example%3A%20whoami.html
Attached please find the zip sample library. Note you can open it with the pro version of Omnis Studio. If you have a community edition check out this tech note: https://www.technotes.omnis.net/Technical%20Notes/Extending%20Omnis/Using%20the%20oProcess%20Worker/4.Complex%20example%3A%20unzipping.html
Best regards,
Andreas
-
Andreas Pfeiffer
AdministratorOctober 8, 2023 at 6:42 pm in reply to: Reference an object in a superclassThank you Martin,
Have fun.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorOctober 6, 2023 at 1:32 pm in reply to: Reference an object in a superclassReading properties might only be possible in client methods. You may be able to read $name or $id from a server side method but some code might have changed a color on the client, so how would the server read such a property.
Therefore this can only be done from a client executed method.
Best,
Andreas