Passing values with href.

I am creating a report region by selecting some fields from the table. I then made one particular field a hyper link and i want to have a pop up window (to select some criteria) when you click on the hyperlink.
My pop up window display will be different depending on which hyperlink you have clicked (depending on datatype). How can I pass a value or a set of values (separated by comma) so I can see and use those values in pop up window and can display and hide particular item/items
Help is highly appreciated.
pb

Hi Prashant,
There are a few ways of doing this - this is what I do when I need this sort of functionality
1) in the report select the column you want to link on - or create a derived column
2) in the link column set the target to URL
3) in the URL field type something like:
javascript:popup('#ST#','#STATE_NAME#');
where the values between the hash symbols are the values you want to pass to the new window
4) create a new window with hidden items corresponding to the values that you want to pass
5) in the report page go the page attributes and add some javascript in the HTML header section:
<script language="javascript">
function popup(value1,value2){
var newWindow;
newWindow = window.open("f?p=&APP_ID.:2:&APP_SESSION.::NO::P2_TEXT1,P2_TEXT2:"+value1+","+value2+"","myWindow","width=200,height=400");
newWindow.focus();
</script>
where the value1 and value2 parameters are the values passed in and the P2_TEXT1 and P2_TEXT2 are the items on the popup page you want to populate.
If you do a general search on the internet for window.open you should be able to find the other attributes that can be used to hide scrollbars, status bar etc, if that is needed.
hope that helps
Adam

Similar Messages

  • JSF2 : Problem passing values with f:setPropertyActionListener

    Hi,
    I'm a JSF newbie, and I'm in front of a weird problem on a JSF2 / Glassfish3 project. I'm working on GlassFish Server Open Source Edition 3.1 (build 43) with Mojarra 2.1.0 (FCS 2.1.0-b11).
    I'm using a commandLink to pass values from a page to a backing bean. This example works (here is only the relevant code) :
    user.xhtml :
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:c="http://java.sun.com/jsp/jstl/core"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="sublayout.xhtml">
      <ui:define name="maincontent">
        <p><a name="projects"><h:outputText value="Projects" /></a></p>
        <p><h:outputText value="#{userController.user.login} has initiated the following projects:" /></p>
        <h:dataTable value="#{userController.getProjects()}" var="p">
          <h:column>
            <h:form>
              <h:outputText value="#{p.id}: " />
              <h:commandLink action="#{projectController.doGetProject()}">
                <h:outputText value="#{p.title}" />
                <f:setPropertyActionListener value="#{p.id}" target="#{projectController.projectId}" />
              </h:commandLink>
            </h:form>
          </h:column>
        </h:dataTable>
      </ui:define>
    </ui:composition>
    </html>userController.java:
    // package, imports...
    @ManagedBean(name = "userController")
    @RequestScoped
    public class UserController {
      @EJB
      private UserServiceEJBLocal userServiceEJB;
      private FacesContext ctx = FacesContext.getCurrentInstance();
      private User user = new User();
      private long userId;
      private String password;
      private String passwordConfirmation;
      public String doGetUser() {
        try {
          user = userServiceEJB.findById(userId);
        } catch (ObjectNotFoundException e) {
          ctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "User not found" + userId, "User not found : " + e.getMessage()));
          return null;
          return "user.faces";
      public ArrayDataModel<Project> getProjects() {
        return new ArrayDataModel<Project>(user.getProjects().toArray(new Project[user.getProjects().size()]));
      // Getters and setters
    }projectController.java:
    // package, imports...
    @ManagedBean(name = "projectController")
    @RequestScoped
    public class ProjectController {
      @EJB
      private ProjectServiceEJBLocal projectServiceEJB;
      FacesContext ctx = FacesContext.getCurrentInstance();
      private Project project = new Project();
      private long projectId;
      public String doGetProject() {
        try {
          project = projectServiceEJB.findById(projectId);
        } catch (ObjectNotFoundException e) {
          ctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Project " + projectId + " was not found", e.getMessage()));
          return null;
        return "project.faces";
      // Getters and setters
    }The proble occurs on the XHTML page below :
    project.xhtml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="sublayout.xhtml">
      <ui:define name="maincontent">
        <h:form>
          <h:commandLink action="#{userController.doGetUser()}">
            <h:outputText value="#{projectController.project.author.login}" />
            <f:setPropertyActionListener value="#{projectController.project.author.id}" target="#{userController.userId}" />
          </h:commandLink>
        </h:form>
      </ui:define>
    </ui:composition>
    </html>The commandLink syntax seems to be the same as the one provided above, but when I test this for, I get an IllegalArgumentException from Glassfish. Here it is, from the Glassfish server.log :
    [#|2011-08-22T11:15:11.462+0200|WARNING|glassfish3.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=95;_ThreadName=Thread-1;|/project.xhtml @32,42 target="#{userController.userId}": Can't set property 'userId' on class 'org.creagora.server.ejb.managed.UserController' to value 'null'.
    javax.el.ELException: /project.xhtml @32,42 target="#{userController.userId}": Can't set property 'userId' on class 'org.creagora.server.ejb.managed.UserController' to value 'null'.
         at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:139)
         at com.sun.faces.facelets.tag.jsf.core.SetPropertyActionListenerHandler$SetPropertyListener.processAction(SetPropertyActionListenerHandler.java:206)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
         at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
         at javax.faces.component.UICommand.broadcast(UICommand.java:300)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
         at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
         at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.IllegalArgumentException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at javax.el.BeanELResolver.setValue(BeanELResolver.java:381)
         at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
         at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:197)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:286)
         at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
         ... 35 more
    |#]So I wonder : what makes the first example work, that fails in this one ? Where does this 'null' value come from ? I tested every value (project, author, author id), everything is correct. But for some reason, the projectController.project.author.id is not passed to the userController.userId.
    If I try to replace
    <f:setPropertyActionListener value="#{projectController.project.author.id}" target="#{userController.userId}" />by this (obviously incoherent but syntically correct)
    <f:setPropertyActionListener value="#{projectController.project.id}" target="#{userController.userId}" />I don't get the IllegalArgumentException anymore, but the value is still not passed, and the value of userController.userId is never updated, and remains set to 0.
    But if I hardcode a valid value :
    <f:setPropertyActionListener value="1" target="#{userController.userId}" />It works...
    I can't understand why a 'null' value appears from who knows why, given that the only value passed are of long type.
    Can you help me ? It's getting frustrating, and I didn't find any help on Google so far...
    Thanks!
    Xavier
    Edited by: 880733 on 22 août 2011 04:04

    Ok, I have a little more time now.
    You ask how the value can be null when the property is a long. What is happening is that something in the chain is null, e.g. the author is not set on the project. (Although usually you get an exception with that kind of thing.) The EL resolver is actually not really part of JSF, it is a separate library. Furthermore it is weakly typed so it doesn't know what type of thing projectController.project.author.id is until it evaluates it. If something is null along the way, there is no way for it to know whether the end result should have been a long, a Long, a String or anything else.
    You asked how to pass values without setPropertyActionListener. It is certainly possible. In fact, I would not be surprised if my entire application did not use setPropertyActionListener. Let's start with the first case. In that situation you were using a dataTable. The customary thing to do is to bind the dataTable to a UIData property in a managed bean. Then, in your action method, you can invoke UIData.getRowData() and get the object instance associated with the row in the table that was activated by the user.
    In your second example it is a little difficult to appreciate everything going on without more context but I'll just guess at what I don't know. I'm going to assume you have a simple page here. On the request that generates this page, projectController.project.author.id is known. I imagine the problem is that this is in request scope, causing projectController.project.author.id to be forgotten on the next request. The simplest solution is to store the project somewhere in session scope. I would recommend against putting the Controller classes themselves in the session scope.  Instead create a set of beans for session scope and inject them into the Controller classes.
    There are many other ways to skin the same cat. Many people object to over-using session scope. So you could store something small like just the id in the session. Or you could pass the id using h:inputHidden. Or you could use Tomahawk's s:saveState.
    HTH

  • Pass Value To Href Tag

    Below is my Code. On a mousover and MouseOut events of the
    Tag the Image on the second TD changes.
    As you noticed the Image is not Hyperlinked. Is there a way I
    could create a Hyperlink over the Image on TD 2 and Pass the Href
    hyperlink values of the 1st TD to the Second on MouseOver and
    MouseOut events? See Code below

    Yes you can. But not with ColdFusion. You are asking a
    JavaScript question so I would suggest you go to a JavaScript board
    and ask there.

  • Passing values with HttpsURLconnection and reading response back

    i need to communicate with a server url using HttpsURLConnection and pass 2 strings and read the response back.
    how can i make this using HttpsURLConnection object.
    HttpsURLConnection.setDefaultSSLSocketFactory(sslcontext
                        .getSocketFactory());
    HttpsURLConnection https = null;
    https = (HttpsURLConnection) new URL(host).openConnection();// host url of the server program
    https.setRequestMethod("POST");
    https.setDoInput(true);
    https.setDoOutput(true);
    https.setRequestProperty("IP", "10.900.10.2");// i am not sure how to pass two strings.
    https.connect();
    // have to read response back from a server program
    please help,
    thanks in advance.

    You can get around this by using javascript. That way your parent document is not getting refreshed.
    Create form inputs in the parent document for each of the variables you want to gather from the popups.
    You can then fire a function in the parent window when the user clicks a button in each popup that sends the values to the parent window. Just use:opener.funcname(var1, var2, var3...);Create the function funcname() in the parent window that takes each value to be added and sets the form inputs appropriately. You may want to use a different function for each popup window, like submitPopup1, submitPopup2 and so on.
    You can then make the last popup submit the form in the parent window:
    opener.document.FORMNAME.submit();Where FORMNAME is the name of your form.

  • How to pass values with comma to comma seperated param in sp

    hi all,
     i have one sp which has param name as cordinatorname varchar(max)
    in where condition of my sp i passed as
    coordinator=(coordinatorname in (select ltrim(rtrim(value)) from dbo.fnSPLIT(@coordinatorname,',')))
    but now my promblm is for @coordinatorname i have values as 'coorcinator1', 'coordinato2,inc'
    so when my ssrs report taking these values as multiselect, comma seperated coordinator2,inc also has comma already
    how to get this solved. please help me..
    lucky

    In the SSRS report, on the parameters tab of the query definition, set the parameter value to
    =join(Parameters!<your param name>.Value,",")
    In your query, you can then reference the value like so:
    where yourColumn in (@<your param name>)
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Report-Report Passing Values with SMOD_RSR00004

    Hi,
    I operated the BADI SMOD_RSR00004 which suppose to help in mapping values from a sender report to a receiver report.
    I didn't succeed to see in a debug mode the sender query's time characteristic value I used.
    I mean that all the rows/columns characteristics of the sender query are available on the BADI method in a debug mode, but the column time characteristic of the sender query is not.
    Also, does anyone know how should I enter the values I mapped to the export parameters in the method.
    I found a good documentation here:
    RS_BBS_BADI documentation,
    But my problems I presented here has no solution mentioned there.
    Best Regards,
    Shani Bashkin

    Hi again,
    Does anyone have any idea for solving this problem???
    Thanks,
    Shani Bashkin

  • Passing values with each program run

    Hi ,
    I have a program which runs 6 days a week and updates a table.Now my requirement is to assign a value to a field for each day when the program runs every day in the week.
    <b>For first day - D
    second day - D-1
    sixth day - D-5.</b>
    when the program runs after D-5 it should again start from D.
    How can i achieve this please advise.
    Regards
    Pavan

    Hi kumar,
    1.
    03-Jun-06     D
    04-Jun-06     D-1
    05-Jun-06     D-2
    06-Jun-06     D-3
    07-Jun-06     D-4
    08-Jun-06     D-5
    09-Jun-06     
    10-Jun-06     D
    11-Jun-06     D-1
    12-Jun-06     D-2
    13-Jun-06     D-3
    2. this program will give output,
       based upon date input.
    3.  just copy paste
    report abc.
    data : monday type sy-datum.
    data : abc(3) type c.
    data : diff type i.
    DATA : DAYNR TYPE C.
    parameters : mydate type sy-datum default sy-datum.
    START-OF-SELECTION.
    CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
    EXPORTING
       DATE          = mydate
    IMPORTING
      WEEK          =
       MONDAY        = monday
      SUNDAY        =
    DIFF  = MYDATE - MONDAY.
    DAYNR = DIFF.
    ABC = 'D'.
    IF DIFF >= 1.
    CONCATENATE ABC '-' DAYNR INTO ABC.
    ENDIF.
    WRITE ABC.
    regards,
    amit m.

  • Passing values to another page with %

    I have a button that redirects to another page in my application. I am passing the value of one my fields to the target page via <Set These Items> and <With These Values>. The source field has a % at the end of it. When the value gets passed to the target, the % is not passed. Is there a problem passing values with % in them?
    Here is the passing parameter list:
    Set These Items: P22_DB_NAME
    With These values: &P2_DB_NAME.
    The value of P2_DB_NAME is "ESB%". When it gets to the target page it is "ESB".

    Brian,
    you will need to encode the percent sign and use
    %25
    instead of
    Make your button an url and use this link. It will replace the percentage with the encoded value and pass the value to the specified item.
    redirect('f?p=&APP_ID:22:&SESSION.::::P22_DB_NAME:'+$x('P2_DB_NAME').value.replace(/%/, '%25'));
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Passing parameter value via href in a servlet to another servlet

    Hi
    I have this issue with passing a value from one servlet to another servlet. the situation is is this.
    i have a servlet tstret.java which say..pulls out all the employee_id(s) from a table and displays it as hyperlinks( using the anchor tag.).
    now when i click on the hyperlink say T001 , The control is passed to another servlet which pulls out all the info about employee id T001.
    the problem i have is in the tstret.java servlet. i am passing the employee_id as a parameter in the href path itself as shown below.
    out.println("<td ><a href=\"http://localhost:7000/servlets-examples/accept_requisition.html?id="+[u]rs.getString(1)[/u]+"\" ><em>"+rs.getString(1)+"</em></a></td>");now if you see the code i am trying to pass the employee_id by attaching it to a variable id and passing it with the url, it gives me a sql exception saying no data found .
    if i pass a string say "rajiv" which i defined at the begining of code then i am able to pass it to the next servlet/html.
    the full code is as follows
    file : tstret.java
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class tstret extends HttpServlet
         PrintWriter out;
         String[] employee_identity;
         public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
              try
              response.setContentType("text/html");
              out = response.getWriter();
              String session_name="SHOBA";//request.getParameter("session_name");
              out.println("<html><head><title> My Jobs </title></head>");
              out.println("<body bgColor=#ececec leftMargin=10>");
              out.println("<table align=center>");
              out.println("<tr align=center><td><img src=\"http://localhost:7000/servlets-examples/images/topbar.gif\"></td></tr>");
              out.println("<td>Jobs for : "+session_name+"</td>");
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              Connection connection = DriverManager.getConnection("jdbc:odbc:tst","scott","tiger");
              Statement statement=connection.createStatement();
              ResultSet rs= statement.executeQuery("select req_no from require_info where sent_to = " + "\'" + session_name + "\'");
    //          out.println("Jobs for : "+session_name);
              while(rs.next())
              /*     String[] get_id={"shoba","ping","ting","ving"};
                   for(int i=0;i<get_id.length;i++)
                   out.println(" <tr align=\"center\">");
              //     out.println("<td><a href=\"servlet/testhyper\" name="+rs.getString(1)+"><em>"+rs.getString(1)+"</em></a></td>");
                   out.println("<td ><a href=\"http://localhost:7000/servlets-examples/accept_requisition.html?id="+rs.getString(1)+"\" ><em>"+rs.getString(1)+"</em></a></td>");
                   out.println("</tr>");
                   out.println("<br>");
              }catch(SQLException se){out.println("sqlexception"+se);}
              catch(ClassNotFoundException ce){out.println("cnfexception"+ce);}
              out.println("</table></body></html>");
         public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
              doGet(request, response);
              Can some one help me and see if there is anything i missing or doing wrong.
    thanks in advance

    Try storing the id at the top of the loop, then using that for the URL and the link text, instead of calling rs.getString(1) twice:
      while(rs.next())
        String emp_id = rs.getString(1);
        out.println(" <tr align=\"center\">");
        out.println("<td ><a href=\"accept_requisition.html?id="+emp_id+"\" ><em>"+emp_id+"</em></a></td>");
        out.println("</tr>");
        out.println("<br />");
      }

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • RRI: BEX query to webadress(is SRM ITS base URL with passing value to it)

    Dear friends,
    I am doing RRI from query to webaddress,
    i have defined jump(report type: webaddress and reicver report as url) from shopping cart bex query(SRM ) to webaddres.
    here url is SRM ITS base link for monitoring shoppingcart(http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN).
    jump is working from portal(from bex query ivew).
    but i want to pass value(shopping cart value) to above url and want to skip first screen.
    i have maintained assignment detail by assigning field name against shopping cart infoobject with type url parameter, but its not directly call reciver url with given input field.
    i tried the diffrent combination of url and field assignment as like below:
    1: web address url:http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
    assigned field: GS_HEADER-OBJECT_ID
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN?GS_HEADER-OBJECT_ID='selected number value'
    2: web address url:http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc
    assigned field: flNUQVRFPTgzMTcuMDAyLjAxLjAx
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc?flNUQVRFPTgzMTcuMDAyLjAxLjAx='selected number value'
    I have seen the source code of that url(inital screen and after entring the value to that screen) too.
    how to call webadress(SRM ITS base shopping cart URL) with passing the one of field value of that url screen?
    Thanks and regards,
    Dushyant.

    Hi,
    i have replied wrong,
    i mean that
    when i am trying this,
    http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN&GS_HEADER-OBJECT_ID='selected number value'
    with field assignment: shopping cart number = GS_HEADER-OBJECT_ID (for drill down on particular field, i.e. open the URL with this field value entred from sender query's field shopping cart number)
    result is coming: http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN&GS_HEADER-OBJECT_ID='selected number value'&GS_HEADER-OBJECT_ID=10000456
    and when try this:
    http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
    with field assignment: shopping cart number = GS_HEADER-OBJECT_ID
    result is coming: http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN&GS_HEADER-OBJECT_ID=10000456
    but not skiping the initial screen.
    Thanks.

  • Passing values to iframed page with flash chart.

    Hi,
    I'm trying to dynamically generate a series of charts within a sql report.
    In my report i make several calls to a page with a (flash) chart and i pass some values to this page/chart by setting page items through the source url of the iframe.
    The problem is that all the iframed instances of the page in my report display the same data although each iframe sets specific page item values through its source url.
    (only the page item values that were set by the last call to the page are being used by all the other chart instances)
    So why does this happen?
    Are the iframed charts rendered to slow?
    Is this a flash problem?
    Should i call each iframe within a seperate session?
    And does anyone know how to correctly pass values to the iframed page / chart so each instance of the page/chart displays the correct data?
    Thanks
    Niels

    Solved my problem by leaving the SESSION part blank in the src url of the iframe.
    Apex creates a new session for every iframe now, the page items values are not overwritten and the data is displayed correctly.

  • Dropdown - issue with passing values to context

    Hi,
    After facing issue in:
    Webdynpro + alv + dynamic dropdown
    Now I've encountered another problem. Dropdown is created in alv, however once user select value from the list it shows selected value in the cell, however value in context remains unchanged.
    Here is the way I implemented dropdown:
    1) I added new field to the structure which is shown in the alv FIELD1 of WDR_CONTEXT_ATTR_VALUE_LIST type.
    2) I initialize the column, where dropdown is supposed to be:
    - first column
    l_col_name = 'COL1'.
    lr_column = lr_model->if_salv_wd_column_settings~get_column( l_col_name ).
    DATA: lr_drdn_by_idx_col1 TYPE REF TO cl_salv_wd_uie_dropdown_by_idx.
    CREATE OBJECT lr_drdn_by_idx_col1 EXPORTING selected_key_fieldname = l_col_name.
    lr_drdn_by_idx_col1->set_valueset_fieldname( value = 'FIELD1' ).
    lr_drdn_by_idx_col1->set_read_only( value = abap_false ).
    lr_drdn_by_idx_col1->set_type( if_salv_wd_c_uie_drdn_by_index=>type_key_value ).
    lr_column->set_cell_editor( lr_drdn_by_idx_col1 ).
    3) I load the data,
    Piece of code loading data into structure with dropdown:
    DATA:  ls_valueset     TYPE wdr_context_attr_value,
                lt_itab         LIKE TABLE OF ls_line.
          ls_valueset-value = 'KG'.
          ls_valueset-text = 'KG'.
          APPEND ls_valueset TO lt_itab[].
          ls_valueset-value = 'ST'.
          ls_valueset-text = 'ST'.
          APPEND ls_valueset TO lt_itab[].
    zstructure is type of the row show in the alv
    Data:
         ls_po_result TYPE zstructure.
         lt_po_result TYPE table of zstructure.
         ls_po_result-FIELD1[] = lt_itab[].
         APPEND ls_po_result TO lt_po_result[].
    Everything works so far good. The thing is that once I changed value from e.g. ST to KG, value in Attribute COL1 is still ST.
    I would appreciate your help,
    kind regards,
    Adam

    Hi Nithya,
    it could another issue with the SP, I will inform you if it's the case.
    Passing values comes up with function when I load data into alv.
    structure_name - alv columns structure
    DATA: l_name1        TYPE t001w-name1,
              ls_po_result   TYPE structure_name
              lt_po_result   TYPE table of structure_name,
    load data from DB into l_itab
      LOOP l_itab  AT ASSIGNING item.
    this method return value_set to field1
        CALL METHOD fill_single_dd
          EXPORTING
            i_id     = item-id
          IMPORTING
            rt_dd_table = ls_po_result-field1[].
        APPEND ls_po_result TO lt_po_result[].
      ENDLOOP.
    binding to node ....

  • Passing inputText value with command Button

    Hi,
    As i am new in JSF i dont know how to pass my inputtext value to backing bean with my commandbutton...
    My JSF code is.
    <h:form id="form3">
              <h:outputLabel for="" id="OL_Select_Case" value="Select Case" style="background-position: 100%; background-repeat: repeat; width: 100%; background-color: Gray"></h:outputLabel>
              <br>
              <h:inputText id="I1_Select_Case" value="#{ComplaintDetailsBean.caseNo}"></h:inputText>          
              <h:commandButton id="C1_Select_Case" value="Select Case" style="background-color: transparent;" action="/Maintanance1.faces"></h:commandButton>
              <br>
              <br>
              <h:inputText id="I2_Select_Owner"></h:inputText>
              <h:commandButton id="C2_Select_Owner" value="Select Owner" style="background-color: transparent ;"></h:commandButton>
              <br>
              <br>
              <h:selectOneMenu id="sel_owner" value="#{OwnerBean.owner}">
              <f:selectItems id="sel_item_owner" value="#{OwnerBean.perInfo}"/>          
              </h:selectOneMenu>
                <h:commandButton id="C3_Assign" value="Assign" style="background-color: transparent;" action="#{OwnerBean.getDetailThree}">
              <f:param name="caseNo_owner" value="#{ComplaintDetailsBean.caseNo}" id="caseNo_owner"/>
              </h:commandButton>
         </h:form>
         I want to pass value of inputtext "I1_Select_Case" with my commandbutton "C3_Assign" to my backing bean i.e. "OwnerBean.java"
    I have used here param tag....but its not working ....
    Plz suggest me...
    Regards.
    Shrikant.

    No its still not working.My JSF code is....
         <h:form id="form3">
              <h:outputLabel for="" id="OL_Select_Case" value="Select Case" style="background-position: 100%; background-repeat: repeat; width: 100%; background-color: Gray"></h:outputLabel>
              <br>
              <h:inputText id="I1_Select_Case" value="#{OwnerBean.comCaseNo}"></h:inputText>          
              <h:commandButton id="C1_Select_Case" value="Select Case" style="background-color: transparent;" action="/Maintanance1.faces"></h:commandButton>
              <br>
              <br>
              <h:inputText id="I2_Select_Owner"></h:inputText>
              <h:commandButton id="C2_Select_Owner" value="Select Owner" style="background-color: transparent ;"></h:commandButton>
              <br>
              <br>
              <h:selectOneMenu id="sel_owner" value="#{OwnerBean.owner}">
              <f:selectItems id="sel_item_owner" value="#{OwnerBean.perInfo}"/>          
              </h:selectOneMenu>
                <h:commandButton id="C3_Assign" value="Assign" style="background-color: transparent;" action="#{OwnerBean.getDetailThree}">
              <f:param name="caseNo_owner" value="#{OwnerBean.comCaseNo}" id="caseNo_owner"/>
              </h:commandButton>
         </h:form>
         My OwnerBean's code is:-
    public String getCaseNo() { 
    return caseNo; 
    public void setCaseNo(String caseNo) { 
    this.caseNo = caseNo; 
    public String getComCaseNo() { 
         return com.getCaseNo(); 
         public void setComCaseNo(String caseNo) { 
         com.setCaseNo(caseNo); 
    public String getDetailThree() { 
         FacesContext context = FacesContext.getCurrentInstance(); 
         HttpServletRequest myRequest = (HttpServletRequest)context.getExternalContext().getRequest(); 
         HttpSession mySession = myRequest.getSession();         
         //String caseNo = myRequest.getParameter("case_No");
         setCaseNo(myRequest.getParameter("caseNo_owner"));
         String owner2=getOwner();
         System.err.println(">>>>>>>>>>>>>>>>>BACKING BEAN ENTITYDETAILS>>>"+getComCaseNo()+"||||"+owner2);
         //javax.servlet.RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/complaintDetailsPop.faces");
         //String custName= request.getParameter("Name");
         //System.out.println("Name = "+custName);
         //request.setAttribute("Customer_Name","Irfan");
         //request.setAttribute("First_Name","Shrikant");
         //dispatcher.forward(request,response);
         //FacesContext fc = FacesContext.getCurrentInstance();
         //ServletContext sc = (ServletContext) fc.getExternalContext().getContext();
         //myRequest.getSession().setAttribute("entity_ID",entityID);
         //sc.getRequestDispatcher("/Assign_Case.faces");          
         //========---------------********************************************************----------------------------------
         return("getdetails"); 
         //String entityID = getFacesParamValue("entityIDParam"); 
         }Plz suggest me....

Maybe you are looking for

  • Takes a long time to connect using D-Link router

    I recently purchased a D-Link 802.11n router to replace my old Airport Snow, which seemed to be failing after many years. Now that I have the D-Link up and going, I have two problems: 1 - When I first start either Mail or Safari, it seems to take the

  • Changing date format from yyyy/mm/dd to mm/dd/yyyy

    I use the following statment: MAX(case when A.[NGT_KYC_QUES_PROPERTY]='ResolvedDate' then CAST(SUBSTRING([NGT_KYC_QUES_ANSWER],5,2) + '-' + SUBSTRING([NGT_KYC_QUES_ANSWER],7,2) + '-' + SUBSTRING([NGT_KYC_QUES_ANSWER],1,4) AS DATE) ELSE '' END)AS Reso

  • Not automatically downloading tv shows

    My itunes doesn't automatically download purchased tv shows and now for some reason it won't even let me get to the standard definition version so I can manually download my tv shows. Can anyone help?

  • Package needed installing Grid Control 11g

    Hi , I'm installing Grid Control 11g on RHEL5 and for installing yast package I need a pre-requirement of package called ( Checking boost ....... not found ). Where I can find this package ? Thanks [root@mygrid yast_el5_x86_64]# ./install.sh Now chec

  • Unable to update to iOS 6.0

    Neither iPad or iPhone can be updated to iOS 6.0. Says that i am not connected to the internet though I am. What's the problem?