Please find below function which gets called before start installation process.
I want have function to create system restore point before start installation process.
Now whats my functionality works perfect, but the UI gets freeze.
i want to show marquee progress and UI should be resposive but after reading lots of article, i am unable to find any useful.
function PrepareToInstall(var NeedsRestart: Boolean): String;
var
WasVisible: Boolean;
begin
// show the PreparingLabel
WizardForm.PreparingLabel.Visible := True;
WizardForm.ProgressGauge.Style := npbstMarquee;
// set a label caption
WizardForm.PreparingLabel.Text := 'Creating system Restore Point...';
CreateSystemRestorePoint();
WizardForm.ProgressGauge.Style := npbstNormal;
end;
Please help me on this, you answer can help me a lot.
Many Thanks.
Related
I can't seem to make my watch WidgetKit complication to show while the device is locked. This is done in the weather complication and can be seen if you take off your watch and set it down, but my widget is redacted until unlocked.
I tried adding .unredacted to my root widget view but same behaviour. Is this something I can do from the app code or is this only controlled by the user? I don't remember setting this on the weather complication so I thought it set itself as public which is what I would like to do. It is not clear how to achieve this in the docs.
I found a hint to the solution in this post. Since I did not completely understand it, I tried some ideas and found a working solution for a single widget. An extension to multiple widgets in a widget family should work accordingly.
#main
struct ShopEasy_Widgets: Widget {
let kind: String = "ShopEasy__WidgetKit_Extension"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
ShopEasy_WidgetKitsEntryView(entry: entry)
.unredacted()
}
.supportedFamilies([.accessoryCircular, .accessoryInline, .accessoryRectangular, .accessoryCorner])
}
}
Did you already implement WKSupportsAlwaysOnDisplay? If not, ensure that you have done so. I believe it takes a boolean value. If you have already done so, I have seen that specifying whether or not each section of your complication as either .unreadacted or .redacted can help to solve this issue.
On my DML form I have a delete process that calls a PL/SQL function:
DECLARE
err_code NUMBER;
BEGIN
my_package.delete_record(id => :P2_ID,error_code => err_code);
IF NVL(TO_NUMBER(err_code),0) = 0 THEN
apex_debug.message('Record deleted');
apex_application.g_print_success_message := 'Record deleted';
END IF;
END;
Somehow apex_application.g_print_success_message does not get set and displayed even though everything else works as I see a debug message being written. Can anyone help my figure this one out? Could it be because I have multiple processes on the page?
Check for the process point of yout page process, the success message won't appear on a "Before Header" process point.
If that doesn't help, check out the apex.message API.
apex.message.showPageSuccess( "Record deleted" );
Only the last assignment are shown.
So check if you have an empty assignment to it somewhere else.
apex_application.g_print_success_message:='';
Also see if you by any chance have filled in a space in one of the page processes "Success Message"
Updating that variable directly is not supported.
You can define a hidden item, set that within your processes
:P0_MY_HIDDEN_ITEM := 'Process outcome';
Then include the following in the success message attribute to your final process.
Errors can be added using apex_error package.
In my shiny webapp I put some conditionalPanel in various tabPanel like this:
On UI side:
tabPanel("Loading & parsing samples",
actionButton("runLoad"),
conditionalPanel(
condition = ("output.load_panelStatus"),
h3("Push to get some summaries of the samples loaded"),
...)
)
On server side
observeEvent(eventExpr = input$runLoad, {
...
output$load_panelStatus <- reactive({input$load_panelStatus=="show"})
outputOptions(output, "load_panelStatus", suspendWhenHidden = FALSE)
print("Parsing process ends")
output$console_output_pre <- renderPrint("parsing process ends")
})
Strangely enough this worked perfectly up to some two days ago but now (even when I test it on my old source versions) I have to press twice the runLoad button in order to let UI showing the remaining of the output (the h3("") statement and all the rest of the output ...).
In the meantime I only performed only some package update but nothing that should affect the shiny app... (at least I guess)
I wander if somebody else has met recently this type of problem
The problem was on shinycssloaders. The new version 0.3.0. does not work properly
I am running RStudio on a server and I created a RMarkdown (.Rmd) file. It works fine if I create it as a static HTML but it does not work if I want it to be interactive (by adding runtime:shiny).
The issue is that when I add runtime:shiny and press the Run Document button the application will try to open at 127.0.0.1:xxxx (here xxxx is a random port). In order to make it work I would have to be able to change the host parameter to '0.0.0.0'. This is an option in the runApp function from the shiny package but I don't know how to add this option in RMarkdown.
Can anyone help me with this?
Thank you.
The ::run command from rmarkdown invokes shiny::runApp internally. You can set the option shiny.host before running the document:
options(shiny.host="0.0.0.0")
rmarkdown::run("myfile.Rmd")
You an also pass arbitrary paramters to runApp, so this should work too:
rmarkdown::run("myfile.Rmd", shiny_args=list(host="0.0.0.0"))
Neither of these will work with the Run Document button; that button starts a new R session in which to render the document. To change the shiny.host option in that session, you'll need to add the option to your .Rprofile.
Set the default values you want to initialize in (~/.Rprofile) under user directory
Sys.setenv(TZ = "UTC") # for Timezone
options(shiny.port = 9999)
I am developing extension for Firefox 3.0-3.5 versions using VS2008.
I want to set attribute to a tab once the document load request completes within that tab window.
So in OnStateChange method, I am checking for document load.
I have used STATE_STOP & STATE_IS_DOCUMENT for it.
I want to determine which tab window has been associated with particular document request.
I have valid DOM Document pointer got from nsIWebProgress *aWebProgress which is 1st input
parameter of OnStateChange.
if ((aStateFlags & STATE_STOP) && (aStateFlags & STATE_IS_DOCUMENT))
{
nsCOMPtr<nsIDOMWindow> domwin;
nsCOMPtr<nsIDOMDocument> domDoc;
aWebProgress->GetDOMWindow(getter_AddRefs(domwin));
domwin->GetDocument(getter_AddRefs(domDoc));
}
I have tried to get nsIDOMDocumentXBL pointer by QIing nsIDOMDocument pointer(domDoc in my example) but it fails with Error code 0x80004002 (2147500034) i.e.NS_ERROR_NO_INTERFACE.
How do I get the tab element corresponding to document load request.
Could any one please help me?
Thanks in Advance,
Vaibhav D. Gade.
IF I understood the question correctly and you want a for a content window, you probably need https://developer.mozilla.org/en/Working_with_windows_in_chrome_code#Accessing_the_elements_of_the_top-level_document_from_a_child_window to get the chrome window, then run the implementation of gBrowser.getBrowserForDocument in the chrome window.
You'd save yourself a lot of time if you stopped writing C++ and switched to JS for such things.