Search update

60548 results
1

votes
1

answer

After Update Trigger puzzlement

I am trying to get my head round an AFTER UPDATE trigger. Currently in our DB there is a Trigger that contains a cursor. From my understanding cursors in triggers are generally bad performing, so I'm trying to get rid of the cursor. Currently the trigger looks like this: ALTER TRIGGER [dbo].[trg_Tas...
MrDaveM
1

votes
2

answer

update nested schema express

I have a problem when I want to update my nested objects in express. Here is my code: .put(function(req, res) { Place.findById(req.params.place_id, function(err, place) { if (err) res.send(err); if (typeof req.body.zip !== 'undefined') { place.zip = req.body.zip; } if (typeof req.body.loc !== '...
Paxi
1

votes
2

answer

Database file doesn't update

I have created a Windows Forms application that is supposed to add a new record into a database. Now, it adds it successfully and the new data can be used... but when I close the application and start it again, the application acts as if nothing has changed. The database was created in SQL Server an...
user2566482
1

votes
1

answer

Update Language Resource

I am trying to update the language items. Example: Application started to develop 10 language items are set in default language (English) New language is added (German) All 10 language items in German becomes to be translated Application becomes any update in development 20 new language items are...
Nasenbaer
1

votes
1

answer

Select and update SQL

I am extracting data using the query below, which pulls about 200 users. Select users.user_id, users.first_name, users.last_name, user_profiles.role, user_profiles.last_modified, user_profiles.last_modified_by From users Inner Join user_profiles on user_profiles.user_id = users.user_id Where proj...
SqlNovice
1

votes
1

answer

MongoDB “$or” update

I have some code that deletes multiple objects from Mongo using an $or opperator, or at least it should. This code illustrates basically what my app is doing lookup = [] listofids = ['4e86fee56607f2a8a2000002','4e86fee56607f2a8a2000003','4e86feeb6607f2a8a2000006'] for id in listofids: lookup.append(...
Smudge
1

votes
3

answer

Update URL parameter

I have the following string: http://www.website.com?a=111&b=2222&d=3333 How can I take this string and update the b parameter value with 4444?
amateur
1

votes
2

answer

Android Market Update Comment?

When downloading and installing updates from Android Market, you often see an update comment like version 1.2.14 Bugfix on... version 1.2.15 Added settings menu and so on. How is that comment made? I couldn't see a update comment field in the market today. Thanx for listening!
Benny Skogberg
1

votes
2

answer

Create or update record

I want to check by an unique ID whether a record is already created. If it is, I want to add 1 to the amount attribute. If it is not, I want to create it and set the amount attribute to 1. I already have this: #@have = current_user.haves.create_or_update_by_id(params[:have]) but I'm not quite sure h...
pgrosslicht
0

votes
1

answer

Update UIProgressView from network

I use Xcode 10 and Swift 4.2 in viewDidload () of a UIViewController, I declare an observer: override func viewDidLoad() { super.viewDidLoad() NotificationCenter.default.addObserver(self, selector: #selector(OtherFunctionsViewController.dataImportExportFunc), name: .ImportExportdata, object: nil) }...
La Ciste
4

votes
3

answer

jCrop - update preview onload?

I am using the jCrop preview demo to do my own thing. However I have run into a problem. If I create a default selection when the image loads using setSelect: then I have the selection mapped out on the big image but it doesn't appear on the preview. I cannot find an api handler to call the updatePr...
JasonS
2

votes
1

answer

WooCommerce Price Update

I am creating a WooCommerce booking site like: 'On the single product page, the base price is $400, when the user chooses a date, the price will then be updated, for example the user chose December 1 which has additional $50 charge, the total price would then be $450.' Now, my problems/questions wou...
Romee648
1

votes
2

answer

Gridview update not working

When i click on EDIT button in Grid, it amke all fields editable and provides two options(Update and Cancel). In this Grid, there are two dropdownlists, 3 calenders and some textboxes. If i click on update then all the textbox values updated in the database, but all other fields(dropdown and calende...
CodeXerox
1

votes
1

answer

Jenkins - NPM update failed

I am getting some error around NPM update while trying to build the code in jenkins. All the dependencies in package.json file is already present in private repo. Running npm update in /var/www-etc/etc/releases/source/2018012599999 npm ERR! Linux 3.13.0-139-generic npm ERR! argv '/var/www-etc/.nvm/...
MohitKgec
1

votes
1

answer

Update cookie after authentication

Ours is a web application. The security team has suggested us to change cookie upon every escalation in the authorization. Accordingly, I wanted to update the client side cookie after authentication. And I used the below code: System.Web.HttpCookie cookie = Request.Cookies['ASP.NET_SessionId']; Syst...
Abhishek
1

votes
1

answer

MongoDB: Update all fields

Is there a way I can update every field in a MongoDB document without just listing all the fields, which might change later? Something like this? db.update( {foo:'bar'}, {$unset: {{}:''}} )
Qaz
2

votes
2

answer

Oracle SQL Update set

I am trying to update a column with a count (+1) based on a column in the same table matching that of another, I have tried below: UPDATE table1 p SET (p.f_dup_count)= ((p.f_dup_count) + 1) WHERE (SELECT a.f, p.f FROM table2 a, table1 p WHERE a.f = p.f AND a.a_id = p.a_id) This currently results in...
adzmet1
17

votes
6

answer

SQL update undo

Is there a way we can undo a SQL update query?
Balaji
3

votes
1

answer

Sitecore update renderingreference

On a Sitecore 8.0 project I'm currently trying to programmatically update the datasource of a RenderingReference. Due to earlier decisions the datasource of renderings are not based in Id but on path. With the following code im getting the rendering references, and updating the Datasources correctly...
Thomas
2

votes
1

answer

mysql, update foreach category

it is a really simple question. it is only 1 table! i have a table of books which each book have a category and a number. SO I WANNA TRANSFORM THIS +--------------------------+ | book_id | category | num | +--------------------------+ | 1 | a | 7 | | 2 | a | 5 | | 3...
yokata
2

votes
1

answer

Update index algolia

I'm using Laravel 5.5 with Scout. I have an index in algolia using Documents and the users associated with theses Documents class Documents extends Model { use Searchable; public function toSearchableArray() { $data = $this->toArray(); // formatting relationship for algolia $data['users'] = $this->...
Vincent Floriot
3

votes
2

answer

Update Each First Occurrence

I have these 2 tables: Test (id, suma) with the following values: 1,1 1,2 2,3 2,4 2,5 3,6 3,7 3,8 3,9 Payments (id, amount) with the following values: 1, 5 1, 7 1, 11 2, 14 2, 3 3, 4 3, 2 What I need to do is update the first ocurrence ONLY of each id from the test table with the sum(amount) from th...
ViccroyHD
1

votes
1

answer

Oracle Trigger Doesn't Update

I have run this code to create this trigger because I need to update TABLE2 with the UID value of rows with the same sequence number inserted into TABLE1. CREATE OR REPLACE TRIGGER TRIG_NAME BEFORE INSERT ON TABLE1 FOR EACH ROW DECLARE seq NUMBER(10); uid CHAR(36); BEGIN seq := :new.SEQ; uid := :...
user1958756
1

votes
5

answer

website update cache

If you have a live website (using PHP,MySQL,JS,CSS) and say you change some functionality. What is the best way to make sure, that when a user visits the site, the changed pages are updated and not loaded from cache?
georgesamper
3

votes
1

answer

How to Update DataTable

I have a main DataSet which contains several DataTables. These different DataTables are bound to their DataGridView's DataSource respectively. My problem is whenever I modify something in the display area such as the description textbox below and then click on save.... > The DataGridView doesn't h...
Alex
5

votes
2

answer

Macport self update failed

ginnyweasley:~ s66$ sudo port selfupdate Password: ---> Updating MacPorts base sources using rsync Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed I have tried to redownload macports and it still does not seem to work. I have also t...
user1417650
1

votes
1

answer

Angular2 update binding

i have small question. I'll show my problem on this example: export class UserComponent { users: User[] = new Array(); removeAll(){ this.users = new Array(); } } Remove
bluray
6

votes
2

answer

Update value with join

using Hibernate, I'd like to update a data in the database based on conditions, but I got the following error : 'node to traverse cannot be null' Here is my database description : Account: id, email, password Member : id, account, team Team: id, current (and a reference to member => members) Here is...
Cyril N.
5

votes
2

answer

hsqldb update on insert

Does anyone know of a solution to make HSQLDB update columns by calling INSERT. I would like my code to be able to insert, and if there's already data, to update that data. I know MySQl, I believe, has 'ON DUPLICATE KEY UPDATE'. I can't seem to find any recent documentation on this.
Matt
2

votes
1

answer

Update data in jqGrid

I use jqGrid in this scenario: The grid gets JSON data from the first URL. If the URL returns correct JSON - the grid displays that data. If the URL returns incorrect data, then it fires the 'loadError' event of grid. In this event I want to change the URL of the grid to another URL and get the JSON...
griZZZly8
1

votes
1

answer

Brew update errors

I'm trying to install Ruby/RVM/Rails on my Mac but I was unaware that I had to install Homebrew first. Upon running the recommended ruby -e '$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)' to install, all that happened is env and bash ran alternating. I followed https://github.com/mxcl/homeb...
Michael Johnston
1

votes
1

answer

mongoldb update() wouldn't work

First I created the mongoose schema: var cardSchema = mongoose.Schema({ userId: String, imageUrl: String }) Then I defined model: var Card = mongoose.model('Card', cardSchema) Then I created a new card: var newCard = new Card({ userId: 'bablaba' }); Then the new card is saved correctly(I tested): n...
Martian2049
1

votes
1

answer

Perl gtk2 window update

Recently when i was writing gtk2 program in perl I've runned into a little problem. I've got a main window which uses variables in labels and buttons to display user some data. my $label1 = Gtk2::Label->new ('IP '.$target_ip); my $label2 = Gtk2::Label->new ('Port '.$target_port); my $label3 = Gtk2:...
5m0k3
1

votes
6

answer

Update database [codeIgniter]

I'm new to codeIgniter, I have followed the main tutorial and now I'm trying to create the update funtion, but it gives to me an error that I don't know why. Here is my model public function update_news($id=0) { $this->load->helper('url'); $slug = url_title($this->input->post('title'),'dash',TRUE);...
Mauricio Andrés
1

votes
1

answer

Laravel update array syntax

I'm having trouble doing a record update array via POST in Laravel. I have captured all the post data in an array cant update array achievement Controller : public function foo(Request $request) { $ids = $request->id; $achvs = $request->achv; DB::table('quarters')->whereIn('id', $ids) ->update(array...
Yandra Adie
1

votes
1

answer

Ruby Update Method

The update function is working within my ruby console as shown below, but the updates aren't being reflected in the database for this particular user. For all other users it works perfectly, and using update_all works, but also updates all other users. Any idea why? ruby-1.9.2-p290 :002 > User.upda...
neon
1

votes
1

answer

waiting for richtext update

i'm doing a simple application like a news portal. main.mxml is displaying short views of the each news via the newsRenderer.mxml. when user click on any one, full content of the news will open on the main.mxml. i'm using richtext component for the full content. i can get the index of the clicked ne...
eblek
1

votes
1

answer

TinyMCE real time update

I am using tinymce editor in a form. It works fine. But when I try to use post the form using jquery post method. the tinymce textarea is blank. $.post('/posts/preview/', $('#PostForm').serialize(), function(data){ $('#myframe').html(data); }); All fields are available. Except the tinymce textarea w...
Leah Collins
1

votes
1

answer

azure data factory update

I created two web services (Traning and predictive to use API's in the data factory. memory_train memory_train [Predictive_Exp.] In data factory, I created ML Batch execution followed by ML Update Resource1. I used following API's and i/ps for my Data factory blocks. ML Batch execution: I created a...
eggsy
1

votes
2

answer

Laravel 5.4 update method

I am trying to update the record in the database. This is a specific element that is an element of another. Here is my code, it doesnt work :/ web.php : Route::patch('/projects/{projectID}/{id}', '[email protected]'); Controller: public function update($projectId, $id, CreateProjectRequest $...