XSTEP - parameter with Range as value

Hi,
In XSTEP, can I maintain a paramter with Range such as 4 - 5 so that 4 & 5 are validated against each other. when I create Process Instrcution or Process Message Characteristic, it is not accpeting 4 -5, instead it is taking 4 only. is it a std benavour..
Thanks
JK

try to print the check box selection . even though it is check box i think if you try to print that value in report u can know what it will give .
like <?$parama1?> then may be we can know what it is returning.
is it possible to print

Similar Messages

  • Multiple select parameter with each selected value covering multiple sub values

    Hello, everyone,
    In my SSRS report, I need to set a multiple select parameter called Group, with values: group1 group2, etc....
    When group1 is selected, it needs to apply to data of certain sub groups: sub-group1, sub-group2;
    When group2 is selected, it needs to apply to data of different sub groups: sub-group3, sub-group4 and sub-group5;
    when both group1 and group2 are selected, then, it needs to apply to data of sub-group1 to sub-group5.
    I know how to do it when only one group is selected: simply use a case statement in the query to select the right sub groups based on the group selected.
    But I don't know a good way to do it when multiple groups are selected.
    Any help, pointers are much appreciated. Thanks in advance!
    Regards

    Hi QQFA,
    If I understand correctly, there are two parameters (Group and Sub_group) in the report. When we select group1 in Group parameter, it will auto select sub-group1, sub-group2 in the Sub_group parameter; when we select group2 in Group parameter, it will auto
    select sub-group3, sub-group4 and sub_group5 in the Sub_group parameter; when we select both all, it will auto select all sub_group values. If I have misunderstood, please don't hesitate to let me know.
    In this scenario, we can create a temporary table with Group and Sub_group columns, then select Sub_group column values based on the Group field. For more details, please see:
    Create a dataset with the query below:
    CREATE TABLE #temp([group] nvarchar(50),sub_group nvarchar(50))
    INSERT INTO #temp VALUES     ('group1','sub-group1'),('group1','sub-group2'),('group2','sub-group3'),('group2','sub-group4'),('group2','sub-group5')
    SELECT * FROM  #temp
    where [group]  in (@Group)
    Set available values and default values of Sub_group parameter with get values from the sub_group field in the new dataset.
    Note that the two parameters are all multiple parameters.
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Comparing a range with rang of values

    Hi,
    Please help me to get a solution for the below, Thank you!!
    I have a table which contains values like select options.
    Ex: Here table fields are SIGN, OPTION, LOW and HIGH.
    i need to select these table entries using the selection screen (this is parameter) input,
    where user can give input exact value or '' or somthing (Ex. IN*) or  *somthing (Ex. *03).
    Or after selecting the entries from the table into internal table, i need to filter the internal table entries with selection screen input.
    Here when user inputs with pattren (Ex. IN* or *03) and the table entry is
    SIGN   OPTION      LOW                HIGH
    I      BT             IN01                 KR01
    here if user inputs *03, the above table entriy should come in the output.
    as IN03 or JP03 etc...comes under above range.
    Can any one suggest any solution for this?
    This is quite urgent issue, pleae help me in this regard.
    Thanks and regards,
    Satish
    Message was edited by:
            SATISH KOTTE

    I have done similar requirement in dialog program and i used find button to get exact field in top line cursor.
    Create one internal table where you are finding the data from database table.
    See the logic in form routine : FORM find_field USING    command.
    Below sample program :
    *& Module pool       ZLWMI151_BAT1
    *& Transaction:      ZBAT1
    *& Programmer:       Seshu Maramreddy
    *& Date      :       05/17/2005
    Transport :       DV3K919574
    *& Description:      This program Will Displays the Batch Conversion
    *&                   data in Display mode. Batch conversion
    *&                   table (ZBATCH_CROSS_REF)
    PROGRAM ZLWMI151_BAT1 .
    INCLUDE ZLWMI151_BAT1_TOP.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
      case ok_code.
        when 'BACK'.
          leave to screen 0.
        when 'EXIT'.
          leave to screen 0.
        when 'CANC'.
          leave to screen 0.
        when 'EXCE'.
          perform down_load.
        WHEN '%SC'.
          perform find_field using ok_code.
      endcase.
      clear ok_code.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
          GUI Status
    MODULE
    STATUS_0100 OUTPUT.
      SET PF-STATUS 'STLI'.
      DESCRIBE TABLE T_zbatch LINES G_LINE.
      TC1-LINES = TC1-LINES + 18.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Form  down_load
          text
    FORM down_load.
      CALL FUNCTION 'DOWNLOAD'
           EXPORTING
                FILENAME                = ' '
                FILETYPE                = 'DAT'
           TABLES
                DATA_TAB                = t_zbatch
           EXCEPTIONS
                INVALID_FILESIZE        = 1
                INVALID_TABLE_WIDTH     = 2
                INVALID_TYPE            = 3
                NO_BATCH                = 4
                UNKNOWN_ERROR           = 5
                GUI_REFUSE_FILETRANSFER = 6
                CUSTOMER_ERROR          = 7
                OTHERS                  = 8.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " down_load
    *&      Module  modify  OUTPUT
          text
    MODULE modify OUTPUT.
      select * from zbatch_cross_ref into corresponding fields of table
      t_zbatch.
      sort t_zbatch by werks werks cmatnr srlno.
    ENDMODULE.                 " modify  OUTPUT
    *&      Form  find_field
          text
         -->P_OK_CODE  text
    FORM find_field USING    command.
      data: position like sy-tabix.
      data: found(1).
      data: find_pos like sy-tabix,
            loop_curr like sy-tabix.
      select * from zbatch_cross_ref into table t_find.
      sort t_find by werks cmatnr srlno.
      if command = '%SC'.                 "Suchen
        position  = 1.
        perform popup_get_value using 'FSTR' ''
                                changing rsdxx-findstr.
      else.     "FIWE          "Suchen wiederholen
        position  = loop_first + 1.
        if rsdxx-findstr = space.
          perform popup_get_value using 'FSTR' ''
                                  changing rsdxx-findstr.
        endif.
      endif.
      if ok_code = 'ABR'.
        clear ok_code.
        leave screen.
      else.
        clear found.
        loop at t_find from position.
          if t_find cs rsdxx-findstr
          or t_find cp rsdxx-findstr.
            found     = 'X'.
            find_pos = sy-tabix.
            exit.
          endif.
        endloop.
        if found = 'X'.
          loop_curr = 1.
          tabpos = loop_first = find_pos.
          if use_old is initial.
            tc1-top_line = find_pos.
           set cursor field tc1-top_line.
          endif.
        else.
          message s042(e2) with rsdxx-findstr.
        endif.
      endif.
    ENDFORM.                    " find_field
    FORM POPUP_GET_VALUE USING FCT MODE
                         CHANGING VALUE.
      DATA: ANSWER,
            popup_title(35),
            TITLE LIKE POPUP_TITLE,
            FIELDS LIKE SVAL OCCURS 1 WITH HEADER LINE.
      CASE FCT.
        WHEN 'FIND'.                       "Suchen Feld
          TITLE = TEXT-TFI.
          FIELDS-TABNAME = 'RSEDD0'.
          FIELDS-FIELDNAME = 'FIELDNAME'.
          FIELDS-NOVALUEHLP = 'X'.
          FIELDS-VALUE = VALUE.
          APPEND FIELDS.
        WHEN 'FSTR'.                       "Suchen String
          TITLE = TEXT-TFS.
          FIELDS-TABNAME = 'RSDXX'.
          FIELDS-FIELDNAME = 'FINDSTR'.
          FIELDS-NOVALUEHLP = 'X'.
          FIELDS-VALUE = VALUE.
          APPEND FIELDS.
        WHEN 'ACCL'.                       "Aktivierungsart
          TITLE = TEXT-TAC.
          FIELDS-TABNAME = 'DD02D'.
          FIELDS-FIELDNAME = 'AUTHCLASS'.
          FIELDS-VALUE = VALUE.
          IF MODE = 'S'.
            FIELDS-FIELD_ATTR = '02'.
          ENDIF.
          APPEND FIELDS.
        WHEN 'DELC'.                       "Auslieferungsklasse
          TITLE = TEXT-TDC.
          FIELDS-TABNAME = 'DD25D'.
          FIELDS-FIELDNAME = 'CUSTOMAUTH'.
          FIELDS-VALUE = VALUE.
          IF MODE = 'S'.
            FIELDS-FIELD_ATTR = '02'.
          ENDIF.
          APPEND FIELDS.
      ENDCASE.
      CALL FUNCTION 'POPUP_GET_VALUES'
           EXPORTING
                POPUP_TITLE     = TITLE
           IMPORTING
                RETURNCODE      = ANSWER
           TABLES
                FIELDS          = FIELDS
           EXCEPTIONS
                ERROR_IN_FIELDS = 1
                OTHERS          = 2.
      IF SY-SUBRC = 0
      AND ANSWER = SPACE.
        VALUE = FIELDS-VALUE.
      ENDIF.
    ENDFORM.
      INCLUDE ZLWMI151_BAT1_TOP                                          *
    tables : zbatch_cross_ref,
             rsdxx.
    data t_zbatch like zbatch_cross_ref occurs 0 with header line.
    data :ok_code(4) type c,
          g_line type sy-index,
          loop_first like sy-tabix,
          tabpos like sy-tabix,
          USE_OLD type char1.
    controls tc1 type tableview using screen 0100.
    data : begin of t_find occurs 0.
      include structure zbatch_cross_ref.
    data : end of t_find.
    Reward Points if it is useful
    Thanks
    Seshu

  • Query String parameter with # in its value

    Hi,
    When I send a parameter in a query string with value that has the hash symbol (i.e #) that parameter when fetched returns null. Why so?
    Eg :
    Page 1 :
    String strTest = "1#2";
    <a href="test.jsp?test=<%=strTest%>">Page 2: test.jsp
    String strTest=request.getParameter("test");
    System.out.println("strTest : "+strTest); // Prints null
    Thanks</a>

    Hi,
    When I send a parameter in a query string with value
    that has the hash symbol (i.e #) that parameter when
    fetched returns null. Why so?
    Its a special character and the url has to be 'rewritten properly.
    >
    Page 1 :
    String strTest = "1#2";
    <a href="test.jsp?test=<%=strTest%>">>
    </a>
    try this
    <%
      String strTest = java.net.URLEncoder.encode("1#2");
    %>
      <a href = "test.jsp?test=<%=strTest%>">test</a>and check the output in your next jsp :)
    ram.

  • Adding a parameter with comma separated having different values

    i want to add a parameter with comma separated having different values of a column. e.g i have column having values from 10000 to 99999. i want to create report for the selected values of 11111,12111,131111 etc. This selection can be one or more values as desired. Second problem is restricting the records as per parameter.

    Reports doesn't allow multi-selection of a parameter in its parameter form. You need to use Oracle*Forms or an HTML Form to front end more advanced parameter form options.
    However, you could have multiple parameters and combine their selections into a single parameter in the after parameter form trigger. This would at least allow you to give the user the option for selecting up to 'n' parameters. The single parameter would have to be of type "character" and you probably want to add appropriate quotes around the values in the after parameter form trigger.
    Second problem is restricting the records as per parameter. Once you've got the comma seperated values into a single parameter (say p_myValues with a default value of '') then you can just use a lexical parameter to restrict the values as in:
    select * from emp
    where to_char(empno) in (&p_myValues)

  • Passing Enum Parameter , with More than one value ?

    Hi, Good day
    in the fallowing example ,should I replace the enum Parameter with what ? how can i make that work ?
    Module Module1
    Enum Tables as integer
    Table1 = 0
    Table2 = 2
    Table3 = 4
    Table4 = 6
    End Enum
    Public Sub CallTables(byval Tbl as Tables)
    if tbl = Tables.Table1 then msgbox ("Table1")
    if tbl = Tables.Table2 then msgbox ("Table2")
    if tbl = Tables.Table3 then msgbox ("Table3")
    if tbl = Tables.Table4 then msgbox ("Table4")
    end sub
    end module
    Class myClass1
    private sub mySub()
    CallTables(Tables.Table1 and Tables.Table2)
    CallTables(Tables.Table1 and Tables.Table2 and Tables.Table3)
    end sub
    end class
    since the Tbl parameter will take one value only , so one statement only will execute , how can I make it work with Enum Parameter ?
    Thanks

    Thanks guys for you reply , [Cor Ligthert] I post this in Visual basic section, I appreciate your solution [dbasnett],
    Thanks for that idea of attribute <Flags> [Blackwood] ,
    Dictionary will not work in IF Statement as I want it , also ParamArray tbl() , thanks guys.
    Here is the code
    Module myModule
    <Flags()>
    Enum Table As Integer
    Table1 = 2
    Table2 = 4
    Table3 = 8
    Table4 = 16
    Table5 = 32
    End Enum
    Public Sub MySub(ByVal Table As Table)
    If (Table And Table.Table1) = Table.Table1 Then
    MsgBox((Table And Table.Table1))
    End If
    If (Table And Table.Table2) = Table.Table2 Then
    MsgBox((Table And Table.Table2))
    End If
    If (Table And Table.Table3) = Table.Table3 Then
    MsgBox((Table And Table.Table3))
    End If
    If (Table And Table.Table4) = Table.Table4 Then
    MsgBox((Table And Table.Table4))
    End If
    If (Table And Table.Table5) = Table.Table5 Then
    MsgBox((Table And Table.Table5))
    End If
    End Sub
    End Module
    Class Myclass
    Private sub CallTables()
    MySub(Table.Table1 Or Table.Table2)
    MySub(Table.Table2 Or Table.Table3 Or Table.Table4)
    MySub(Table.Table1 Or Table.Table4 Or Table.Table5)
    MySub(Table.Table1 Or Table.Table2 Or Table.Table4 Or Table.Table5)
    MySub(Table.Table1 Or Table.Table2 Or Table.Table3 Or Table.Table4 Or Table.Table5)
    end sub
    end Class

  • Map the parameter with dynamic value.

    Hi,
    can be map our variable with some dynamic values??
    like suppose I have a variable in which I want to fill current value every time like current date or current time to my variable.
    is there any way to customize the variable in this way?
    thnx
    USoni

    USoni
    In OFT you can generate user variables by:
    Edit -> Databank Wizard -> Add Variable; then select Internal - Specify Expression as the type then you can enter Date() in the expression text field, to call the system date or Time() to call the system time.
    Unfortunately since the removal of VBA that is all OFT can do
    In OpenScript however you can use Java code view to substitute the parameter value with any Java expression, or for the date you can change the parameter value for *{{@today(MM/dd/yyyy)}}* which will return the date with the format MM/dd/yyyy, calling *{{@today(dd/mm/yyyy)}}* would return the current date with the format dd/mm/yyyy etc ...
    There is a list of pre-build functions on the help files, and if you need something that is not there and have not Java skills you can post the specific question here and I'm sure someone will post the code.
    Regards
    Alex

  • Create table with range

    Hi,
    I want create a table with range value like TVARV table. With fields : Company Code, Low Value and High Value. And I want, always like TVARV table, in Maintain table (SM30) to can select value in Parameter or Select Options.
    How do this?

    My table must contain ranges Cost Center Group link to Company Code. I don't create a simple table with only 1 CC Group for 1 Company Code, I must to use range or Select Option like TVARV table.

  • Netui:repeater tags with ranges (aka prev/next)

    Is there some way to implement ranges using the <netui:data-repeater> tags? By
    ranges, I mean where you have 123 items in a list and you only display numbers
    1-50. Clicking NEXT would give you items 51-100. When you're there, clicking PREV
    would take you back to 1-50.
    Sample code would be nice. I think it could be done with the <netui:data-choiceMethod>
    tags, but what I am envisioning would be pretty ugly

    I am still stuck. I have the pager working fine. But, I have a checkbox that needs
    to be bound with the recordid. When the form is submitted after selecting records
    on multilple pages, I want to retrieve the recordids of records that were checked.
    How do I do that? A chckbox datasource can only be a one-value String property
    of a form. But, I need to save an array of ids that were checked. I am so lost.
    Please help.
    "bindu" <[email protected]> wrote:
    >
    So sorry Eddie,
    My bad I dint scroll down all the way. Thanks so much.
    Bindu
    Eddie O'Neil <[email protected]> wrote:
    John--
    Here's an example of implementing a paged repeater.
    Briefly, here's how it works:
    The entire data set (a Product[]) is stored in the JPF. When paging
    through this data set, a
    sliding window (also stored as a Product[]) is used to contain the "current"
    set of products to
    render in the page. The sliding window Product[] is of size PAGE_SIZE.
    When transitioning between
    pages, this window is recalculated for each page.
    Also calculated are the "currentPage", "lastPage", "prevPage", and
    "nextPage", which are used to
    render a pager like this:
    Page <currentPage> of <lastPage> <anchor to prevPage> <anchor to
    nextPage>
    The JPF and JSP are pretty well documented. To run the Page Flow,
    drop the JPF and JSP into a
    directory called "repeaterPaging" in an 8.1 SP2 webapp.
    There are lots of other ways this could be done (and certainly some
    that are more efficient :),
    but hopefully this helps get you started.
    Eddie
    Eddie O'Neil wrote:
    John--
    Yep, I did promise that, and nope, it hasn't been done yet. :)
    But, thanks for calling me on it.
    Will try to do that and distribute it to the list in the next fewdays.
    Eddie
    John H wrote:
    Eddie,
    You mentioned putting together an example of paging a repeater in
    this
    thread.
    Did you ever get a chance to put one together? Would really loveto
    see it if
    you did.
    Thanks,
    John
    Eddie O'Neil <[email protected]> wrote:
    Jan--
    We're talking about adding a pager to the repeater in a future
    release of Workshop, but I don't believe that it will appear inan
    8.1
    service pack.
    Additionally in 8.1, we are not exposing a NetUI tag SDK.
    That being said, it isn't that difficult ot build a pager from
    scratch with the <netu:anchor> / <netui:parameter> tags and a little
    code in a JPF.
    You'd want to have "prev" and "next" actions in the JPF to which
    anchors in the JSP are bound. Then, you can keep track of the "current"
    page in the URL and build the previous and next page indices fromthe
    value that is availble in the request. Finally, create an intermediate
    data structure that contains the data to display in the "current"page
    and bind the repeater to this data structure. You'd build the contents
    depending on whether the prev or next links were clicked. For example,
    if your data set has 100 items in it and you only want to displayitems
    20-29, you'd be on page 2 (depending on whether you start countingat
    0 :) and the intermediate list would contain exactly these items.
    Might sound complicated, but I think this would work out prettywell.
    Hope that helps...
    Eddie
    Jan Noppen wrote:
    Are there any plans to include the pager tag with the repeater
    in
    the
    next service packs or releases of WebLogic?
    If not, is there a way to build on the netui:taglibs to extend
    their
    functionality?
    I know the grid has paging functionality but it ties you to rowsetsfor input, whereas the repeater is much more flexible.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui-data:declarePageInput name="displayProducts" type="repeaterPaging.Controller.Product[]"/>
    <netui:html>
    <head>
    <title>Paging with the Repeater</title>
    </head>
    <body>
    <p>
    <b>Paging with the Repeater</b>
    >>
    >> <!-- Pager Text -->
    <netui:label value="Page {request.currentPage} of {request.lastPage}"/>
    <!-- Previous page anchor -->
    <%if(request.getAttribute("prevPage") != null) { %>
    <netui:anchor action="page">
    Previous
    <netui:parameter name="_page" value="{request.prevPage}"/>
    </netui:anchor>
    <% } else {%>
    <!-- don't render the anchor when there is no previous
    page -->
    <netui:label value="Previous"/>
    <% } %>
    <!-- Next page anchor -->
    <% if(request.getAttribute("nextPage") != null) { %>
    <netui:anchor action="page">
    Next
    <netui:parameter name="_page" value="{request.nextPage}"/>
    </netui:anchor>
    <% } else {%>
    <!-- don't render the anchor when there is no next page
    -->
    <netui:label value="Next"/>
    <% } %>
    >> <!-- display the current window into the data set -->
    <netui-data:repeater dataSource="{pageInput.displayProducts}"
    ignoreNulls="true">
    <netui-data:repeaterHeader>
    <table class="tablebody" border="1" width="60%">
    <tr class="tablehead" valign="top">
    <th width="30%">Product ID</th>
    <th>Name</th>
    </tr>
    </netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <tr valign="top">
    <td align="center"><netui:label value="{container.item.id}"
    defaultValue=" "></netui:label></td>
    <td><netui:label value="{container.item.name}"
    defaultValue=" "></netui:label></td>
    </tr>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
    </netui-data:repeater>
    </p>
    </body>
    </netui:html>
    package repeaterPaging;
    import com.bea.wlw.netui.pageflow.Forward;
    import com.bea.wlw.netui.pageflow.PageFlowController;
    * @jpf:controller
    * @jpf:forward name="success" path="index.jsp"
    * @jpf:forward name="page" path="page.do"
    * @jpf:view-properties view-properties::
    * <!-- This data is auto-generated. Hand-editing this section is not
    recommended. -->
    * <view-properties>
    * <pageflow-object id="pageflow:/repeaterPaging/Controller.jpf"/>
    * <pageflow-object id="action:begin.do">
    * <property value="80" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action:page.do">
    * <property value="120" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action-call:@page:index.jsp@#@action:page.do@">
    * <property value="204,180,180,156" name="elbowsX"/>
    * <property value="81,81,92,92" name="elbowsY"/>
    * <property value="West_0" name="fromPort"/>
    * <property value="East_1" name="toPort"/>
    * </pageflow-object>
    * <pageflow-object id="page:index.jsp">
    * <property value="240" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#index.jsp"/>
    * <pageflow-object id="forward:path#page#page.do"/>
    * </view-properties>
    public class Controller extends PageFlowController
    // number of items to show on a single page
    private static final int PAGE_SIZE = 5;
    // URL parameter key for the value that will store the current page
    private static final String PAGE_PARAM_KEY = "_page";
    // Array to hold the entire data set
    private Product[] products = null;
    * Forward to the "page" action to set-up the first page of
    * data to display in index.jsp.
    * @jpf:action
    protected Forward begin()
    return new Forward("page");
    * Change the page of data that is displayed in index.jsp. This
    action
    * is used if paging to either the previous or to the next page.
    * @jpf:action
    protected Forward page()
    Forward f = new Forward("success");
    page(f);
    return f;
    * Implement data set paging. This method uses a simple _page paramater
    on the URL
    * to indicate the correct "page" to display when "Prev" or "Next"
    are clicked
    * in the JSP. The key principle at work here is a sliding window
    of size PAGE_SIZE
    * that is moved forward and backward through the complete dataset.
    This window
    * contains the set of items to render for a single "page" in the
    repeater. As
    * the current page changes, this window (an array of size PAGE_SIZE)
    is
    * reconstructed.
    * The pager consists of three parts:
    * - a simple "Page # of #" label
    * - a previous anchor that is enabled when there is a previouspage
    * - a next anchor that is enabled when there is a next page
    * To render a "page" of data, the _page parameter is convertedfrom
    a String
    * to an int. Using the page integer, the start and end of a window
    into the
    * complete data set is calculated. This windows slides back and
    forth along the
    * data set in PAGE_SIZE increments depending on the value of the
    current page.
    * In this case, with a PAGE_SIZE of 5 and data set size of 17,the
    possible windows
    * are:
    * products[0] -> products[4]
    * products[5] -> products[9]
    * products[10] -> products[14]
    * products[15] -> products[16]
    * Thus, the lastPage value is 4, which is calculated with the Math.ceil(...)
    * call below.
    * Given the start and end of this window, a temporary array ofsize
    PAGE_SIZE
    * is created to hold references to the items that should render
    from the complete
    * data set. This array is passed to the page as a JPF page input
    and is rendered
    * with the <netui-data:repeater/>.
    * Finally, four additional values are made available to the page
    in the request
    * and are used to render "Page # of #" and to provide parameters
    to anchors that
    * will display the previous and next pages:
    * - Page # of # -- the first # is "currentPage" and the second#
    is "lastPage"
    * - prevPage -- the int value of the previous page. If there is
    no previous page,
    * this value is null in the request
    * - nextPage -- the int value of the next page. If there is no
    next page, this value
    * is null in the request.
    * Notes:
    * - In order to have multiple repeaters on a page operating independently,
    * the "_page" parameter would need to change to include a namespace
    that
    * would be used when finding the current page for a data set.
    * - This JPF is implemented with a single "page" action that performs
    both
    * next and previous paging. This could also be implemented with
    "prevPage" and
    * "nextPage" actions that implement additional logic that runs
    on the previous
    * and next transitions.
    * - No real error checking is done to ensure that the PAGE_SIZE
    is greater than 0.
    * Handling errors:
    * - If parsing _page from the request fails to convert to an int,
    a NumberFormatException
    * is shown in the console and the first page will is used.
    * - If the current page value is greater than the number of pages,
    the last page will
    * be displayed.
    private void page(Forward f)
    assert PAGE_SIZE > 0;
    // calculate the last page
    int lastPage = (int)Math.ceil((float)products.length / (float)PAGE_SIZE);
    int currentPage = 1; // default page is page 1
    Product[] displayProducts = new Product[PAGE_SIZE];
    String currentPageStr = getRequest().getParameter(PAGE_PARAM_KEY);
    if(currentPageStr != null)
    try
    currentPage = Integer.parseInt(currentPageStr);
    catch(NumberFormatException nfe)
    nfe.printStackTrace();
    // continue with a current page of 1
    // ensure the current page is not greater than the number
    of pages
    if(currentPage > lastPage)
    currentPage = lastPage;
    // index into the entire data set at which the window starts
    // page indices are 1 based, adjust to be 0 based for accessing
    // the Product[]
    int start = (currentPage-1) * PAGE_SIZE;
    // index into the entire data set at which the window ends or
    the index
    // of the last item when rendering the last page
    int end = (currentPage != lastPage ? start + PAGE_SIZE : products.length);
    // fill-up the set of Product objects to render up to PAGE_SIZE
    // but don't run off the end of the products array
    for(int i = 0; i < PAGE_SIZE && (start+i < products.length);
    i++)
    displayProducts[i] = products[start + i];
    // set the previous page
    int prevPage = currentPage-1;
    if(prevPage > 0)
    getRequest().setAttribute("prevPage", new Integer(prevPage));
    // set the next page
    int nextPage = currentPage+1;
    if(nextPage <= lastPage)
    getRequest().setAttribute("nextPage", new Integer(nextPage));
    // set the current and last pages in the request in order to
    show "Page # of #"
    getRequest().setAttribute("currentPage", new Integer(currentPage));
    getRequest().setAttribute("lastPage", new Integer(lastPage));
    // set the current window in to the data set as a page input
    f.addPageInput("displayProducts", displayProducts);
    return;
    * Initialize a simple, sample data set that contains
    * 17 products with IDs running from 1-17 and text "Widget 1" to
    * "Widget 17".
    public void onCreate()
    int size = 17;
    products = new Product[size];
    for(int i = 1; i <= size; i++)
    products[i-1] = new Product("Widget " + i, i);
    * Simple JavaBean that contains production information.
    public static class Product
    implements java.io.Serializable
    private String name;
    private int id;
    public Product(String name, int id)
    this.name = name;
    this.id = id;
    public String getName() {return name;}
    public int getId() {return id;}

  • Unable to bind portlet parameter with page parameter in webcenter portal

    Hi All,
    I am trying to bind portlet parameter with the page parameter so that I can ahieve some business requirements.
    Here is what I did,
    In my Portlet producer application:
    1) Created standards based portlet (jsr 286) with view.jspx and edit.jspx with rest of the things being default.
    2) In my portlet.xml created two parameters and assigned these parameters to the portlet created above.
    3) In the view.jspx added couple of output label adf components in the page.
    4) deployed this to integrated weblogic server.
    In my WC portal application:
    Created a new page and added the portlet to this page( WSRP connection already exists).
    deployed portal application on integrated server.
    In the edit mode of the page I added one page parameter(Param1) and some default (constant) value added.
    What I want is this:
    when Param1 value is One display first output label and
    when Param1 value is Two display second output label.
    I am using jdev 11.1.1.5.0 with integrated weblogic server.

    There is no need to use page parameters for this.
    You also have two types of parameters depending on what you want...
    1) Preferences: these parameters can be used on a user based level. This means that users can personalize the portlets. When a user change the value of a preference, it is only applied for that specific user
    2) Public parameters: these parameters are used to customize the portlet. The value you set in these parameter apply for all users.
    I have made a simple example to show these two differences: http://www.yonaweb.be/PortletTest.zip
    The portlet has 4 inputText on it. The first two can be set by specifying One or Two into the preference.
    The other 2 inputText uses the value of the public parameter.
    You should only deploy the portlet and consume it in a webcenter application. In the webcenter application, you don't need to do anything special. All is done in the portlet.
    I am guessing you don't have written the code that will get the value of the parameter:
    in case of a preference you will get the value by following code:
       PortletRequest request = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
       PortletPreferences preferences = request.getPreferences();
       return preferences.getValue("outputparam", "One");In case of a public parameter (for customization instead of personalization) you use following code to retreive the value of a public parameter:
    PortletRequest req = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
      String param = (String)req.getParameter("PublicParam");
      if(param == null)
          return "Three";
      return param;This code can also be found in the sample portlet application.

  • SSRS Report with mutli select values in parameters

    Hi All,
    I am creating a SSRS report and displaying the result in tablix. I want to make the report to filter by multi select values from the parameters.
    I have 3 parameters. For all the three parameters, I have set "Default  Values" and "Available Values". Also, modified my result dataset to get the values from parameters using "WHERE ID = @Parameter1" (example) and so
    on..
    3 Parameters types:   1. Yes or No       
    2. Date          3. Values with NULL in the DB
    Problems:
    1. When I am passing the default values "Yes" "No" - it is throwing errors because default values is passed as Yes "AND" No instead of "OR" condition. The value stored in the DB wil have either Yes or No but not both.
    2. When I am querying the date values, it is a DateTime field in the DB. But I have queried like SELECT CONVERT(DATE, EXE_DATE) AS DATE FROM table which is giving only date in SQL but in SSRS displaying date with time.
    3. When I pull the list of values for third Parameter from SQL, it has some NULL values. When I try to use it in SSRS, it is not displaying the NULL value as select option in the list of values
    Any suggestions for the above three problems for SSRS with multi select values as filter will be helpful.
    Maruthu | My Blog

    Hi Maruthi,
    Regarding the three things:
    1.) I believe your first parameter is mutliselect , please convert it to single select.
    Steps: 
    a.) Select the parameter, right click and go to parameter properties
                    b.) Under General Tab in DataType section remove the checkbox for Allow Multiple Value.
    2.) Instead of returning as the date please return string. For example : 
    SELECT CONVERT(VARCHAR, GETDATE(),101)
    Here is the list of conversion : http://www.sqlusa.com/bestpractices/datetimeconversion/
    3.) As such there is no concept of null in SSRS. (Its a relational concept) . We do have nothing , which means empty. In Order to use null please select the Allow null option in the DataType section of the Parameter, This will add an checkbox for null in
    the report preview. Its developer job to handle the null values in there query.
    Regards Harsh

  • How do I select a range of values in MySQL using a drop down menu

    Hi,
    I have a database of picture frames that have a value of
    frame width. I want to be able to select a range of values (i.e.
    .50" to 1") instead of each and every value (i.e. .50", .56", .76",
    etc.). I have a drop down menu (mnuWidth) with 5 ranges (see
    attached code).
    Each selection has a value from 1 to 5 indicating the range I
    want to search. In my results page I have let DW set up a recordset
    (see attached code)
    Can anyone tell me how to get this to choose a range instead
    of just the value entered by my menu?
    Thanks in advance.
    Tom

    I have been growing fond of lookup tables. Your lookup table would have your numbers in one column and the values you want returned in the next.
    Lookup table
    item
    Name
    1
    a
    2
    b
    3
    c
    4
    d
    5
    e
    6
    f
    7
    g
    8
    h
    9
    i
    Input table
    input
    Name
    1
    a
    B2 and copied down:
    LOOKUP(A2,lookup::$A$2:$A$11,lookup::$B$2:$B$11)
    Caution: Lookup will return the closest value so it it looks for "10" in this example it will return "i"
    If you don't want to see the error messages from blank inputs, wrap Lookup in IFERROR.
    hope this helps
    q

  • [Forum FAQ]How do I add a search feature in the parameter with long drop down list?

    Introduction
    There is a scenario that thousands of values in the drop-down of a parameter. Scrolling through the large drop down list is slow and cumbersome. Is there a way that we add a search feature in the report, so that it can filter down the values in the drop
    down list to a smaller list of values?
    Solution
    To achieve this requirement, we can add a parameter with multiple keywords ahead, then all of available values which are begin with the keyword will display in the parameter list. In this scenario, we can create cascading parameters. One is a keyword parameter,
    and the other parameter is based on the keyword to display the available values.
    In order to enable the user to type multiple keywords, we can use the query below to create a split function which takes the list and the de-limiter as input parameters and splits all the values in the database:
    CREATE FUNCTION [dbo].[SplitParameterValues] (@InputString NVARCHAR(max), @SplitChar VARCHAR(5))
     RETURNS @ValuesList TABLE
     param NVARCHAR(255)
     AS
     BEGIN
     DECLARE @ListValue NVARCHAR(max)
     SET @InputString = @InputString + @SplitChar
     WHILE @InputString!= @SplitChar
     BEGIN
     SELECT @ListValue = SUBSTRING(@InputString , 1, (CHARINDEX(@SplitChar, @InputString)-1))
     IF (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar))>(LEN(@InputString))
     BEGIN
     SET @InputString=@SplitChar
     END
     ELSE
     BEGIN
     SELECT @InputString = SUBSTRING(@InputString, (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar)) , LEN(@InputString)-(CHARINDEX(@SplitChar, @InputString)+ len(@SplitChar)-1) )
     END
    INSERT INTO @ValuesList VALUES( @ListValue)
     END
     RETURN
     END
    Use the query below create a stored procedure to return all available values for Account parameter:
    create PROCEDURE sp (@keyword nvarchar(50))
    AS
    SELECT     AccountDescription
    FROM         DimAccount d
    inner join (SELECT [param] FROM SplitParameterValues (@keyword,',')) s on d.AccountDescription like (s.[param]+'%')
    In Report Designer, select Stored Procedure as the Query type for DataSet1, then select or type sp in the drop-down list as below:
    By default, there is a parameter named keyword in the Parameters pane.
    Add a multi-value parameter named Account in the report, then select “Get values from a query” option for Available Values as below:
    Report Design and Report Preview surface
    Report Design:
    Report Preview:
    References:
    Create User-defined Functions (Database Engine)
    Adding Cascading Parameters (SSRS)
    Applies to
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hmmm. This didn't work. I even re-booted, and Firefox still doesn't show the search engine.
    It was actually an update to an earlier engine, and I foolishly removed the old version rather than just updating it.
    Is there anything elsewhere (eg. the registry) that might be preventing this?

  • OpenDoc(hyperlink) in webi with prompt's value

    Hi
    I want to know that if a hyperlink(Open DOC) in webi in BOXIR2 works with the parameters or not.
    To be more precise, suppose I have a master report which has a prompt on the Status ('High','Low',and 'Medium') and user runs the report for one or more choices, he then need to go to detail of the report with same prompt selection values that he chose for status in the master report.
    A) The report can show the detail report in hyperlink, and that part can be done by hyperlink.
    B) Please help me out if the detail report should run for the same parameter value as of master report (the parameter value should be taken automatically from the master report),when we use hyperlink and is it mandatory to show the prompt to user in detail report cause main aim is to just run the master report with showing the parameter and allowing user to choose the value and then showing the detail report with same prompt value as of master using the hyperlink!
    Thanks & Regards
    Rahul

    Hi Rahul,
       Good Day,
    Happy Independence day,
    i came to know from your reply you solved your problem. congrats, but my problem is still not solved bro, i will explain my problem here clearly.
    i have one master document it contains the the sales values for country wise for particular period of time.so in the master document i set the one filter for period of time ie. date between <from> <to>, so in the master document while running i need to enter the values in user prompt in the place of from and to. so my master document display the country wise sales details. if customer select the particular country in the country list then control need to transfer to child document, that document contains the state wise sales details for selected country for the same period of time(the date, which i selected in the master document).I stored from and to values in two variables in master document.
    The child document contain two filters , that is one for country name and one for Date between <from><to>
    so my user response is looking like this,
    Country Name:
    From:
    To:
    for me up to open the user prompt for child document is not a pblm. bt my selected country is not passed as argument and the corresponding date as well.
    I m totally confused where is the problem, bcoz i tried with lsS and lsM as well, bt no use. i know i am making small mistake some where in the URL.
    U r rite i am using Java platform
    ="<a href=http://<webserver>:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sPath=HomeMyFoldersFavorites&sDocName=TESTSS&sDocType=wid&sRefresh=Y&lsMURLEncode(Country Name:)="URLEncode([Country])"&lsMURLEncode(From)="URLEncode([From])"&lsMURLEncode(To)="URLEncode([To])">"[Country]+"</a>"
    Thanks lot,
    Regards,
    -B-

  • Field in the selection screen as a select option with two default values

    Hi All,
    can anybody tell me how to put field in the selection screen with two defaul values.
    for ex:  selection screen the Account Group KNA1-KTOKD as a select option. The defeault value should be Y001 and Y005.
    please reply ASAP. Its urgent.
    Thanks in advance,
    Madhu

    Hi Madhu,
    Since Select options are nothing but ranges, you can use the following code to add two distinct values to the select options by default.
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'EQ'.
    s_ktokd-low = 'Y001'.
    append s_ktokd.
    s_ktokd-low = 'Y005'.
    append s_ktokd.
    clear s_ktokd.
    However, if you want to mention a range like all the values between these given two values to be considered then u may use,
    select-options : s_ktokd for KNA1-KTOKD default 'Y001' to 'Y005'.
    or
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'BT'.
    s_ktokd-low = 'Y001'.
    s_ktokd-high = 'Y005'.
    append s_ktokd.
    Reward if helpful.

