Get Value from ${result.value}

I have a record set that returns 1 row of data, I want to get just a single value from the record-set for conditional formatting.

Property that is set on page load is "todayData" value is ${result.value}

How to I get "PlantID" (columname) from ${todayData} I tried ${todayData.PlantID} but it doesn't seem to work.

Thanks in advance!

If this is array you can use result.value[0].YourProperty

So simply only thing I didn't try! Thanks again for all your help.

I'm facing this error, Please Guide Me...
I'm Using Blazor Server Side...
Please Guide me How can I get a single value from Invoke Method?

error CS0021: Cannot apply indexing with [] to an expression of type 'IQueryable'

Since your return value is Iqueryable you can use

${result.FirstOrDefault().YourColumnName}
1 Like

I'm facing this error, Please Guide Me...
I'm Using Blazor Web Assembly...
Please Guide me How can I get a single value from Invoke Method?

error CS0021: Cannot apply indexing with [] to an expression of type 'IEnumerable'

${result.Value.Sum(o=>o.Balance)}

Resolved it myself

thank You!