I believe it will take custom coding but that may be dependent on the application????
For custom coding there is SetControlDataDictionaryItem C api defined in jdepropwrap.h as well as the ER code system functions "Set Data Dictionary Item" and "Set Data Dictionary Overrides" all of which s/b be able to override DD item properties at run time. There is also SetControlDataPrivate, SetGridCellDataPrivate and jdeSetDataPrivacy defined in jdepropwrap.h that, just based on their name, may accomplish what you want... have not used them myself. You could also play around with defining your own display rule and/or edit rule and set that as a DD override.
Hi Brian
Out of interest, how do you find this stuff out and then know how to call them?
I've ran into this similar problem and suggested we switch off the DD mask, but for now I've tested a simple hide or show solution
RV IBAN is the old code in 9.0 then I just added a new report variable string called RV Hide/Show IBAN, then flip them over
Do Section 00054 RV IBAN [IBAN] = VA evt_F59XL010_IBAN [IBAN]
00055 // =================================================================
00056 // BEGIN: PROJ4034.12B Hidden IBAN test 10/10/2022 John Danter
00057 // Create new variable over IBAN and hide/show depending on 00 PI and F0040
00058 // =================================================================
00059 VA rpt_UnmaskBankAccount_EV01 [EV01] = "1"
00060-RetrieveUsersCurrentRole(
B9509523.RetrieveUsersCurrentRole)
VA rpt_FromRole_FRROLE [FRROLE] <- szRole [FRROLE]
00061-DataProtectionRule(
B0000040.DataProtectionRule)
SL ReportName -> szProgramId_PID [PID]
VA rpt_FromRole_FRROLE [FRROLE] -> szUserId_USER [USER]
VA rpt_UnmaskBankAccount_EV01 [EV01] <- cUnmaskBankAccount_EV01 [EV01]
00062-If VA rpt_UnmaskBankAccount_EV01 [EV01] is equal to ("U","V")
00063 | // If U then Unmask, so show the values by hiding the base E1 DD and show the
00064 | // copy variable instead
00065 | Hide Object(RV IBAN [IBAN])
00066 | RV Hide/Show IBAN = RV IBAN [IBAN]
00067 | Show Object(RV Hide/Show IBAN)
00068-Else
00069 | // Mask, meaning hide
00070 | Hide Object(RV Hide/Show IBAN)
00071 | RV Hide/Show IBAN = RV IBAN [IBAN]
00072 | Show Object(RV IBAN [IBAN])
00073 End If
00074 // =================================================================
00075 // END: PROJ4034.12B Hidden IBAN test 10/10/2022 John Danter
00076 // =================================================================