Data Grid Right click menu customize

Hi All,
i need to change the data grid right click menu customize the background color,background mouse over color, Text color, Text hover color . can any one help me this
Regards
Rajesh

cat14 wrote:
> Any idea on how to customize right click menu?
> I've seen some site could show the company name.
>
> Pls advice.
You can check Help for "ContextMenu" to get details info,
meantime
simple example of getting a link to author's site:
var my_cm:ContextMenu = new ContextMenu();
var menuItem_cmi:ContextMenuItem = new ContextMenuItem("Made
by Yahoo", onSelection);
my_cm.customItems.push(menuItem_cmi);
function onSelection(obj, menuItem) {
trace("You just selected " + menuItem.caption);
getURL("
http://www.yahoo.com", "_blank");
this.menu = my_cm;
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • Copying a table with the right-click menu in schema browser fails to copy comments when string has single quote(s) (ascii chr(39))

    Hi,
    I'm running 32-bit version of SQL Developer v. 3.2.20.09 build 09.87, and I used the built in context menu (right-clicking from the schema browser) today to copy a table.  However, none of the comments copied.  When I dug into the PL/SQL that the menu-item is using, I realized that it fails because it doesn't handle single quotes within the comment string.
    For example, I have a table named WE_ENROLL_SNAPSHOT that I wanted to copy as WE_ENROLL_SNAPSHOT_V1 (within same schema name)
    1. I right-clicked on the object in the schema browser and selected Table > Copy...
    2. In the pop-up Copy window, I entered the new table name "WE_ENROLL_SNAPSHOT_V1" and ticked the box for "Include Data" option.  -- The PL/SQL that the menu-command is using is in the "SQL" tab of this window.  This is what I extracted later for testing the issue after the comments did not copy.
    Result: Table and data copied as-expected, but no column or table comments existed.
    I examined the PL/SQL block that the pop-up window issued, and saw this:
    declare
      l_sql varchar2(32767);
      c_tab_comment varchar2(32767);
      procedure run(p_sql varchar2) as
      begin
         execute immediate p_sql;
      end;
    begin
    run('create table "BI_ETL".WE_ENROLL_SNAPSHOT_V1 as select * from "BI_ETL"."WE_ENROLL_SNAPSHOT" where '||11||' = 11');
    select comments into c_tab_comment from sys.all_TAB_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and comments is not null;
    run('comment on table BI_ETL.WE_ENROLL_SNAPSHOT_V1 is '||''''||c_tab_comment||'''');
    for tc in (select column_name from sys.all_tab_cols where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT')
        loop
       for c in (select comments from sys.all_col_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and column_name=tc.column_name)
       loop
       run ('comment on column BI_ETL.WE_ENROLL_SNAPSHOT_V1.'||tc.column_name||' is '||''''||c.comments||'''');
    end loop;
    end loop;
    EXCEPTION
      WHEN OTHERS THEN NULL;
    end;
    The string of the table comment on WE_ENROLL_SNAPSHOT is this:
    WBIG table of frozen, point-in-time snapshots of Enrolled Students by Category/term/pidm. "Category" is historically, and commonly, our CENSUS snapshot; but, can also describe other frequencies, or categorizations, such as: End-of-Term (EOT), etc. Note: Prior to this table existing, Census-snapshots were stored in SATURN.SNAPREG_ALL. All FALL and SPRING term records prior-to-and-including Spring 2013 ('201230') have been migrated into this table -- EXCEPT a few select prior to Fall 2004 (200410) records where there are duplicates on term/pidm. NO Summer snapshots existed in SNAPREG_ALL, but were queried and stored retroactively (including terms prior to Spring 2013) for the purpose of future on-going year-over-year analysis and comparison.
    Note the single quotes in the comment: ... ('201230')
    So, in the above PL/SQL line 11 grabs this string into "c_tab_comment", but then line 12 fails because of the single quotes.  It doesn't know how to end the string because the single quotes in the string are not "escaped", and this messes up the concatenation on line 12.  (So, then no other column comments are created either because the block throws an error, and goes to line 22 for the exception and exits.)
    When I modify the above PL/SQL as my own anonymous block like this, it is successful:
    declare
      c_tab_comment VARCHAR2(32767);
    begin
    SELECT REPLACE(comments,chr(39),chr(39)||chr(39)) INTO c_tab_comment FROM sys.all_TAB_comments WHERE owner = 'BI_ETL'   AND table_name = 'WE_ENROLL_SNAPSHOT'  AND comments IS NOT NULL;
    EXECUTE IMMEDIATE 'comment on table BI_ETL.WE_ENROLL_SNAPSHOT_V1 is '''||c_tab_comment||'''';
    for tc in (select column_name from sys.all_tab_cols where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT')
        loop
       for c in (select REPLACE(comments,chr(39),chr(39)||chr(39)) comments from sys.all_col_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and column_name=tc.column_name)
       loop
       EXECUTE IMMEDIATE 'comment on column BI_ETL.WE_ENROLL_SNAPSHOT_V1.'||tc.column_name||' is '||''''||c.comments||'''';
    end loop;
    end loop;
    EXCEPTION
      WHEN OTHERS THEN NULL;
    end;
    On lines 4 and 8 I wrapped the "comments" from sys.all_tab_comments and sys.all_col_comments with a replace command finding every chr(39) and replacing with chr(39)||chr(39). (On line 8 I also had to alias the wrapped column as "comments" so line 10 would succeed.)
    Is this an issue with SQL Developer? Is there any chance that the menu-items can handle single quotes in comment strings? ... And, of course this makes me wonder which other context menu commands in the tool might have a similar issue.
    Thoughts?
    thanks//jacob

    PaigeT wrote:
    I know about quick drop, but it isn't helpful here. I want to be able to right click on a string or array wire, navigate to the string or array palette, and select the corresponding "Empty?" comparator. In this case, since I do actually know where those functions live, and I'm already using my mouse to right click on the wire, typing ctrl-space to open quick drop and then typing in the function name is actually more work than navigating to it in the palette. It would just be nice to have it on hand in the location I naturally go to look for it the first time. 
    I don't agree with this work flow.  Right hand on mouse, left hand on home keys.  Pressing CTRL + Space is done with the left hands, and then you could assign "ea" to "Empty Array" both of which is accessible with the left hand.  Darren posted a bunch of great shortcuts for the right handed developer.
    https://decibel.ni.com/content/docs/DOC-20453
    This is much faster than waiting for any right click menu navigation, even if it is found in the suggested subpalette.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Firefox 8 and 9beta. Back and Forward buttons greyed out. Right click menu also has forward and back greyed out. Updated all plugins, then disabled all plugins and extensions and started in safe mode. No change.

    My forward and back buttons are greyed out after update to Firefox 8. Tried to move to 9 beta, but same behavior. Back and Forward also greyed out in right click menu.
    Attempted to fix by updating all plugins and extensions, then disabled all plugins and extensions, and then tried to start in safe mode. Nothing worked.

    You could have backed up your profile folder. If you did, [[Recovering important data from an old profile]] can help :)

  • How to know the sales order closed using right click menu -Close ???

    I have an sales order with ten item, I have copied the same to delivery and before adding the Delivery I have deleted some items. After adding the Delivery, I manually closed the sales order by using the "right click menu close".
    The Open Quantity of those lines are already closed while i Close it manually.
    Now i need  a report regarding the sales orders which i  have closed manually. Any Options??

    Check the below result
    DocNum     DocDate     CardCode     CardName     Row#     ItemCode     Dscription     Price     Quantity     LineTotal
    2     2012-02-04 00:00:00.000     ED-C-102     AI HUDHA BOOK STALL     2     1010          150.000000     10.000000     1500.000000
    3     2012-02-04 00:00:00.000     ED-C-103     AL AMEEN ENGLISH SCHOOL-MANKADA     2     1011     ZINC ROD HIGH GRADE PURE ZINC 140 X 9 MM     59.790000     10.000000     597.900000
    this is the result i get while i execute your query
    but look at the db result
    DocEntry     LineNum     TargetType     TrgetEntry     LineStatus     ItemCode     Quantity     OpenQty
    1     0     15     2     C     1010     10.000000     0.000000
    2     0     15     3     C     1010     10.000000     0.000000
    2     1     -1     NULL     C     1010     10.000000     0.000000
    3     0     15     4     C     1010     1.000000     0.000000
    3     1     -1     NULL     C     1011     10.000000     0.000000
    3     2     15     4     C     1012     15.000000     0.000000
    3     3     15     4     C     1013     20.000000     0.000000
    4     0     15     5     O     1010     10.000000     5.000000
    See the last line data...it have open quantity of 5 and it also have the target type 15, If I close the sales order with docentry 4 manually using right click, the open quantity will be Zero..
    I need that last line result also as my output..
    Hope you understand my problem.
    Thank You

  • Run time prompts not appearing when launching BR from a right click menu

    Hi!
    I have a problem when trying to launch a business rule from a right click menu which is assigned to a dataform.
    The rule launches but does not show/ask for the run time prompts as it should do. The run-time prompts should not be hidden (I checked also Eas and data form selections).
    When using the rule form the Tools-Business Rules menu, the rule works fine. It prompts for the required variables and as they are filled in, the rule does what it is expected to.
    Also, when using the same rule attached into a form (and selected "use members on form"&"run on save") the rule works correctly.
    We are using version 11.1.2.1.
    I already have tried restarting Planning services but without success.
    What might cause this?
    kind regards,
    user637777

    Hi!
    I found out from the Oracle knowledge base:
    This issue is caused by unpublished Bug 11064867 - RIGHT CLICK MENUS NOT RENDERING RUN TIME PROMPTS
    In version 931 run time prompts worked correctly when launching them from a right click menu, I checked this out.
    In our current version I got this working (this is kind of a workaround) by adding a new RTP variable (using the same dimension as the original RTP variable). This way I got the rule to "ask for more information" (like what were you asking for? ) and not running the rule without interruptions. This instruction was given in Oracle support (knowledge base).
    kind regards,
    user637777

  • Add Custom Right click menu on editable AdvancedDataGrid

    Hi,
    I have an AdvancedDataGrid whose editable property is set to true and selectionmode is multipleCells.
    Is it possible to display custom right click menu when i right click on any cell? Am getting only the
    default menu items (Cut, Copy, Paste, Select All). Am using ContextMenu and ContextMenuItem class
    for creating the custom right click menu. The same code is working in Flex and not in AIR. Do we have
    to use NativeMenu in Adobe AIR? Please help. Attaching sample of my code.
    <mx:Script>
    <![CDATA[
    [Bindable] 
    private var cMenu:ContextMenu; 
    public function createContextMenu():void {
              cMenu =
    new ContextMenu();     cMenu.hideBuiltInItems();
         cMenu.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelect);
         var cMenuItemCopy:ContextMenuItem = new ContextMenuItem("Copy Data");     cMenuItemCopy.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItemSelect_Copy);
         var cMenuItemPaste:ContextMenuItem = new ContextMenuItem("Paste Data");     cMenuItemPaste.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItemSelect_Paste);
         cMenu.customItems.push(cMenuItemCopy);     cMenu.customItems.push(cMenuItemPaste);
    this.contextMenu = cMenu;    
    private  
    function contextMenu_menuSelect(event:ContextMenuEvent):void { }
    private function contextMenuItemSelect_Copy(event:ContextMenuEvent):void {
         copy(event);
     private function contextMenuItemSelect_Paste(event:ContextMenuEvent):void {
         paste(event);
    ]]>
    </mx:Script><mx:AdvancedDataGrid  width="100%" height="72%" id="dProvider" creationComplete="init()"
          editable="true" itemEditBeginning="checkIfAllowed(event)" itemEditEnd="onEditEnd(event)"
          selectionMode="multipleCells" itemRenderer="renderer.ColorForDashBoard" contextMenu="{cMenu}"/ >

    I have same issue too. Can any one help
    Thanks

  • How do I add entries to PCManFM's right-click menu? [SOLVED]

    Hello there,
    Is there a way to customize PCManFM right-click menu? I'd like to add custom entries, for instance:
    right click a folder and choose "Start slideshow" to get the following command executed: "qiv -smt <selected_folder>"
    Can this be done? How?
    This could be a system-wide setting or a user setting, I don't really care.
    Thanks for any guidance.
    Last edited by brazzmonkey (2009-03-16 20:42:36)

    Inxsible wrote:Yup that's what I am doing, but on selecting an app from the All Applications tab, it creates a .desktop file in my home folder under the .local folder. The next time you try to go into the Open With menu, Geany (or any other app - that I selected from the All Applications list) shows up twice.
    Well , I'm not sure what's the problem here . I only see this when I attach a media player(e.g mplayer) to different file formats . PcManFM seems to insist on creating a .desktop file for each association but I don't see duplicate entries in the menu .
    ~/.local/share/applications$ ls | grep mplayer
    mplayer-usercreated-1-usercustom-0.desktop
    mplayer-usercreated-1-usercustom-1.desktop
    mplayer-usercreated-1-usercustom-2.desktop
    mplayer-usercreated-1-usercustom-3-usercustom-0-usercustom-0.desktop
    mplayer-usercreated-1-usercustom-3-usercustom-0.desktop
    mplayer-usercreated-1-usercustom-3.desktop
    mplayer-usercreated-1.desktop
    smplayer-usercustom-0-usercustom-0-usercustom-0-usercustom-0.desktop
    smplayer-usercustom-0-usercustom-0-usercustom-0-usercustom-1.desktop
    smplayer-usercustom-0-usercustom-0-usercustom-0.desktop
    Last edited by Nezmer (2009-03-16 22:50:28)

  • Is there any way of removing the browser buttons from the right click menu?

    Recently when I right-click on a web page, there are browser buttons (forward, backward, refresh, bookmarks) on the right-click menu for some inexplicable reason. I mean, its kind of absurd that anyone would put browser buttons there, considering the real browser buttons literally right there at the top of the window, and I guess that kinda bugs me.
    Anyway, how did I get rid of them? There doesn't seem to be any way to do so in the customize window, and I've been looking for an add-on but don't really know what to search for. Does anyone know?
    Where did those come from anyway? They weren't there a week ago, and I'm pretty sure these things don't normally just pop up out of nowhere. If nobody knows, its really not important. The important thing is getting rid of them. Thanks!

    That was a new feature in Firefox 32, which was released back in September. Use this UserStyle to get rid of those buttons and restore the text menu items.
    https://userstyles.org/styles/104945/fx-32-context-menu-full-text
    ''You'll need the Stylish extension to be able to install UserStyles.''
    https://addons.mozilla.org/en-US/firefox/addon/stylish/

  • Right Click Menu Keeps Popping Up (Finder)

    Hello all, just wondering if anyone else is having this problem in the Finder. If I right-click on something in the Finder, then left-click on something else, the right-click menu keeps popping up even if I have only one finger on my trackpad.
    I tried removing my entire hand from anywhere near the trackpad and carefully touching the button with my index finger with all the rest of my fingers curled away and it still pops up the right-click menu.
    The only thing that seems to cure it is switching focus to Firefox or some other application, then going back to the Finder. Clicking on a non-icon in the finder seems to help too. However, after right-clicking something then switching to a different icon, the right-click menu pops up again. Very annoying.
    Anyone know a quick fix for this? Thanks in advance.
    Message was edited by: ctrvl

    That's right, burgback. I actually think I may have found the issue: I use a prefpan / application called FolderGlance that lets you customize folders that appear in the contextual (right-click) menu. It even lets you dive into subfolders from an expanding right-click menu. Think about it as "stacks on steroids" because it lets you continue to dive into subfolders (unlike stacks...grrr).
    Anyway, disabling the prefpane and removing the plugin from the ~/Library/Contextual\Menu\Items/ directory seems to have fixed the problem for now. I'll update if it doesn't, but I've been operating for about 30 minutes now without issue. Formerly the problem would rear its head about every 10 seconds I was in the Finder.
    The only unfortunate part is...I love FolderGlance way more than stacks and I'm sad to see it go.

  • On the Adobe Flash Player web page,the Right Click Menu that near the taskbar can not be pop up.

    Environment:Win8/64bit Ent JP、IE10 JP、、Adobe Flash Player 11.3.372.94
      (when the language is English it happened too ) 
    Problem:
    On the Adobe Flash Player web page,the Right Click Menu that near the taskbar can not be pop up.
    And On the Flash Player Help home page(http://helpx.adobe.com/en/flash-player.html) has the same problem,
    and menu round the red circle on the below picture is the problem Right Click Menu.
    As this problem,If we program use the Flex,the problem that the Right Click Menu can not be pop up must occur.
    eg:
    IF there is many lines when we use the ListController ,the data nears the taskbar can not be used the Right Click Menu。
    Relation:
    The problem does not happen when the environment is below
    1、IE10(Win7/64bit)
    2、Google Chrome(Win8/64bit Ent JP)
    Question:
    Whether this problem is resolved? If yes,please tell me the solution,thank you!

    Can you try to update Flash Player to a newer version (using Windows Update)?

  • [solved] Thunar - icons in right-click-menu are gone

    Hi there.
    Since some time my icons in the thunar right-click-menu are gone. I guess they disappeared with thunar 1.4 but I'm not sure.
    Is there a way to make them come back? I have a hand full of custom actions and the icons help me to distinguish them faster.
    When I open the custom actions manager the icons are still there and are correctly from my current icon theme.
    Thanks for help in advance.
    Last edited by ichi-no-eda (2012-11-14 06:15:17)

    Forgot:
    No DE, WM: Openbox, but both gtk2 and gtk3 are there and up to date.
    I realized that other icons are missing too. Thunderbird and Firefox don't have icons in their drop down menus as well.
    Has something changed in gtk?
    Uhrg. Just found it. In lxappearance you can tick 'Show icons in menus'. Don't know why this was unticked.
    So thread is solved.

  • Right click menu changes after error: possible bug

    SQL Developer 1.1.2.25 build 25.79. This problem is reproducible everytime.
    01. Connect to any database.
    02. In the SQL window, run any query like
    select 'alter '||object_type||' '||owner||'.'||object_name||' compile;' from dba_objects where status='INVALID' and owner='XYZ';
    Craft the query to return some rows.
    03. In the results window, right click the result set and choose Export Data->TEXT.
    04. SQL Developer will generate an error:ora-00972 identifier is too long.
    05. Click Ok to close the error box.
    06. Modify the query to include an alias:
    select 'alter '||object_type||' '||owner||'.'||object_name||' compile;' as x from dba_objects where status='INVALID' and owner='XYZ';
    Run the query to generate rows.
    07. In the result window, right click the records. The right click menu will change. the Export Data option is no longer available.
    Since the problem is repeatable, it might be a bug.
    Thanks

    This was posted back in Export data menu item disappearing in the results tab but there does appear to have been any development response at that point.

  • SAP BW 7 - Call URL from Right Click Menu

    Is it possible to make a http call from the right click menu? I know this was possible in 3.5, but the new code seems to have limited my ability to edit the options that appear when I right click on a field and I need to make a call out to another web server for some external data. Is this possible?
    Any information that anyone has about a potential work around would be great!!
    Thx.

    Kristine,
    Have you tried using RRI (Transaction RSBBS)? You can call URL , pass values etc.
    -Saket

  • HT2523 Google search in the right-click menu doesn't open in default browser

    Hi ...,
    Please share any suggestion that might help solve this issue.
    Thank you in advance!!
    Kubera

    Oh, wow that makes sense! Thank you for your reply and tips!!
    The link you gave is for Lion, but ok -- still props/kudos!!!
    I found this Chrome extension:
    "Highlight to Search"
    allows you search keywords by highlighting instead of typing them into a search box
    Google Highlight to Search is a browser extension that helps you search keywords easily.  After you highlight keywords within a web page, you'll see magnifying-glass icon appear below the highlighted keywords. By either clicking on the icon or the keywords itself, search-box with Autocomplete enabled appears for you to search quickly and easily.   By installing this extension, you agree to these terms: https://chrome.google.com/extensions/intl/en/gallery_tos.html This extension uses Google Search, and the data related to the query will be handled as described in Google's privacy policy: http://www.google.com/intl/en/privacypolicy.html
    Pretty awesome!
    Not a right-click-menu-option, but OK let's see (...)

  • Is there a way to open the right click menu on the left side of your pointer?

    Whenever I try to right-click an object that's located on the right side of the screen, the pointer always automatically click whatever entry in the right-click menu which just happens to be under the pointer the moment the menu is opened. I noticed that the reason this happens is because the right click menu always forces itself to open on the right side of the pointer, and when there isn't enough space, the right-click menu will open underneath the pointer. Since this is horribly inconvenient, is there a way to open the right-click menu on the left side of your pointer?

    Are you saying you have an icon on the far right side and when you rt click on it, your pointer ends up opening wherever it lands? That is a two step process, or normally should be at least a two step process. Do you have a Mouse in your Control Panel? You should check, because there may be some properties with which you can play. For instance, I can switch primary and secondary functions on my mouse buttons by checking a box.
    When I rt click on right side, the menu opens on the left.
    When I rt click on left side, the menu opens on the right.
    In order for me to take an action, I then have to move to an area in that menu and click.
    I hope I understood your question correctly.

Maybe you are looking for

  • Problem with Lenovo s856's Power Manager

    The emergency power saving is not working. It will just start preparing  and will say failed to launch. i dont know what happen. can someone pls help me. Thanks in advance

  • Folder icon with an exclamation point

    My ipod told me I had a corrupt disk so I restored it. I then tried to sync it with my itunes library but after a while it said "The iPod (my name) cannot be synced. The required file (or disk) cannot be found." And then it says the sync is finished.

  • Problem with an IDOC, receiving empty fileds

    Hi! I'm trying to read an IDOC with a Real Time Service through a RFC Client. We have all configured and running, and the Data Flow is as simple as reading the IDOC and writing it to an XML template. The problem is that if I send 3 records, I get all

  • Error adding editable region in nested template Header

    I have a base template for the website (establishing basic menus), and a secondary template using that base template, which establishes a common table layout for one part of the site. Having created the PHP to drive the page, I need to lock down that

  • Get element values on 1.5

    as per 1.5 documentation AnnotationMirror.getElementValues : "Only those elements and values explicitly present in the annotation are included, not those that are implicitly assuming their default values" 1.6 javadoc says: "To fill in default values,