Search update

60548 results
1

votes
2

answer

Update query failing using JSON

I'm trying to update a mysql table and insert a json array into a column (that currently contains a json array). Here's what I'm trying to run: $array = ['key1' => 'val1', 'key2' => 'val2']; $array = json_encode($array); // ...some time later: $mysqli->query('UPDATE table_name SET colname={$array} W...
0

votes
0

answer

Laravel update MySQL table failure

I need to update MySQL table from Laravel view but when I submit the update the success message is displayed but nothing is updated inside MySQL table or the view, the console log does not show any error. Here is the code: Controller: public function reponse(Request $request) { $validation = Validat...
Sami
1

votes
1

answer

Update UITableViewCell labelText text issues

After a UITableView has been done, I have a async process which updates the text of 1 cell. The update changes the text and colour e.g. cell.textLabel.text = @'new text'; aCell.textLabel.textColor = [UIColor blackColor]; the issue I have is that these things are called but the cell seems to take se...
darbid
1

votes
1

answer

LOOP update with column size

I tried to create PL/SQL script that would update my table with column size. My table looks like this: | ID | TEXT | SIZE | -------------------- | 1 | .... | null | | 2 | .... | null | | 3 | .... | null | ... I want the PL/SQL script to fill the size column depending of the length of text for a c...
Marko
1

votes
2

answer

Can't update SQL Server DB

everyone. I am relatively new to Java (a complete noob), but have had experience with VB.Net. I am trying to update a row in a SQL2008 table. The table name is _Registry. When I compile the code below, it fails with several errors (listed separately after the code). If I comment out the section from...
user2199508
1

votes
2

answer

Update CSS in JavaScript / jQuery

The following code is an example of open and close actions of a sidebar, where some CSS values should be updated to correctly show the sidebar. function openNav() { document.getElementById('sidebar').style.width = '250px'; document.getElementById('mainContent').style.marginLeft = '250px'; document.g...
Martin Niederl
1

votes
2

answer

Oracle Optimization - Update and Subquery

I have two very large tables (one with over 500 M records and the other with over 1B records) I need to update status of the record in table one if one of the fields in table two contains more than 4 Char(10) characters in a row. When I look for the records that meet that criteria it takes approxima...
Mike S
1

votes
1

answer

SQL, MS access VBA update

I would like to seek help in my update statement in ms access. I don't know if possible but can we incorporate SELECT statement in UPDATE statement? Here's the code that I have problem. DoCmd.RunSQL _ 'UPDATE tab_lists ' & _ 'SET ' & _ 'total_calls = ((SELECT COUNT(filler3) FROM table...
kirou
1

votes
1

answer

Python inplace configuration value update

I'm trying to update the 'value' part of a configuration file using an in-place value change similar to sed -i. The code below shows how I'd do the replace on the shell using sed [[email protected] dir]# cat mystackconf.conf >>first='one' >>second='two' >>third='four' [[email protected] dir]# sed 's/\(^third=\...
AK47
1

votes
1

answer

PHP Update with Curl Please

I am trying to update my API with an update curl function but am struggling to work out why it isn't working The areas where it may be wrong is key($id) I want it to extract the ID column based on the key value for the ID array. $URL I want to create the URL based on the const variables plus the...
blueboy123
1

votes
2

answer

Django trigger post_save on update()

So I am using django-simple-history module that tracks changes in Model instances. However, it uses post_save signal to do so. In my project, I also need it to trigger on update(). My question is: How to overwrite the update() method to trigger post_save signals?
Anil Panda
1

votes
4

answer

MYSQL Update statement - unknown column

I have a select query which works correctly with the below output: I would like to create an update statement to set the value of the despgoods_alldetails.loadid column = loaddetails.loadid where despgoods_alldetails_despgoodsid=loaddetails.despgoodsid.loadid. I was thinking along the lines of upda...
Smudger
1

votes
1

answer

update bower.json with new versions

I have a couple of dependicies in my bower.json and I would like to update the packages to the latest so I run bower update and it doesnt change my bower.json with new versions. I also tried bower update signalr --save but it still didn't change bower.json. Why is that? Do I manually have to change...
MrProgram
1

votes
2

answer

MongoDB update nested array foreach

I have collection of Users, and each user has an array Ancestors, previous developer did wrong DB architecture, and now each of ancestors is string but must be an ObjectId. It still contain objectId(in fact HEX of object Id, like 558470744a73274db0f0d65d). How can I convert each of ancestors to Obje...
Raft
1

votes
1

answer

Error: Maximum update depth exceeded

I am receiving this error with my React project: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops. I do not know what is causing the infin...
Young Scooter
1

votes
1

answer

callback_before_update Grocery Update Value Null

I have a Controller like this, using callback_before_update to update a field in another table, but I can't get a value from the variable $post_array, as it instead returns null; any idea why? $crud = new grocery_CRUD(); $crud->set_table('product'); $crud->display_as('category_idcategory', 'Categor...
dmh
1

votes
1

answer

Why Access don't update this?

I have a table called Contacts with one field called Contacts.Title. In MS-Access, If I do a query like this: SELECT * FROM Contacts WHERE (((Contacts.Title) Like '%Boss%'); It works and found 70 rows. But if I try to do the next update, it doesn't find any row: UPDATE Contacts SET Contacts.Title =...
Nimrrod
1

votes
1

answer

Update multiple data in VueJS

Consider the following sample and suggest proper way to handle this problem or clear my mind from this kind of thought data(){ return{ a: true, b: 5 } }, someMethod: function(){ /*Currently update using the following lines, this.a = false this.b = 6 */ //Is there anything to update multiple attribut...
YogiEHunt
1

votes
1

answer

SQL Server: advanced update query

I need some help on sql update query that calculate estimated daily stock consumption , At first I fill table with day requirement . declare @stock TABLE ([StockDate] [datetime] NULL, [stock] [int]) insert into @stock values ('2017/21/03', -3), ('2017/22/03', -1), ('2017/23/03', -5), ('2017/24/03'...
1

votes
1

answer

JavaFX update text from Task

I want to change text I create a task and increment i, but I want to set a new text on this same place when i is changed, but old text doesn't disappear. It's my code. On swing I will be use repaint() Task task = new Task() { @Override public Void call() throws Exception { int i = 0; while (true) {...
Krzysztof Pokrywka
1

votes
2

answer

Typescript version does not update

I am running the following command to update my TypeScript version from 1.8.5 to 2.0.7 : npm install -g typescript it shows as -- [email protected] Afterwards, when I am trying to check it manually using : tsc --version, it shows me : Version 1.8.5 Please tell me how to upgrade version of typ...
Mansi Kalola
1

votes
2

answer

Update Activity on closing Fragment

I have an activity A. Once A has been loaded, on clicking a button in A adds a fragment F on A's home Layout. Now once inside F, if i am callinggetActivity().getSupportFragmentManager().popBackStack();, which infacts navigates again into the Activity A. Is there any way I can actually make some cha...
Animesh Jena
1

votes
1

answer

Howto update duplicates in firebird?

Searched google for 'firebird update duplicates' and 'firebird handle duplicate update' but did not get any stuff, that would solve my question; so i thought it would be a good idea to use this marvellous site for the first time :) So how do i achieve mysql's 'INSERT INTO asdf (x,y,z) VALUES ('a',1,...
Grindhold
1

votes
2

answer

Update asp:label on another page?

I'm working with an asp.net website using C# in the background. I would like to be able to update an asp:label on a page, lets say Page1.aspx. I want this be updated depending on the outcome of a function in a class (.cs) in other folder. This could be behind.cs. behind.cs *some other code is here*...
HGomez
1

votes
1

answer

Redis concurrent Read and Update

Supposedly I have json serialized object with a count property stored as a value . If two users retrieve the object at the same time and update the count with + 1 when they save it back the count value will be corrupted. What is the correct way to handle this scenario with Redis? I am using Stackexc...
user1814491
1

votes
1

answer

Android Broken Shortcut After Update

Launcher/Main activity was changed in the manifest and after the update users using custom OS Launchers (ie: dodol Launcher) report their shortcuts broken with message 'App isnt installed'. This is a big problem as many just uninstall the app in confusion. To my understanding whats happening is tha...
AlexVPerl
1

votes
1

answer

UpdateProgress bars and update Panels

I have a grideview that displays rows that will be deleted across servers by the click of a delete button in the footer of the grid. This delete will take a long time so i want an updateprogress bar. I'm not really familiar with it so I don't know where to begin.
Eric
1

votes
3

answer

Background worker and chart update

I am using a a background worker to read data values from a device and display in a chart.mI use BeginInvoke and update the values in the chart. The problem is that the values are getting updated in the chart with at least 2 - 3 seconds delay and is not real time. The speed of update in the chart al...
Vishnu
1

votes
1

answer

Android: update arrays.xml from code

Does anybody know if I can update arrays.xml from the code?
Nick
1

votes
1

answer

Firefox extension automatic update feature

I am following the tutorial at http://www.borngeek.com/firefox/automatic-firefox-extension-updates/ to make my FF extension can be updated automatically to users, but I stuck at the last part 'Hosting an Update Manifest' as I am using Tomcat serve and I have no ideas how to set up the .htaccess (Is...
user200340
1

votes
1

answer

Variables created outside the Update()

Let's imagine I have a creature that moves: bool pathFound = false; void Update() { if(!pathFound) { //Find a destination point pathFound = true; } //Move creature to point if(Creature reached the point) { pathFound = false; } } So that the movement depends on the variable created outside the functi...
Storm
1

votes
1

answer

Using JScrollBar to update Components

public class FaceMain extends JFrame { CreateFace p1 = new CreateFace(); private ControlPanel panel; public FaceMain(ControlPanel value) { panel = value; JFrame main = new JFrame(); main.setTitle('Face Frame'); main.setSize(new Dimension(600, 600)); main.setLocationRelativeTo(null); main.setDefaultC...
Sam
1

votes
3

answer

SQL Update considering Null values

I am trying to update notes in a table to archive some files. I've generated the SQL script and am having a problem because of the accounts which have a Null value in the notes. I would like my note update to take place whether there is a Note or a Null in the current note field. Below is my SQL st...
Jen C
1

votes
2

answer

CodeIgniter. Update where id problem

I'm trying to update a contact and only update the contact depending on the id. Model: function updateContact() { $data = array( 'title' => $this->input->post('title'), 'first_name' => $this->input->post('first_name'), 'surname' => $this->input->post('surname'), 'phone_number' => $this->input->post...
ajh_8
1

votes
1

answer

observable doesn't update custom bind

Please refer to the codes attached. DummyText is observable and a custom bind defined in ko.bindingHandlers.dummytext. However, this.DummyText('dummy_text_' + this.firstName()); only calls update: function (element, valueAccessor,.... once, so that is only updated once. Text is created as a referen...
Giant Jupiter
1

votes
3

answer

SQL - Transaction update 2 tables

I have a form that requires a user to validate their email address, the link is sent to the user as http://app.myurl.org/h/activate.php?email=useremail%40gmail.com&key=80fddb7fa21dd2e2639ae5ec82b9d511&api=8a2d01d7411ec2488307744ddf070a4d The user is directed to the activate page. I am trying to get...
Kray
1

votes
1

answer

Regarding MarkLogic memory update issue

I am creating a document and updating it in memory. But it is not updating the document i.e. not deleting ‘file-text’ element from the created document. Below is the code. Can you please let me know what I am missing here. xquery version '1.0-ml'; declare namespace html = 'http://www.w3.org/199...
Sukesh
1

votes
1

answer

Processing apostrophe in an update

I have a situation where I have to manually normalize some data. The problem is the data has an actual single quote in it. I was hoping I have some options other than data entry... One of my fields has data that I want to update. it has this date > Women's Health ServicesOBGYN3 I want to update it t...
Bit Coins420
1

votes
1

answer

UIPageViewController update number of pages

Hey guys I was looking to see if anyone knew how to update the number of pages in a UIPageViewController A UIPageViewController has the method - (NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController { return count; } but that is called right at the beginning a...
Fatal Dizz
1

votes
2

answer

MYSQL update with nested subquery

I have 3 tables in this format: Table Child: id|parent_id|grandparent_id 1 1 null 2 2 null 3 3 null Table Parent: id|grandparent_id 1 1 2 1 3 2 Table GrandParent: id 1 2 I need to run a query that updates grandparent_id column...
Hirad Roshandel