Search update

60548 results
2

votes
0

answer

Use Batch Update For Insert

I am using TABLE OUTPUT component in pentaho tool.After i checked 'use batch update for insert' it should run as one single insert statement for over all records. where as insert is happening like one by one insert script which i found using profiler as below, insert into #temp values('a') insert in...
yuvi
1

votes
2

answer

Update ArrayList index in Object

I have an ArrayList with a bunch of MyObject objects. I want to keep an integer field in my object that is the key of this object in the ArrayList, so that I can easy get the position of this element in the ArrayList. This gets a problem when I remove one object from this ArrayList, because the inde...
freakout
4

votes
3

answer

Update Table Using Laravel Model

I've got a table for a sports team. The record shows the team selection and some other information. I want to update the record with the team selection. My model is thus: class Selection extends Model { protected $table = 'selection'; protected $fillable = [ 'loose', 'hooker', 'tight', 'secrow1', 's...
danjswade
2

votes
2

answer

IOS sqlite update query issues

I am very new to IOS programming so I am not quite sure how this issue can be best solved. I have a database of events that are being displayed on a tableview, when you select one of those items, it shows details along with the option to save it as a 'favorite' which just updates a column in the db...
Tag
2

votes
1

answer

Update Inner Join Where MySQL

On table 'tb2' there's column 'date' and key column 'stake_code', linked to table 'tb1'. On table 'tb1' there's key column 'code' and column 'is_customer' I wish to update 'date' field, setting it to '2012-12-02' for every matching 'code' and 'stake_code' key fields, where 'is_customer' condition is...
user3032638
4

votes
2

answer

Corrupt mercurial repository - cannot update

i think ive managed to corrupt one of mercurial repositories, is there anyway to recover the damage? the message i get when attempting to update the repo to my default branch is: PS C:\wco\projects\ims\code> hg up -C default abort: data/Trunk/application/models/[email protected]: no...
richzilla
1

votes
3

answer

Update UI control in Task

Does it right code, if I update my UI controls in task like this? Or it's wrong, and I need use smth like Control.Invoke? private async void button1_Click(object sender, EventArgs e) { textBox1.Text = await Task.Factory.StartNew(() => { Foo(); return 'Completed'; }); } private void Foo() { for (int...
Vlad
2

votes
1

answer

WPF update ContainerStyleSelector style selection

I'm looking for the best way to update a GroupStyle . CS : I Have a GroupStyleSelector (Simplified) : public class CountBasedGroupStyleSelector : StyleSelector { public Style SingleItemGroupStyle { get; set; } public Style MultipleItemGroupStyle { get; set; } public override Style SelectStyle(objec...
eran otzap
3

votes
1

answer

Update step in Fenwick Trees

