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

C# - Exception thrown in property setter cannot be caught when called via reflection (SetValue())

my question is similar to Using reflection, setter throws exception which can't be caught, but the recommended solution does not solve my problem. In the code below, I try to set the property of a class via two different ways: first, directly and…
2
votes
0 answers

Google Sheets macro setValue changes the date value

On my Google Sheets macro, I want it to get the first date of the previous month, and insert it into a cell. var currentDate = new Date(); var year = currentDate.getFullYear(); var month = currentDate.getMonth() - 1; var lastMonthStart = new…
Rusty
  • 609
  • 1
  • 4
  • 19
2
votes
1 answer

Where to find defined keys for setValue func in Swift

While trying to setup email subject and content via UIActivityViewController I worked with the .setValue func in Swift. The key to set the subject was easy to find, but I couldn't find the key to set the…
PascalS
  • 975
  • 1
  • 16
  • 40
2
votes
0 answers

Set value of different columns in Pandas DataFrame with indexes

I have extracted the indexes of certain rows that I'd like to assign to rows of another DataFrame with the following command: indexes = df1[df1.iloc[:, 0].isin(df2.iloc[:, 0].values)].index.values What I'd like to do is assign certain values of…
fmedv
  • 153
  • 1
  • 2
  • 12
2
votes
1 answer

Reflection PropertyInfo SetValue C#

Im using reflection to get a property. I then want to change the value of this property. For this example I want to get the property of type Task and overwrite that property value with a different Task object. This is my code so far. It's currently…
Bad Dub
  • 1,503
  • 2
  • 22
  • 52
2
votes
1 answer

Using setValue in pysnmp

I'm configure community and try to use setValue in pysnmp but it not to work: ... config.addV1System(snmpEngine, 'read-area', 'public') config.addV1System(snmpEngine, 'write-area', 'private') config.addVacmUser(snmpEngine, 2, 'read-area',…
2
votes
1 answer

Clear content of a cell and then set a new value

I´m trying to clear the content of a cell and then set a new value. I know you´ll ask "why not just set a new value instead of clearing the cell first?", but I really need it to be that way. Here´s what I have var ss =…
2
votes
1 answer

Angular 5 set select object value manually

I have one select, and I want to set an object value manually. I tried to use setValue or patchValue with Object, but it did not work.
Chiien
  • 341
  • 1
  • 3
  • 14
2
votes
2 answers

Set Value on Webpage without using ID (as ID changes)

I would like to set a value on a webpage using windows application form and using GetElementById and SetAttribute("value", desiredValue) I have created a command list which navigates through the webpage and puts in…
CatiaV5
  • 168
  • 1
  • 1
  • 10
2
votes
3 answers

How to set value into input field where placeholder contains "email"

Ques: How to set value into input field where placeholder contains "email" using nightwatch.js ? Please explain
Murali Manchadikkal
  • 887
  • 1
  • 10
  • 7
2
votes
3 answers

Refer to a relative cell within a formula set by apps script

I'm attempting to have GAS set formulas into various cells in my spreadsheet. This works: sheet1.getRange(rowID, 14).setValue("=iferror(vlookup(M2,'sheet2'!C:O,13,false),\"\")"); But I need the row in the formula to be relative (not always M2). I…
sandeaj
  • 101
  • 2
  • 14
2
votes
2 answers

Zend-form setValue , view has empty value like

I have a quite complex form setup using Zend-Form. At one point I'm setting value of a hidden input using : $oHidden = new Zend_Form_Element_Hidden('ratings'.$k); …
Alek
  • 21
  • 1
  • 2
2
votes
1 answer

How to append and set value in one command using Python?

I have the following dataframe (df): SERV_OR_IOR_ID IMP_START_TIME IMP_CLR_TIME IMP_START_TIME_BIN IMP_CLR_TIME_BIN 0 -1447310116 23:59:00 00:11:00 47 0 1 1673545041 00:00:00 00:01:00 …
Shreyas
  • 419
  • 1
  • 5
  • 14
2
votes
1 answer

How to set value in string.replace() method?

I have 2 edittext .and i want to get value edittext1 and edittext 2 and set it in string.replace mehod Like this; string.replace("set here1st edittex value",set here 2nd edittext value") How to possible it? Thanks in advnce!! public class…
I m Android
  • 85
  • 2
  • 9
2
votes
3 answers

Slicing and assigning values multi-indexed pandas dataframe of unique sequential indices

I want to select and change the value of a dataframe cell. There are 2 indices used for this dataframe: 'datetime' and 'idx'. Both contain labels which are unique and sequential. 'datetime' index has datetime label of datetime type, and 'idx' has…
ConanG
  • 639
  • 1
  • 6
  • 18