Creating Popup Context Menu's
I am trying to make a pop menu ("conext menu"?) when the user right clicks on a selected path object. I have looked through the docs and found that the basic suite claims to be able to do this. Using the create function, I see that it doesn't do anything noticable. I have tried passing the ADMListRef object that buffers the reference to the menu to the List Suite, but I can't seem to get it to do anything.
How do you make/add to menu's that the user gets when they right click?
Am I on the right track?
Is there any better documentation on these suites that I can look to for answers?
Thanks in advance,
Jeremy
Ok, I've got the menu but for some reason notfications are being sent back to the Item, not the entry/list's. This is what I have so far
In the dialog i create the Item:
g->cMenu = sADMDialog->CreateItem(reference,kADMUniqueItemID,kADMPopupMenuType,&button,ChanMenuInit, NULL,0);
The item is a button with an arrow that points to the right. when clicked it pops a menu out to the right that has two columns.
The Item's init function is this:
static
ADMErr ADMAPI ChanMenuInit(ADMItemRef inItem){g->list = sADMItem->GetList(inItem);
for(int i = 0; i < g->numChannels; i ++){g->MenuItems[i] = sADMEntry->Create(g->list);
sADMList->SetNotifyProc(g->list,MenuChannelCatch);
sADMEntry->SetText(g->MenuItems[1],
"1");sADMEntry->SetText(g->MenuItems[2],
"2");sADMEntry->SetText(g->MenuItems[3],
"3");sADMEntry->SetText(g->MenuItems[4],
"4");sADMEntry->SetText(g->MenuItems[5],
"5");
return kNoErr;
This shoudl create 5 Entries into the list (which it does); however, each entry is blank with no value. When clicked a notifier for the button is triggered, not the list (I put the button notifier after noticing that that the list wasn't doing anything). I'm probibly missing some kind of Init procedure, any ideas?
Similar Messages
-
How do I create a context menu in the new CL_SALV
I like a function xx in context menu. How do I create a context menu in the CL_SALV ?
thank you!
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
TYPES: t_proc TYPE zmp_c00_pr_d,
tt_proc TYPE STANDARD TABLE OF t_proc,
tt_proces_subpr TYPE TABLE OF ltyp_proces_subpr.
CLASS-DATA: lr_context TYPE REF TO cl_gui_alv_grid,
r_selections TYPE REF TO cl_salv_selections,
lr_menu type ref to cl_ctmenu.
CLASS-METHODS: main CHANGING ct_zmp_c00_pr_d TYPE tt_proc
ct_proces_subpr TYPE tt_proces_subpr
cv_screen TYPE i.
PRIVATE SECTION.
CLASS-DATA lt_zmp_c00_pr_d TYPE TABLE OF zmp_c00_pr_d.
CLASS-DATA ls_process TYPE zmp_c00_pr_d.
CLASS-METHODS: handle_double_click
FOR EVENT double_click OF cl_salv_events_table
IMPORTING row column,
detail
IMPORTING l_objkey TYPE zmp_c00_pr_d-objkey.
ENDCLASS. "lcl_events DEFINITION
* CLASS lcl_event_handler IMPLEMENTATION
CLASS lcl_event_handler IMPLEMENTATION.
METHOD main.
DATA: lr_alv TYPE REF TO cl_salv_table,
lr_events TYPE REF TO cl_salv_events_table,
lr_columns TYPE REF TO cl_salv_columns,
lt_col_tab TYPE salv_t_column_ref.
FIELD-SYMBOLS <column> LIKE LINE OF lt_col_tab.
IF r_container IS INITIAL.
CREATE OBJECT r_container
EXPORTING
container_name = 'CONTAINER'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE i004(z_pm_tool).
ENDIF.
*Für Dynpro 1400
IF cv_screen = '1400'.
TRY.
CALL METHOD cl_salv_table=>factory
EXPORTING
* list_display = IF_SALV_C_BOOL_SAP=>FALSE
r_container = r_container
IMPORTING
r_salv_table = r_alv
CHANGING
t_table = ct_proces_subpr.
CATCH cx_salv_msg .
ENDTRY.
TRY.
* zeige die Daten
r_alv->display( ).
IF sy-subrc NE 0.
MESSAGE i001(z_pm_tool).
ENDIF.
CATCH cx_salv_msg.
ENDTRY.
ENDIF.
* Für Dynpro 1100
TRY.
CALL METHOD cl_salv_table=>factory
EXPORTING
* list_display = IF_SALV_C_BOOL_SAP=>FALSE
r_container = r_container
IMPORTING
r_salv_table = r_alv
CHANGING
t_table = ct_zmp_c00_pr_d .
CATCH cx_salv_msg .
ENDTRY.
TRY.
* zeige die Daten
r_alv->display( ).
IF sy-subrc NE 0.
MESSAGE i001(z_pm_tool).
ENDIF.
CATCH cx_salv_msg.
ENDTRY.
*Ereignisobjekt holen
lr_events = r_alv->get_event( ).
** get the SELECTIONS object
*r_selections = r_alv->get_selections( ).
* Interne-Tabelle füllen und an die Methode handle_double_click übergeben
LOOP AT ct_zmp_c00_pr_d INTO ls_process.
APPEND ls_process TO lt_zmp_c00_pr_d.
ENDLOOP.
* Zeiger auf Container für Kontexmenu
CREATE OBJECT lr_context
EXPORTING
i_parent = r_container.
DATA: lt_events TYPE cntl_simple_events.
CALL METHOD lr_context->set_registered_events
EXPORTING
events = lt_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Interne-Tabelle füllen und an die Methode handle_double_click übergeben
LOOP AT ct_zmp_c00_pr_d INTO ls_process.
APPEND ls_process TO lt_zmp_c00_pr_d.
ENDLOOP.
* Event: Add Function
SET HANDLER: on_added_function FOR lr_events.
* Event: Kontexmenu
* SET HANDLER: on_context_menu_request FOR lr_context.
* Event: Doppelklick
SET HANDLER handle_double_click FOR lr_events.
* get the SELECTIONS object
r_selections = r_alv->get_selections( ).
* Einzelne Spalte holen
lr_columns = r_alv->get_columns( ).
* Doppelklick funktioniert nur auf das Feld OBJKEY
LOOP AT lt_col_tab ASSIGNING <column>.
<column>-r_column->set_output_length( 20 ).
IF <column>-columnname = 'OBJKEY'.
<column>-r_column->set_visible( 'X' ).
ELSE.
<column>-r_column->set_visible( ' ' ).
ENDIF.
ENDLOOP.
IF lt_col_tab IS NOT INITIAL AND sy-subrc <> 0.
MESSAGE i002(z_pm_tool).
ENDIF.
ENDIF.
ENDMETHOD. "main
METHOD handle_double_click.
FIELD-SYMBOLS <fs_zmp_c00_pr_d> TYPE zmp_c00_pr_d.
READ TABLE lt_zmp_c00_pr_d INDEX row ASSIGNING <fs_zmp_c00_pr_d>. " vor dem Changing Parameter der Klasse
* READ TABLE ct_zmp_c00_pr_d INDEX row ASSIGNING <fs_zmp_c00_pr_d>.
IF sy-subrc <> 0.
RETURN.
ENDIF.
IF column = 'OBJKEY'.
lcl_event_handler=>detail( <fs_zmp_c00_pr_d>-zz_slotid_a ).
ENDIF.
ENDMETHOD. "handle_double_click
METHOD detail.
DATA: lr_alv TYPE REF TO cl_salv_table,
lt_alv_tab TYPE TABLE OF zmp_p00_sp_d.
* Subprozess holen
SELECT * FROM zmp_p00_sp_d INTO TABLE lt_alv_tab
WHERE objkey = l_objkey.
IF sy-subrc <> 0.
MESSAGE i003(z_pm_tool).
ENDIF.
TRY.
* Neu erzeugte Instanz für ALV-Tabellenobjekt holen
cl_salv_table=>factory( IMPORTING r_salv_table = lr_alv
CHANGING t_table = lt_alv_tab ).
* Ausgabe Fenster für SubScreens
lr_alv->set_screen_popup( start_column = 1
end_column = 130
start_line = 1
end_line = 10 ).
* Anzeige der Daten
lr_alv->display( ).
IF sy-subrc <> 0.
MESSAGE i001(z_pm_tool).
ENDIF.
CATCH cx_salv_msg.
ENDTRY.
ENDMETHOD. "detail
ENDCLASS."lcl_event_handler IMPLEMENTATION
Edited by: polaris1 on Dec 15, 2010 12:18 PMCan't read that jumble, but suggest you look at the excellent SALV tutorials by Rich Heilman by searching for SALV tutorial on SCN. You'll find working code and how-to for adding your own functions to SALV.
-
How to create a context menu in ALV table cell editor(Webdynpro abap )
Hello Experts,
I am having a problem in creating a context menu in a table cell editor in the ALV table output.I have assigned a 'lta' as the cell editor.But befor assigning the lta as cell editor I have assigned the menu to the lta.But when the view is rendered I can see the lta with the actioned assigned to it.But I cannot see the context menu.
The code snippet below:
"Create menu for each coloumn
create OBJECT lo_menu_actions type CL_SALV_WD_VE_MENU EXPORTING
id = 'MITM_ACTIONS'.
lo_menu_actions->set_visible( value = abap_true ).
lo_menu_actions->set_visible_fieldname( value = 'ACTIONS' ).
"ADd menu items
CREATE OBJECT lo_menu_item_create type CL_SALV_WD_VE_MENU
exporting
id = 'MITM_CREATE_EXPRESSION'.
lo_menu_item_create->set_visible( value = abap_true ).
lo_menu_item_create->set_visible_fieldname( value = 'Create' ).
"Add item 1
lo_menu_actions->ADD_ITEM( VALUE = lo_menu_item_create ).
" Set the cell editor for each column cell(link to an action)
LOOP AT lt_node_dec_tab_cols INTO ls_node_dec_tab_cols .
lv_column_name = ls_node_dec_tab_cols-object_name.
lr_column = lr_column_settings->get_column( lv_column_name ).
"Create 'lta' Ui item
CREATE OBJECT lo_lta TYPE cl_salv_wd_uie_link_to_action.
lo_lta->set_menu( value = lo_menu_actions ).
lo_lta->set_text_fieldname( lv_column_name ).
lr_column->set_cell_editor( lo_lta ).
IF ls_node_dec_tab_cols-is_result EQ abap_true.
lr_column->set_cell_design( value =
cl_wd_table_column=>e_cell_design-key_medium ).
ENDIF.
ENDLOOP.Hi Prakash,
I have not come across this requirement till now to have context menu in a cell editor of alv.
Unfortunately the implementation of method SET_MENU of alv ui elements ( ex: cl_salv_wd_uie_text_view ) is not updating alv configurable table, instead it just stores in a global attribute as string. Hence has no effect on context menu.
If your user is very particular about this requirement of having context menu in cell editor, you can go for a normal table. Because, normal table's cell editor has the property to set the menuID as we do it for other ui elements.
Regards,
Rama -
Hi,
Does anyone know how to create a context menu (right click on line or field) in the new ALV object model (class CL_SALV_TABLE)?
Thanks in advance
Keld Gregersen
PS: In the past we could use event CONTEXT_MENU_REQUEST in class CL_GUI_ALV_GRID, so it must be possibleI don't think there's "any such animal" in the new class. I'm not 100% certain however but the new class is only useful for fairly simple display only type grids.
There's no edit capability either.
I'd stick with cl_gui_alv_grid until there's some decent extra functionality in the cl_salv_table class.
It's fine for quick "bog standard" displays as it doesn't need a field catalog or any screens to be created by the user or developer - but you pay a price for that in limited fnctionality.
Cheers
jimbo -
How to create a context menu which appears on right click
Hello Experts,
I want to create a context menu which should appear on the right click of a mouse anywhere on the screen.
I have seen this functionality in one of the sap applications, and i guess this is an inbuild functionality in Webdynpro for ABAP but in WebDynpro Java i haven't found any such inbuild functionality.
Does anybody have any idea about it ?
Regards,
AmolContext menus are not supported in NW04 and NW04s, they will be available in the next major release.
Armin -
Create an context menu item to open a file on a specific display
Hello,
I have an external display connected to my MBP, but I don't always need to use it so it's not always on. I'd like to have a way to open a file (or application) on a specified display on a case by case basis. I know that I can assign an application to open on a specific display by right-clicking on the app in the dock and selecting options->assign to. The problem with this is that it's a global change. When I'm working on school work, I usually like to have reference material (pdfs, wepages, etc) open on the external display while I'm working in Word on the MBPs monitor.
What I'd like to be able to do is right click on the file (or app) and use a context menu item to open the item on a specific display. Does anyone know of an automator action/applescript/terminal command to create a context menu item like this?
Thanks.I use "Open Terminal Here" script for that:
http://www.entropy.ch/software/applescript/ -
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 create a Context Menu submenu?
I am trying to create a submenu which lists scripts in the content window - Does anyone know how to do this?
This works:
if (MenuElement.find ('Thumbnail/tscript') == null) var ah_ScriptsContext = new MenuElement( "command", "Scripts", "at the end of Thumbnail", "tscript");
But the submenu does not work:
var ah_runScriptImRnContext = new MenuElement("menu","AH Image Rename","at the end of Thumbnail/tscript");
I've tried various combinations of 'menu' / 'command' and everything else I can think of, so far no go.
AndrewHere ya go, Andrew:
Bob
Adobe WAS Scripting
#target bridge
ContextDemo = {};
ContextDemo.handler = function( menu ) {
alert( menu.text );
try {
MenuElement.create( "menu", "Menu", "at the end of Thumbnail", "cMenu" );
ContextDemo.m1 = MenuElement.create( "command", "Command 1", "at the end of cMenu", "cMenu/sub1" );
ContextDemo.m1.onSelect = ContextDemo.handler;
ContextDemo.m2 = MenuElement.create( "command", "Command 2", "at the end of cMenu", "cMenu/sub2" );
ContextDemo.m2.onSelect = ContextDemo.handler;
} catch ( e ) {
// now let's get tricky
// disabling a script generated context menu makes it disappear from the context menu
SelectExample = {}
SelectExample.menuSelected = function() {
alert( "You selected " + app.document.selections[ 0 ].name );
SelectExample.menu = undefined;
SelectExample.onSelectHandler = function( event ) {
if ( event.object.constructor.name == "Thumbnail" ) {
if ( event.type == "select" ) {
// event.object is the Thumbnail object that was selected
if ( event.object.isFileType( "jpg,jpeg,psd,tif,tiff" ) ) { // enable the menu for these files with these extensions only
try {
if ( !isValidReference( SelectExample.menu ) ) {
SelectExample.menu = MenuElement.create( "command", "MyCommand", "at the end of Thumbnail", "myMenuID" );
SelectExample.menu.onSelect = SelectExample.menuSelected;
} else {
SelectExample.menu.enabled = true;
} catch ( e ) {
} else {
try {
SelectExample.menu.enabled = false;
} catch ( e ) {
return { handled:true }; // tells Bridge event was handled
return { handled:false }; // tells Bridge event wasn't handled and
//to continue through the handler array
app.eventHandlers.push( { handler: SelectExample.onSelectHandler } ); -
The question is following: when you are pushing right button in the window of a working vi you see the build-in context menu of labview. Is it possible to customize it, or create the new one?
www.xinstruments.com
Custom Software for Industrial Automation
www.hdrconverter.com
Picture processing made easyThere's no nuilt-in LabVIEW function or tool to do it, but Dave Ritter published an artical in the LabVIEW Technical Resource last year that described how to do this. It uses the Event Structure so you need to have at least LabVIEW 6.1.
You can read a bit of the artical here. There's also a link on the bottom of the page where you can purchase that issue to get the entire artical and sample code.
Ed
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences. -
Disabled components: to popup or not to popup context menu?
Hi experts,
just noticed that Swing pops up a component menu on mouse click even if the component isn't enabled. Seems to contradict the general rule to not allow "active" interaction (vs. "passive" as f.i. still showing the tooltip, the distinction is probably freely invented but serves me well enough ;) with a disabled component.
Could half-way live with that - except that then all menu items need to be disabled individually. Another option would be to return a null componentPopup if disabled. Not generally applicable because requires subclassing. Yet another might be to force-inject a MouseListener into the rootPane: it would intercept and swallow the popup triggers if the target is disabled, otherwise delegate to the ui-installed listener.
Comments please?
Thanks
Jeanette>
release is out (here's a screenshot: http://www.jyloo.com/news/?pubId=1297423104000 - commercial, though) - so have a bit more time right now to tackle this
What puzzled me most in your comments was:
>
(and set the show popup action enabled/disabled as well). because I expected that to be not a problem at all: RootPane's action in isEnabled(sender) first checks if the sender is the focusOwner and returns false if not. Disabled components cannot be focusOwner, so safe territory. Except ... they can, even if there are enabled focusable components around. Turns out that the KeyboardFocusManager isn't clever enough to keep transfering the focus when a whole bunch of components is disabled. Or maybe it's a timing issue, as focus transfers can be asynchronous, and/or are tricky anyway, don't know. Whatever, when disabling a bunch of components, it must be done in the inverse order of the focusTransferCycle ... and that's completely unmanageable except for most simple contexts, like focus cycle is the same as insertion order, than reversing disable loop is a brittle option
// before calling this, focus on parent.getComponent(0)
// the natural way of disabling the children
for (Component child: parent.getComponents()) {
child.setEnabled(false);
// after the call, focus on parent.getComponent(1)
// inversing
for (int i = parent.getComponentCount() - 1; i >= 0; i--) {
parent.getComponent(i).setEnabled(false);
// focus somewhere elseINCREDIBLE ...
overriding getComponentPopup to return null if disabled (as I did as a quick measure) is not really an option - don't want to override each and every component ;-) Another hook - not clean either, but at least manageable, might be a custom JPopupMenu: subclass and show only if enabled.
@override
public void show(Component invoker, int x, int y) {
if (!invoker.isEnabled()) return;
super.show(..)
}This still leaves the action enabled fooled - reports true because the invoker has a componentPopup - but then, a disable comp should be focusOwner anyway.
Cheers
Jeanette -
Dynamically create context menu
I'm trying to create a context menu based on a certain af:commandImageLink.
I have an af:popup with an af:menu in my page. I bound the af:menu to my bean so I can change the content. I didn't put any children in the menu to start because I want to add the children based on the image that's click.
I added an af:showPopupBehavior to show my popup on click. The idea was that I wanted to use the actionListener of the af:commandImageLink to dynamically create the menu that I need. But it seems that the actionListener fires after the showPopupBehavior most times. On the first click, it looks like the actionListener fires first then the showPopupBehavior. After that, it seems the actionListener always fires after.
So it looks like this is not really supposed to work.
Does anyone have any suggestions on how this should be made to work?Thanks a lot Timo,
This does allow me to control when the popup shows up.
I modified the code you gave slightly to include code to align the popup:
public static void showPopup(String popupId, String alignId) {
FacesContext context = FacesContext.getCurrentInstance();
StringBuilder script = new StringBuilder();
script.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append("'); ").append("if (!popup.isPopupVisible()) { ")
.append("var hints = {}; ").append("hints[AdfRichPopup.HINT_ALIGN_ID] = '").append(alignId).append("'; ")
.append("hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_END; ").append("popup.show(hints);}");
ExtendedRenderKitService erks = Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
erks.addScript(context, script.toString());
}I still have some problems though. I need to give some more context on this.
So I have an af:iterator that shows a list of images. I'm trying to popup a context menu when they click the image. The menu needs to be aligned relative to the image that was clicked.
However, when I tried to get the ID from the ActionEvent, I get the design time ID which should not be the same as the run time ID because the iterator would have created multiple instances of the image, each with a unique ID. I'm assuming that's why the alignment is not working.
Am I missing something here?
Also, I seem to be having problems with modifying the menu. Here's my bean code:
private RichMenu baseMenu;
public void imageActionListener(ActionEvent actionEvent) {
Object o = actionEvent.getComponent();
RichCommandImageLink image = (RichCommandImageLink)o;
DCIteratorBinding iteLoc = ADFUtils.findIterator("OpItemLocationsVO2Iterator");
for(Row row : iteLoc.getAllRowsInRange()) {
OpItemLocationsVORowImpl r = (OpItemLocationsVORowImpl)row;
RichCommandMenuItem a = new RichCommandMenuItem();
Number n = r.getItelocId().getSequenceNumber();
a.setId("i" + r.getItelocId().getSequenceNumber().toString());
a.setText(r.getItelocId().getSequenceNumber().toString());
baseMenu.getChildren().add(a);
AdfFacesContext.getCurrentInstance().addPartialTarget(baseMenu);
showPopup("vmenu", image.getId());
}So in my popup, I added a menu and I bound that menu to this bean. The idea was that whenever an image was clicked, I would remove all the children from the menu, then add the new ones. There would be a master-detail relationship between the image's iterator and the menu that's supposed to show up.
The other problems that I'm getting with this is that the menu is not changing when I click on a different image. When I debug, I'll see the correct values being added, but nothing changes on the screen. It's always showing the first popup that was ever created. Also, I don't know how to remove the previous children. There doesn't seem to be an API to remove the children.
Thoughts? -
Is it possible to create a checkmark next to a context menu item in a Tree in LabVIEW?
Hello,
I'm creating a custom application where a particular context menu will be shown to the user depending on what item in the Tree they have right-clicked on. One of the items in the menu that I would like to display is essentially a "Disable" option. I'm looking for a way to show the user the current state of this Disable option by providing a checkmark next to it if they have already clicked it for a particular item in the tree. Here's a screenshot of a similar checkmark from the LabVIEW dev environment drop-down menus:
Does anyone know if it is possible to create a context menu with a checkmark like the one above in a Tree in LabVIEW? I've tried searching the web and here in the NI forums but without much luck. Thanks!
Lars LWow, I know this one!
I used it a couple of years ago (LV 8.6)
There is an option to "Set Menu Item Info" that allows you to set the check for a context menu item.
http://zone.ni.com/reference/en-XX/help/371361H-01/glang/set_menu_item_info/
I used it in my Tree
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness -
Cant See Master Detail Option in context menu.
While doing this Tutorial
http://www.oracle.com/technology/products/jdev/101/tutorials/e2ebcfaces/buildmaster-detailpagewithjdevandadfbc.htm
Creating a Master-Detail JavaServer Faces Page
12. Drag OrdersView2 to the visual editor.
JDeveloper opens a context menu with the available options for that data control.
I Cant See Master Detail Option in context menu.
Can Any one help.Hi,
I am facing the same problem.
I cant see the item in the popup context menu like here:
[Web Dynpro ABAP and eCatt Testing |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/e3b19f11-0a01-0010-409d-b3951f754963] -
Context menu for customized selfwritten VI
Hallo!
Maybe someone knows and has time to share: is it possible to create a customized popup/context menu for a customized - self written VI (vide .jpg)? And as working with LV 2011 I have realised it's impossible to create a polymorphic VI out of other polymorphic vi-s right? If anybody knew any walk through, I will be thankfull
A.Dear Aleph,
information about creating run time context menus can be found here: http://www.ni.com/white-paper/3171/en/
Another soultion, is to create your own VI that will po up when a user uses his RMB on a specific object. This can be achieved by properly using the Event Structure. Let me know if you need more information.
What do you mean by creating a polymorphic VI from a polymorphic VI?
Best regards,
Mateusz Stokłosa
Applications Engineer
National Instruments -
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,
RajRaj,
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
Maybe you are looking for
-
Buying an external monitor...
I'm shopping for an HDTV to hookup to my macbook. One of my friends said to use the miniDVI-DVI adapter and connect the DVI to an HDTV with a DVI input. Is this sufficient to use the HDTV as a monitor-aka- am i going to be able to read type? I know w
-
Hi gurus In production in any industry there will be rework generated at any stage of production operation. For this i have tried with rework activity explained in SDN and SAP Help. I am not able to get a proper result result like 1) When tried with
-
Upgrading Grid Control 10.2.0.2 - segments are at different releases
Hi everyone, Currently, I've got Grid Control running on Solaris (SunOS 5.9). The Repository DB is 10.2.0.2, the Management Service is 10.2.0.3 and the Management Agent is 10.2.0.3 on the host and all the targets (6 of them) The target DB's vary from
-
Download problem at 42%
App download from the cloud (or from Adobe site) stops at 42% Windows 7, Firewall inactiv, I tried another Explorer (the same Problem), Popup-Blocker inactiv. Download on my tablet was no Problem, so I can be sure, thats not a Firewall Problem of the
-
GOODS RECEIPT IN RETURNS PROCESS
when ever i am doing goods receipt for customer returns in returns & repair process i am getting a message "special stock E not supported" please give me a solution as early as possible. regards, Rajesh Kumar Raju.G