Questions tagged [setvalue]

setvalue is an ambiguous tag askers use to indicate they have a problem assigning a value to "something".

setvalue is an ambiguous tag askers use to indicate they have a problem assigning a value to "something". This tag should - if possible - generally be avoided. Proper use of the setvalue tag is if the question specifically targets a certain setvalue function.

365 questions
2
votes
2 answers

I can't set value or get value from select elements created via Ajax

I created "omarkasec" as a function and I get car brands from database via ajax and I added at the select element this car brands as options via ajax --> success. But I can't set a value this select element. I tried this codes for set…
2
votes
2 answers

Trying to set a variable from a value in a dictionary

I'm learning python and am creating a rock paper scissors game. I'm stuck on one part. I have 4 variables currently (Although I would like to get it down to 2) pKey pChoice comKey comChoice They look up the the Key and Value respectively in a…
2
votes
2 answers

c# linq change the value of xml element which contains xml tags

I tested with the following source xml File
gequest
  • 59
  • 4
2
votes
1 answer

Google Script - Help in having setValue change every 10 matched rows

Building on my previous question relating to this script below. Is it possible to setValue to change after 10 matches, I would like to assign "found here" for the first 10 matches, then "something else" for another 10 matches, then "another phrase"…
Nick Caines
  • 53
  • 1
  • 6
2
votes
4 answers

Set Hidden Field value to Javascript Variable using Jquery or Javascript

Very Brief Background: I am using Jquery Autocomplete to lookup the the value of an item from a database. That value is then somehow given to a hidden field within the same form and then inserted to the database. What complicates this slightly is…
Tim
  • 3,091
  • 9
  • 48
  • 64
2
votes
1 answer

VB6 Select combobox text value based on database data

I can't find a way to set a value to the ComboBox object based on the value retrieved from a DB. When I fill the comboBox, I use this code: Do while Not rs1.EOF Cboneighborhood.AddItem rs1!Description …
Gerardo
  • 101
  • 2
  • 3
  • 10
2
votes
1 answer

initialize, set, and Return Structure inline?

In vb.net, is it possible to initialize, set, and Return a Structure inline? If I have this Structure Structure CopyAndPasteUniquesAndExistenceStructure Dim duplicatePoints As List(Of Array) Dim inexistentPoints As List(Of Array) Dim…
user1382306
2
votes
2 answers

Android NumberPicker animate wheel when using setValue method

i m trying to get the wheel of the numberPicker animated. I found the corresponding question here: How to change NumberPicker's value with animation? But i cannot solve it with the suppposed answers. Can somebody please help me? When changing the…
2
votes
1 answer

setting value of a combobox extjs

This is my model for my combo Ext.define('ExtJS.myApp.ComboModel', { extend: 'Ext.data.Model', alias: 'widget.combomodel', fields: [ { name: 'ID', type: 'int' }, { name: 'title', type: 'string' } ] }); This is…
EagleFox
  • 1,367
  • 10
  • 34
  • 58
2
votes
2 answers

Alternative to "set value" in a function/script that calls itself

I have a script that calls itself over when the condition of the if-statement is false. The maximum number of iterations as defined by the user can be up to 20 times. The problem is that there is a variable(s) that changes inside the algorithm…
2
votes
2 answers

Changing LinkedHashMapValues

Below is data from 2 linkedHashMaps: valueMap: { y=9.0, c=2.0, m=3.0, x=2.0} formulaMap: { y=null, ==null, m=null, *=null, x=null, +=null, c=null, -=null, (=null, )=null, /=null} What I want to do is input the the values from the first map into…
Digitalwolf
  • 447
  • 2
  • 9
  • 20
2
votes
5 answers

populate dropdown in codeigniter form using set_value

i have a form that uses a drop down and im using codeigniter , form helper and form validation so when i get a validation error in my form , all the correctly entered fields are populated using set_value of codeigniter , however this doesnt work for…
Nishant Jani
  • 1,965
  • 8
  • 30
  • 41
1
vote
1 answer

Codeigniter: Insert string if set_value() is empty

I understand that set_value() is used to populate a form should it fail vaidation. But if the field is empty() (which is why it failed) can set_value() insert a default value instead?
enchance
  • 29,075
  • 35
  • 87
  • 127
1
vote
1 answer

Using set_value + another value in codeigniter

I've got a login form and I'm using Tank Auth for form validation, etc. For the form, I'm not using labels; instead I am populating the value field to tell users what to input (e.g., Email Address in the "email" field). But Tank Auth presets the…
chowwy
  • 1,126
  • 8
  • 26
  • 45
1
vote
1 answer

NSMutableURLRequest's addValue does not work?

This is for iOS: I am trying to resume a file download from a previously interrupted connection. To do so, I simply use the HTTP header's range field to set the starting point of the download request as such: NSMutableURLRequest *urlRequest =…