KM Custom UICommand  Visibility / Permissons

Hi
        I have created a custom uicommand to fullfill our current needs. This command is based on the popular one step "Implementing Flexible UI One-Step-Screenflow". My current problem is that this new button is available for every user in KM. I want to restrict this according to the Read/Write/delete permissions for the current resource. I would also like that this button is only Available for certain resource types ( Mainly WPC articles etc)
thanks

I think i found the answer to the first part of the question.
this can be controlled in the isexecutable method of UICommand
    CreateDocumentOrUpdateContentCommand createResource = new CreateDocumentOrUpdateContentCommand();
      createResource.setResource(this.resource);
      return (this.resource.isCollection()) && (createResource.canExecute()) && (!isMatchedPath(this.forbiddenPaths, this.resource.getRID().toString()));
This is a small code example i got from UINewFile Command
If this works ( i havnt test it yet) i only have to restrict the file according to the available WPC content types
Any ideias on this?
Thanks
Edited by: Phatinox on Aug 17, 2011 5:20 PM

Similar Messages

  • Limitation on number of custom attributes visible

    Hi,
    I am using OIM 11g.
    All the custom attributes are visible on the create user form. I am able to see only 8 custom attributes on the modify user form.
    The visible property of all the attributes is set to true. I cannot modify the attribute once its created at the user creation.
    Can someone please help me out?
    Thanks...

    I got it resolved.
    Permissions in the access policies were not enabled for the remaining attributes.

  • Error creating custom reports. Permissions issue with custom reports

    I am having permission issues with reports. I am building a new Configuration Manager  2012 infrastructure and I have configured the Site server on Server1 and the DB is on Server2. Server2 also hosts the Reporting Point and SSRS roles/features. If
    I look in Monitoring at the Site Status and Component Status are all green no issues with the setup.
    Running SQL 2008 SP2 (no CUs). I have a service account that I used to install Configuration Manager and SQL. This service account is running the SQL service on Server2 and i am using the same account as the Reporting Services Point Account.
    I log into the SCCM console with a different user account, lets call it Admin1. This account is a member of the Full Administrator role. I can run any built in report.
    When I open the SSRS website and try to create a custom report I connect the DataSource using Windows Authentication. So the Datasource is connecting using the logged in users account. In this case Admin1. I test the connection and it connects fine.
    I test this query. (Select * from v_R_System) I only have about 10 workstations discovered so the report shouldn’t be very big. I get an error “The Select permission was denied on the object ‘v_R_System’, Database ‘CM_XXX’, schema ‘dbo’. (Microsoft sql server,
    Error: 229)”
    I have fixed the SELECT permission error by going into the database (using SQL Management studio) and granting Admin1 Select rights to the Configuration Manager database. I can now run the above query and make custom reports.
    My 2<sup>nd</sup> problem is that other members of the Full Administrator role cannot run these custom reports unless I go into the database and grant them the SELECT permission.
    Question:
    Should I have to manually go into the database to add SELECT permissions(i could use a group)? shouldnt Configuration Manager take care of this for me?
    Maybe the built in reports use the SQL service account rights and the custom ones do not? Am I doing something wrong with the Datasource when I create these custom reports?
    What is the correct process for creating custom reports?

    I think i am getting closer to a solution. After the Custom report is created. i can go back into the report. Delete the DataSource. Then browse for a dataSource. there is a datasource located in http://server2/reportserver/ConfigMgr_XXX/
    That datasource is used by all builtin reports. if you view the properties on the Credentials tab it is set to "do not use credentials" and the option is greyed out / cannot be changed.
    it looks like i still need the SELECT permissions on the database to create the report initially but at least i have solved the problem with viewing these reports.
    Can anyone confirm that what i did is correct?

  • Making a created custom page visible to all users in Business Process Workspace

    Hi everyone
    I, as the admin of Business Process Workspace, have created a custom page to show an external URL.
    How can I make this page visible to all of our ordinary users?

    Hi Ashwini
    Thanks for replying.
    I did the same and it was working for me even if the Type is Single.
    I just gave the Group name and all users were able to see the task. This is fine with me.
    I just observed one more thing.
    When the task is created, all the users in the Group are able to see it in 'Me & My Group'.
    But the data entered by the creator is not seen by other users.
    There is an action 'Save' in the Task. If the creator clicked on it, then the task is automatically 'Acquired' by the creator.
    Other users in the group are able to see the task and the saved data, but are not able to Submit.
    What I expected the Save button to do is only to Save the data in the Payload. Not Claim it.
    Is there a way to make the payload data only to save but not to claim the task?
    Thanks and Regards
    Sameer

  • Custom Access File Permissions

    I"m using Snow Leopard Server 10.6.8, and we've been having some permission problems.  If you go into a folder that has read-write access and open a file and make a change in the file, the system requires you to save it as a new file rather than just letting you save it and replace the existing files.  I've found that the files that have this issue are setup with "Custom Access" showing in their permissions section under "Get Info".  I don't know why or how it creates Custom Access but I'd like to be able to change it or make the server stop doing it.  Any solutions?  Thanks.

    I've just upgraded to Snow Leopard (don't laugh...I know I'm a dinosaur..) and sometimes I need to over-write a file 10 or more times when I'm doing corrections.  It saves as a new file and adds another '.' at the end which is extremely frustrating! 
    Any help on how to go back to the old 'do you want to replace this file' box would be gratefully received!
    Thanks...
    Take care
    Marianne

  • How to fix custom access so permissions will work

    How to disable “custom” access setting on my hard drive which causes permissions problem?
    This is on a 2007 MBP with most recent OSX, etc.
    Here’s what I have tried based on posts I read on this forum:
    (1) I logged into admin account and typed into Terminal the following:
    sudo fsaclctl -p /Volumes/drivename -d
    sudo chmod -R +rwX /Volumes/drivename
    No go. Terminal does not recognize command fsaclctl
    (2) I also tried into terminal
    
