Hi,
1 application can have multiple blocks and a single compounding wall price for each application, and if c.wall value is added in any block then it should read-only for other block.
how can I do.
Hi,
1 application can have multiple blocks and a single compounding wall price for each application, and if c.wall value is added in any block then it should read-only for other block.
how can I do.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal JoshiPosted May 14, 2024, 12:36 PM
Hello,
Handel Duplicate value in calculation
As per the question, there are duplicate prices in add/update record. It's fine to have same value for each block because when you check for a single block you need the same value.
But, you can check in foreach loop if it's a duplicate or the same value you should take FirstOrDefault() or not add again if it's already added to the total price calculation.
Make the input field read-only
you can check if a value has already been added in a database or if it's not null or zero then you should set read-only
Thanks
Vishal Joshi
Jayraj ChhayaPosted May 14, 2024, 12:05 PM
To achieve this in a .NET application, you can utilize data structures like dictionaries or hashsets to store unique values for each block. Additionally, you can implement a mechanism to enforce read-only access to the compounding wall value across blocks.