Hey,
I am currently working on Creatio Energy 8.2 development tasks. As per my development task, I have done the following points:
-
created section 'Concert'
“Performances” detail
- set system variable: i.e. max duration = 150 minute
- Web Service
But I'm facing issue while implementing Business logic for validating Performance Detail: "if the total duration of the concert performances exceeds the system setting value (see above), saving a performance record should not be permitted. Instead, a user should receive a message informing that no more than “N” total performances duration is allowed. “N” is the system setting value."
As per my approach, In 'UsrPerformanceDetailFormPage', I'm trying to get Concert Id, so that I can fetch all performance details mapped to this concert-id & calculate sum of duration of "existing performance + new performance". But unfortunately, I am unable to fetch concert id.
Please suggest me how can I validate adding new performance detail record.
Like