My question concerns the full reasoning behind the update step in Binary Indexed Trees (Fenwick Trees). As such, when updating our array with a certain increment, at a certain position, the update goes like this: void updateBIT(int BITree[], int n, int index, int val) { // index in BITree[] is 1 mor...
user43389
2

votes
1

answer

update ui from broadcast receiver

I have a MainActivity where i want to update UI after a AlarmManager is called every 2 minutes.. Please help me how to do this This is my MainActivity public class MainActivity extends AppCompatActivity { private Toolbar toolbar; GPSTracker gps; TextView lat1, long1; Button exit, refresh; private Pe...
3

votes
1

answer

Update data in Arabic Language

I would like to Update Arabic data in database. I tried with below code with static data,it is working fine Update db.Country SET (ColumnName)=N'الصين' WHERE ID=1 but now I would like to do it in a dynamic way, so I have taken a parameter @ArCountryName I declared the variable as NVarchar(Max)...
Kalpesh Chaudhari
2

votes
4

answer

SQL Update Query returning error

OleDbCommand cmd = new OleDbCommand('SELECT Stock FROM Products WHERE ID=' + ProductID + ';', conn); //run the database query OleDbDataReader cusReader = cmd.ExecuteReader(); //read the result of the query cusReader.Read(); ProductStock = (int)cusReader.GetValue(0); cusReader.Close(); Mes...
Nic
2

votes
1

answer

Update BitmapImage every second flickers

I am trying to update an image by setting the source property every second, this works however causes a flicker when updated. CurrentAlbumArt = new BitmapImage(); CurrentAlbumArt.BeginInit(); CurrentAlbumArt.UriSource = new Uri((currentDevice as AUDIO).AlbumArt); CurrentAlbumArt.CreateOptions = Bitm...
bl4kh4k
2

votes
2

answer

View update raises ORA-01733

I created a view and then I want to update the cost and show the error. But it reterns that virtual column not allowed. View: CREATE OR REPLACE VIEW CONCERT_EVENTS1 AS SELECT CONCERT.CONCERT_ID, EVENT.EVENT_ID, CONCERT.NAME, EVENT.DATE1 , CONCERT.DURATION, CONCERT.TYPE, TO_CHAR(CONCERT.COST, 'L9,999...
user3045939
2

votes
4

answer

PHP and mysql update statement

I'm trying to create a code that update some of the values in one of my row in the a table. The code works but no as well as i wanted. It changes all values of the rows instead of changing just the one that I wanted to change. For example if i'm trying change the price of one of the items, by fill...
Hernan
2

votes
2

answer

update cell in datagrid wpf

I have an invoice program that keeps track of items selected that the customer may want to buy. every time that the 'add item' button is pushed, the QTY cell increments. The problem im running in to is that the value is getting upgraded in the background, but is not being changed in the cell itself....
Doctor06
2

votes
0

answer

SQLAlchemy Update or Insert Function

New to using SQLAlchemy and ORM in general. I have a function I would like to call on an object and depending on whether or not an existing id has been passed to the function INSERT or UPDATE the DB. def storeFoo(self,session,FooObj=None,Fooid=None): if Fooid: Foo = session.query(ConfFoo).\ filter(C...
BillPull
2

votes
1

answer

Update scope value inside service

I have the following controllers in my app: Main controller: app.controller('AppCtrl', ['$scope', function ($scope) { $scope.app = { amount: 0 }; }]); Child Controller: app.controller('ChildCtrl', ['$scope', function ($scope) { var timeLoop = function (amount) { $timeout(function () { $scope.app.amo...
Arsen Babajanyan
2

votes
2

answer

Insert Or Update in Android

I have a method like that private void addDataToDailyStatisticsIncome(String date, String money, int idUser){ Cursor res1 = db.getDataTableDailyStatistic(idUser); int temp = 0; int money1, money2; res1.moveToFirst(); while (res1.moveToNext()) { if (date.equals(res1.getString(1)) == true) { temp = 1;...
37

votes
2

answer

Update statement using with clause

I have a script that uses a stack of with clauses to come up with some result, and then I want to write that result in a table. I just can't get my head around it, could someone point me in the right direction? Here's a simplified example that indicates what i want to do: with comp as ( select *,...
gjvdkamp
6

votes
2

answer

Unable to update JToken value

I'm trying to update the value of JToken but its reference is not getting updated. JSON string: { 'Title': 'master', 'Presentation': [ { 'Component': { 'Content': { 'Title': 'Set New Title', } } } ] } and the usage is given below JObject jo = JObject.Parse(File.ReadAllText(file.json)); foreac...
Balaji
2

votes
2

answer

xcode : update icon badge daily

I looked at many pieces of codes but didn't get solution yet, I simply need to get my app icon badge updated daily with some calendar (not gregorian) number of the day. How can I do that?
hafedh
2

votes
1

answer

f:ajax does not update ui:repeat

My JSF page is like this, The part does now work. Price: $ My bean is: @ManagedBean(name = 'category') @SessionScoped public class CategoryServiceBean extends BaseService implements Serializable { private static final long serialVersionUID = -12082902292711980L; private Integer categoryId; pri...
bluelabel
3

votes
1

answer

CEX order book market update

I am trying to use cex.io API to construct a live order book, but I am struggling understanding the message from the API. I am subscribing with the following JSON: { 'e': 'order-book-subscribe', 'data': { 'pair': [ 'BTC', 'USD' ], 'subscribe': false, 'depth': -1 }, 'oid': '1435927928274_3...
nyounes
2

votes
2

answer

ASP.NET TextBox ignores update panel

I have a GridView with a item template defined like: public class ToolLogTemplate : ITemplate { public String DataField { get; set; } public ToolLogTemplate(String column) { DataField = column; } public void InstantiateIn(Control container) { var textBox = new TextBox(); textBox.ClientIDMode = Clien...
InTheFlatField
2

votes
0

answer

SonarLint: update all bindings issue

Updating all project bindings on the SonarQube server view (by right-clicking and selecting 'Update all project bindings') gives the following error: Failed to update binding for 2 project(s) Unable to update binding for project 'GRSP' Unable to move C:\Users\Charlie\workspace.sonarlint\work\SonarQ...
CharlieB
4

votes
0

answer

GTFS major vs minor update

We are downloading new GTFS (basically zip of CSV files) data from multiple sources each day to see if an update has been updated. Right now, we just check if the zip themselves are different, and update if they are different. The thing is, on some sources, the GTFS is changing each and every day....
gcamp
2

votes
1

answer

Update component view from service?

I am looking to create a PopoverService that I will then use to display a popover from another component. My question is, how do I update a component's view from a service? Ultimately I would like to be able to inject a component into the popover to show any data that I need next to a clicked elemen...
myzaree
2

votes
0

answer

pthread_mutex_t deadlock after package update

we are using pthread_mutex_t to protect a shared memory accessed by different processes. After the recent update of glibc (https://sourceware.org/ml/libc-alpha/2017-02/msg00079.html) the code did stop to work, resulting in a deadlock of every involved process. To put things in context: The code is...
Trevir
3

votes
2

answer

Update programmatically xml with C#

i try to update xml without linq (i am using VC 2.0). My xml file format: 0 yusuf 0 AFTER UPDATE: 0 yusuf 1 but i do not have any idea update status =0 to status =1
Penguen
2

votes
1

answer

Merge or update persistence objects

I've got a hibernate interfaced mysql database with a load of different types of objects, some of which are periodically retrieved and altered by other pieces of code, which are operating in JADE agents. Because of the way the objects are retrieved (in queries, returning collections of objects) they...
nowaycomputer
2

votes
0

answer

Highstock dynamic update issue case

Expected behaviour I hope to let the chart also dynamic update when I drag scrollbar and it is not in left boundary or right boundary. Thanks for your help. Actual behaviour It is a Stationary state when I selected a range via scrollbar and it is not in left boundary or right boundary Live demo with...
Kenny Zhou
2

votes
0

answer

How to update applicationhost.config programmatically

During the deploy to production we have to add a number of additional entries to the application's web.config, for example adding subkeys to system.identityModel/identityConfiguration/audienceUris, which is declared at the top of the web.config file as In an ideal world we would do this using conf...
Stephen Connolly
2

votes
0

answer

Influxdb howto update tag values

I would like to do a query like this: SELECT max(value) as value, 'counter' = 'countergasconsumption' INTO 'home'.'1month'.'test' FROM 'telegraf'.'autogen'.'mqtt_consumer' WHERE time > now() - 11d AND 'topic' = '/utilitiesmonitor/countergasconsumption' GROUP BY time(5m) I already have data with the...
neographikal
2

votes
1

answer

PostgreSQL: UPDATE row if exists

I need update row in the table only if row exists. UPDATE table1 SET ctime = now() WHERE id = 112233; Or with select before IF EXISTS (SELECT 1 FROM table1 WHERE id = 112233) THEN UPDATE table1 SET ctime = now() WHERE id = 112233; END IF; Which query better to reduce write operations? For performanc...
Dmitry
2

votes
2

answer

Save Data before Auto Update

When an automatic update occurs, the old date save in the preferences for my app gets delete. How can i prevent this deletion? I want that when my app auto updates , it does not delete my old data saved.
Noman
4

votes
3

answer

How to update via RequestContext

I am trying to update a table by using RequestContext.update() The following code is working (jsf):
angus
1

votes
2

answer

Conditional update for MongoDB (Meteor)

TLDR: Is there a way I can conditionally update a Meteor Mongo record inside a collection, so that if I use the id as a selector, I want to update if that matches and only if the revision number is greater than what already exists, or perform an upsert if there is no id match? I am having an issue w...
matfin
-1

votes
0

answer

Update parameters db - PHP [duplicate]

This question already has an answer here: How to display errors for my MySQLi query? [duplicate] 3 answers Reference - What does this error mean in PHP? 31 answers I know the resolution is very simple, but today I just can not work well. So I ask the community for help, for a super simple resoluti...
A.M
8

votes
1

answer

Should I update GeoLiteCity.dat periodically?

Logstash can make use of a bundled GeoLiteCity.dat database for IP address geographical lookups. Is this database the same as the one provided by MaxMind? MaxMind updates the database on the first Tuesday of every month. Would it be smart to set up a job to auto-refresh the database instead of waiti...
Larry Silverman