Documents view permission

there is a designation table and there is admins e.g supervisor,manager ,director
so when supervisor upload document then he/she not able t see his/her documents
i try this sp
SELECT dbo.DocumentInfo.DocID, dbo.DocumentInfo.DocName as DocumentName,
dbo.DocumentInfo.Uploadfile,
dbo.DocumentInfo.UploadedBy as UploadedBy,
dbo.Userss.Email as UserEmail,
dbo.Department.DepType ,
dbo.ApproveType.ApproveType AS ApproveID
FROM dbo.Department
left JOIN dbo.DocumentInfo
ON dbo.DocumentInfo.DepID=dbo.Department.DepID
left JOIN dbo.DocType
ON dbo.DocumentInfo.DocTypeID=dbo.DocType.DocTypeID
inner JOIN dbo.Userss on Userss.UserName =dbo.DocumentInfo.UploadedBy
LEFT JOIN dbo.ApproveType
ON dbo.ApproveType.approveid=dbo.Department.DepID
where dbo.Department.DepID=@DepID
s0 how i appy condition that supervisor not able to see his/her documents?

i solve this using below query
SELECT dbo.DocumentInfo.DocID, dbo.DocumentInfo.DocName as DocumentName,
dbo.DocumentInfo.Uploadfile,
dbo.DocumentInfo.UploadedBy as UploadedBy,
dbo.DocumentInfo.UploadedDate as UploadedDate,
dbo.Userss.Email as UserEmail,
dbo.Department.DepType as Department ,
dbo.Designation.DesigType,
dbo.ApproveType.ApproveType AS ApproveID
FROM dbo.Department
left JOIN dbo.DocumentInfo
ON dbo.DocumentInfo.DepID=dbo.Department.DepID
left JOIN dbo.DocType
ON dbo.DocumentInfo.DocTypeID=dbo.DocType.DocTypeID
inner JOIN dbo.Userss on Userss.UserName =dbo.DocumentInfo.UploadedBy
inner join dbo.Designation on dbo.Designation.DesigID=dbo.Userss.DesigID
LEFT JOIN dbo.ApproveType
ON dbo.ApproveType.approveid=dbo.Department.DepID
where dbo.Department.DepID=@DepID AND dbo.Designation.DesigType !='Supervisor'

