I have a Form1 with Grid and three fields in it with the following properties:
Form control name | DataSource | Field | Display method | CountryRegionCodes property specified on form control | CountryRegionCodes property specified on Table field |
Grid | TrvExpTrans |
|
|
|
|
CommonField | TrvExpTrans | ZipCode |
|
|
|
UA_Field | TrvExpTrans | OITStrornoTransDate |
| UA | UA |
UA_DisplayMethod | TrvExpTrans |
| oitTransAdvanceVoucher | UA |
|
In legal entity settings, the UKR is specified as a country/region, and UA as ISO Code.
I expect, that my “UA_Field” and “UA_DisplayMethod” fields will be visible in UA company ONLY.
At the same time, when I open this form in let’s say DK company – I can still see the “UA_Field” and “UA_DisplayMethod”.
The situation changes if I specify CountryRegionCodes property for the Grid control: ALL field become invisible.
Form control name | DataSource | Field | Display method | CountryRegionCodes property specified on form control | CountryRegionCodes property specified on Table field |
Grid | TrvExpTrans |
| UA (changed) |
|
|
CommonField | TrvExpTrans | ZipCode |
|
|
|
UA_Field | TrvExpTrans | OITStrornoTransDate |
| UA | UA |
UA_DisplayMethod | TrvExpTrans |
| oitTransAdvanceVoucher | UA |
|
But if I change the DK to UA, the “UA_Field” and “UA_DisplayMethod” fields become visible again.
QUESTOIN:
How to hide field and/or controls other controls on form, which CountryRegionCodes, property is not blank. I know that it’s possible to do this by code and modifying some security settings, but maybe there another way of how to do this by modifying some settings (not security)?