Search update

60548 results
3

votes
2

answer

Force WooCommerce to update fragment

I created plugin which uses WooCommerce fragments for showing to user how many points they have. When user uses some of the points (by adding product into cart) everything works ok. But when admin adds points to user by admin-interface, the fragment is not updated until user adds a new product into...
Jan Herzán
2

votes
2

answer

Facebook API: Update Group Description

Does anyone know how to update Facebook Group information using the API? I want to push some information to the facebook group (if the admin is logged in to my site).
Rob McCann
2

votes
1

answer

MongoDB - .update() vs .findAndModify() error

The following is more of a question out of curiosity. I'm currently running a script that updates each user in my database by pushing an ObjectID reference to into an array within the user schema. From my understanding, there is little difference between the .update and .findAndModify commands in Mo...
robinnnnn
52

votes
8

answer

Can't update: no tracked branch

I am on Android Studio (Preview) 0.6.0 on Windows and was trying to share my project on GitHub. I used Git Shell to initialize, add, commit and push the project to GitHub. But when I tried to update my project from within Android Studio , I got this error: Can't update: no tracked branch No tracked...
Prince
2

votes
3

answer

update laravel database by ajax

Question How can I update only 1 column of my table with Ajax using checkbox? Explanation I want to use checkbox and update my active column, the value will be either 1 or 0. If checked value is 1 otherwise 0. Codes html data-name is name of my column data-id is my row id controller function public...
mafortis
1

votes
2

answer

Dynamically update input to Geoserver

I am hoping someone can help me on this one as i have been trying to find the solution for a long time without success. I have a polygon shape-file which i am displaying on browser using geoserver . I have color-coded the polygons (by creating an SLD file) based on the values of one of the attribute...
jps
2

votes
2

answer

db doesn't connect or update

