Query on command link

Team,
I am using Jdev 11.1.2.3.0
I have a bar graph surrounded by command link. When I click on this graph it should take us to next page where I can show the details of the graph.
I have created a action listener method for command link. how can i call another page from bean.
Thanks,

I don't know if you can use the hyperlink to call a subreport but the following has worked for me in Crystal 10:
1. In your main report create a group on the field you want to pass to the subreport.
2. In the Group Footer, use the "Insert Section below" menu command so that you have a Group Footer 1a and a Group Footer 1b.
3. Put your table fields in the Group Footer 1b section (this would be similar to your Details data).
4. Put the sub report in the Group Footer 1a section. Set up the links to the subreport from a table field in your main report.
5. Right-click on the sub-report, select "Format Sub-report". Click on the "x-2" button to the right of the Suppress option and enter "DrillDownGroupLevel = 0" in the "Formula Workshop-Formula Format Editor-Suppress" window and save it.
When you double-click on your data field (i.e. the field in Group footer 1b) it should drill-down and run your subreport.

Similar Messages

  • Cannot kill a session that is running a query on a linked server in SQL Server 2008 R2

    Hi,
    Cannot kill a session that is running a query on a linked server  in SQL Server 2008 R2.
    When I try to kill, it status shown as "KILLED/ROLLBACK"
    I have facing the issue from long back. I searched many and none of them worked for me
    Any help is greatly appreciated
    Thanks
    Jaison
    Carver

    I guess its stuck, can you see some blocking or any other process blocking the rollback.
    can you check rollback status using below command. Or you can use sp_who2 and check status column
    select percent_complete,estimated_completion_time from sys.dm_exec_requests
    where spid=xxx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Command link in adf pivot table

    Hi,
    I Created one View Object (WrkVOR) Based on below query
    Select Desc1,Desc2 ,Date,Sum(Amount) From populate_wrk Group by Desc1,Desc2 ,Date
    Based on View Object we created pivot table
    Rows - Desc1 ,Desc2
    Column - Date
    Amount will come under each date (Like Matrix report)
    Up to It is working fine
    i added a command link on data(Amount) when i click the command link i am getting below error
    DVT-2015 Slice 1 Exceeds boundary -3
    please help....
    Thanks
    shk

    Hi,
    the real problem of the original poster seems to be <af:commandLink text="#{row.GlobalDealId}" id="cl1" action="createMDM" immediate="true" partialSubmit="true"> having immediate set to true in which case the request goes from restore view to render response. You usually use immediate=true on a command item to cancel an action (bypassing all the other JSF lifecycle steps).
    Peter551059,
    you don't give us much information about your case. So if the problem is IE9 and you verified IE9 is supported for the version of JDeveloper you use, then - in case you have a support contract - my best advise is to file a service request and have support looking at it just in case you hit a defect that should be filed as a bug
    Frank

  • Command Link inside of datatable

    I have the following problem when I put a command link inside a datatable.
    The action or actionlisteners never get called. Now here is the funny thing.
    1. If I move the action link outside the datatable it works.
    2. if I change the scope of the bean to session it works
    3. if the datatable contains more than 1 row it works
    The last one tells me this is a bug.
    To test this I change the sql query to limit the result so 1 row would be returned.
    The sql query returns a CachedRowSetImpl
    I believe this is a bug.
    <h:dataTable rows="6" first="0" id="table" binding="#{event.eventdata}" value="#{event.eventdetails}" var="eventdetail">
    <h:column>
    <h:commandLink value="#{eventdetail.title}" action="#{event.resaveEventaction}" actionListener="#{event.resaveEventdetails}" id="test" >
    </h:commandLink>     
    </h:column>
    <h:column>
    </h:dataTable>

    Here is some additional information that makes this more confusing.
    The following code is used to populate the datatable
    public CachedRowSetImpl getEventdetails(){
         CachedRowSetImpl rs2 = null;
         String selectedeventmy = selectedevent;
         int rowcount = 0;
         try { 
              sql = "SELECT * FROM event where eventid='"+selectedeventmy+"' ";
              rs2 = RunQuery.mysql(sql);
              rowcount = rs2.size();
         } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         return rs2;
    where RunQuery.mysql is
    public class RunQuery {
         public static CachedRowSetImpl mysql(String sql) throws Exception {
              CachedRowSetImpl crset = null;
              InitialContext initCtx = new InitialContext();
              Context envCtx = (Context) initCtx.lookup("java:comp/env");
              try {
                   DataSource ds = (DataSource) envCtx.lookup("jdbc/associations");
                   Connection conn = null;
         Statement stmt = null;
         conn = ds.getConnection();
         stmt = conn.createStatement();
         stmt.execute(sql);
         ResultSet rs = stmt.getResultSet();
         crset = new CachedRowSetImpl();
         crset.populate(rs);
         rs.close();
         stmt.close();
         conn.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
              return crset;
    if I replace the line
    String selectedeventmy = selectedevent;
    with String selectedeventmy = "61";
    it works properly.
    selectedevent is populated from the following triggered by another action event on another page. ? The funny thing is if the result set returns more that 1 row all works ok.
    public String viewDetails(){
         System.out.println("Running view Details");
         int selectedrow = eventlist.getRowIndex();
         Object selected = eventlist.getRowData();
         Map rowdata = (Map) selected;
         selectedevent = rowdata.get("eventid").toString();
         System.out.println("Selected Event:"+selectedevent);
         outcome="eventdetails";
         return outcome;
    }

  • Invoke Edit action once I click on Command Link,,,,,, Help me out in

    Hi
    I am having a datatable , which consists of of ROWS, & Columns
    when I click on that command link, it shoud open a property page with all the bean data populated,,,, "I am using the same Add property page for edit also", Now I am modifying the data and click on "Add", Now It should call[b] UpdateQuery ie, ModifyServiceDomain instead of Insert Query "Add ServiceDomain".., Tell me how to do that...
    How to solve the above problem..
    Java Class:
    public class ServiceDomainEventHandler {
        * This method is used to modify a service domain from the Web UI.
        * @return "succuess", if a service domain can be modified successfully,
        *         "failure", if a service domain can not be modified
       public String modifyServiceDomain()
          log.debug( "Into modifyServiceDomain method" );
          String returnStr = "edit_SD";
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext externalContext = facesContext.getExternalContext();
          HttpServletRequest request = (HttpServletRequest) externalContext
                .getRequest();
          String serviceDomainName = (String) request
                .getParameter( "serviceDomainName" );
          ServiceDomain servicedomain = null;
          try
             servicedomain = new ServiceDomainDbAccess()
                   .getServiceDomainByName( UIConstants.WHICH_DB,
                         serviceDomainName );
          catch (SQLException pe)
             pe.printStackTrace();
          try
             servicedomain = new ServiceDomainMgerImpl().getServiceDomainById(
                   UIConstants.WHICH_DB, Integer.parseInt( servicedomain
                         .getId() ) );
             if (servicedomain != null)
                facesContext.getExternalContext().getRequestMap().put(
                      "ServiceDomain", servicedomain );
             else
                log.debug( "Unable to obtain the ServiceDomain!" );
          catch (NrsProvisionException pe)
             returnStr = "failure";
             handleUIErrors( facesContext, pe );
          log.debug( "modifyServiceDomain method return value: " + returnStr );
          return returnStr;
        * This method is used to add a service domain from the Web UI.
        * @return "succuess", if a service domain can be added successfully,
        *         "failure", if a service domain can not be added
       public String addServiceDomain()
          log.debug( "Into addServiceDomain method" );
          String returnStr = "success";
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext externalContext = facesContext.getExternalContext();
          Map requestMap = externalContext.getRequestMap();
          ServiceDomain curServiceDomain = (ServiceDomain) requestMap
                .get( "ServiceDomain" );
          try
             new ServiceDomainMgerImpl().addServiceDomain( curServiceDomain );
          catch (NrsProvisionException pe)
             returnStr = "failure";
             handleUIErrors( facesContext, pe );
          log.debug( "addServiceDomain method return value: " + returnStr );
          return returnStr;
    Jsp Page:
    <%@ page language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
         <f:loadBundle basename="com.nortel.ems.mgmt.nrsm.messages.ServiceDomainMessageBundle" var="bundle"/>
         <%
              String path = request.getContextPath();
              String basePath =
              request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
         %>
         <html>
              <head>
                   <base href="<%=basePath%>">
                   <link REL="stylesheet" TYPE="text/css" HREF="<%= request.getContextPath()%>/css/nrsStyle.css">
                   <title>Service Domain add page</title>
              </head>      
              <body>
              <f:verbatim>
              <div
                   style="height:500px;overflow: scroll; margin-top: -2px;margin-bottom: -2px;border: 1px solid #CCCCCC; border-top:none;width:100%">
         </f:verbatim>
                   <h:panelGroup id="SDPanel" styleClass="panelGroup">
                        <h:form id="SDForm" >                    
                             <h:panelGroup id="SDSubPanel" >
                               <h:panelGrid id="SDPanelGrid" styleClass="panelGrid"
                                              columnClasses="panelGridCol1,panelGridCol2,panelGridCol3,panelGridCol4"
                                            headerClass="tableHeaders" columns="4">   
                                    <f:facet name="header">     
                                         <h:outputText id="SDHead" value="#{bundle.serviceDomainAdd}"/>   
                                    </f:facet>                                                
                                  <h:message for="SDForm" styleClass="fieldErrors" />
                                  <h:outputText id="BlankCol1" value=""/>                                 
                                  <h:outputText id="BlankCol2" value=""/>                                 
                                  <h:outputText id="BlankCol3" value=""/>                                                               
                                    <h:outputText id="SDName" value="#{bundle.serviceDomainName}"/>
                                    <h:inputText id="name" value="#{ServiceDomain.name}" />
                                  <h:outputText id="Mandatory" value="*"/>                                 
                                    <h:message for="name" styleClass="fieldErrors" />
                                    <h:outputText id="SDDesc" value="#{bundle.serviceDomainDesc}"/>
                                    <h:inputTextarea id="description" value="#{ServiceDomain.description}" />   
                                  <h:outputText id="BlankCol4" value=""/>                                 
                                    <h:message for="description" styleClass="fieldErrors" />
                               </h:panelGrid>            
                             </h:panelGroup>
                   <h:panelGroup styleClass="buttonpanelright">
                        <h:commandButton id="AddSD" action="#{ServiceDomainEventHandler.addServiceDomain}" value="#{bundle.serviceDomainSave}"/>
                             <h:commandButton id="CancelSD" action="#{ServiceDomainEventHandler.cancel}" value="#{bundle.serviceDomainCancel}" />
                   </h:panelGroup>
              </h:form>
         </h:panelGroup>
         <h:outputText id="SDMandatoryIndicator" styleClass="mandatory" value="#{bundle.mandatory}"/>
         <f:verbatim>
              </div>
         </f:verbatim>
         </body>
         </html>
    </f:view>[code[/code]]

    update your adobe reader here, http://get.adobe.com/reader/
    untick unwanted tag-along ware.

  • Command Link problem-Urgent

    Hi
    I am having Tabbedpane, under that I am including three jsp files...
    which contains a dataTable , having one column data as a commandLink which inturn opens a Edit page.
    It is working with out tappedpane, When I click Command link for Edit
    in TabbedPane, I am getting java script error saying "Error on page".
    When I submit the action from commandLink from an individulal page .
    Its working fine.
    anyone help me in resolving this issue...?

    Update your Ie, or maybe you have some option that the others don't have.

  • Command link navigation problems in IE but not firefox

    Hi,
    I've developed an application using JSF and SDO. I have several pages where the user is displayed data from the database and pages where the user can add data , edit data and delete data.
    Each page has a jsp fragment contained in the page. This is based on faces and is the naviation menu. Each link in the menu is a command link and has navigation rules which are global. Now the problem I get is that when I sometimes nvaigate between pages using the navigation or command links in a page the page just refreshes and displays the same page again. But if I keep trying to click the link again then after a few attempts the link goes to the page i've requested. I've added system outs on the actions for the links to see if they are getting called when the page just refreshes. The answer is no as the system out line is never printed unless the action of the link is actually executed.
    Now the problem is that this only occurs in ie and NOT in firefox. I'm really confused now!!
    Here is some techinical details to help narrow down my situation:
    I'm using wsad 5.1.2 which has faces 1.0, ie 6, firefox 1.0.3.
    Any help would be appreciated!!

    doh! i've solved this problem now....well for now its working perfectly but i'll have to do a bit more testing.
    For anyone that has this problem here was my solution...
    - In IE i went to tools > general tab > settings
    from this menu choose check for newer versions of stored pages to automatically. I previously had every visit to the page.
    This seems to have fixed my problem and the reason why it worked in firefox was because the settings for caching were different.

  • Command Link usage in JSF datatable

    Hi,
    Following is my requirement. Can any one help me in resolving the issue.
    I hava a JSF page which displays a datatable. One of the columns in the datatable displays a command link. When the user clicks the link in a particular row. Details correpsonding to the particular row have to be displayed in another page. I am using action attribute to perform the navigation from first page to next. Inside action method in the backing, is there any other means to get the row data from the datatable for which the link is clicked.
    Please help.

    You may find this article useful: http://balusc.blogspot.com/2006/06/using-datatables.html

  • Command Link Issue

    Hi,
    I am using Jdevloper 11g.
    I am facing issue with the following code.
    In brief - I am taking Value from session and want to display those values as Command link on jspx, in af:forEach.
    When I bind that Command Link with Managed Bean that time it displays Last Element only (Code given below).
    When I removed Binding ( binding="#{ManagedBean.schemeName}") at that time it displays all the values on page as Command Link.
    Binding is required for my app to find Link text. Is there any alternative?
      <af:forEach var="item"    items="#{sessionScope.SchemeList}">
    <af:commandLink text="#{item.schemeName}"
                                                    id="cb14" immediate="true"  partialSubmit="true"
                                                    binding="#{ManagedBean.schemeName}"
                                                     inlineStyle="#{item.eligibilStatus eq 'Y' ? 'color:black' : 'color:Red'}"
                                                  actionListener="#{ManagedBean.schemeChangeListener}"/>
    </af:forEach>Thank You,
    Regards,
    Dilkhush

    Hello,
    Thank you,
    The solution you had given that is working.
    Now my issue is I have created Programmatically VO.
    I refereed following link to create Programmatically VO
    http://adfpractice-fedor.blogspot.com/2011/01/adf-bc-programmatically-populated-vo.html
    but My issue is how to set VOs Bind Variable Value.
    Because have to send that value from the bean.
    In above link they took two inputText to set Bind Variable value but in my condition I cannot take InputText.
    I am setting that value in my Managed bean as shown below.
    public void schemeChangeListener(ActionEvent actionEvent) {
          OperationBinding opBinding =
              CommonUtil.getOperationBinding("#{bindings}",
                                             "initParamValues");
          opBinding.getParamsMap().put("custID", customerID.getValue().toString());
          opBinding.getParamsMap().put("accountType", (CommonUtil.evaluateEL("#{bindings.ADAccountType.attributeValue}")).toString());
          opBinding.getParamsMap().put("productID", (CommonUtil.evaluateEL("#{bindings.DMAProductId.attributeValue}")).toString());
          opBinding.getParamsMap().put("entityID", homeEntityID);
          opBinding.getParamsMap().put("schemeCode", linkText);
          opBinding.execute();
    }and I have taken that VO as Table on jspx page.
    Issue is before going to bean method it goes to View object and show NullPointerException because the values never get set.
    The above code is called when the commandLink is clicked code given below.
    <af:commandLink text="#{item.schemeName}"
                                                  id="sName" immediate="true"  partialSubmit="true"
                                                  inlineStyle="#{item.eligibilStatus eq 'Y' ? 'color:black' : 'color:Red'}"
                                                  actionListener="#{MakBean.schemeChangeListener}"/>is there any solution how can I set the Bind Variable value from bean and get Expected result in table.
    Thank you
    Regards,
    Dilkhush

  • Command Link as a row of a datatable in JSF

    Hi All,
    I am new to JSF. I have a Datatable with n number of rows.
    I would like to have a command Link in each of the rows, so that when i click the command link i should get the data of the entire row in my edit page.
    Can anyone suggest how can i achieve this.
    Regards
    SN

    Hi,
    Do following:
    1- add a datatable in your page and fill it with data comes from database(Assume u have no problem with datatable)
    2- add a column as commandLink in data table. e.g.
    <h:column>
    <f:facet name="header">
    <h:outputText value="name" />
    </f:facet>
    <t:commandLink action="editObject" immediate="true" >
    <h:outputText value="#{theobject.name}" />
    <t:updateActionListener property="#{objectForm.id}" value="#{objectDto.id}" />
    </t:commandLink>
    </h:column>
    in this code:
    "name" is header of column,
    "editObject" is defined in navigation rule to navigate to edit page, lets say object form.
    "theobject.name" the value that mouse gets finger over it!
    "objectForm.id" the pointer to an "id setter" of a managed bean (named objectForm) defined in faces-config.xml. In this setter you can load corresponding data from database
    "objectDto.id" the pointer to an "id getter" of a managed bean (named objectDto) defined in faces-config.xml. this getter return the id of the entity row you clicked on.
    3- Clearly, you need to defined all managed beans, and dont forget to have a customized setter for id of objectForm (setId) to load the entity from database and fill all editable properties(as you like) in this function (setId).
    4- you need a JSF page to redirect to it for editing properties and feed by objectForm
    5- Thats it :)

  • Command Link : Backing bean setters/getters always invoked

    I am trying to understand how to the setters and getters of a request scope managed backing bean are invoked through the navigation flow when using a command link.
    It seems that no matter where the navigation rules redirects the page as a result of the action, both the setters and getters of any field bound in the originating page are called.
    For example if the originating page has a field name referred by "#{UserBean.name}" to input a username. setName() and getName() are always called as a result of a click on a command link
    This behavior is easily seen in a simple JSF example such as http://www.netbeans.org/kb/articles/jAstrologer-intro.html.
    If the jsp pointed by "to-view-id" is changed to have no reference to the backing bean or is changed to a jsp with just text, both setters and getters are still invoked.
    I could understand why the setters would be invoked (doesn't know ahead of time if the bean will be used?) but at least why the getters?
    Last, how to prevent this behavior? The problem is that the backing bean might have complex logic where it will fetch data if a getter is called.
    Thanks.

    I guess this article might be interesting to get some insights http://balusc.xs4all.nl/srv/dev-jep-djl.html
    The setters are invoked to set values and the getters are invoked to get the eventually presetted default values or the previously submitted values.

  • Command link action not being called

    Hi,
    I raised another bug about this and I thought I had fixed this but it seems to have come back again! Here are the details:
    The Problem
    - I have a jsf application that uses SDO to manage database calls/changes. In the application I have a navigation menu which consists of command links. From time to time (doesn't always happen) you click on a link and the page just refreshes and you are not taken to the requested page. Now this doesn't happen all the time! I've looked at logs and added debugs but I can't find anything apart from the face that when the page just refreshes the action behind the command link is not called.
    Has anyone experienced this before? I'm using wsad 5.1.2 and have this problem and the version of faces is 1.0.
    Please help as I have no idea what is causing this!!

    yep, sorry for reposting but in that post I said I had it fixed but obviously its not. What's really change is that I cant recreate this problem on my laptop but on our dev and test environments this problem still exists. My initial thoughts is that this is an environment problem but i'm not totally convinced as the was settings etc are the same as on my laptop.

  • Command Link attribute is returning null.

    Hi all,
    I have a pojo iterator with me. I have to generate command link for a attribute from that iterator. I generated them using a ForEach loop as below and put address of employee as an attribute of that tag. Now in the Action Listener i am fetching this attribute using actionEvent as below : -
        public void displayUploadAttachment(ActionEvent actionEvent) {
           System.out.println("Content Id:- "+actionEvent.getComponent().getAttributes().get("adr"));
    My action Listener returns it as NULL. I am not getting why it is doing this.
    <af:forEach items="#{bindings.myEmpIterator.children}"
                                  var="emp">
                        <af:commandLink text="#{emp.firstName}" partialSubmit="true" id="cl22"
                                        actionListener="#{viewScope.empBean.displayEmpAddress}">
                        <f:attribute name="adr" value="#{emp.address}"/>
                        </af:commandLink>
                      </af:forEach>
    J dev version
    Studio Edition Version 11.1.1.6.0

    Hi,
    Couple of things to check.
    1. Check if the address is really null (instead of #{emp.firstName} as text for the commandLink, try with #{emp.address}).
    2. Instead of
    System.out.println("Content Id:- "+actionEvent.getComponent().getAttributes().get("adr"));
    try
    System.out.println("Content Id:- "+((RichCommandLink)actionEvent.getSource()).getAttributes().get("adr"));
    -Arun

  • Command Link in ADF table is not working/ PPR event not getting fired

    Hi All,
    I am having ADF Table, in that one column is with command link if click on command link, it is not navigating to corresponding page or method of a bean. If i give same command link out of the table it working fine, this issue i am facing is in IE9.
    if i use IE in compatibility mode the links works fine, even in IE8 version also.
    Browser: IE 9
    Jdev version: 11.1.1.5.0
    I tried all possible things, but nothing workout for me.
    showPopupBehavior not working in IE9 for af:table buttons (jdev11.1.1.5.0)
    Partial page rendering not working in ie9
    Command Link in ADF table is not working
    Thnks

    Hi,
    please file a bug if you have a customer support contract and provide a testcase
    Frank

  • Command link used as tree node

    I'm using an ADF Tree where one of my nodes is a command link. I've given the link an id="myLink".
    When I run the page, the tree shows up fine with just one node.
    But the View Page source does not contain any entry that says id="mylink".
    Where could be the problem?
    Thanks
    RV

    Hi,
    I assume you use ADF Faces RC, because otherwise you would have posted this to the JDeveloper forum. If you add a command link t a node, then this command link is used for any node that is rendered for the tree (unless you implemented it in a way that only has exactly one command link component showing in the whole tree - which I don't think you have).
    In JSF you cannot have more than one component with a specific ID, which means that assigning an ID to a command link in a tree doesn't make much sense.
    In ADF Faces RC, trees are active components, which means they are created in the DOM and not HTML. So using a DOM inspector like Firebug you should see your tree and link components
    <a id="j_id___jsp_tag_ctru4:7:myLink" class="xdk" href="#" onclick="return false;">commandLink 1</a>
    Frank

Maybe you are looking for

  • MRP FOR On order stock

    hi Can anybody pls tell me does system consider open PO qty, On order  stock qty(rejected materials), Open PR qty while MRP run. If yes How does it happen? If suppose I want system not to consider above stock in MRP run, How can I do It? Pls suggest.

  • Showing Dynamic parameters depending on Static parameter

    Post Author: Relais CA Forum: General Is it possible to show dynamic parameters depending on the selection of the static parameter?For example, I would like to show a dynamic list of Departments, only if u201CDepartmentu201D is selected from the stat

  • I have a SVE14AE11W VAOI laptop but something is wrong.

    So at the beginning of the year my laptop started to break, like the frame of both sides of the laptop and the handle/joint part which connects the screen to the body started to fall of and I haven't even had it for 1 year. It worked till June and su

  • Change multiple Reel names

    Is it possible to change multiple reel names at the same time, instead of having to copy/paste each one individually? I'm on FCP 6

  • Why it is hard to insert photos properly in Pages?

    It is hard to insert photos properly in Pages. I was trying to insert several photos into 1 pages file, but when I moved the photos, these were getting no order.