1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00
Elsio Sanchez 0d98ea5614
add document (#827)
* add router the service preference

* minimal changes

* add translate

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
2021-05-07 17:11:14 -04:00

3.3 KiB

Preference

Allows set a default value for a record, the value can be set for the follows entities:

  • Check Client: Set default value for all clients
  • Check Organization: Set default value for all organizations
  • Check User: Set default value for all users
  • Check Window: Set default value for all windows

ADempiere-ZK Version

Preference dialog for ZK verion

ADempiere-Vue Version

Preference dialog for Vue Version

When a flag is unchecked, the user make as default value for all entities related to check:

When the flag Window is unchecked the default value setted is applied for all windows intead. The behavior can be see when a new record is created on any window with with the same field name.

The same behavior is for the flags Client, Organization and User.

Where is it?

This dialog can be open over any field of window.

What is the scope?

Just set the default value for a field on a client, window, organization or window.

Functions and comments

::: tip The default value for all entities checks is the follow:

  • For all organizations of this Client, this User and this Window :::

How work in desktop version?

In desktop version just make click over a field and select the option "Preference", the preference dialog will be showed at center.

How work in mobile version?

In mobile version just make click over a field and select the option "Preference", the preference dialog will be opened at right as a drawer.

Develop Options

The Preference dialog was written on the follow path:

└── src                             # main source code
    └── components                  # global components
        └── ADempiere               # ADempiere specific components
            └── field               # Fields
                └── contextMenu     # Context Menu for all fields
                    └── preference  # Preference folder

A demo is here

The Preference service consumption call is in the following path:

└─ src                         # Main source code.
    └─ api                     # Global services
      └─ ADempiere             # ADempiere specific services
            └─ field           # fields
                └─ preference  # Main service directory preference

The component's services are
GET adempiere-api/ui/set-preference
POST adempiere-api/ui/delete-preference

To do

In the ADempiere-UI version, field preferences are not set. Therefore, it is required that the problem be corrected so that these preferences can be established.

This problem was reported in the issues 814