I have a log file which is growing as the task progresses. I want to display the contents of this file (like Linux's 'tail -f') on the form to a component (multiline textbox probably).
I am not looking at windows event logs or AllocConsole.
I want to show the progress of the task submitted by the user through a button on the form, on the form itself.
Related
I have an oracle application express process, written in PL/SQL and it fires off a confirmation email, supposedly when you click on the related button, (It is an after submit attached to the button) however, it is firing every time you refresh the page. Is there a different way of doing this so it only fires when you click the save changes button?
Take note of the execution point attribute. It will won't apply to page refreshes if it's either 'Processing' or 'After Submit'.
You can also associate these after-submit processes with specific buttons, using the 'when button pressed' property.
You may also wish to consider the 'Enable duplicate page submissions' page property.
If you're still having issues, you can build a demo at apex.oracle.com, and updated your question.
I have such interactive button I place at the bottom of backend-generated message:
The button click calls the dialog:
If I enter the public URL of an image in the 'URL' field it is successfully sent to the backend and I'm able to update the backend-generated message with an image. But instead of uploading file somewhere and copying it there I'd like to click 'upload image' in the dialog and select file from a disk. Is this possible?
No. Uploading files is currently not supported by Slack Dialogs.
But you could implement it yourself with an upload script that runs in the browser and is called by a link button from Slack. This would work similar to this example for a file download.
The link button is a variation of an message button and has to be placed in a message (e.g. next to your Add note button), but can not be placed inside the Dialog.
Here is the basic outline:
User clicks on "Add image" button in message
Browse opens and runs upload script
The upload script requests the user to specify which file to upload
Script uploads the file (e.g. to your server or Slack) and links it to
the user's request
Things to consider:
You have to link the current session with your script, e.g. by transferring an ID in the link (which might infer security concerns)
This upload function will not be modal like you dialog, so your app needs to be able to handle an asynchronous / parallel upload of files
Check out these pages for more details on uploading files via browser:
What is the best way to upload files in a modern browser
Using files from web applications
I am using a template for adding/editing an event. What I would like to do is be able to add an event but keep the window open and retain the entered data so the user can change a couple of fields and save that other event. There are 2 save buttons, "SAVE", and "SAVE and ADD NEW". The first button will save the entered event and close the dialog window. The second button will save the entered event but will keep the window open, user changes one or more fields, then save that new event (repeat as necessary).
Any advice or pointing me in the right direction is appreciated.
You can try using the "save" event of the Scheduler to make copy of current event and then call the "addEvent" method of the Scheduler with it. Check the Scheduler API below:
Scheduler: API
I am working on a win32/MFC application; in this application I have embedded WebControl on dialog.
when application is launched then it will load web page, in that user will enter some fields and then press submit button.
Once user presses the submit, then server will process that data and displays some unique ID to user.
Now our requirement is, we don’t want to display that unique ID on the web page instead, that web page needs to send that data to our client application(Win32/MFC).
To do this I found a solution:
Calling C++ function from JavaScript script running in a web browser control
is this is the right way to do it or is there any other solution is there.
Please help me to solve this problem
Override OnGetExternal (or if you host in your own window, change your IDocHostUIHandler::GetExternal implementation) and return a pointer to a CComTarget that has an appsubmit method exposed via automation. Change the web page to add an onsubmit handler that calls your method with the value of a hidden field
return window.external.appsubmit(uniqueId);
I've got a communication between client and server. The process is simple:
I'm making an AJAX POST request to a controller which generates a pdf in the file system
On success of the above request a form GET request is made to get the pdf back and the standard browser "save or open" dialog box opens up
The reason I'm having a two step process is because I need to have a progress bar while the pdf is being generated.
The reason of the second request being a form submit rather than part of the AJAX request is because I can't get the standard browser "save or open" dialog box.
The problem with this approach is that IE7 & IE8 pop up a their annoying notification bar notifying the user that the it is dangerous to download the content and I don't want that.
So:
I need the progress bar.
If I go for an AJAX request only I need a way to pop up the "save or open" dialog box.
If I go for the a form GET submit I need a way of knowing when the file has been generated in order to stop the progress bar, something like a shared flag between server and client.
Any help appreciated.
One possible (a little of an anti pattern) workaround is this, but it's not a great design probably
However I've seen this (and admit I did this) before, and except some guilt, it did the trick
user clicks a link that goes to the servlet that generates the PDF and will just wait (timeout settings should be applied) until it's ready... (Content-Disposition header etc...) just like a regular download
The servlet will report progress on a shared session variable while generating the PDF
an AJAX call to the server will read from the session variable the progress and show to the user
when the PDF is done, the browser will just download it (request timeout risk perhaps)
The main issue here is using the request thread as a worker thread and blocking it, which may give this answer a couple of downvotes...
I'm not that familiar with Message Driven Beans but this is another, probably better solution.