I have query here please check below statement:
ex: user1 uploaded 2 attachment and user2 uploaded 3 attachment that means.
user will see only 2 attachment and user 2 will see only 3 attachment on the grid
5.I am using Thingworx 8.1 version I know its old but I don't have any option right now.
I don't want to show all files in grid I want show files data on grid on user specific.
Please suggest any solution
Hi @dt, I guess you can achieve this by maintaining a list (a data table or anything), in which, the information of the uploaded file (e.g., file name and path, etc.) and the session (the current user).
(The insert operation may be executed after the FileUpload Completed event.)
Then in your displaying widget, you'll need another custom service, it reads the session information to get the current user and gives the corresponding list of files.
Easy solution would be to bind the upload path, where the file will be uploaded to. Use the User-variable name in this path.
In upload widget bind the name to the upload-path:
So you will end up in a folder structure like:
To display only the files of the current user you will also use "FileRepository/<user>" as path filter to retrieve the file list.
With this you can create your usecase I think. Depending on your usernames you may need add additional logic to remove invalid charachters for directory names. You may also need to add a "/" before the path - not sure if a / is needed or if <user> is sufficient as path for the widget.
Thanks for your reply but Is this sure that we can get the repository file name according to user Or is there any servcie where I can get all files as per user name. Because I unable to find any such service from where I can find current user name files from the repository.
Binding User name it will not working Please suggest the solution how to display and get current user file name list