Search update

60548 results
3

votes
2

answer

Hibernate Update Query issue

For this update query update TestDB.dbo.MyEmp set empname=? where empid=? I wrote in my DAO class MyEmployee myEmployee = new MyEmployee(); MyEmployee myEmployee =(MyEmployee )session.load(MyEmployee.class, new Integer(1700)); myEmployee.setName('updatedName'); session.update(myEmployee ); Its wor...
sridhar
1

votes
2

answer

Update using case statement

Given a table: ColumnPosition, ColumnName Col 1, NULL Col 2, NULL Col 3, NULL I want to update ColumnName according to a predefined value mapping based on ColumnPosition. For example: If ColumnPosition = 'Col 1' then update ColumnName to be 'Name' If ColumnPosition = 'Col...
Steam
1

votes
3

answer

Joining Tables to Update

Can I do this to update a row? This is the first time I am using a LEFT JOIN with an UPDATE. UPDATE comments AS r LEFT JOIN items AS i ON i.items_id = r.item_id LEFT JOIN master_cat AS c ON c.cat_id = i.items_id SET r.good = r.good + 1 WHERE i.item = '{$item}' AND c.category = '{$cat}' AND r.re...
KickingLettuce
3

votes
2

answer

mongoose update not working

I checked many questions on stackoverflow and modified this simple query thats not working I don't know why... router.get('/users/:username/suspend', function(req, res){ var username = req.params.username; User.findByUsername(username, function(err, user){ console.log(user); user.suspended = true;...
owaishanif786
2

votes
1

answer

Laravel workbench composer update

I added to my composer.json the following line inside of my workbench but dosn't take any effect the controllers are not mapped? How do I republish or reload the composer.json 'autoload': { 'classmap': [ 'src/controllers' ], } I already tried php artisan dump-autoload
fefe
1

votes
3

answer

AES_ENCRYPT with MYSQL UPDATE

I am trying to do a basic mysql update but using AES_ENCRYPT - can anyone explain why i'm getting an error message? Below is the query :- UPDATE MailList SET Email = AES_ENCRYPT( [email protected], 'jkfdsfsaKJjdsf' ) WHERE ID = '138142' I get the following error: #1064 - You have an error...
Zabs
2

votes
2

answer

“UPDATE WHERE NOT LIKE? ”

I am trying to append strings to a field if they do not already exist with: mysql_query('UPDATE gals4 SET tags = CONCAT(tags, '$instag') WHERE id = '$instagnum' AND tags NOT LIKE '$instag''); This just appends to 'tags' regardless of weather it exists in the field or not. What am i doing wrong here?
user1717656
3

votes
1

answer

ASP.NET Browser Caps update

I'm trying to update the browser caps using the '.browser' files (browserCaps section of the web.config is deprecated in .NET framework 2.0). So far, I found this project on CodePlex that provides updated files: http://aspnet.codeplex.com/releases/view/41420 From the Visual Studio 2008 command promt...
PhilDulac
12

votes
4

answer

jProgressBar update from SwingWorker

