Example usage AdvLimit and create FilterSettings

Description of the form specification of user constraints, and an indication of how to configure it to allow you to impose restrictions on detalam

Form edit user constraints (AdvLimit)

In the generated application forms there is the possibility of imposing user restrictions on the lists. User restrictions allow you to configure rules according to which the filtered objects in the list. Consider the following example:

“Note: it is assumed that the application already generated”

class Diagram

Form set custom restrictions

Suppose we have a list of 5 clients that filled in the following way, and we want to select all customers, registered in Perm:

To do this, you must open the edit form of custom constraints, and to introduce a corresponding limitation on the field Прописка. Check very primitive - check the string for the presence of the substring “Perm”.

Once the limit is filled, you must click “Сохранить and применить” after returning the form you need to update the list so that it applied a restriction.

As you can see, the number of Customers was reduced to 3 people: only those who have in the field Прописка was a substring of Perm.

To return the list to its original state, you must reset the current limit by clicking the “Сбросить ограничения”

Example settings FilterSettings

FilterSettings allow you to customize the available to overlay user restrictions field of the object. Consider this example:

Here is the setup form list of Credits. Suppose we want to filter the list and bring those loans that had at least one repayment in the amount exceeding 100 000.

Open the form to create custom constraints:

In the tree fields of the object the Credit is all his masters, and a private field, but there was none of detailov. So it appeared to detaily, you must create a FilterSetting through AdmConsole.

Download AdmConsole

Rule AdmConsole.exe.cofig, need to specify the path to the database of our application in key CustomizationString

Now after assembling the apps come in the form of loans and open the form to create custom constraints:

As you can see, there is a possibility of imposing restrictions on detail Loan. Create a condition that filters all loans with maturity of more than 100,000. Press Сохранить and применить and update the list on the form, you will receive: