How to set a value when right click on af:commandlink ?

Hi All,
JDev Ver : 11.1.1.4.0
How to set a value to property listener on right click of a commandLink ?
I am having values that are hyper linked using af:commandlink, when i right click on hyperlink, that value i need to get in the managed bean ?
(While right click i am populating on menu item)
how to get the value ?
Give some solutions ?
thanks
Gopinath

Hi,
Try this code:
<af:clientListener method="rightClick"
type="contextMenu"/>
<af:serverListener type="setValue"
method="#{beanName.setValueMethodName}"/>
<trh:script xmlns:trh="http://myfaces.apache.org/trinidad/html"
id="s13">rightClick = function(event) {
var source = event.getSource();
AdfCustomEvent.queue( source, "setValue"
, {}, false); }
</trh:script>

Similar Messages

  • How to set setRowKey value when table is populated dynamically

    Hi All
    I have created a view object using only select statement and displaying all the records in it in the table at page load. Table is SelectMany. Now after selecting some records I press submit button. At the backend logic is executed which prints how many rows selected and the values of the selected rows. Everything works fine till here.
    Now when the view object is modified by putting where clause. And the parameter to this where clause is coming from url. When the page is loaded table displays only records based on filter criteria. But the problem begins when I press the submit button. It shows the error: row is null for rowKey:oracle.jbo.Key[AAAQkHAAJAAAACkAAA ]
    I have done some research and found that row key is not set for the displayed records. because at the backend when I am printing the values of keys in selectionState.KeySet it prints only null.
    This thing happens only when table is populated dynamically through url value.
    Can anyone help me how to get the selectionState.Keyset values when table is populated dynamically?

    SOLVED:
    Actually there is no problem with the rowKeys as I mentioned in the post. What happened was that I was executing the query everytime on page load. Second time when the page is loaded the param value was set to null. So row becomes null but on the other hand I am referring the rows by some selected row keys. so the error that row is null for key...
    So now i am storing the param value in managed bean and then referring it in the code.

  • How to set item values when redirecting to the same page.

    I just created a redirect button that I want to redirect to the same page and set the 2 page items on the page to the same value they had before the redirect.
    But I can't write:
    Set These Items: P1_Permit_Number,P1_Fishing_Year
    With These Values: &P1_Permit_Number.,&P1_Fishing_Year.
    Because there are no values in the session state, since a submit has not been done.
    So how do I do this?
    I know how to get the values stored in the items, e.g., $v('P1_PERMIT_NUMBER')
    but where do I place that command? It's not allowed under "With These Values"
    And I don't really want to make this a submit button and create a process that says:
    P1_PERMIT_NUMBER := $v('P1_PERMIT_NUMBER') because that would complicate the page too much -- I already have other processes and branches on the pages whose conditions would have to be modified so that they don't run during this scenario.
    Thanks.

    Thanks Gary and Andy. I rewrote the function according to above instructions:
    function redirectToURL()
    var permitNumber = document.getElementById('P1_Permit_Number');
    var fishingYear = document.getElementById('P1_Fishing_Year');
    var url = 'f?p=&APP_ID.:1:&APP_SESSION.::::P1_Permit_Number,P1_Fishing_Year:' + permitNumber +',' + fishingYear;
    window.location.href = url;
    But when I entered a value for permit number and fishing year and redirected, the word "null" appeared in the Permit page item, instead of the permit number that I had entered.
    Remember that I am not submitting here. So if the syntax you showed me, i.e. getElementById('P1_Permit_Number'), searches for the item's session state, then it will be wrong, since there is no session state value for the items at this point. Perhaps that is the reason I got the null?
    If so, what can I do?

  • How to get the link when right-clicked (for extension development)?

    Hi,
    I want to get the link when I right-click it in a page.
    I explain: when you right-click a link, you get "Open link in a new window"; this menuitem sends the link to the js function to perform an action and that's exactly what I an looking for
    Thank you

    Hi,
    If you have than one table with add_row_button then this code will work fine
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    tableBean is Handle for your advanced table, hope it will help.
    Regards,
    Reetesh Sharma

  • In advancedSearch , how to set retainAM=Y when click 'Go' button

    Hi,
    I created advancedSearch in page, when I click on go button, I will get the result in advancedTable ,
    in the page Address, it will be appended '....&retainAM=N&addBreadCrumb=N&oapc=3',
    Now my question is how to set 'retainAM=Y' when I click on 'Go' button

    Hi Gyan,
    In advanched search, click go button, then I will get the result in the advanchedTable,
    and the address of this page will be added the statement '...retainAM=N..'
    Then, for example, click 'about this page', it will go to 'About Page'. click 'Return to Page: ', it will go to the previous page and the address of the page
    still be '..retainAM=N..', but now the result table is blank.
    I want to retain the result we have searched when return to the previous search page.
    I think if we can change the retainAM's value to 'Y' after clicking on 'Go' button, then when we return to this page, retainAM will still be 'Y' so that the
    result will be retained .
    And I found one thing so strange, in advancedSearch criteria, there are four criteria displaying in search region by default, but when I add one new criteria, even I don't erter any value to this new crireria, and then go button, in address of this page, it will be '..retainAM=Y', then when we return this page , it will retain the result

  • How to click, when "right-click dominant" is turned on?

    My sister is on a 17 hour train ride now with her new macbook with Leopard. She doesn't have a mouse/wacom tablet with her now. Without knowing the implications fully, she went into the mouse settings, and turned on "right-click dominant". Her computer only has one click button, which now brings up the mini-menu that comes up with a right-click. Control-click does the same thing. She is stuck. She can't get back into the preferences to unclick the setting, because she can't click.
    Is there a way?? How to click, when "right-click dominant" is turned on?

    I am not familiar with the term "right-click dominant". The mouse section of the System Preferences has a "primary mouse button left/right" setting, but that affects the mouse, not the track pad. I would try all the modifier keys (and combination of) I can think of to see if one switches the track pad click. If that fails, a restart (press the power button and return) might straighten it out.

  • How to enable Fullfillment set menu in the Right click at the line level for a responsibility?, by default it comes for OM ADMIN.

    How to enable Fullfillment set menu in the Right click at the line level for a responsibility?, by default it comes for OM ADMIN.
    for this responsibility i need to have teh sets enabled. how to do teh same.
    similar to OM ADMIN as shown below:
    Kindly advice on teh steps. i believe its some menu /function inclusion can you pl share teh pointer.
    regards,
    bala

    AFAIK then there is no way to do that system wide. You can only do that via userChrome.css or an extension like the Menu Editor per profile .You can install extensions globally, but the user will have to enable them anyway. That is not required for userChrome.css code.

  • How to set the Value in Dropdownbyindex

    Hi Experts,
    I am New to Webdynpro-ABAP.
    I have one Dropdownbyindex field. I need to set the value from BAPI. how to set that values in Dropdown..
             I need Basic step-by-step procedure.
    Regards,
    P.Manivannan

    Hi,
    1. First import the BAPI in to WD component using create->service call.
    2.The BAPI import, export and Table parameters will be set in to the Component Controller context.Then drag this BAPI node to your view.
    3.In the 'texts' property of DDbyindex bind the BAPI output node which will be the Table parameter of the BAPI.It could be under CHANGING node.
    4.In WDDOINIT method just click the code wizard and enter the method name which you will give when importing the BAPI.Automatically the values from the BAPI will be loaded into your Dropdown when you run the application.
    Regards,
    Dinesh

  • Need when right click

    Hi friends,
    my requirement is like this.
       i have  notification number. when right click on that  i need to show select ,move ..
    any body have answer pls let me know
    it's urgent...
    ex :in edit right clik u will get select,move.
    same i need when i have notification number when right click  i have to show move and select

    Hi,
    Context Menus
    The user interface of a screen is defined by a GUI status, which you define in the Menu Painter and assign the type Dialog status. For each dialog status, the system
    automatically creates a standard context menu, which the user can display by clicking the righthand mouse button on the screen (or choosing Shift+F10). The standard context menu contains all of the function keys to which functions are assigned. It therefore makes it easy to access any function code that is available using the keyboard, since normally only the most important are assigned to the application toolbar.
    However, as well as the standard context menu, you can define context-specific menus for any of the following screen elements:
      Input/output fields
      Text fields
      Table controls
      Group boxes
      Subscreens
    When you select one of these elements using the right-hand mouse button, you can create a dynamic context menu in the ABAP program. This may contain any functions, and is not
    restricted to function keys. You cannot assign context menus to pushbuttons, checkboxes, or radio buttons. However, you can assign unique function codes to them instead.
    Example
    The following example shows some of the technical possibilities for creating context menus, but
    does not necessarily observe all of the style guidelines.
    REPORT demo_dynpro_context_menu.
    DATA: field1 TYPE i VALUE 10,
    field2 TYPE p DECIMALS 4.
    DATA: prog TYPE sy-repid,
    flag(1) TYPE c VALUE 'X'.
    DATA: ok_code TYPE sy-ucomm,
    save_ok TYPE sy-ucomm.
    prog = sy-repid.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
    SET TITLEBAR 'TIT100'.
    IF flag = 'X'.
    SET PF-STATUS 'SCREEN_100' EXCLUDING 'REVEAL'.
    ELSEIF flag = ' '.
    SET PF-STATUS 'SCREEN_100' EXCLUDING 'HIDE'.
    ENDIF.
    LOOP AT SCREEN.
    IF screen-group1 = 'MOD'.
    IF flag = 'X'.
    screen-active = '1'.
    ELSEIF flag = ' '.
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    ELSEIF screen-name = 'TEXT_IN_FRAME'.
    IF flag = 'X'.
    screen-active = '0'.
    ELSEIF flag = ' '.
    screen-active = '1'.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDMODULE.
    MODULE cancel INPUT.
    LEAVE PROGRAM.
    ENDMODULE.
    MODULE user_command_0100.
    save_ok = ok_code.
    CLEAR ok_code.
    CASE save_ok.
    WHEN 'HIDE'.
    flag = ' '.
    WHEN 'REVEAL'.
    flag = 'X'.
    WHEN 'SQUARE'.
    field2 = field1 ** 2.
    WHEN 'CUBE'.
    field2 = field1 ** 3.
    WHEN 'SQUAREROOT'.
    field2 = field1 ** ( 1 / 2 ).
    WHEN 'CUBICROOT'.
    field2 = field1 ** ( 1 / 3 ).
    ENDCASE.
    ENDMODULE.
    Callback-Routines
    FORM on_ctmenu_text USING l_menu TYPE REF TO cl_ctmenu.
    CALL METHOD:l_menu->load_gui_status
    EXPORTING program = prog
    status = 'CONTEXT_MENU_1'
    menu = l_menu.
    ENDFORM.
    FORM on_ctmenu_frame USING l_menu TYPE REF TO cl_ctmenu.
    CALL METHOD:l_menu->load_gui_status
    EXPORTING program = prog
    status = 'CONTEXT_MENU_2'
    menu = l_menu,
    l_menu->load_gui_status
    EXPORTING program = prog
    status = 'CONTEXT_MENU_1'
    menu = l_menu,
    l_menu->set_default_function
    EXPORTING fcode = 'HIDE'.
    ENDFORM.
    FORM on_ctmenu_reveal USING l_menu TYPE REF TO cl_ctmenu.
    CALL METHOD:l_menu->load_gui_status
    EXPORTING program = prog
    status = 'CONTEXT_MENU_3'
    menu = l_menu,
    l_menu->load_gui_status
    EXPORTING program = prog
    status = 'CONTEXT_MENU_1'
    menu = l_menu,
    l_menu->set_default_function
    EXPORTING fcode = 'REVEAL'.
    ENDFORM.
    FORM on_ctmenu_input USING l_menu TYPE REF TO cl_ctmenu.
    DATA calculate_menu TYPE REF TO cl_ctmenu.
    CREATE OBJECT calculate_menu.
    CALL METHOD: calculate_menu->add_function
    EXPORTING fcode = 'SQUARE'
    text = text-001,
    calculate_menu->add_function
    EXPORTING fcode = 'CUBE'
    text = text-002,
    calculate_menu->add_function
    EXPORTING fcode = 'SQUAREROOT'
    text = text-003,
    calculate_menu->add_function
    EXPORTING fcode = 'CUBICROOT'
    text = text-004,
    l_menu->add_submenu
    EXPORTING menu = calculate_menu
    text = text-005.
    ENDFORM.
    Regards,
    Bhaskar

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

  • Xml: how to get node value when pasing node name as a parameter

    Hi,
    I've got some xml:
    var xmlData:XML =
    <1stNode>
        <buttonID>first child node value</buttonID>
        <imageID>second child node value</imageID>
        <labelID>third child node value</labelID>
    </1stNode>
    Then I want to read specific node value based on a value passed to a function. .
    var buttonID = new Button;
    var imageID = new Image;
    var labelID = new Label;
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData.nodeName)                      //doesn't work
    var str:String = "xmlData." + nodeName;
    var xml:XMLList = str as XMLList             //doesn't work
    I'm don't know how to get the value when node name is dynamically changed.

    use:
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData[nodeName])                    

  • Error message when right-click on desktpp

    Hi.
    I get a error message in Win 7 64 pro when right clicking on the desktop to get to settings saying:
    "Debug Assertation Failed! Program c:\Windows\system32\igfxsrvc.exe File D:\Program Files\Mirosoft Visual Studio 9.0\VC\ATLMFC\INCLUDE\atlcorn.h
    Expression: 0&& "Release called on a pointer that has already been released" For information on how your program can cause an assertation faileure, see Visual C++ doc. on assserts
    (Press Retry to debug the application)"
    Then I click abort and the message goes away and up pops the settings (I've tried clicking both retry and ignore with no luck) . Highly annoying and appeared after I've installed my brand new x1 carbon with latest drivers and bios with Think Vantage System Update. Anyone know how to solve that??

    Hi Nikko69
    Here is a couple links for some info on the "Debug Assertion Failure" message you're receiving:
    http://forums.lenovo.com/t5/A-M-and-Edge-Series-ThinkCentre/Debug-Assertion-Failed/td-p/797397
    http://answers.yahoo.com/question/index?qid=20100407175831AAjMzbZ
    http://answers.microsoft.com/en-us/windows/forum/windows_7-system/debug-assertion-failed-error-when-...
    I hope this helps you pinpoint a resolution, let us know how it works.
    HAPPY HOLIDAYS!!
    Be AWESOME Everyday!
    Donate KUDOS and Click "Accepted Solution"
    Did someone help you today?
    Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"
    This will help the rest of the Community with similar issues identify the verified solution and benefit from it.

  • How to initiate some action when user clicks a field in CRViewer?

    <p><span style="font-family: Courier"><font size="1">ReportObjects doesn't expose click event despite the fact that a field can get focus frame, you can even tab from field to field. </font></span><span style="font-family: Courier"><font size="1">Drill() event works only on group names.</font></span><span style="font-family: Courier"><font size="1">So, how to initiate some action (based on a clicked field value) when user clicks a field in CRViewer?</font></span><span style="font-family: Courier"><font size="1">After doing some googling, have found that something similar exists but it's FoxPro API</font></span></p><p><strong><span style="font-size: 12pt; font-family: Courier"><font size="1">From some PDF: </font></span></strong><strong><span style="font-size: 12pt; font-family: Courier"><font size="1"> </font></span></strong></p><p><strong><span style="font-size: 12pt; font-family: Courier"><font size="1">> Report objects events</font></span></strong> </p><p style="margin: 0cm 0cm 0pt; line-height: normal" class="MsoNormal"><span style="font-size: 10pt; font-family: Courier"><font size="1"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>Report object events occur when you click or double-click a field, </font></span></p><span style="font-size: 10pt; font-family: Courier"><font size="1"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>heading, or label in a report.</font></span> <p style="margin: 0cm 0cm 0pt; line-height: normal" class="MsoNormal"><span style="font-size: 10pt; font-family: Courier"><font size="1"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>Doing this creates the EventInfo object. This object contains </font></span></p><span style="font-size: 10pt; font-family: Courier"><font size="1"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>information about the event and</font></span> <p style="margin: 0cm 0cm 0pt; line-height: normal" class="MsoNormal"><font size="1"><span style="font-size: 10pt; font-family: Courier"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>passes as a parameter to the event method. </span><strong><span style="font-size: 10pt; font-family: Courier">Table 3 </span></strong><span style="font-size: 10pt; font-family: Courier">lists the</span></font></p><p style="margin: 0cm 0cm 0pt; line-height: normal" class="MsoNormal"><font size="1"><span style="font-size: 10pt; font-family: Courier"><strong><span style="font-size: 12pt; font-family: Courier"><font size="1">> </font></span></strong>EventInfo object properties.......</span></font></p>

    The article you found refers to the ActiveX viewer which is used with the COM-based tool called Report Designer Component. Since you have posted to the .NET forum, I'm assuming you're not using the RDC and therefore this article will not apply.
    Recently, Click events were added to the Windows Form Viewer to get similar functionality as the ActiveX viewer. Take a look at the following link for more information....
    [http://diamond.businessobjects.com/node/2109 | /node/2109]
    However, if you are using the CR Web Forms Viewer in an ASP.NET app, then this functionality is not available.

  • In flex, How to set a value to one parameter, the parameter defined in a cffunction in a cfc file

    In flex, How to set a value to one parameter, the parameter
    defined in a cffunction in a cfc file, In the cffunction there are
    much cfargument, I want set a value to one of them, such as the
    cfc:
    <cffunction access="remote" name="myShow" output="false"
    returntype="struct">
    <cfargument name="ID" type="numeric" default=0>
    <cfargument name="GoodsID" type="string" default="">
    <cfargument name="DestTime" type="string" default="">
    <cfargument name="DestCount" type="numeric" default=1>
    How I set a value to only parameter one of them , such as set
    GoodsID when use mx:remoteObject.
    Thanks for your help

    Got maybe a solution for you, I have just tested it.
    So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
    select #Var1+#Var2 from dual
    This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
    Hope it helps.
    Shamil

  • Disable set as background from right click in internet explorer 8,9,10,11 by GPO in Win Serv 2008 R2

    Hi.
    How to disable ''set as background'' from right click in internet explorer 8,9,10,11 by GPO in Win Serv 2008 R2.
    People in my domain can set their background by right click in the pics on their IE, I enabled by GPO a wallpaper by default in ''Administrative Templates > Desktop > Desktop > Desktop Wallpaper''  and I enable too the  ''Administrative Templates
    > Control Panel > Personalization > Prevent changing desktop background'' at login people have the corporative Desktop but they can change by IE. What can I do? thanks.
    <u5:p></u5:p>

    Hi,
    I test this issue, actually, in IE 11, the option "set as backgroud" is grayed out after I applied policy  Administrative Templates > Control Panel > Personalization > Prevent changing desktop background, but seems not suitable for
    other versions of IE.
    You can try other solutions listed in the similiar thread
    How to disable the "Set as Desktop background"?<o:p></o:p>
    http://social.technet.microsoft.com/Forums/en-US/889447df-8452-44b4-bcdf-bf217b75ce6f/how-to-disable-the-set-as-desktop-background?forum=windowssteadystate
    Regards<o:p></o:p>
    Yolanda
    TechNet Community Support

Maybe you are looking for