sudo chflags nouch /Volumes/”drive-name”
    chmod 755 /Volumes/”drive-name”
    (3) I restarted with recovery disk and did repair permissions. No go.
    I saw a suggestion to erase the hard disk and reinstall OSX. I will do so (but would rather not) if it will solve the problem. Any advice is welcome.

    Try Settings > General > Reset > Reset Network Settings
    If that didn't helped:
    Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears)
    Note: You will not lose any data.

  • Custom acl and permissions

    I would like to create a custom ACL that will provide additional permissions to grant/revoke on ACLs.
    For example, I would like to add a permission PROCESS that would allow users to trigger a particular process using that document. Obviously I would need to check that ACL in code before allowing the operation, but I would like to use a unfied security policy in the app.
    As far as I can figure out, I would need to create a custom version of ACCESSCONTROLLIST, but I cannot figure out how to add additional permissions. Any ideas? Thanks.

    i don't know if this still applies, but it should.
    check this archived thread:
    http://discussions.apple.com/thread.jspa?messageID=1535247

  • Custom UICommand Opening in a New Window

    I have followed the Simple One Step Screenflow tutorial but I have a question as to how I can open the screens in a new window?
    For example, if I was to click "My Button", I would like the screenflow to open in a new window instead of within the actual iView.
    Is there a good way to do this?
    Thanks.
    Brandon

    Let me know , if you found the answer to the above problem. I really appreciate your response. I have a requirement at the client to download Article properties to local m/c,let me knowif you know some thing in same area.

  • How to keep custom drawbot ui visible in comp window even if applied effect is not selected?

    Hey guys!
    Time for another noob question.
    I'm trying to keep my custom ui visible in the comp viewer window even if the user has deselected the effect with the ui overlay.
    My experimental effect plugin is based on the CCU example project.  I modified the DrawHandles function in CCU_UI.cpp to do my test drawing.
    Its working fine, but anytime I deselect the effect, AE stops drawing it on the comp.  I tried modifying DrawEvent() to skip the event_extraP->contextH->w_type check, but the ui still goes away.   I tried just calling the DrawHandles() function in CCU's Render() function, but this causes AE to crash.  I think its exploding when DrawHandles() is trying to get a surface context, but this is just a guess from the error it reports on crash:
                        ERR(suites.DrawbotSuiteCurrent()->GetSurface(drawing_ref, &surface_ref));
    Any tips?
    Perhaps I could do my ui drawing in the Render function and burn it into the render buffer, but I would need to check to make sure NOT to draw the UI if AE is actually rendering the comp (preview or output to disk).  I don't have any idea what object would tell me that. 
    thanks and happy friday!
    -Andy

    Thanks for your help Shachar.
    I've made some progress on this, but I've hit a wall. :\
    In my effect's globalSetup() I check the itemID for the parent comp that the effect's layer lives in.  I store this in the effects' global data.
    In my effect's Render() method, I check to see if the active item's ID is the same as the one stored in the global data.
    This works interactively, ie: the ui burnins happen if the comp with the effect is active, and if the comp is not active, or a nested comp, the burnins do not occur.
    However, during ram preview & rendering, checking the active item's ID doesn't seem to return the proper ID, so the burnins still happen.  
    I wonder, during ram preview/render, is the comp no longer active?  (I'm guessing this is whats happening)
    If this is the case, is there some other object that I can look at to know specifically which comp is getting rendered/ram previewed, so I can use that information as a trigger instead of:
    ERR(suites.ItemSuite6()->AEGP_GetActiveItem(&active_itemH));
    I assume some object getting passed along to my Render() method can at least tell me which (parent) comp AE is trying to render? 
    thanks!
    -Andy
    Thanks!

  • How do is get back to Read & Write permissions on HDs ?

    Hi gang,
    I was trying to set up one central folder for 4 iTune users (accounts) in our household.
    One of the blogs said put in "Shared" folder and set permissions to "Read & Write".  I tried but on "Everybody" is does not offer the "R&W" option, just "Read".  They also said to be sure you clicked "Apply to Enclosed Items" in the drop down.  Although I could not set "Everyone" to "R&W", I clicked on "Apply to Enclosed Items" and the hard drives clicked for at least 15 minutes.
    Afterward I got a pop up that said...   System Extension "/System/Library/Extension/ACard6280ATA.kext" was installed improperly and can be used.  Try reinstalling.  and an OK button to click.  I clicked OK and at least 100 more popup appeared, one after the other as I clicked OK.   They all had the same basic message except the info after  /System/Library/Extension/, it kept changing slightly on each new popup.
    The big problem is I now have three of my four internal hard drives locked to my access and all they say custom on the permissions Privilege window.   Only my main HD is working, thank God.
    How do I get back to Read & Write on Privileges, and on all Hard Drives?
    Thanks for any help, I just made the move to MAC but have good background with windows operating system.
    Gary

    Thanks for all the reply's, I really appreciate your time.  I have Apple Care so I worked with Apple tech last night and today, but they had to pass problem on to their engineers.  They did a great job trying to help and spent 2 hours helping me input in code through the Terminal screen.  It helped a little, but we still can access drive 2, 3 and 4 due to the global permissions that were changed.   All in all, it looks like we have to reinstall the OS on a washed HD.
    I found out that the Repair program (Disk Utilities) only repairs permissions that were created after the initial set up.  It won't correct original setting and that's what happened when I clicked on "Apply to Enclosed Items" at the root level.  Likewise Time machine does not clone the main operating system so a restore would probably not get all the pieces back in their proper places.
    I was thinking of doing a reinstall of the whole Mac HD drive (boot drive) with an exact copy I made with Carbon Cloner a month back, but the techs seem to think they will have to work on of the 4 individual HD I have.
    Thanks again for the quick responses, I will let you know what happens in a few days.
    Gary

  • Question about permissions

    I have 2 users in a computer that mounts a directory from a server via nfs.
    That directory is used to share files between users.
    When a user creates a file in that directory the permissions are rw-r--r-- (the default umask 022). Since it is a shared directory, I would like new files to have rw-rw-r-- permissions.
    I do not want to change the default global umask of 022, because that is ok everywhere else. I just would like to set an umask 002 only in the shared directory.
    Any ideas about what direction to follow
    Regards
    :shock:

    Stourm wrote:
    I got my new MacBook Pro and wanted to import items from the Time Machine backup of my old one. I didn't want to do a complete import though, so I went ahead through the setup of my MacBook instead of using migration assistant, and created my account, etc. After fully updating my new MacBook, I then decided to pull my Pictures, Music, Movies, and Documents off of my Time Machine backup from my old one. I connected to my backup and then ran migration assistant to import those items. I selected them and told it to import, but it said that it couldn't create the user account because there was one already named that on my system ( I used the same name on this new MacBook as my old one ) so I just told it to transfer it to a new account called temp. It did that and moved over the items that I had selected.
    When I went to the folder of the temp user to copy those items over, I did not have permission to do it. That directory was locked, even though I was an administrator of this computer. I went to the permissions of the user "temp" and added my user account, then gave my self read & write permissons. I then told it to copy those changes to all folders (forget the exact setting for this but that is what I did) and it worked fine.
    you *should not* have done this. in general, you should NEVER use "apply to enclosed items" on ANY system created folders and the startup drive. that includes your home folder, your Desktop folder, your Pictures folder etc. y=use it ONLY on folders you make yourself. The reasons is that such folders often have hidden ACLs and by using "apply to enclosed items" you propgate them to everything inside. in particular any home directory has "everyone deny delete" ACLs which will prevent you from changing, renaming or deleting anything with that ACL without entering an admin password. this is why you see that custom field in permissions. where exactly are the items with such permissions located? you need to clear those ACLs from them.

  • Why i do not have "Custom" category when trying to add a new web part

    I have deployed a .wsp solution to my web application as follow, using Visual studio:-
    But when I try to add this web part to my brand new enterprise wiki site collection, I can not see any “custom” web part area as follow:-
    Baring in mind that we have an old site collection also of type enterprise wiki and is inside the same web application, which have the “custom” tab visible as follow:-

    Hello john, 
    did you try to disable and enable again the WebApp feature that hosts the webpart, on central administration?
    If it's not working, try to change the scope of you feature to "site collection" instead of "web application"
    now i try retracting then re-deploying the farm solution again but still it will work on the old site collection only.
    Now seems i am a bit confused as i do not have much knowledge in developing solution. now the solution i deployed is mainly for fixing Redirect problem in SharePoint managed metadata navigation, the OnInit method is as follow:-
    protected override void OnInit(EventArgs e)
    var request = HttpContext.Current.Request;
    var response = HttpContext.Current.Response;
    if (!String.IsNullOrEmpty(request.QueryString["TreeField"])
    && !String.IsNullOrEmpty(request.QueryString["TreeValue"]))
    response.Redirect(String.Format("{0}?TreeField={1}&TreeValue={2}",
    SPContext.Current.ListItem.ParentList.DefaultViewUrl,
    request.QueryString["TreeField"],
    request.QueryString["TreeValue"]));
    else if (!String.IsNullOrEmpty(request.QueryString["TreeField"]))
    response.Redirect(String.Format("{0}?TreeField={1}",
    SPContext.Current.ListItem.ParentList.DefaultViewUrl,
    request.QueryString["TreeField"]));
    base.OnInit(e);
    and the solution have the following settings inside the visual studio , where the Site URL refers to my development machine URL . but this did not cause any problem inside the live serve old site collection:-
    and when i deploy the farm isolation i did the following steps :-
    - I copy the wsp from the visual studio project.
    - Then i run the following command inside the Live server "stsadm -o addsolution –filename [c:....]\WikiKnowledgeBaseRedirect.wsp"
    - Inside the live server i went to "central administration>>system settings>> Manage farm solutions>>click on WikiKnowledgeBaseRedirect>>click on deploy solution >>select the web application from the “Deploy To?" drop
    down".
    now as i mentioned before the wsp worked well inside my old site collection, although the site URL refers to the test server site collection (not sure if this was overridden when I deployed the solution to live server).  but inside the new site collection
    i can not find this solution inside the "site setting>>site collection features" nor inside the "site settings>>web designer gallery>> web part"? can u advice based on the above ?

  • Rfx Custom Tab(Table) Value not mapping in Change Doc BADI

    Hi,
    I am currently adding Custom Tab with Table in SRM Rfx Webdynpro Screen SRM PPS 7.01 Extended classic . I did the configuration steps to add the custom table, visibility setups, created a new Webdynpro, enhanced in Component controller and could get current active instance Rfx values.
    In local memory using a class method i am exporting custom tab values to Change Doc BADI and updating the et_hcf with the custom values.
    The values are getting saved in the data base and i am able to get it via function module and show in the screen again.
    My Problem is when i am modifying a saved Rfx it saves the entry another time. When i debug the change doc badi i could see all the time the et_hcf and it_hcf is coming empty in the first place and each time the entries from screen are consider as new entries and getting saved in DB.
    I have created Custom tab with table in Contract screen, PO Header and shopping cart line item. Rfx screen is little different and not getting the et_hcf value again in Change Doc BADI. Do anyone have similar issue in handling Rfx.? Please help me. I can Change my code logic and fix this problem still it looks like a standard bug to me that et_hcf or it_hcf is not getting values to the change doc BADI as it does in PO or Contract. Also let me know if i need to check any of my configuration.

    Hi,
    Checkout the below link :
    <link to blacklisted site removed by moderator>
    Shailaja Ainala.
    Edited by: Thomas Zloch on Jan 28, 2012 9:06 PM

  • How to activate Extended Rebate Processing in Customizing for billing?

    sap gurus:
    How to activate Extended Rebate Processing in Customizing for billing?

    SAP Knowledge Base Article
    1520390 - Activation of Enhanced Rebate Functionalities - IMG Customizing Transactions - SAP Menu
    Version 1 Validity: 19.10.2010 - active
    Language English
    Symptom
    Enhanced Rebate Functionality is not available and should be activated
    In the customizing IMG (Transaction SPRO) the node for Extended Rebate with the relevant customizing transactions are not visible
    The SAP Menu does not include the transactions for Extended Rebate
    Environment Enterprise Function EA-ISE must be available in the system (visible in transaction SFW5).
    Reproducing the Issue
    Call transaction SPRO
    Node Extended Rebate Processing is missing:
    IMG
    Sales and Distribution
       > Billing
            > Rebate Processing
                 > .................
    Resolution To activate the Extended Rebate Processing and make the node and customizing transactions visible proceed in the following way:
    Call transaction SFW5   
    In the folder ENTERPRISE_EXTENSIONS choose the function EA-ISE
    Activate this enterprise extension
    Thereafter the menu path in SPRO for Extended Rebate Processing will be visible:
    IMG
    Sales and Distribution
       > Billing
            > Rebate Processing
                > Extended Rebate Processing
                            * Settings for Agreement Types
                            * Set up Variable Key for Rebate Settlement
                            * Check Variable Key for Rebate Settlement
                            * Activate Extended Rebate Processing
                            * Simulate And Execute Reorganization of Statistical Data
    Furthermore the users will have the relevant transactions available in the SAP Menu:
    SAP menu
      > Logistics
         > Sales and Distribution
              > Billing
                   > Rebate 
                        > Extended Rebate Processing
                             * RBT_ENH_VB7 - Extended Rebate Settlement
                             * RBT_ENH_ACT - Update of Indirect Sales
                             * RBT_ENH_PLAN - Update of Indirect Planning Data
    For futher infomation on the extended rebate process please refer to the following links of SAP help portal:                     
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/5a/5b9b3c0f4da40ee10000000a11405a/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/79/a5ee3c1f63a518e10000000a11405a/frameset.htm
    Keywords
    Extended rebate agreement, extended rebate processing, erweiterte Bonusabwicklung, Menü, Pfad nicht vorhanden, aktivieren, erweiterter Bonus, Bonusabsprache
    Header Data
    Released On
    21.10.2010 08:01:20
    Release Status
    Released to Customer
    Component
    SD-BIL-RB-ENH Enhanced Rebates
    Other Components
       SD-BIL-RB Rebate Processing
    Priority
    Normal
    Category
    How To
    Product    
    Product
    Product Version
    SAP ERP Central Component
    All versions
    SAP R/3 Enterprise 4.7
    All versions

  • HTML 5 and Spry.. Making custom attributes valid

    The HTML 5 spec is still a "Editors Draft" but doesn't mean browser haven't started intergating it. While i was reading through the specification i noticed that HTML allows you to specify custom attributes on elements (see: http://dev.w3.org/html5/spec/Overview.html#embedding-custom-non-visible-data ). We all know Spry also uses custom attributes for the Spry dataset. These are typically prefixed with spry:action_here=""
    At this point its not valid HTML even though, when serving your page as xhtml it should be valid.. as xml allows you to specify custom attributes as well. But that aside, with the release of HTML5 getting closer and closer we could make Spry attibutes valid if we started prefixing all custom attributes with data-
    For example:
    spry:region="ds1"     =>     data-spry:region="ds1"
    spry:if="0 == false"  =>     data-spry:if="0 == false"
    A switch to the data- prefix would require very little editing of the existing spry files. The only thing users would have to do, is switch to the HTML5 doc type declaring to make it valid. As this doc type has backwards compatiblity and do not force IE6 in quirksmode i feel this is better alternative to externalizing the custom attributes or waiting for browser to support extended doctypes.
    So i wonder what you opinions are on this . Is Spry ready for HTML5 and is HTML5 ready for Spry ?

    Am I excited about the upcoming HTML5? YES!  But not because it validates our Spry attributes.
    Spry, if used properly, already works well and the fact that it is not validated by W3C can be regarded as a curious fact. Sort of like a driver of mine that has not been validated by Microsoft; without the driver my hardware does not work. So what do I do?
    Well for some people its not a problem that the pages do not validate. But there companies and clients who value validation. Its understandable because people are overhyping it. In this case, it would allow to validate out of the box, without any changes to your code. Making it easier for starting developers and create a W3C valid document.
    I am excited about the new HTML5 elements that will be introduced, hopefully making life easier.
    Well doesn't really make a life easier. I'm currently creating my online resume in HTML and its harder... Normally you would just use divs for almost every layout wrapper now you got to choose between aside, section, article, details, hgroup, header etc. So much elements to choose from, but using them wisely is the hard part.
    I am not excited about the fact that HTML5, being backward compatible, will come with the deficiencies of its predecesors
    I am confused about the near simultaneous release of XHTML2. Where is the logic? Cannot the regulators and validators agree on a standard? I guess not. Even the browser-producers cannot agree on a standard. Remember the confusion with audio and video tapes?
    All of this confusion only adds weight to my argument, who cares about W3C validation or Microsoft validation? if it works it works!
    Some people like it strict some people don't, for performance reasons i actually choose for the loose version. It allows me to build a more compressed file .
    Video codec wars are fun to.. Ogg  vs MPEG. Using flash as fallback or silver light for unsupported browsers, or just generate multiple formats.. Hard to choose.. I personally hope h.264 codec will be used because its quality wise its much better. But we will see what the browser vendors will decide. 

Maybe you are looking for

  • TS4002 iCloud emails message body showing blank in Mac mail.

    The content of emails (message body) is sometimes blank in Mac mail but visible on both my iPhone and iCloud. I can't seem to find a fix?

  • HT5918 Display Port Monitors with MacPro 2013

    As of now, I am using 5 monitors on my MP 2006 and intend to move on to the new MP 2013. After reading this note ( http://support.apple.com/kb/HT6008 ) I have some questions. This article states that we can connect up to 6 monitors with mini-display

  • Business Objects Enterprise Licensing for Crystal Reports

    I am new to Business Objects & Crystal Reports. I have recently been given the repsonsibility of supporting our BO XI R2 environment. This system is not in production yet, but initial use has shown an inability to create a crystal report. If I select

  • Reporting cell comments with Financial Reporting

    Hi all, Is there anyway to report comments attached to cells in "Planning data forms" with Financial reporting? Which function should I be using to do that? I am using the 11.1.2.2 version. Thanks.

  • Synchronize flv and interactive captivate training modules

    Does anyone know how to synchronize flv, captivate, and setting up the accordian component so that people can jump from various cue points in the video? The only way that I was able to get it to work was converting static images from powerpoint prese