We did model parameter entity with lookup table. The parameter used in the data collection and it is manual data collection. We want to set the default value from the lookup table value list and not model data collection parameter reading default value.
Before select the value from the value list.
Below screen shot after select the value from the lookup table value list. If there is way to model to set the default value instead of user select the value from the list?
Hello Babu.
Yes there is. just set the Default Value in the Data Collection Parameter
Result:
I hope I could help
See you. thanks
Romeu
Hello
It works for data collection parameter data type is string and it does not work for data collection parameter data type is decimal.
Hello again Babu.
I did a test in V11.3.7 .
First I’ve created a Decimal Parameter
Then a DataCollection for this parameter and I’ve set a Default Value
Result:
I also tried with decimal values within a Lookup Table
These possible values feed the Decimal Parameter
RESULT:
Can you please try my steps on your side?
Thanks
I don’t know if this might be what you’re referring to, but note that I believe there is a small bug on the creation of the Data Collection definition: while creating a DC Parameter referencing a lookup table, the Default Value field appears as free text (although behind the scenes it validates if the entered value is in the table). After creating the DC, using Edit/Manage Parameters, the Default Value field now appears referencing the lookup table.
I have tested the scenario for decimals and also got the same result as Romeu below.
Thanks Jose.
It set the default value based on the DC configuration but did not mark check-box(
) in the lookup table value list like data collection parameter data type character in the data collection wizard.
We are CM 11.1.3
Sorry I am not able to attach screen shot. It says “You can’t embed media items in the post”
Hello again Babu.
You are right.
2 Possible workarounds:
1st) Set the parameter with Decimal values (Lookup Table) as String:
2nd) Use DataCollection Modern View
The Default Value is automatically selected and displayed
What do think ?
Thanks
Thanks Jose.
Yes, it works if the change parameter data type as string but need some code changes in our solution. We stick the 2’nd option.