Questions tagged [dynamic-values]
50 questions
4
votes
2 answers
find value in List of object by string
I need to find the longest value from a list of objects like this...
var longestValue = list.Max(x => x.Name);
The problem is that I can not access it directly like this but this need to be made in a loop. Here is what I have so far..
…

MTplus
- 2,077
- 4
- 34
- 51
3
votes
5 answers
PHP dynamic array index name
I want to pass a function the index value of an array – e.g [‘client_name’] – a first level value works because I can do
$index = client_name;
function arraything ($index) { return $this->arraytolookat[$index]; }
The question is……

Jonathan Tizard
- 229
- 1
- 4
- 15
2
votes
1 answer
gRPC: How to use dynamically typed values?
I'm trying using gRPC dynamically typed values but with the little information about their usefulness, It's almost impossible to do this... So I will show the image/code that I have problems and the questions that are eating my brain
gRPC Method…

José Leal
- 75
- 11
2
votes
2 answers
use variable's value in if condition in javascript
I have dynamic condition for if, how can I check it by using as this:-
var searchQuery = '(data.id == "1") && (data.first == "et")';
if(searchQuery === true)
alert('yes');
this is only checking that variable is empty or not. but I need to check…

Ankit
- 562
- 5
- 12
1
vote
1 answer
How to add a value with a dynamic property into config.json File
When there is a value like this in the config.json file,
{
"timeout": 10000
}
read the value as below in the implemented method in my .ts file
duration : this.config.getConfig('timeout')
My config.Service class is…

rissa
- 57
- 1
- 7
1
vote
1 answer
Writing an interface for type, or function that returns type
I have an object containing some default configuration. Some of its values cannot be defined statically and need to be calculated at runtime. To apply these defaults to an object I'll be applying any static values, and executing and applying the…

snazzybouche
- 2,241
- 3
- 21
- 51
1
vote
3 answers
How to click dynamic id button in selenium IDE?
I am searching it from 2 days but still unable to get satisfying answer..please help
I am using liferay, i want to open dropdown which name is "Add" and then want to click on submit button named as "Blank Site"..and both "Add" and "Blank site"…

MMaggy
- 42
- 1
- 4
1
vote
2 answers
Assigning dynamic values with variables / constants in classes
Iv'e always been aware that you cannot set dynamic values to variables within a class structure, but is there any way around this?
I have this interface:
interface IUserPermissions
{
/*
* Public VIEW,CREATE,UPDATE,DELETE
*/
const…

RobertPitt
- 56,863
- 21
- 114
- 161
1
vote
1 answer
How to dynamically change default value of the drop down field of the gravity forms depending on the selection before landing on the form page
I have a page with a pricing table:
plan A
plan B
plan C
I want to use only one gravity form with a drop down default value filled depending on what the user have selected.
For example, if the user selected 'plan B' from the pricing table, the…

naroko
- 89
- 4
- 12
1
vote
1 answer
Dynamic float in form changes to NaN when form submitted
I have a form where a user can select services they want with different fees involved. When they select a service I am adding up the total payable at the bottom using jQuery which all works fine, and its only there to show the user how much they…

John Halsey
- 1,930
- 3
- 19
- 41
1
vote
4 answers
get inputs in an edittext dynamically and pass that to next screen
This is my code..I have created a dynamic screen where i am generating one textview and edittext under a for loop.but after button click it is only getting the last input.I need to get all the inputs of editText and have to pass them to new…

Parinita
- 87
- 2
- 13
1
vote
3 answers
Assigning dynamic value to variable
how can I assign a dynamic value to variable? The simplest method I know about is by using a function. For example
fn(){
VAR=$VAL
}
VAL=value
fn
echo $VAR
will output
value
but I want something simpler, like
VAR=$VAL
VAL=value
echo $VAR
to…

mYself
- 191
- 1
- 1
- 11
1
vote
1 answer
How do I get the values from dynamically created form fields and reference them for other form functions?
Here is what I have so far...
addForm