Quantcast
Viewing all articles
Browse latest Browse all 175888

CountryRegionCodes property for the form controls

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

 

Image may be NSFW.
Clik here to view.

In legal entity settings, the UKR is specified as a country/region, and UA as ISO Code.

Image may be NSFW.
Clik here to view.

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”.

Image may be NSFW.
Clik here to view.

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.

Image may be NSFW.
Clik here to view.

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)?


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>