Good day,
Im new to R studio and still learning,I get data from SQL with a query now I want the query to run in the background automatically so that the shiny app have the latest data at all times how to go about that
Try to use invalidateLater. Just place it in some reactive context, which you want to be refreshed, and set the time in milliseconds. After the time the reactive will invalidate itself and the results will be refreshed.
Related
I'm banging my head against the wall with this one.
I'm trying to build an ASP.NET Web API OData service for a customer. The data returned comes from a SQL Server stored procedure that returns data with different structure every time (the columns may change on every execution).
I tried to do it with an entities model but of course - the whole point of EF is a pre-known data model and I found it impossible to get it to work.
I also tried using ADO.NET - get the stored procedure's data using a SqlDataReader and building a DataTable object with the columns (that change every time the stored procedure is executed) but I keep getting configuration errors, http errors and it looks like I'm not getting it right. Getting the stored procedure data worked but something with getting the data to be returned to the OData client doesn't work properly.
Google for several hours and tried several approaches but nothing works. I'm using Visual Studio 2013 (maybe it's too old a version?)
Did anyone succeed in getting variable structured data to be returned from a Web Api OData controller? Any sample projects that show how to do it?
My client is Excel (importing from an OData feed).
I'm trying to add a new Parameter called CorporateIdentity to the SalesInvoice report in dynamics. I've added the parm***() method to SalesInvoiceContract and compiled the Contract, the Controller and the DataProvider forward.
But I can't get the parameter to show up in Visual Studio. I've tried refreshing the DataSources. I've tried deleting and recreating one of the DataSources. I've tried to create the Parameter manually.
How can I get this parameter to show up?
The answer was to perform an incremental CIL. Some other things to try are listed below.
Have you performed an incremental CIL?
Did you try refreshing your caches (Tools>Caches, just do all of them)?
Try restarting the AOS service and the SSRS service.
Is your WCF data up to date in your AXC file?
Try clearing your usage data and AUC/KTI files.
There are all sorts of weird things to try, but I listed them in order of what I would try ... no need to do them all if one step works.
When using the old big query UI a dataset can be shared as in this question.
How can this be done using the new UI?
Now you can share a dataset in the new UI. Click a dataset, click "Share Dataset", and then configure the desired permission (use the "Viewer" permission to allow the person to write and run queries on the data).
-Michael (PM for BigQuery)
I don't think it is supported in new UI yet
It is not!
See current limitations:
The beta release of the BigQuery web UI is subject to the following limitations
Currently, you cannot use the BigQuery web UI to:
• Work with the BigQuery Data Transfer Service
• Assign access controls to datasets
• Create a table protected using customer-managed encryption keys (CMEK) (you can still work with existing tables that were protected using a CMEK)
• View a query's explanation plan while the query is running
• View the query execution timeline
• Navigate between the first and last page of query results
• Display the pricing warning when you run a SELECT * SQL query
• Add, edit, or delete labels for BigQuery resources
• Share a saved query
• Sort or filter your job history or query history
I'm updating my Windows Phone App to Mango and starting to use SQL Server CE. I can insert and select data but am struggling to understand how to update data.
Most of the examples are basic tutorials and only show inserting and retrieving data not updating. I believe I need to attach a class I have retrieved to the data context but that is as far as I have got.
Please can someone point me to an online tutorial showing how to do this. Or some example code would be great.
Thanks.
UPDATE
Basic updating looks fairly simple - query the database, update the object, call SubmitChanges.
My scenario is a little more complicated.
I have a page showing a list of jobs. A job (JobDetail) is selected and another page is used to edit the details. The job is written to a cache (another table JobCache) while the job is edited. If the user cancels the edit the cache is deleted. If the user saves the edit the JobCache object is pulled from the cache, converted to an object of type JobDetail and now I want to update the database with the new JobDetail object.I don't think I can just call SubmitChanges as the object was not generated from a query. I believe I need to somehow use Attach to do this. The question is how?
Why not get the original JobDetail object, update the changed properties from the cahced object and call SubmitChanges ?
I am working with ASP.NET MVC 3.0. I have a page with an action link that makes appear a window in which you can adjust a certain value. Once the new value is sent to the database, an extern application deals with the value and send the result back to that database. I want the action link to be disabled while the extern application is doing her job. The page I am working on is refreshing automatically with some AJAX calls. The date when the extern application finished her last adjustment on a value is kept in the database. I first thought I could use session variables to store the date time of when the action link was pressed (because I need it through all the application) and then enable the action link when the adjust time is greater than the time when the action link was pressed, but I heard it was bad practices. Does someone have another solution?
Since you are already using the database - query the database to check the current status. If your application is restarted - a session value would be lost unless you are using a state server (ie sql server) to manage state- unless you don't care if its lost upon restart. You can use session and save yourself database calls - but the database is a bit cleaner and doesn't suffer from the same issue. If you do end up using the session, don't spread that session value all over your code, simply have a single method that reads or sets it (same with the db solution as well)