I use to monitor a long running task by updating a ProgressBar. The long running task is of course performed in a Swingworker thread. I used to program things like that : public class MySwingWorkerClass extends SwingWorker { private JProgressBar progressBar; public MySwingWorker(JProgressBar...
HpTerm
2

votes
1

answer

Satis update via cronjob

I'm try to update my private repository via a cron job but nothing seems to be happening. I'm using Satis to create the repository for my private packages. I can do this manually by logging into my account via SSH and running: php bin/satis build satis.json ./ -n which updates everything fine apart...
Luke Snowden
15

votes
2

answer

Sequelize update with association

In sequelize it's possible to create a row and all it's association in one go like this: return Product.create({ title: 'Chair', User: { first_name: 'Mick', last_name: 'Broadstone' } }, { include: [ User ] }); Is there a equivalent for update? I tried model.user.update(req.body.user, {where: {id: r...
Jacob
2

votes
1

answer

Update a datagridview

I am developing an app in which user has datagridview on display and he can edit the grid and there is an update button and it the user press the update button the grid should be updated. The problem is this how can I check that which row or column is edited and If I get whole grid then how can I ge...
Billz
2

votes
0

answer

Can't update frames

My Xcode project has done some very strange things today. First, it kept giving me a SIGABRT error on one of my pages for my tab bar view controller. I erased all connections, and the error went away and I was able to view the page in the simulator. I made one connection from the storyboard my swift...
Kody R.
5

votes
5

answer

Mysql update values

I'm using two tables in the database. The first table looks like this: id | msg_id | user | date ------------------------------------------------- 01 | 122 | user 1 | 2011-04-01 02 | 453 | user 2 | 2011-04-03 03 | 124 | user 3 | 2011-04-05...
Sergio
1

votes
1

answer

Update many(multiple) rows

I'm having some problem with update. When I got one record in the database, then it works correctly, but when I got more than 1, it didn't work correctly. Here is code : UPDATE rozl SET amountAfter = (SELECT amountBefore - (amount + destroyed) FROM rozl) Table looks like id number amountBefore...
JustSomeNewbie
2

votes
0

answer

HasMany associations update

How to update hasMany associations in record? I tried this approach: record.get('childrenRecords').clear(); newChildrenRecords.forEach(function (child) { record.get('childrenRecords').pushObject(App.ChildModel.find(child.get('id')); }); But I got error: Uncaught Error: could not respond to event re...
Andrii
2

votes
1

answer

Python Pandas Update / Replace

struggling to get to grips with update/merge/concat etc to achieve what I thought was a simple merge or update procedure. I have df (recorded values) and df2 (times series with 0s), and would like to update/replace the values in df2 with the corresponding recorded values of df, matching on date_time...
Clint
3

votes
2

answer

ObservableList doesn't update ArrayList

For a school assignment, we're working with ObservableList objects from JavaFX (Right?). I've been working on this for over a day now and can't figure it out. The teacher only tells us to 'Google it' so that's no help either.. Basically, we're working on a basic administration application to keep tr...
Cas Eliëns
3

votes
1

answer

racket: update the list

i need to update my list but it doesn't work well. so lets say i have two list. (define list1 '(1 2 3 4 5 6 7 8 9 10)) (define list2 '()) 1. (define (divisionlist symbol1 symbol2 list newlist) 2. (cond [(empty? list) null] 3. [(equal? symbol2 (car list)) 4. (d...
Kaylee YunKyung Kim
2

votes
1

answer

Subversion update command performance

When I execute a SVN update on a directory, how does svn execute it? Does it execute update on each file in the directory regardless of file's diff status from the working directory? Or does it execute update only on the files that are 'out of sync'?
Eric
2

votes
1

answer

mvvm update calculated fields

Do you know best practices in wpf+mvvm to update Calculated fields? What I can do instead OnPropertyChanged(nameof(Summary))? Also calculated field can be in another viewmodel and this viewmodel should not know about all dependences. This is my code : public class Model { public int Prop1 { get; se...
Dark32167
2

votes
4

answer

Update table using join

update salaries set diff = a.diff from attendence a join salaries s on s.employees_id = a.employees_id and s.date = a.date where salaries.employees_id = 22 and date = CURDATE() I have a problem using this code in MySQL from is not a valid input at this position'
李韋德
2

votes
2

answer

Update map in-place

I have a piece of code manipulating a map object. Let's say that at some point I want to double all the entries, keys and values. Is a there a way to do it in place, without creating a new map, looping and entering updated entries? My concern is saving memory space.
Learning is a mess
3

votes
1

answer

Angular2 RC6 Update

Since I have updated my package.json to Angular2 RC6 I get errors TS2305: '../@angular/router/index' has no exported member 'RouterConfig' '../@angular/common/index' has no exported member 'Control', 'ControlGroup','Validators', etc. My dependencies in package.json are as follows 'dependencies': { '...
surfspider
1

votes
2

answer

Sequentially update mysql table

Given the following table, how can I sequentially reorder position from 1 to N using a single query after one or more rows have been deleted and still preserve the order of position? +---------+----------+-----+ | id (pk) | position | fk | +---------+----------+-----+ | 4 | 1 | 123 | |...
user1032531
1

votes
2

answer

ASP C# update content

I assume this is a simple question for you. Here we go: On my .aspx page, I have a label Label1 and a button Button1 surrounded by an Update Panel. A click on the Button invokes the code-behind method that looks as follows: protected void Click(object sender, EventArgs e) { ThreadProc('Hello'); Thre...
chr1s
2

votes
1

answer

Update JSON object MySQL

I want to update a JSON object in MySQL. TABLE id (int-11, not_null, auto_inc) labels (json) JSON Beautify [ { 'tagname': 'FOO', 'category': 'CAT_1', 'isnew': 'no', 'isdeleted': 'no' }, { 'tagname': 'BAR', 'category': 'CAT_2', 'isnew': 'yes', 'isdeleted': 'no' } ] I want to add a new TAG element (JS...
Jordi Huertas
2

votes
3

answer

React class update

Something like: class Parent extends Component { render() { return ( ); } } class MenuElem extends Component { render() { return ( this.setState({isSelected: true})} className={this.props.isSelected ? 'is-active' : ''}> ); } } Why the isSelected props dont update when I fire the click event ? How ca...
1

votes
0

answer

Update api Youtube

I have a problem to adapt to the new YouTube API part code that need to change: //set feed URL $feedURL = 'https://www.googleapis.com/youtube/v3/search?part=id%2Csnippet&q='.urlencode($busca).'&max-results=5&orderby=viewCount&start-index='.($page).$youtube_key; //Old -> http://gdata.youtube.com/feed...
sysrq
2

votes
1

answer

Read -> Consume -> Update

I'm using producer - many consumers pattern. Database has records in place already. Producer reads records and put them into thread-safe queue. Consumer threads process records one-by-one and add more data to it. Now producer has to update records in database with new data provided by consumers. I'...
user1876232
3

votes
2

answer

Javascript update twitter Button

I am working on creating a random quote generator. I have it mostly finished using quotesondesign.com's api, but the final thing I need to do is make the twitter button update to the new Quote when I click the 'New Quote' button. But it wont change and I'm not sure why. $( document ).ready(function...
Uberche
2

votes
1

answer

Update google heatmap

I have asp.net project I have google heatmap in View and need to update it Here is script code on client side. @section scripts { var map, heatmap; function initMap() { map = new google.maps.Map(document.getElementById('map'), { zoom: 13, center: { lat: 55.752622, lng: 37.617567 }, mapTypeId: 'sate...
Eugene
13

votes
3

answer

AngularJS ngRepeat update model

I use ng-repeat to render a html table. My controller looks like so: app.controller('fooCtrl', function($scope, WebSocket) { $scope.foo = [ ... ]; WebSocket.start(function(data) { // this is a callback on websocket.onmessage // here is a for loop iterating through $scope.foo objects and updating the...
if __name__ is None
2

votes
1

answer

Update large xml document

The XML: The actual XML itself is much larger as you can see by the totalkeys and totalvalues attributes. Each has anywhere from 5 to 19000 values. In order to update the XML i have to gather info from three separate sources. From these sources I create 3 Dictionaries. Dictonary --> Dictonary -->...
dustindavidson900
4

votes
3

answer

Refresh GridView after update

Basically, the GridView is not showing the updated values after the update event occurs. I have searched the forum and seen many solutions but nothing has worked when I tried them out. The database is definitely updated but the updates are only visible once I restart the project. What I have done:...
Dan Romano
2

votes
1

answer

SQL conditional update query

I have: Table with columns A int, B int, C int I need to build query like: UPDATE Table SET A -= B -- and then if A < 0 do A = C Is it possible to do without cursor? If it is useful, I use MS SQL Server 2008.
Sergey Metlov
3

votes
1

answer

Document design - Update comments

I'm playing around some with RavenDb and documents. Let's say that I got the following document: BlogEntry Id Title UserId Comments Title Body How would I handle comment edits? They are not very frequent, but should be possible. Is it something like: Load document Find the correct comment Update it...
jgauffin
1

votes
2

answer

SQL Update and Replace

Can someone guide me in the right direction. I'm trying do an update and replace on a column in a database. This is the SQL code that I am using (SQL 2008 Express Edition). *update GameList set image = replace(Image, 'NintendoDS', 'Nintendo DS') WHERE Image LIKE '%NintendoDS%'* Image /webimages/N...
KennyH
2

votes
0

answer

update percentage to reclyerview

I'm developing chat app using XMPP (SAMCK).I have showed conversation using reclycerview. I want to show percentage while image uploading to server(using rest api). So I used intentservice and update the percentage through localbroastreceiver. But I couldn't able to scroll the reclycerview. also I c...
Manikandan
3

votes
2

answer

Update String with parameters

I'm using Spring with Java 8. I have a string with parameters and I am not sure how should I updates the parameters by list of params. String message = 'Today is {0} and {1} is happy'; List params = Arrays.asList('Sunday', 'Uri', 'Dan'); I would like to know with which operator should I use in order...
userit1985