How to restrict views in MS INFOPATH 2010 based on a user Login id

Hi,
I am the Admin of the Time Reporting SharePoint tool for my project. When a user enters/edit a time report ,it is done via an Infopath 2010 form. This form has 2 views:
1. For the normal users to see (default view)
2. For the Admins only.
What i want is that when a normal user(not an admin) logs in to the site to change his/her time report and opens this form,that person will only be able to see the default view . If an admin logs in then he/she can swicth between both the views .
Currently i am unable to provide any such functionality. Even a normal user is able to see both the views which i want to restrict.
Pelase let me know how do i restrict the normal users to the default view only based on their login ID.They shouldnt be able to switch views at all.
But if an admin logs on then both the views should be accessible.
I am new to InfoPath , so please let me know from scratch. I need only out of box solution for this as i cannot perform any kind of coding due to site restriction.
Regards,
Guru

Hi ,
My problem is still not resolved. I tried applying the people picker property and set a specific field(an email id field) to be available to only admins. Now the field is not visible to the normal users but only admins which is good but that email field
should be able to take normal users as wel as admin's email ID. currently due to the people picker property it only takes admin's ID and not normal user's ID - which is not as per expectation.
What this email ID field does is - when a normal user is logged in he/she wont see this field in that view. But when an admin logs in he/she can switch to admin view and see this field . The admin can put any user's ID in this field and pull out the required
resource's Time Report for modification.
Please let me know how do i overcome my problem. Detailed step description will be very helpfull .
As per Cameron's suggestion (add a rule on the "additional admin section") , i am not sure how exactly that is done. Would help a lot if i got to know how this works.
Regards,
Guru

