Rank: Newbie
Groups: Registered
Joined: 1/17/2016(UTC) Posts: 5 Location: Moscow
|
Hello there! You know when you add a restriction into a model, the restriction will be shown in all models. But it's rarely needed to show all restrictions everywhere (at least in my project). So can you help me, how could I hide restrictions I don't need in a current model? Thanks a lot and have a nice day. Edited by user Tuesday, February 2, 2016 1:51:19 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Well, I do not understand what you mean by restriction will be shown in all models... Is that restriction prompted at run-time ? Do you mean shown when executing the report ? The restriction is prompted only if it belongs to model displayed by a view.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/17/2016(UTC) Posts: 5 Location: Moscow
|
Ok, I'll try to make it clear. As I understand and see when I add a prompted restriction into a model, that restriction is shown in the top of the report. And for example when I navigate through tabs, restrictions are always the same on the top. Could I remove some of restrictions I don't need to see when I'm viewing a different tab.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Yes, I understand your need, you want to show only the restrictions related to the models displayed in the tab you are currently viewing... Actually it is not possible in the current version and it seems not so obvious to implement (we will need JavaScript dependencies to activate or not the restrictions when you change the tab)... Sorry.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/17/2016(UTC) Posts: 5 Location: Moscow
|
Got it. It wasn't critical so it's ok.
But I will disturb you again for one little question. I know there is restriction.EnumValues[n] for list of picked values. But is there any method to return number of all values in this restriction?
It would help a lot.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
It is a List<string>, so you can call restriction.EnumValues.Count Sorry but apart from opening the project in Visual Studio, you won't have real documentation on these objects..
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.