I'm new to blackberry and I have a problem with a SQL connection: When I'm trying to execute a Query on a db I have and error from c++ but, when I consume the method from QML it works like a charm. so the thing is here: /* Copyright (c) 2012 Research In Motion Limited. * * Licensed under the Apache...
Pedro Teran
3

votes
4

answer

ASP.NET sessionID will not update

I click on refresh button which should restart session: protected void btnRefresh_Click(object sender, EventArgs e) { HttpContext.Current.Session.Abandon(); HttpCookie mycookie = new HttpCookie('ASP.NET_SessionId'); mycookie.Expires = DateTime.Now.AddDays(-1); Response.Cookies.Add(mycookie); LblSess...
Darcy Q
5

votes
1

answer

Update textarea rows via Angularjs

I want to adjust the number of rows in a textArea on focus on remove them on blur. In addition upon focus I want to show a hidden div layer. My current solution is As you can see from above I have to use two attributes, i.e. HTML onfocus to increase the rows and ng-focus to update isVisible (to sho...
Barry
2

votes
1

answer

C# update object in list

I have a repository with a public List list; Is it not possible to get an item with linq like this and just update/replace the whole object so the object in the list is updated globally right away? ... var item = list.SingleOrDefault(m => m.Id== viewModel.Id); if (item != null) { item = viewModel; }...
stibay
2

votes
2

answer

Update duplicate fields in table

I have table with about 100000 records.I need update same fields like this. For example this is my table id name 1 sss 2 bbb 3 ccc 4 avg 5 bbb 6 bbb 7 sss 8 mmm 9 avg After executing script I need get id name 1 sss 2 bbb 3 ccc 4 avg 5 b...
cosset
2

votes
0

answer

ajax data variables don't update

Hi there sorry for the basic problem (I'm very new at this), but I was making an insert data for a database through a map API using jquery and ajax. The thing is in the $POST function the latitude and longitude doesn't update in the submit(or post) 'event'. I know the variable coordenada updates whe...
1

votes
1

answer

Strange Update clause error (VB.NET)

I'm experiencing a really strange error. I have a table with only two columns (User and pass , both with text type). The program asks first, what column I want to modify. With a radio button , I point which column I want to modify. By pressing any radio button, two text boxes appear . You have to e...
TwoDent
7

votes
1

answer

Android application self-update [duplicate]

Possible Duplicate: Android: install .apk programmatically I need to update my android application. Internally the program, I download the new version. How can I replace the current version by that new was downloaded (programmatically)? URL url = new URL('http://www.mySite.com/myFolder/myApp.apk');...
nonickh
29

votes
2

answer

Unsatisfiedlinkerror with Android 5.0.1 update

I use Android Studio and debug applications on an HTC One M8. I updated the phone to Android 5.0.1 last night. Edit: Recently puchased a Nexus 9 and the same issue is occuring. The first time I tried to run the app, the gradle builds without issues, but I now get a runtime error. I've researched...
Josh Janvrin
11

votes
5

answer

cannot update view.layer.frame in viewDidLoad?

I am trying to execute following code in viewDidLoad method of my single view controller project: self.view.layer.frame = CGRectInset(self.view.layer.frame, 20, 20); But it does not give the desired inset. However other UI changes i make in the same method do work e.g self.view.layer.backgroundCol...
dotnetcoder
5

votes
2

answer

Azure Table Update Concurrency Issue

I am trying to update a user credit / count information against each transaction. If we hit more than 2/4 transaction per second the update below is not updating the counts / user credit information. Two Issues basically. Update not happening sometime with NO, Error Message. Update failing with Err...
Mark
2

votes
2

answer

Update record if it exists

I'm new to EF, and I'm trying to understand the best way to handle inserting and updating data. Just for some context, I'm using the .net mvc website boiler plate, and I've created a customers table with a 1:1 relationship to aspnetusers. I've created a view to manage customer data. Here is my Http...
Chris Jenkins
4

votes
1

answer

mongoose pre update not firing

I have follow the directions in mongoose here PostSchema.pre('update', function() { console.log('pre update'); console.log(this); }); it is not firing this middleware. Am I missing something here? I have added next so it looks exactly like my pre save, however that still does nothing.
gmaniac
4

votes
1

answer

'AND' in mysql update query

I ran the following query on mysql by mistake, and mysql ran it without error: UPDATE table SET col1='value1' AND col2='value2' WHERE ID='id' Thie query should have been UPDATE table SET col1='value1', col2='value2' WHERE ID='id' So my question is: what did the first query with the 'AND' actually do...
user456137
48

votes
7

answer

MySQL - UPDATE query with LIMIT

I want to update rows in my table with starting from 1001 to next 1000. I tried with following query: UPDATE `oltp_db`.`users` SET p_id = 3 LIMIT 1001, 1000 This is giving me syntax error. Is this correct? am I doing any mistake here. Can we limit update in this way? Also, the rows that I am trying...
srahul07
2

votes
2

answer

JavaScript Update multiple object properties

I have this code below that finds the index of specific object using findIndex method and Update object's name property. Is there anyway i can update mutiple object's name property? E.g. var rofl = ['0']; // Instead of ['0'] how do i update multiple object by putting var rofl = ['1','2','3']; let m...
Best Jeanist
1

votes
2

answer

Update UI Asynchronously in Android

I have a webservice call which is called every 10 seconds and should update a TextView with the webservice reply(or atleast show a toast message every 10 seconds) But the UI is not getting updated at all. Please find the code below. public class MessagesRequestActivity extends Activity { /** Called...
Chandra Eskay
5

votes
3

answer

auto update view in backbone.js

I use backbone.js and have a model without a collection. In the view I call fetch on the model with a callback to render the view. this.user.fetch({success: function(d) { self.randomUserView.render() }}) how can I make the view update automatically when the model change? e.g. I don't want to specify...
Yaron Naveh
6

votes
3

answer

How to update posh-git

I have an old version of posh-git that I want to update (while trying to solve slow powershell start ups) I've pulls latest from the repo and when I am trying to do .\install.ps1 I get It seems posh-git is already installed... How do I update posh-git?
Nick Ginanto
2

votes
1

answer

JSON Grail Groovy Update SQL

Using a Groovy script with grails and want to do an update to a record in the database. I do the basic get the object from JSON and convert it to the Domain class and then do save() on it. From what I understand since I am new to Groovy and grails the save should update if the 'id' is already ther...
JPM
3

votes
4

answer

conditional update on same column

Pl find code below SQL> desc aaa Name Null? Type ----------------------------------------- -------- ---------------------------- ENAME VARCHAR2(1) SQL> select * from aaa; E - 2 2 2 5 5 5 5 7 rows selected. I need...
Pravin Satav
6

votes
2

answer

Mongoid Batch Update/Upsert Alternative?

I know that Mongoid v3+ supports batch inserts via Model.collection.insert(). However, I don't think it supports batch updates where the attributes differ for each record (so I don't think update_all would work either). Is there a way to do batch update/upsert instead of a single-record lookup & upd...
Dean
2

votes
1

answer

Update document doesnt work right

I am using the code below to update a MongoDB document: foreach($jArray as $value){ $tablename = $value['tablename']; $ean = $value['ean']; $amount= $value['amount']; $new_data = array( '$set' => array( 'inventar' => array( array ( 'ean' => $ean, 'amount' => $amount ) ) ) ); $collection->...
Piet
2

votes
1

answer

MonoTouch Update Beta Chan / mono_handle_native_sigsegv

My app crashes on my device with the exception mono_handle_native_sigsegv I read that this is fixed in 5.1.1+ betas. How can I update my MonoTouch to 5.1.1+? Currently Im using MonoTouch 5.08 and MonoDevelop 2.8. I dont see the option to update on beta channels. Thanks
DarthVadar123451
2

votes
1

answer

Update Datagrid when ItemsSource changes

I have gone through many forums to find a solution for my problem, but I didn't find the appropriate solution. I have a Datagrid that is bound to a Datasource (MS SQL Server 2008) following the MVVM pattern. I have bound the ItemsSource to an ObservableCollection and implemented the INotifyProperty...
demo_user
7

votes
5

answer

update Informix table with joins

Is this the correct syntax for an Informix update? update table1 set table1.code = 100 from table1 a, table2 b, table3 c where a.key = c.key a.no = b.no a.key = c.key a.code = 10 b.tor = 'THE' a.group = 4183 a.no in ('1111','1331','1345') I get the generic -201 'A syntax error has occurred' message,...
user867621
2

votes
1

answer

Update array query in Codeigniter

I am making pharmacy system using Codeigniter. I want to update stock of several items in table after purchase, below is the code what i have tried so far. Below is the my Controller function add_invoice(){ $customer = $this->input->post('customer'); $date = date('Y-m-d',strtotime($this->input->pos...
Ria W
6

votes
1

answer

Yii2 required validation on update

I've Yii2 form containing form fields depending on action of page. Ex. Few fields appears when then action is create and few appears when action is update. I want to add required validation based on this scenario. Ex. I am showing this field only when action => 'update'. Now I want to add required v...
Sky
2

votes
1

answer

DQL Update Set ( Doctrine 1.2 )

i'm trying to update a row in a mysql db. I'm getting some problem and i'm new in doctrine (1.2 unfortunately) dql, i guess i`m getting an error because of the 'sets' part, but i dont find the corret way to do it anywhere... $q = Doctrine_Query::create() ->update('OfferUser') ->set('price_alone', $...
R01010010
4

votes
1

answer

serverless update check failed error

I want to intsall serverless on my kali linux . In order to proceed for serverless installalation we need node js install , which i have already done . [email protected]:~# npm --version 3.10.10 [email protected]:~# node --version v6.10.0 [email protected]:~# nvm --version 0.31.0 (Some solutions on github suggested to i...
Sandip Kumar
2

votes
1

answer

Multi-path update with Firestore

Everywhere I read about Firestore it is stated that it requires less denormalization than Realtime Firebase. I guess this is because it is a document database where you can point at specific documents and only retrieve that amount of data (?). However, I wonder how to manage a situation where denor...
b-fg
3

votes
1

answer

Update an App With Three20

I'm making a new version of an app that use Three20. I have made the decision to stop using Three20 and passing to another lib to make a PhotoGallery. I already know that manual deleting of the Three20 lib isn't an easy operation... So i'm making a new Xcode project with the same bundle identifier f...
Cri1682
2

votes
2

answer

Update UI in app switcher

How can I update my app's UI when it is shows in the app switcher, specifically at that second. I have watched the WWDC video 'What's new with Multitasking' but their approaches were always updating the UI in response to new information or based on an amount of time that passed. I redraw a part of m...
Kevin
2

votes
2

answer

Conditional update statement in Oracle

I have a problem with building a conditional update statement in Oracle. For understandability, I'll simplify the problem and basically my update statement should look like this: UPDATE SAMPLE_TAB1 t SET t.sample_column1 =NVL(t.sample_column1, **SOME LOGIC**); The ***SOME LOGIC*** part should look...
Dimuthu