Employeelist by CurrentUser

For students who study 1C Senior course.

#1
People who like this:0Yes/0No
Interested
Rating: 10
Joined: Sep 30, 2020
Company: Nortek Bilişim

I am tring to get employee list in order to CurrentUser.I want to show employees which belong to CurrentUser(Mesut Kahraman) in pic2.But All Employees are shown.What can be problem?

Download Codes.PNG (51.18 KB)
Edited: Mesut Kahraman - Nov 12, 2020 04:11 PM
 
#2
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 6
Joined: May 8, 2013
Company: 1C Company

Hi Mesut.

Not sure is I understand the functionality you are trying to implement. Do you need to bind a system user list (Designer -> Administration -> Users) with your Catalog?

 
#3
People who like this:0Yes/0No
Interested
Rating: 10
Joined: Sep 30, 2020
Company: Nortek Bilişim

I have added users that are shown in the picture.Employees are not shown in order to Users.All Employees are shown whatever which user log on.

Download Users.PNG (11.17 KB)
 
#4
People who like this:0Yes/0No
Interested
Rating: 10
Joined: Sep 30, 2020
Company: Nortek Bilişim

I have added my dump

 
#5
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 2, 2020
Company:

In the "Calisanlar" catalog, for the attribute "ID" you have to change the type of attribute to UUID (Screenshot 1).
In order to show the full name of the user on the elements of the form, we first add an attribute of the form which is also called "ID", but this time it's data type is string 25 characters. Then drag and drop it to the elements of the form window to the left. (Screenshot 2)
Lastly, on the module of the form you should commnet the line "thisform.object.ID=GetIDUser(SelectedValue);" and add the correct line "thisform.ID = GetIDUser(SelectedValue);"(Screenshot 3)

I have uploaded the .dt with working functional too.

Download 1.png (125.43 KB)
Download 2.png (198.37 KB)
Download 3.png (176.33 KB)
 
#6
People who like this:0Yes/0No
Interested
Rating: 10
Joined: Sep 30, 2020
Company: Nortek Bilişim

Yes it works now.Thank you very much!

 
#7
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 2, 2020
Company:

Thank you for your attention!

 
#8
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 2, 2020
Company:

thank you

 
Subscribe
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.