Similar Messages

  • Document library Permission - users/group can add/upload/modify but same time not to see other documents

    Hi,
    I have a question regarding SharePoint document library permission. I am using SharePoint 2013.
    I have 3 SharePoint groups (SP-Group-NL, SP-Group-US & SP-Group-BR).
    I have given the contribute access to all 3 groups in the document library, so that people can with in these group can upload/add/modify document inside it.
    Now I want that people from specific group can only view those document which they uploaded and not all.
    Note - (a) I don't want to use audience targeting. (b) I don't want to right any code.
    Regards,
    Yogendra

    Hi Yogendra,
    Per my understanding, you might want users in a specific group can view only the documents uploaded by themselves.
    In the OOTB list view settings, we can set filter on a list view to only display the documents created by the current user:
    However, if you want this filter only apply to users in a specific group, Audience Targeting or custom code would be required as there is no such OOTB feature in SharePoint
    list can meet this requirement.
    With Audience Targeting, a possible solution is that, we can add two list view web parts into one page, set Audience Targeting on one of them to display only when
    the current user is in the specific group, then modify the view settings to apply filter on this list view web part to make it only display the documents created by current user.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Security assignment for Document viewer TF .

    Hi All,
    I am uploading the document in my content repository using upload method of document viewer .
    for this i have created a jspx page with document viewer TF .
    There is a constrain that only soa_admin user can get the permission to upload the document .
    Can anybody guide me how can i assign this role to my TF without using adf security .
    Thanks,
    Arun.

    Hi All.
    I have created content manger TF in my jspx page .
    When i am runnning this application i am able to see all my documents .
    But ehenever i am trying to upload some file getting following exception please guide me .
    Messages for this page are listed below.
    Information     
    Unable to upload the document.
    Information     
    You do not have permission.
    Information     
    Click the Refresh icon to see the latest content.
    Please provide your input how can i assign valid user role for upload functionality.
    Thanks,
    Arun.

  • Since iOS 4.2.1 Update - Document viewer Apps do not work right!

    Before I updated to iOS 4.2.1 Air Sharing (Document Viewer) was working (so were all my Document Viewers), but currently, they do not work correctly. I have checked about three others...all have the following problems:
    Since I updated (to iOS 4.2.1), all the documents open up to FULL SCREEN mode (which it had never done before, since the very beginning of the AppStore). Full Screen mode means that it looks like a Word Document on the computer, with the margins showing. This is rediculous for the screen of an iPhone or iPod Touch. There is no need to see the margins. Also, the font size is so small that it makes it almost impossible for most people without a magnifying glass. The document used to open up to a "zoomed in" view of the text. This allows the person using the application to actually read the text. This also allowed scrolling up and down easily. Now, with the new Full Screen view, to get the text large enough to see, you have to double tap (or spread your fingers on the screen to scale it big enough) on the text to read it. Then, when you scroll up and down, it sometimes scrolls side to side or diagonally (into the white margins), making reading cumbersome.
    The other problem with the new view is that the font sizes are all messed up. The normal font (whether 9 pt. to 16 pt.) looks the same. The italic font looks bigger than the normal font, though it is the same point size. It skews the page and alters what the original documents looks like.
    I have contacted the developer of Air Sharing to complain, but he said the following:
    Hello,
    Thank you for the test file. I do see what you're referring to. We use Apple's built-in Office viewer for Air Sharing. This means to display files like .docx ones, we use Apple's viewer. It's possible they changed their viewer in the most recent iOS update to cause this change. Because it's not our viewer we have no control over how it displays such files. Other apps using Apple's viewer will encounter the same issue. I wish there was more we could do on our end to help resolve this problem.
    Cheers,
    Elliot Chase
    Avatron Software, Inc.
    Please tell someone to fix this situation. I can provide you with information (and screen shots of before and after) to back up all my complaints. Thank you for listening.

    Ah, so that could be a good search term.
    Things get a bit more weird though. I was looking through the commands in the drop down menu and saw under "Archive" this: "Put/Send the Apps you bought to this computer" (rough translateion in English) So I tried that out.
    I could only do that by going to "Store" and (**** how to say that in English) "Allow" this computer to do that. This is weird as this is the same computer that I have always used for anything to do with the iPhone! I have now 2 computers that are allowed to sync, and it is one machine. Beats me!
    At a certain point the transfer proces stopped again and again I was requested to "empower" this computer again, as out of the 65 apps now 21 were not allowed to be transfered! That did not work. It now keeps telling me that I have 2 computers allowed for transferring apps and these last 21 can not be put in the library.
    I am a bit at my wits end!
    But really thanks for trying to help out! It seems that 4.2.1 has some real problems when reading through the discussions!
    Cheers!

  • Unable to see SAP BusinessObjects Document Viewer template in 7.4 portal

    Hello Experts,
    We are looking to integrate dashboards created with BOBJ design studio into enterprise portal (NW 7.4). We have followed the steps mentioned in the blog Integration of BOBJ with SAP Portal.
    Namely:
    1. Taken the com.sap.businessobjects.iviews.par and com.sap.businessobjects.iviews.templates.epa files from the BI server
    2. Imported the EPA file into the portal
    3. Converted the com.sap.businessobjects.iviews.par file into EAR file and deployed it into the portal
    4. Created System alias for the BI system
    5. Configured SSO between portal and the BI server
    After doing these steps when trying to create the Business Objects iView we are unable to see the SAP BusinessObjects Document Viewer template in the portal. Can anyone let me know if we have missed some additional configuration that has to be done?
    Regards,
    Saurabh

    Hi Experts,
    Issue has been resolved. After importing the EPA file into the portal, we missed out restarting the portal. Once this was done I am now able to find the SAP BusinessObjects Document List and SAP BusinessObjects Document Viewer templates in the iView creation wizard.
    Regards,
    Saurabh

  • Open PDF file in Acrobat reader rather than SAP Document viewer...

    Hello everyone,
                    Whenever we attach a pdf file using Services for objects-->Store Business documents, an attachment list list is created and the file is archived in the repository.
    If we double click on it, the pdf is opened in SAP Document viewer and not in Acrobat Reader unlike word document....
    Can anyone tell me what configuration changes should be made and where so as to open pdf file in Acrobat?
    Similarily what changes should be made so as to open Email files in Outlook?
    Edited by: Suruchirazdan on Mar 31, 2011 8:33 AM

    Which version of the Acrobat Reader do you use?
    According to my experience with our desktop this might be a feature of ACROBAD READER X.
    Kind regards
    Herbert

  • Document Viewer: Show document inplace using "view_document_from_table"

    Hello,
    i am trying to show a pdf-document on a dynpro using i_io_document_viewer.
    As long as I don't activate "show_inplace", it works fine. The document is correctly shown in an external browser window. So the parameters i export seem to be allright. But when I set show_inplace='X' nothing happens - neigther the document is shown nor I get an error. I think my way to create the control and the container could be the problem...
    Name of my Custom Control at the dynpro: CC_DOCUMENT
    my_viewer TYPE REF TO i_oi_document_viewer
    my_custom_container TYPE REF TO cl_gui_custom_container
    Code:
        CALL METHOD c_oi_container_control=>get_document_viewer
          IMPORTING viewer = my_viewer.
        CREATE OBJECT my_custom_container
          EXPORTING container_name = 'CC_DOCUMENT'.
        CALL METHOD my_viewer->init_viewer
          EXPORTING parent = my_custom_container.
        CALL METHOD my_viewer->view_document_from_table
          EXPORTING show_inplace = 'X'      "With ' ' it works...but of couse NOT inplace :-(
                  type = 'application'
                  subtype = 'pdf'
                  size = file_size
          CHANGING  document_table = file_table
    Does anybody see my mistake? I've been searching for hours -.-
    Thank you for helping,
    Best regards, margger
    Edited by: margger on Mar 22, 2011 2:51 PM

    Hey Andrea,
    thank you for your answer. The problem is that the .pdf is only a test file - later there will be images, movies, pdf-documents, ...
    So the integration of the document viewer would be nice. And, like I said, showing the document works, but not embedded in my dynpro.
    Regards,
    margger

  • Need document viewer in sharepoint 2013

    Hi,
    I need document viewer for documents in library and need to place annotations.
    Thanks & Regards,
    Siva

    Hi,
    If you want to place annotations in PDF file, you can use Annotate101.
    http://apps.microsoft.com/windows/en-us/app/annotate101/a8c958fd-2248-499f-96ba-647fbafc4ef3
    In addition, AutoVue and Accousoft seems to be solutions.
    For more information, you can refer to:
    http://www.viewerforsharepoint.com/autovue_for_sharepoint.htm
    https://www.youtube.com/watch?v=D67AIKyt88M
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Issue with the Document Viewer for Some Users

    Hi, I have archivelink setup in our system. Users are able to view the documents using this link. But issue is that one user is unable to view the documents while others can view the documents.  The roles for both users are same.
    Searched the forums but found nothing. Acrobat Reader version is 9.

    hi can you help me, im a desktop support engineer we got 2 users who have the exact same problem as in the call ive made here?
    nothing being displayed in Document Viewer for 720 gui user via Webportal
    any ideas, if they log onto other windows 7 machines still dont work

  • Passing dynamic content to a Document viewer in a Content Presenter Templat

    Hi, This problem is probably for Yannick. Our customer has a bunch of documents in UCM. They want to be able to put links to these documents in their Navigation Model (Webcenter Spaces App) which bring up the document as content inside a page, i.e. inside a Document Viewer that is the content area of the page. In their last portal, they did this by creating a page for every document because the Document Viewer in Spaces requires an itemId to a specific document.
    We need to create a single page and pass the URL or UCM Content Id to the Document Viewer that is the content area of the page. I tried creating a custom Content Presenter Template with a Document Viewer Task Flow inside. In the Nav Model, I have added a Content Item with the path to the doc in UCM. but it doesn't work. I even went into my CP Template and hard coded the resource Id parameter of the DV Task Flow but nothing comes up.
    If I add a document in Spaces to the page, I add it in a Document Viewer and the "Item Id" is set automatically. Then it works. But I NEED to be able to do this dynamically to avoid tons of separate pages, one per document.
    Please help. Thanks, Gary Kind

    I was able to get it to partially work by using a link item in the navigation model. As URL parameter 'docId', I put the UCM resource ID, e.g. ucm_conn#dDocName:UCM_CLUSTER-000027. In the destination page, I have a Document Viewer Task Flow whose resourceId input parameter I set to #{param.docId}. This works in that the Document Viewer appears nicely and has the correct path/breadcrumbs. I can display the document in a browser from the View menu item. I can download it from the download menu. However the actual file contents do not show up. In the center where they should be, I get an Error-404 file not found. Why is that? It is finding the file in UCM, and I can access it other ways in the DV, but it can't find it in to put it in the Viewer area? That ain't right.
    How do I get this to work correctly?

  • Embedded document viewer in Flash

    Hi,
    We are looking at provided an embedded document viewer within a website and also within a Flash based applicaiton.  The document viewer would need to display Office documents and PDF documents.  We think Adobe has Flash Paper which fulfills some of these needs but this is no longer supported after it has been acquired from MacroMedia.
    Could any one please provide inputs on any Flash based document viewers that can be embedded in a Flash application?
    Thanks.

    i dont think so that you have a component like that.. my be you can try to build a custom component for that.
    chk here
    http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx

  • Document viewer in 5800

    As seen in specification for 5800 there is documnet viewer. But while opening any .doc or .xlc or .ppt i cannot open it. Isn't there any application preloaded to open office documents. If not, kindly suggest if any freeware application is available or not.

    5800 Xpressmusic smartphone have preloaded office document viewer as well as other good stuff out of the box. all u have to do is install these (provided you are connected to the internet).
    n82 v30.0.019 Nokia N82 (08.01)
    n73 music edition

  • Document viewer in oaf

    hi! does not anyone have a detailed instruction of setting up the xml publisher document viewer? as i am new to OAF and BI Publisher, will anyone be able to share one?
    Thanks!

    Perhaps check the value of profile option "ICX: Numeric characters"?

  • Document Viewer in Adf

    I have the requeriment to implement a document viewer that don't let print and save a document(pdf,word,excel). Is there any viewer for adf? Do you know a free o payed viewer that i can connect with java or adf?

    i dont think so that you have a component like that.. my be you can try to build a custom component for that.
    chk here
    http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx

  • Documents or images are not shown in document viewer properly.

    Hi Friends,
    we are using sap ecc6.0 release 700.we have implemented document viewer functionality to one of our application.we have Adobe in our system.some times documets(pdfs) are shown properly in document viewer.but some times documents are not open in document viewer.in this case if restart the work station PC ,document viewer working properly.so we have to know any ways to correct the bug without restart the workstation PC.
    please suggest any ways to correct it.

    Hi Venkat,
    i am not sure about it, but lets a try ask to your basis consultant for the latest gui .i.e. 7.3 with patch level 8, use the latest GUI and then see , is still you are getting those problems, please revert with your answer.

Maybe you are looking for