Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I need to add section access where the reduction is on the Company field. However, I have other conditions:
Note that, we have date for both companies for both years 2025 and 2024
What are the best ways to do this ?
Thank you!
Hi, how about a creating a composite of the company and ranges of dates as a linkage between section access and the model.
SECTION ACCESS;
LOAD * INLINE [
ACCESS, USERID, COMPANYYEARKEY
ADMIN, ADMIN, *
USER, GROUP1, GH-PRIORYEAR
USER, GROUP1, GHM-CURRENTYEAR
USER, GROUP2, GH-CURRENTYEAR
USER, GROUP3, *
];
SECTION APPLICATION;
DATA:
LOAD *,
Upper(Company) & '-' & If(Date(MonthStart(Date), 'YYYY/MM') < '2024/12', 'PRIORYEAR', 'CURRENTYEAR') as COMPANYYEARKEY
FROM <SourceTable>;