Maybe you are looking for

  • JAVA Browser Plugin for Mozilla on Linux Debian

    Hi! I run a Mozilla Firefox (iceWeasel) on a DEBIAN. It does NOT display german or french special characters like "Umlaute öäüÄÖÜß" and alike properly. The text is displayed within an Applet from a 3rd Party, so i can only change the text which is di

  • How can I cancel itunes match without the latest version of itunes? I can't get the drop down menu from the store

    I have a mac which doesn't support the new itunes. The instructions I have from apple say that I have to use a pull down store menu from the itunes store and then I should be able to view my account and cancel by turning off the auto renew button nex

  • Printing osx mountain lion

    In Mountain Lion, Apple has apparently lobotomized my HP Photosmart Premium 310C with their lame printer driver(s) and HP says - go to Apple for the driver. The HP 310C has a photo print tray which can hold 5x7 or 4x6 or 3x5 print paper, a standard 8

  • Missing files "Unavailable master files cannot be relocated."

    Please help I have missing masters - I had 25,000 referenced masters in a directory next to the aperture library and ran consolidate (thought it was successful) but now I see 1012 "Missing" Masters.  When I do "Locate Referenced Files" Aperture says

  • Regarding Message no RSTRAN 543

    Hi, while I'm moving the trasnport from dev to Q, i got error Message No RSTRAN 543...has anyone come across this...its a BI7.0 system Message was edited by:         bwuser