
Andreas Pfeiffer
Forum Replies Created
-
Hi Paul,
I just saw it and removed it.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorOctober 8, 2024 at 9:53 am in reply to: jsProgressBar Control – not really controlling progress…Hi Uwe,
You would need to do the assignment of the progress bar in a client side method. The solution is to start with a client side method and then calling the server method that would execute the REST call. Just make sure you do not run the worker on a background thread. So use $run.
Then implement a client side method that has the very same name as the server method but an extension “_return”. This method can then set the value of the progress bar and again trigger the server method. Omnis will automatically call the client method after the server method has been finished if the client method has the same name as the server method with that extension and the original call came from the client. So make sure the buttons $event is also set to client. See also the documentation here: https://www.omnis.net/developers/resources/onlinedocs/WebDev/02jsremoteforms.html#return-methods
I will attach a simple example that demonstrates this.
Hope this helps.
Best,
Andreas
-
Hi Martin,
This would be very scary if a web application would be able to access the local file system of the client without permission.
No – you cannot upload a file in a web application without user permission and this is for a good reason.
Imagine you visit any site on the internet and suddenly your files are uploaded from your machine.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorSeptember 13, 2024 at 2:52 pm in reply to: REST API Client – POST filecalculate iLength as len(iContentChar)
And then add this to the header
Best,
Andreas
-
Andreas Pfeiffer
AdministratorOctober 23, 2024 at 8:29 am in reply to: jsProgressBar Control – not really controlling progress…Uwe,
The reason why you are not able to stop the loop might be because Omnis is busy running the loop and you try to interfere this from the outside.
I would like to recommend a different approach. Let the loop run outside of the remote task, i.e. using a worker, a different thread (if in multithreaded mode) or even on a different Omnis instance. So the task will run completely in the background. This has the advantage that the user can continue working in your application.
Once the task has finished you could then send a push to the client, i.e. making a red button become visible so that the user knows that the task is done and by clicking the button making the result visible.
What do you think?
Best,
Andreas
-
Andreas Pfeiffer
AdministratorOctober 22, 2024 at 7:39 am in reply to: jsProgressBar Control – not really controlling progress…Uwe,
I haven’t tried this yet but you might be able to push a call to the client.
In theory that could do the trick.
Best,
Andreas
-
They are saved in the PDF folder location as you already mentioned. From there you can use the file object as Uwe already mentioned to pick them up again.
-
Hi Martin,
So that means that Omnis does have access to the files already. So why uploading then?
Best,
Andreas
-
Martin,
I am not sure what you mean with “customer statements”. Couldn’t Omnis create those PDF files? In that case they would already be on the Omnis server.
If not, why not creating FTP access and upload the files that way? The FTP server simply needs to be in the same network as the Omnis server or the Web server you are using.
Best,
Andreas
-
Martin,
In general you can upload several files one after another. Just open the sample library in the HUB that shows the file upload. It says: “select files” (plural) when you click the upload button. You can also drag&drop several files.
ok – 5000 files is a very large number of files to be uploaded. I have never tested those numbers and depending on the file size it might take quite a while. So I wonder if there is any other approach, i.e. using an FTP server for this purpose?
Best,
Andreas
-
This reply was modified 11 months, 1 week ago by
Andreas Pfeiffer.
-
This reply was modified 11 months, 1 week ago by
-
Awesome!
Have a great day!
-
For example: add the following to your user.css file:
.omnis-wf-title-text {
background-color:aliceblue !important;
}
-
Hi Martin,
I would think you would need to do this in a CSS class.
Best,
Andreas
-
Yes – you can allow to upload multiple files if using Omnis Studio 10 or later.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorSeptember 30, 2024 at 9:29 am in reply to: Best IDE for Mobile App DevelopmentYes – with Omnis Studio you can create x-platform applications for iOS and Android mobile phones.