Local Editing / Context Menu using KM API

Hi all,
I have a custom developed iView, which uses the KM API to view a list of resources.
I display a link to the resource details page using PathKey.DETAILS_PAGE.
This way, in order to use local editing, the user needs to open the details screen, and then choose "Edit Locally" from the Actions menu.
I'm looking for a way to enable this operation in one click.
I thought of 2 ways to do this:
1. Use / create a context menu, like in normal KM navigation iView.
2. Display a link that will trigger local editing directly.
I couldn't find the way to do either.
Any help and/or suggestions will be appreciated.
Thanks ahead,
Yoav.

Hi Birla,
try this:
IResource res = ResourceFactory.getInstance().getResource(path,context);
IPropertyName propName = new PropertyName("http://ars.com/xmlns/cm","Region");
java.util.List values = new List();
values.add("Asia");
values.add("America");
values.add("Muenster, Germany");
IProperty property = new Property(propName, PropertyType.STRING, values);
res.setProperty(property);
Best regards,
Michael

Similar Messages

  • How to create a context menu using powershell

    Hi 
    i would like to create a context menu for powershell but i am getting an error after powershell menu is created
    "This file does not have a program associated to it. i am using this script . I am trying to create a powershell shortcut on folders."
    also once it gets created i would like to open powershell as admin always
    New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
    Test-Path HKCR:\Directory\shell\Powershell
    New-Item -Path HKCR:\Directory\shell -Name Powershell
    Set-Item -Path HKCR:\Directory\shell\Powershell -Value "Open Powershell Here" 
    New-Item -Path HKCR:\Directory\shell\Powershell\key -Value "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command ""Set-Location -LiteralPath '%L'"""

    You need to put forth the effort to ask a good, clear, and meaningful question.
    As it stands, you seem to have a record of asking nearly unintelligible questions that take a great amount of effort for others to guess what you are asking. This is bad because it wastes everyone's time.
    Read these for some good information on how to ask good questions:
    Posting guidelines
    Handy tips for posting to this forum
    How to ask questions in a technical forum
    Rubber duck problem solving
    How to write a bad forum post
    -- Bill Stewart [Bill_Stewart]

  • How to run report from context menu using XML Extensions?

    I have found an example how to run SQL command from context menu:
    <items>
    <folder type="TABLE">
    <name>UserDefined ContextMenus</name>
    <item TYPE="TABLE" reloadparent="true">
    <title>Create SYNONYM</title>
    <prompt type="check">
    <label>PUBLIC</label>
    <value>PUBLIC</value>
    </prompt>
    <prompt>
    <label>NEW SYNONYM NAME</label>
    </prompt>
    <sql>
    <![CDATA[CREATE #0# SYNONYM  #1# for "#OBJECT_OWNER#"."#OBJECT_NAME#"]]>
    </sql>
    <help>
    This action create a SYNONYM (optionally public) for the selected table.</help>
    <confirmation>
    <title>Confirmation</title>
    <prompt>SYNONYM "#1#" for "#OBJECT_NAME#" has been created.</prompt>
    </confirmation>
    </item>
    </folder>
    </items>
    </prompt>
    But instead of executing SQL command I need to show result page of report based on SELECT statement.

    Hi dz_r-
    Not sure exactly what you mean by "result page of report", but extensive documentation on the xml schema defining context menu actions is available at the schema location.
    &lt;items xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://xmlns.oracle.com/sqldeveloper/3_1/dialogs"
      xmlns="http://xmlns.oracle.com/sqldeveloper/3_1/dialogs">
        &lt;!-- your declarations here -->
    &lt;/items>
    Brian Jeffries
    SQL Developer Team

  • Context menu refresh issue in adf tree.

    Hi All,
    I am using jdeveloper 12.1.2.2.0.
    I have a programmatically generated tree in which I have added two buttons in the context menu using context menu facet.
    * I have selection listener in the tree and right click also selects the node.
    There are two issues regarding the context menu:
    1. If I right click the tree node, the context menu is showing only the two buttons I added and it is not showing the default expand/collapse, expand all/collapse all below and show as top options of context menu. Once I refresh the tree region doing some actions in the page, it is showing all the options.
    2. The buttons I added inside the context menu have disabled conditions and the trigger is given for the parent container "popup" which will be triggered by tree node selection. The problem is that whenever I right click the tree node, the popup is refreshed because of the trigger and the expand/collapse functions are not working. If I right the same node again the functions are working fine.
    How to resolve these issues?
    Thanks in advance.
    - Vignesh S.

    Any suggestions would be helpful.
    The below is the xml of the tree:
                                                           <af:tree var="node" value="#{dmc.btm.model}" id="btc"
                                                                     rowSelection="#{(viewScope.fc.editable || viewScope.cc.editable || viewScope.bc.editable) ? 'none' : 'single'}"
                                                                     immediate="false" initiallyExpanded="false"
                                                                     selectionListener="#{dmc.selectionListener}"
                                                                     fetchSize="100" expandAllEnabled="true">
                                                                <f:facet name="nodeStamp">
                                                                    <af:group id="g3">
                                                                        <af:image source="#{node.icon}" id="i1"/>
                                                                        <af:outputText value="#{node.id}" id="ot4"/>
                                                                    </af:group>
                                                                </f:facet>
                                                                <f:facet name="contextMenu">
                                                                    <af:popup childCreation="deferred" autoCancel="enabled"
                                                                              id="p1" partialTriggers="::btc"
                                                                              contentDelivery="lazyUncached">
                                                                        <af:menu text="menu 1" id="m1">
                                                                            <af:toolbar id="t4">
                                                                                <af:commandToolbarButton shortDesc="Create"
                                                                                                         text="#{prop['label.new']}"
                                                                                                         icon="images/new_ena.png"
                                                                                                         disabledIcon="images/new_dis.png"
                                                                                                         id="ctb4"
                                                                                                         actionListener="#{dmc.newListener}"
                                                                                                         partialSubmit="true"
                                                                                                         disabled="#{!dmc.createButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                            <af:toolbar id="t5">
                                                                                <af:commandToolbarButton shortDesc="Delete"
                                                                                                         text="#{prop['label.delete']}"
                                                                                                         icon="images/delete_ena.png"
                                                                                                         disabledIcon="images/delete_dis.png"
                                                                                                         id="ctb5"
                                                                                                         actionListener="#{dmc.deleteListener}"
                                                                                                         disabled="#{!dmc.deleteButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                        </af:menu>
                                                                    </af:popup>
                                                                </f:facet>
                                                            </af:tree>

  • Modify Context Menu BI7.0

    Hi,
    I want to modify the context menu in the WAD, so that it includes SAVE rather than having this attached to a button.
    I know I can modify the context menu in BW3.5 by using SAPBWAddToMenu and a combination of javascript and html.
    I know in BI7.01 (EHP1) the option for SAVE, REFRESH etc is already in the context menu and it can be modified by using SAPbi_AddToMenu.
    But in BI7.0, there is no help for modifying the context menu using javascript, this section doesn't exist.
    We are currently on BI7.0 SP23, I have tried both SAPBWAddToMenu and SAPbi_AddToMenu, but both give errors in the webtemplate and the context menu does not work at all.  It seems as though from BW3.5 to BI7.01 the option has been disabled.
    Has anybody managed to modify the context menu of the WAD in BI7.0?
    Thanks
    DJL

    Did you have a look at this help-sap-com entry?
    [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/e073a356e32972e10000000a42189b/frameset.htm]
    Reading your answer again, I see that you refer to BI 7.00 without any EHP.
    So you might want to try using your own context menu as per [http://help.sap.com/saphelp_nw70/helpdata/en/43/152fa54b315a38e10000000a422035/frameset.htm] .
    Edited by: Frank Besler on Aug 10, 2011 11:08 AM

  • Context menu does not appear on first row of apps

    If I invoke the context menu, using the keyboard (Shift+F10/context-menu key), on any app in the first row of its category, no menu appears. The same app, if moved to the second row by resizing iTunes shows the normal context menu.
    Does anyone else have this issue, on Windows or Mac?
    Message was edited by: Soumya92

    make sure you are running the latest update and that nba leauge pass is availible in your country (if not in the usa)

  • Show context menu only on specific item-click

    Hi All,
    I am designing an HTML extension for InDesign CC 2014 for Win and Mac. I have been successful in displaying a context menu using CEPInterface 5.2
    Below is the code,
    function CreateContextMenu() {
      csInterface.setContextMenu(contextMenuXML, contextMenuClickedHandler);
    This function is called when user right-clicks inside a box. The problem I am facing is that once I set the context menu, no matter where I right-click inside the panel, the context menu is created. Can I set it so that the context menu is shown only when I click inside the box?
    Thanks!

    Hi,
    I have no idea whether this would work, but how about a 'click' listener on the body element with Event.stopPropagation() or preventDefault(); then check the event target, and if it's the element you want, then yourElement.dispatchEvent(new Event('click')) ?
    See refs here: Creating and triggering events - Web developer guide | MDN and Event.stopPropagation() - Web API Interfaces | MDN
    Just a suggestion, let me know if this helps
    Regards
    Davide Barranca
    www.davidebarranca.com
    www.cs-extensions.com

  • How to add "select all" to explorer context menu

    In Windows 7 and  8 I was able to add "select all" to explorer right click context menu using a .vbs script file and a .reg file.  The same .vbs and  .reg files worked for both OS.  However, it does not work in Windows
    10.  Does anyone know how I can accomplish this in Windows 10?  Using Ctrl+A is awkward for me since I've used the context menu for so long.  Besides,  I guess I'm lazy.  Searching the net I've found other context menu adds but
    not this.

    Hi Glasskuter,
    Win 10 is preview version and the purpose is to collection feedback. We've not started to support it yet. I would recommend you use feedback tool in Win 10 desktop to submit issues about it. Thank you for using Win 10.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Context menu enhancement in WAD 7.0

    Hi All,
    I would like to enhance the standard context menu in my webtemplate
    Scenerio
    If I right click broadcast and export in context menu  I get the following
    - Broadcast to email
    - Broadcast to Portal
    - Broadcast to PDF
    - Export to Excel
    - Export to CSV
    - Bookmark
    Now I would like to remove Broadcast to Portal from the context menu.
    steps I have taken
    I added context menu web item and uncheck Broadcast in the properties and the following are left
    - Export to Excel
    - Export to CSV
    - Bookmark
    but I would like to see Broadcast to email and Broadcast to PDF as well
    Can someone let me know how I Can enhance the context menu to exclude Broadcast to Portal
    thanks

    Vaidya,
    It is extremely tough working with WAD7.0 on customization  - I found it a minefield of XHTML and other components - you can look at adding a script itam and change the javascript - I do remember that in 3.x you could customize the context menu using plain javascript - and in all likelihood hoping that this has not changed - add a script item to change the context menu at runtime instead - might work....
    Arun

  • Context menu of adf tree not working properly in firefox

    hi all,
    I am creating a context menu using the context facet in <adf:tree>. Everything is working fine in both chrome and ie but the issue is with firefox.It's opening up the browser window and rarely showing up the context menu
    Any help would be appreciated.
    Here is the code
    <af:tree value="#{bindings.FormSectionsView1.treeModel}" var="node"
    selectionListener="#{bindings.FormSectionsView1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1"/>
    </f:facet>
    <f:facet name="contextMenu">
    <af:popup childCreation="deferred" autoCancel="disabled" id="p1">
    <af:menu text="menu 1" id="m2">
    <af:commandMenuItem text="commandMenuItem 1" id="cmi1"/>
    <af:commandMenuItem text="commandMenuItem 2" id="cmi2"/>
    </af:menu>
    </af:popup>
    </f:facet>
    </af:tree>
    Thanks,
    Raj

    Raj,
    Welcome to OTN. Always mention your JDev version (read through this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56 )
    Try running the tree demo in your browser and see if it works fine (Right click on any node to bring up the context menu).
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/tree.jspx
    -Arun

  • From the context menu I want to always search using Google dot CA, not dot COM

    I have already edited "keyword.URL" in about:config This didn't work for the context menu when you highlight a term to search and use the "Search Google for...
    It works for typing the search term directly into the URL address bar, but not the search from the context menu.

    I already had Google selected there. This still uses dot com for the resulting search page that opens, I wanted to have it open with google dot ca.
    I just found this add-on from [http://mycroft.mozdev.org/search-engines.html?name=google.ca MyCroft Project]
    Part way down this page, number 5, is [http://mycroft.mozdev.org/jsreq.html Google.ca Search Bar] . Click the previous link to add this engine to the list of the FireFox search engines (on the drop down menu) did the trick, so I guess I solved my own problem. See attached menu capture. I hope this helps someone else, as it took me quite a while to find. It wasn't found in any of the standard Add-Ons you can find at the usual Mozilla multiple pages of add-ons

  • How to use "Context Menu" web item in WAD 7.0 ?

    Hi Experts,
    Kindly tell me How to use "Context Menu" Web item in SAP WAD 7.0 ?
    How to attach this Web item to my Graph/Chart ?
    Plz provide some documents on this.
    Full points will be given.
    Thanks.
    -Jay Jay
    Edited by: jayaprakash j on Oct 10, 2008 1:47 PM

    Hi Jay
    Web items and HTML elements (for example, tables, texts, and images) that you insert into a Web template, as well as the Web template itself, have a context menu. This context menu has context-sensitive menu entries that you can use to call various Web Application Designer functions. You can, for example, use the context menu to save a Web item (for which you have specified properties by using the parameters) as a reusable Web item, call the properties dialog box for this Web item, copy the Web item and paste it into another Web template, or delete the Web item from the Web template.
    for more info go to following link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/2f/776b3d32390968e10000000a114084/frameset.htm
    Regards
    Vivek

  • Context menu hotkey to open in new tab is different for links (T) & bookmarks (W); using T for bookmark deletes bookmark!--why?

    When I want to open a link in a new tab, I right-click and press T. I ''think'' that the same key used to work for opening bookmarks in new tabs, also. At least I developed a reflex that always chose T for a new tab, whatever I was right-clicking on. Then a while ago, probably after one of the updates I automatically install (some time in version 3.x), I started noticing something different and extremely frustrating: not only is the hotkey for opening bookmarks in new tabs now different (W instead of T), which is just poor design--but to add injury to insult, when my still-stubborn reflexes pressed T, the bookmark was ''deleted''. Gone. I have thousands of bookmarks, and I make them so I don't have to remember things. If one is lost, there may be no finding the page again.
    EDITED:
    Having posted this problem, I just realized that I've answered the why-it-happens part of the question. We're left with the why-was-it-allowed-to happen, but that's unimportant if we can put an end to the confusing behavior.
    T in the bookmark panel and menus is Cut, which is standard in all kinds of software, and that my lost bookmarks could be restored IF I remembered to paste them again immediately. (I swear I checked it out just before originally posting, and Cut didn't appear, though Copy did. Maybe I was hallucinating.) Anyway, knowing this will help with the long-term problem, but it's still a bad idea to have two different hotkeys for the same operation. Hence what needs to change is using T as the hotkey in the links context menu.
    Here's my proposal: Change the hotkeys for "Open in new window" and "Open in new tab" in both the right-click menu for links and the right-click menu for bookmarks. Right now we have:
    Links
    * Open Link in New Tab (T)
    * Open Link in New Window (W)
    Bookmarks
    * Open Link in New Tab (W)
    * Open Link in New Window (N)
    N0te that the bookmarks menu is mnemonically backwards; Window should be W. Both menus should be:
    * Open Link in New Tab (N)
    * Open Link in New Window (W)
    Can someone take care of this in an update, please?

    This also drives me nuts, I work in research online and use firefox as its tabbed browing is so good, and I ofetn have to open lots of links in rapid succession from web-pages - obviously I use right click T as the fasterst method of doing this, and I use it so ofetn that it is now a reflex.
    But, whenever I try to open a bookmark from my toolbar (much less often) I tend to deletye it, and if I am lucky enough to notice before I do anything else I have to go through a laborious process to undo the delete...
    Interesting to read the reason above, but I would suggest that this is something that needs to be standardised across all of a browser's context menus, otherwise browsing becomes jarring.
    I am all in favour of 'T' opening in a new tab from all context menus, but if this is not do-able I think you should consider picking a different letter. The N & W proposal above is good.
    Thanks!

  • InDesign CS5 crashes when clicking on Edit menu or context menu

    I had this infuriating problem with InDesign CS4, found a few references to others having the same issue, but never any real solutions.  This problem seems to in InDesign CS5 as well.
    With a document open, if I click the Edit menu or right-click anywhere in the document window (including in the pasteboard area... it does not have to be on an object), ID immediately freezes and I get the Windows 7 "Adobe InDesign CS5 has stopped working" dialog.
    I've deleted the preferences, created a brand new one-page document, and the problem persists.  If no document is open, I can pull down the Edit menu just fine.  With a document open, ID crashes before it even draws the menu.  It does not matter whether I use the mouse or the keyboard to get to the Edit menu.  I can also right-click on things like palette tabs to bring up the context menu.  But I cannot right-click anywhere on the document itself without ID crashing.
    The maddening thing is that the problem did not show up until some time today.  I've brought up an object's Effects window via right-click plenty of times, as well as used the Fitting context menu.  It was working fine last night and earlier this morning.  Then suddenly for no discernible reason, the crashes started happening.  I am not aware of any changes to my system that might reasonably cause this.  No new fonts, no Windows updates, no Adobe updates.
    Any suggestions on how else I can troubleshoot this?

    Peter,
    Yes, I can bring up the Paragraph Styles and the Character palettes with no document open, edit the [Basic Paragraph] style to change the font family, then open a blank document, and new text boxes will use that font.
    I'm on a bit of a deadline right now, so I ended up uninstalling ID CS5 and reinstalling it.  I can now successfully bring up the Edit menu and the right-click context menu both in a blank document and in the document I was working on before.  I'm sure the problem will reappear again at some random point in the future, so I am still looking for fixes that don't involve reinstalling the app.
    BTW, I have tried exporting my work document to IDML and re-importing it, but to no avail.  I've also tried toggling Dynamic Spelling (past threads have suggested this as a possible fix), but also to no avail.
    It would be really nice if Adobe products produced some sort of crash dump or bug report when this sort of thing happens...

  • "Edit in Photoshop Elements" missing from windows context menu.

    How do I get the "Edit in Photoshop Elements" back in my context menu? I think what happened was that after installing PSE 13 I uninstalled PSE 12 and that may have removed the context menu item. Just guessing. Is there a way to add it back without re-installing PSE 13?

    Right click on a photo file of the type that you will want to open in PSE. In the context menu, mouse over Open With to open the menu. Select "Choose default program" and in the window that opens select PSE 13 if it appears in either Recommended or Other. If it isn't shown, choose Browse and navigate to the PSE 13 .exe file in Programs/Adobe/Photoshop Elements. If you want files of this type to always open in PSE when double-clicked, check the box "Always use the selected program". If you want PSE 13 to only appear in the Open With menu, be sure the box is not checked. Click OK.

Maybe you are looking for