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
3
votes
1 answer

How could I set the value of a div?

I know this is not standard but I want to set the value of a div, like this:
document.getElementById('div').value = 2; to use the value you have to use document.getElementById('div').getAttribute('value') but I cant find any…
Conmann
  • 33
  • 1
  • 6
3
votes
1 answer

Problem setting value of wx.TextCtrl in wxPython

I'm trying to pass the directory the user chooses back to the wx.TextCtrl named ChooseRoot. This has not worked so far. What am I doing wrong? I tried different things, but either it hangs or I get this error message. Traceback (most recent call…
sekstiseks
  • 57
  • 1
  • 1
  • 8
3
votes
2 answers

FATAL EXCEPTION in LiveData 'dispatchingValue' method: No virtual method iteratorWithAdditions()

I have a view with a viewModel that observes my LiveData. I get my data from a Repository (which gets data either from Room or WebAPI). I have implemented a NetworkBoundResource abstract class so I can manage data loading in a cleaner way.…
ShokouhM
  • 33
  • 3
3
votes
2 answers

Strange Reflection problem - can't get it

please help me understand what's going on in here and whether it should work like that ? I have a generic list of objects from a CMS: For example List myArticles = articles.All; Later I output the contents of the list in a…
Denis
  • 4,718
  • 5
  • 18
  • 20
3
votes
1 answer

Python Changing a the value of a string variable

I'm new to python, and I just want to know a way of changing a set string variable. For example: name ='school' How would I go about changing this if I wanted to use the name variable for a different value like George, Ben, Jess, Katie, etc.
belegarath
  • 41
  • 1
  • 2
3
votes
1 answer

gwt checkbox fire handler when setValue(true)

I have a checkbox with a valueChangeHandler on it. It works when user check the checkbox. For some reason, I need to set a value to this checkbox in my code, like this : checkbox.setValue(true), the checkbox is perfectly checked visually but my…
Hubertsa
  • 33
  • 1
  • 5
3
votes
1 answer

Android number Picker in Fragment not displaying correct value

I'm using the default android NumberPicker and am having issues when using the setValue() method. Just to note, the issues are occurring when i run API Level 16(Galaxy SII), I have tried an API Level 14 emulator and there are no issues so i'm a bit…
Paul
  • 31
  • 1
3
votes
2 answers

NSManagedObject setValue problem (Core Data)

I wish to edit an existing record in core data. At the moment, I have this code, but it creates a new record (and inserts the correct data into the correct column): NSManagedObjectContext *context = [[NSApp delegate]…
Michael
  • 1,477
  • 4
  • 18
  • 27
3
votes
4 answers

Fastest PHP Type Jugling with settype() vs *val() functions?

I am trying to figure out the fastest way (in PHP 5) to check that a value is the type I need it to be. I created two lines of code which both do the same thing. The problem is that I can't figure out which is fastest based off of…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
3
votes
2 answers

How to create a lambda expression that can handle or cast unknown types?

How do you create a lambda expression for a function that can handle unknown types? Sorry, I know the question is vague and I had a hard time forming it. I can only hope you have a minute and read through my story, which should clear things up a…
Zoomzoom
  • 1,042
  • 2
  • 13
  • 32
3
votes
3 answers

How to set record values using RTTI in Delphi XE

I am trying to set the values of a record using RTTI in Delphi XE. I can get the value from the record using the GetValue method, but I can not set the value using the SetValue method. Does anyone know how to do this / why it does not work? Thanks…
deColaman
  • 213
  • 2
  • 14
2
votes
1 answer

Excel Office Scripts - Replace "blank cells" with the text "null"

I'm trying to replace blank cells in column B (column name= Status) with the text "null". I have two different approaches that get me halfway there, however I can't figure out how to fully solution this. Any help would be greatly appreciated Here's…
ckatz
  • 23
  • 8
2
votes
2 answers

Updating a specific cell in a Google sheet using a hyperlink

I have a Google sheet with some logic (script) behind it that sends an email with the details of the last row add to it (using the attached Form). Once the recipient gets the email, they need to confirm it. I would like to add an additional…
2
votes
0 answers

Why can't I patch the value into the form controls in angular?

I've tried to patch some of the values to the from control, but it is not showing. why? I'll share my code examples here, constructor constructor( private fromBuilder: FormBuilder ) { this.OrderNShippingForm =…
AMAL MOHAN N
  • 1,416
  • 2
  • 14
  • 26
2
votes
1 answer

Why am I getting NullPointterException using PDField.setValue() from PDFBox 2.0.19?

I am trying to change text in a field of a PDF file but keep getting NullPointerException. I'm using PDFBox 2.0.19. The file is loading fine, I'm able to for example add a page and save a new one on Desktop, but setting filed's value keeps…
1 2
3
24 25