Similar Messages

  • How can I filter a Sharepoint 2007 libarry list based on current user login?

    Hi all.
    I would like to know how I can filter a SharePoint library list based on current user login.
    Suppose I have created the followings:
    1) A SharePoint form library containing bunch of uploaded InfoPath form data.
    2) The InfoPath form template contains a promoted text field called "TargetUser" to store user domain login (ex: DOMAIN\JOE) and every InfoPath form file in the library has a valid domain name stored in the "TargetUser" field.
    I have created a custom view for the form library and would like to filter this view so only items whose "TargetUser" field matches current user's login ID are displayed.
    I went to Edit View page to customize the view and tried to use the [Me] function but I got a "Filter value is not a valid text string" message instead when clicking OK. Apparently [Me] returns a Person/Group data type and the filter cannot compare its value
    to that of "TargetUser".
    I tried using text functions (ex: TEXT([Me],"") hoping to extract default string value from [Me]. The filter accepts the parameter without any error but the resulting fitlered list does not display any items at all.
    I have googled this subject for hours but I have not found any solution.
    It would be greatly appreciated if anyone can help me to create a functional filtered list.
    FYI, my SharePoint 2007 installation is just WSS 3.0 + Form Server. I do not have MOSS 2007 (so no MOSS 2007 web parts or web services).
    Thank you.
    Jason

    Here's what I usually do in order to accomplish this.  Ultimately you'll need to have 2 different fields.  There's the one you already have, with DOMAIN\username stored in it.  Then you'll need an additional field as a "person" column type. 
    Call it "TargetPerson" or something.
    Create a sharepoint designer workflow that runs each time an item is created or changed.  One action:
    Set FIELD to VALUE.
    The first FIELD is "TargetPerson", the VALUE is your "TargetUser" field. 
    Once this is done, then the person value is stored in the person field.  This is the field that you can filter by "TargetPerson" is equal to [Me]
    Laura Rogers, MCSE, MCTS
    SharePoint911: SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/laura
    Twitter: WonderLaura

  • How to Restrict Master data in value help screen for a user???URGENT

    Hello Gurus,
    I have a requirement.When a authorized user logins to view the report, he should see only list of customers assigned to that user in the value help screen, instead of displaying whole master data.and the data is displayed perfectly fine for the authorized sales rep. By default, Value help screen displaying all the customer numbers.
    How can I restrict in the value help screen?
    Any help appreciated with points.
    Regards,
    PNK

    Hi Chandran,
                I got that Idea too. I created a authorized customer, I created a authorized Object and assigned to a role.But in the role, when I am changing the object to generate profile, it is asking to select list of customers from the customer table.If the customers are always constant then this would work,  but in my scenario, customers for the sales rep changes over time and when I ever reps open the query, they should see updated list of customers assigned to them only, as we update the master data everyday from source system and that shud reflect in the value help.
    I am trying User Exit to achieve this, but I am not getting proper ideas how to do this.
    Any Help on this issue with user exit code???
    Thanks in Advance
    regards,
    PNK

  • How to restrict a schema owner from granting privileges to other users.

    How can we restrict a schema owner from granting privileges to other users on his objects (e.g. tables). Lets say we have user called XYZ and he has tables in his schema TAB1, TAB2 an TAB3. How can we restrict user XYZ from granting privileges on TAB1, TAB2 and TAB3 to other users in the database. Is it possible in Oracle 10g R2? Any indirect or direct way to achieve this? Please help on this.
    Thanks,
    Manohar

    Whenever someone is trying to prevent an object owner from doing something, that's generally a sign of a deeper problem. In a production database, the object owner shouldn't generally have CREATE SESSION privileges, so the user shouldn't be able to log in, which would prevent the user from issuing any grants.
    As a general rule, you cannot stop an object owner from granting privileges on the objects it owns. You can work around this by creating a database-level DDL trigger that throws an exception if the user issuing the statement is XYZ and the DDL is a GRANT. But long term, you probably want to get to the root of the problem.
    Justin
    Edited by: Justin Cave on Nov 6, 2008 9:52 PM
    Enrique beat me to it.

  • How to specify default desktop and/or startup items for EVERY user login?

    Hi
    My work iMac is

    +Oops! User error! Anyway, here's the rest of my message...+
    The iMac I use at the university where I work connects to Active Directory for authentication - there are no local user logins (apart from the admin account of course).
    I'd like to know how to set the default items for all user logins. Specifically, I'd like the system to automatically create an alias on the desktop to a shared folder for every new user login, or automatically open that folder in Finder when logged in.
    Though I'm the main user, if I'm not around other people may require access to the stuff I do for the multitude of projects I work on for a department of 30 people, and as everyone else uses a PC and only a few are Mac savvy, I'd like to make it as easy as possible for the poor dears to find the files. (We have a shared network drive where I can put some stuff but unfortunately our allocation is not very big!)
    Thanks.

  • How To Restrict View of Data Per User

    I am designing a reporting application in Discoverer, from Oracle Applications data. We need to show sales data to the sales people - and we would like a single Discoverer workbook to do this - the challenge is that we need to restrict the data so that the salesperson only sees his/her own data, and cannot view other sales data.
    I will need to use this same methodology for the sales managers. Each sales manager will only be able to see his/her direct reports' sales data.
    How would you design this? Could we use a single Discoverer workbook for all sales people - and there be row-level security to restrict the current users' search results?
    Thank you,
    Rich Magee
    Greenwich, CT

    Yes Rich. We have only one workbook for all the stores in our case. You can create mapping table like this
    Table Name: usermapping
    username salesrepid
    john 10
    michelle 20
    If you are using your own tables/views for your reports create a repid column in them and populate accordingly.Assuming that your custom tables is like this
    Table Name: RepInfo
    line# salesrepid region product amount
    1 10 NE S/W 1000.00
    2 20 SW H/W 500.00
    Create a function like this
    CREATE OR REPLACE FUNCTION setparam (name VARCHAR2)
    RETURN NUMBER
    IS
    BEGIN
    /* Setting the session client information to the value of parameter so that this can be accessed
    by the custom folder in the admin edition */
    dbms_application_info.set_client_info(name);
    RETURN 1;
    END;
    Create a custom folder like
    select a.region,a.product,a.amount
    from
    repinfo a,
    usermapping b
    where
    a.salesrepid = b.salesrepid
    and b.username = USERENV('CLIENT_INFO') --gets the username from the above function which sets the username for the database session.
    The input to above function which is username would be passed from report using a calculation item.You can create a calculation item and select the function setparam and give the input to it 'USER' variable which is gives the username of the current session.
    The workbooks passes the username to function and custom folder would get the username from the function.This approach would allow you to pass the username dynamically and use the same report for all the rep's. I'vent tried VPD concept till now.
    Hope this helps.
    Thanks
    Raj

  • How to restrict document download in SharePoint 2010

    Is it possible to restrict file downlaods from SharePoint document library.
    Manish

    Hi Manish,
    Information Rights Management is the only way to protect the documents and don't allow user save document in his/her system. You need to setup IRM on your network and the enable it in Central Administration.
    Check this MSDN article for more information:
    http://office.microsoft.com/en-us/sharepoint-server-help/apply-information-rights-management-to-a-list-or-library-HA101790603.aspx
    Hope it could help
    Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"

  • How do I sign my VB / VS 2010 based shared COM add-in for Excel so it loads when the user has checked "Require application add-ins to be signed by a trusted publisher"?

    My COM add-in is developed using VS 2010 and VB. It's a shared COM add-in (not VSTO) and it works with Excel 2007 - 2013. My installer is signed with a code signing certificate but it would appear that my add-in's .dll should also be signed if the user has
    checked the "Require application add-ins to be signed by a trusted publisher" option.
    The "Sign the assembly" option is checked in my add-in's VB -> My Project -> Signing. I have a .snk file selected which I seem to recall generating 6 or 7 years ago when I ported the COM add-in from VB6 to .NET. 
    I have an up-to-date Comodo code signing certificate (a pfx file called MyCompanyCodeSigningCertificatePrivateKey.pfx) which I purchased to use with the installer and was wondering if and how I could use this.
    I tried selecting my pfx file in the My Project -> Signing -> "Choose a strong name key file" dialog. It made a copy of the pfx file in my project folder but when I tried to build the project, I got the following error:
    Error 1 Cannot import the following key file: MyCompanyCodeSigningCertificatePrivateKey.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the
    following key container name: VS_KEY_C0B6F251F0FB6016
    After a little research, I found out I might be able to use signtool to sign the dll in a post-build step.
    I added the following command to the post-build event, before the command I use to regasm the assembly.
    "path to signtool\signtool" sign /f "MyCompanyCodeSigningCertificatePrivateKey.pfx" /p "xxxx" /v "$(TargetPath)"
    When I built the project, the dll appeared to get signed (the output window showed a bunch of confirming text as well as "Successfully signed: c:\MyAddIn\bin\Release\MyAddIn.dll") but the next step in the post-build (regasm myaddin.dll /codebase)
    issued a warning RA0000 (see below) but reported "Types registered successfully".
    Here's the message I get from regasm, even though the output window says the dll was sucessfully signed:
    RegAsm : warning RA0000: Registering an unsigned assembly with /codebase can cause your assembly to interfere with other applications that may be installed on the same computer. The /codebase switch is intended to be used only with signed assemblies. Please give your assembly a strong name and re-register it.
    Types registered successfully
    I'm not using a shim if that makes a difference.
    How do I sign my add-in so it loads when the user has checked "Require application add-ins to be signed by a trusted publisher"?
    Any tips would be appreciated.

    Hello,
    Why do you need to use the regasm utility from the post-build action?
    There is a difference between signing the assembly with a strong name and digital signature. The
    How to: Sign an Assembly with a Strong Name article in MSDN explains how to sign an assembly with a strong name (.snk). See
    How to digitally sign a strong named assembly for adding a digital signature.
    You may also find the
    What's the Difference, Part Five: certificate signing vs strong naming article helpful.

  • How to restrict the cell selection in JTable based on cell contents...

    Hi all,
    I have some problem related to table cell selection.
    I have a table that represets the calendar of some month and year.
    I have the restriction that at one time only one cell could be selected.
    Now i want the cell seletion like this,
    I want only those dates to be selected if that date is after 'today'.
    that is I want to restrict the selection of previous dates.
    how can i do this.
    I have overridden the table methods like this, still no use.
    table = new JTable(model) {
    setOpaque(false);
    setSurrendersFocusOnKeystroke(false);
    setRowHeight(20);
    JTableHeader header = getTableHeader();
    header.setOpaque(false);
    getTableHeader().setReorderingAllowed(false);
    setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    getTableHeader().setResizingAllowed(false);
    setCellSelectionEnabled(true);
    setFocusable(true);
    setBackground(new Color(247, 251, 255));
    setFont(newFont);
    public boolean isCellEditable(int row, int col) {
    return false;
    public boolean isCellSelected(int row, int col) {
    int r = getSelectedRow();
    int c = getSelectedColumn();
    String val = (String)getValueAt(r,c);
    Calendar cal = Calendar.getInstance();
    cal.set(currentYear+1900, month,Integer.parseInt(val));
    Date d = cal.getTime();
    Date currentDate = new Date();
    if (d.before(currentDate)) {
         return false;
    } else {
         return true;
    Someone please help...
    -Soni

    Try overriding the changeSelection(....) method of JTable.
    public void changeSelection(int row, int column, boolean toggle, boolean extend)
         if (d.after(currentDate)
              super.changeSelection(row, column, toggle, extend);
    }

  • LSO: How to restrict employee from accessing LSO Web based course.

    Hi Gurus,
    We have a requirement where we need to restrict few section of employees from accessing the LSO web nased courses. I know this can be done from Structural Authorization concept.
    Can anyone tell me how to implement this structural authorization of section of employees. or any link mentioning step-by-step process will be great help.
    Thanks,
    Swet

    Hello Satya,
    The status comes from entries in Table T77BW. I don't recommend that you change the status as I don't know what issue may occur.
    Relevant coding in RHPQ_INDIVIDUAL_PLAN_READ.
    IF history_tab-endda < sy-datum.            "begin note 588403
      pplans_tab-state_id = att_state_id.
      pplans_tab-statetxt = att_statetxt.
    ELSE.
      SELECT SINGLE * FROM t77bw INTO wa_t77bw
               WHERE context = 'EVENT_BOOK'.
      IF wa_t77bw-new_state IS INITIAL.
        pplans_tab-state_id = '02'.
      ELSE.
        pplans_tab-state_id = wa_t77bw-new_state.
      ENDIF.
    Regards,
    Manny

  • How to Restrict Confirmed Quantity in Sales Order (Based on Batch Expiry)

    Dear SD Experts,
    Currently our sales order confirms any amount of quantity if stock is available. And only during delivery it checks for the expiration of the batch and reduces the delivery quantity to batches available in stock within expiry.
    But since we are doing a bulk creation of deliveries at the end of the day, the check for expired batches is happening too late and no visibility for the data entry operators of stock that cannot be delivered during creation of the sales orders.
    So I am looking for solution to restrict the confirmed quantity in sales order to actually confirm only stock what can be delivered. i.e. based on expiry of the batch.
    Thanks!

    hi
    in Logistic general - batch mangement - batch determination allocation and check activation - maintain allocate SD search Procedure/ activate check
    check this for your sales area and sales document type and then in the search procedure maitain the strategy to check the Expiration date.
    regards,
    Sudhir

  • How do i get kids games to be available on there user login

    i got 2 games for my 3 year old -go diego and dora. when i log in under my sons name i cannot play the games. I can only play them under my log in. he has done a heck of a job messing up my screen and i would like him to only be able to play on his login. How do I do that?

    When you created an account for him did you activate Parental Controls? This limits his use of the internet and the apps that he can use. You would need to go into Parental Controls in System Prefs/Accounts to add the games to his account that you want him to be able to use.
    Dah•veed

  • How to restrict the decimal entry on dynamic table in adf 11 .6

    Hi All,
      JDev version 11.6
      I have a usecase based on dynamic VO. How to restrict the decimal numbers on table columns . When user enter the decimal number .I have to show error message.
      In order to achieve above requirement .I have added value change listener on table column .its not working as expected
    <af:table rows="#{bindings.EmployeeDynamicVO.rangeSize}"
                      fetchSize="#{bindings.EmployeeDynamicVO.rangeSize}"
                      emptyText="#{bindings.EmployeeDynamicVO.viewable ? 'No data to display.' : 'Access Denied.'}"
                      var="row" rowBandingInterval="0"
                      value="#{bindings.EmployeeDynamicVO.collectionModel}"
                      selectedRowKeys="#{bindings.EmployeeDynamicVO.collectionModel.selectedRow}"
                      selectionListener="#{bindings.EmployeeDynamicVO.collectionModel.makeCurrent}"
                      rowSelection="single" id="t1"
                      styleClass="AFStretchWidth" autoHeightRows="-1"
                      columnStretching="last" contentDelivery="immediate" >
              <af:forEach items="#{bindings.EmployeeDynamicVO.attributeDefs}"
                          var="def">
                <af:column headerText="#{bindings.EmployeeDynamicVO.labels[def.name]}"
                           sortProperty="#{def.name}" id="c1">
                  <af:inputText value="#{row[def.name]}" id="ot1"
                                valueChangeListener="#{backingBeanScope.EmployeeBean.validateINputs}"
                                autoSubmit="true">
                    </af:inputText>
                  <af:outputText value="#{row[def.name]}" id="ot6"
                                 visible="#{def.name eq 'Dummy'}"/>
                </af:column>
              </af:forEach>
            </af:table>
    So appriciate if any alternatives on above usecase. Thanks in advance

    HI
    Expected :as soon as user enter the decimal values in table column , it should throw the error message in new small new window
    Getting the value change listener and validating , but its working only tab out (Because VO is dynamic )
    please suggest us any reg expression and Validators to achieve the above scenario ?

  • How to restrict user to not switch other view in infopath form.

    I created two views. both we can see when we open in infopath form in drop down list.
    But I want to restrict this for some users or group.
    If one user will open infopath form he will not be able to switch other view and other user open he can switch both view.

    You should be able to do this. Try the following:
    1.) create a button somewhere in your form (choose a spot you like) - I put mine in the top of form.
    2.) label it Card Access Letter View if you are on View 1 and then add another button to CardAccessLetter and call it view 1
    3.) create a data connection to get the current user info from Profile Services -
    http://www.codeproject.com/Articles/331606/How-to-set-Current-User-Name-to-InfoPath-Person-Gr
    4.) create a hidden text box "Currentusername" and set a form load rule to populate the hidden text box with the current user's name using profile services "Preferred Name".
    5.) create another text box that is hidden and call it something like ViewChangeFlagOK.  Set the default value to false
    6.) click on the form load rules box and create a new rule.  name the rule and then enter your conditions: Currentusername is equal to "enter user name" or (repeat as needed) .  Rule type = Action. Set a fields value to ViewChangeFlagOK =
    True
    7.) Navigate back to your button you created and add a rule.  Condition = View changeflagok is not equal to true, Hide this control.
    add another rule to the button.  condition= Rule runs when button is clicked- Switch to other view.
    this should solve your problem.  Appropriate users will be able to switch views using a button, not the ribbon control, but should solve your problem nonetheless.

  • How to add User Permissions to form created in InfoPath 2010 created for SharePoint document Library

    Hi,
    I created a form in InfoPath 2010 with three views (one for user input, the other two views to be used by supervisors) and published this to a SharePoint 2010 document library. Now the way this form is supposed to work is that when a User goes to the document
    library and adds a document, it is supposed to open the Form with the User's input view. When the User submits the document, only him/her should be able to open and possibly edit the the form. When the Immediate Supervisor opens the form, it should open in
    the Supervisors view and allow them to fill in only their section and not be able to edit or alter the user's data. When the Immediate Supervisor saves the document, the Over-all Supervisor should be able to open it in their view and not be able to edit or
    alter the sections filled out by the User and Immediate Supervisor.
    How would i go about completing this? I have the views created but now have the problem of associating these views with their respective users or groups.

    Hello,
    You need to first create user group in sharepoint site then add user in group according to their role. Later you need to call usergroup.asmx web service to get current logged-In user group name so you can switch view and also apply rule for editing or disabling
    controls in form.
    Follow this link to get group name:
    http://social.technet.microsoft.com/wiki/contents/articles/13271.sharepoint-2010-extracting-user-group-of-current-login-user-in-infopath-2010.aspx
    http://social.msdn.microsoft.com/Forums/en-US/018f5184-5c83-4a53-b66b-8c376fc800fc/how-to-get-current-users-sharepoint-group-name-sharepoint-2010-infopath-2010
    To apply rule on control:
    http://office.microsoft.com/en-in/infopath-help/add-rules-for-performing-other-actions-HA101783373.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Problems with the bluetooth in Lenovo S650

    Hi All, I'me facing a problem in sending files with my new Lenovo S650 by bluetooth. I can't send any file with my mobile to a Laptop. I already have my mobile and Laptop connected with each other... I can send from the Laptop to the mobile but in re

  • PS CC frozen in 3D

    Hi! Why does PS CC freeze when choosing 3D extruding layer? I just try to work on a simpel letter which I will convert in 3D. Thanks!

  • Unable to choose printer profile in PSE9

    If I choose printer color management in the Color Management screen, the profile is set to Lab color and cannot be changed.  I'm running Windows 7 and printing to a Canon i9900.  I'm sure I could choose a profile with PCM in earlier versions of PSE.

  • Multi-instance Install for CF 8

    Hey all, so we have installed CF 8 for multi instance. The main instance will show up fine in the browser, but any additional instances will not show up correctly. Either the instance shows a blank white screen, or it gives a page not found. We are s

  • Desktop Manager Music Sync Error

    Whenever I sync my music to my Blackberry Torch 9800 with Desktop Manager, I keep getting an error. It never used to happen until one day I tried to sync my music and an error occurs after about half the songs were put on to the device. I tried many