Skip to main content

Obtain a leader of a designated member

1. Usage scenarios

Current existing formulaUSER(), you can only obtain the supervisor or first-level leader of the current login person, and you cannot obtain the supervisor or first-level leader of the designated member, how can I obtain the first-level leaders of designated members? In this case, we can use intermediate tables.

2. Procedure

2.1 Step 1: Create and configure forms

2.1.1 Creation and configuration of corresponding tables for departments and leaders

As the source of the "Get member designated level leader" data.

Procedure:

a. Create a common form named Department and leader corresponding table 」;

B. Add a single-line text component named "department" and a member component named "leader;

c. Click save.

(The operation effect is shown in Figure 2.1-1)

Figure 2.1-1 department and leader corresponding table effect diagram

2.1.2 obtain the creation and configuration of a specified level-1 leader table for members

As the source of the "Get member designated level leader" display page.

Procedure:

a. Create a common form and name it: "Get the first-level leader assigned by members 」;

B. Add a member component named "employee", a single-line text component named "department", and a member component named "first-level leader;

(The operation effect is shown in Figure 2.1-2)

Figure 2.1-2 effect diagram

c. Select a single-line text component named "department" and click status> select Hide, default value> Formula edit in the property bar on the right to obtain the department where the current member belongs, here, we use the common "department" single-line text component of the two forms to perform the next data Association;

Function in formula editing👉DEPTNAMETo obtain the department name of the specified person,Note: This formula cannot be set in the department component.

(The operation effect is shown in Figure 2.1-3)

Figure 2.1-3 formula editing effect diagram

d. Select a member component named "first-level leader", select default> data linkage in the attribute column on the right, and configure the data Association table as "department and leader corresponding table 」, the value of the current form Department component is equal to the Department component of department and leader corresponding table. The current form level leader component is displayed as the department and leader corresponding table leader component;

(The operation effect is shown in Figure 2.1-4)

e. Click save.

(The operation effect is shown in Figure 2.1-5)

Figure 2.1-4 data linkage effect diagram

Figure 2.1-5 effect diagram

2.2 Step 2: import data to the corresponding table of departments and leaders in batches 」

Procedure:

a. When there is a lot of data, we need to manually maintain the data in the corresponding table of departments and leaders, and then import the data. Click data management> Import> select table data;

B. When there is not much data, select the corresponding table of department and leader, and click data management> Add> Submit.

(The operation effect is shown in Figure 2.2-1)

Figure 2.2-1 Import Data effect diagram


3. Achieve results

When you select a member component named employee, the following member component named first-level leader automatically brings out the first-level leader of the specified member.

(The operation effect is shown in Figure 3-1)

Figure 3-1 Import Data effect diagram

YIDA in order to better optimize the content and quality of YIDA user manual, it takes you 3-5 minutes to fill in the document feedback questionnaire. The document feedback questionnaire is submitted anonymously, and the questionnaire information is only used for YIDA document experience feedback collection. Thank you for your support for YIDA!

Click this link to fill in the questionnaire


-------------------- Get the latest information YIDA, welcome to follow US--------------------

This doc is generated using machine translation. Any discrepancies or differences created in the translation are not binding and have no legal effect for compliance or enforcement purposes.
Copyright © 2024钉钉(中国)信息技术有限公司和/或其关联公司浙ICP备18037475号-4