TableView Filter doesnu00B4t work for added columns

In my model I have a column type SPRAS with a language key, but I want to render the language text so in the iterator I added a new column (hiding the one with the lang key), and I fill this new column with the following code:
  DATA: lang_txt TYPE string.
  DATA: lang_key LIKE sy-langu.
  FIELD-SYMBOLS: <fs> LIKE model->client.
  ASSIGN p_row_data_ref->* TO <fs>.
  lang_key = <fs>-spras.
  SELECT SINGLE sptxt FROM t002t INTO lang_txt
       WHERE spras = sy-langu
       AND   sprsl = lang_key.
  p_replacement_bee = cl_htmlb_textview=>factory(
       id = p_cell_id
       text = lang_txt ).
It works good, but the problem comes because filtering doesn´t work with this column.
Adding a new column to the model would be a solution but I don´t like it very much, it´d be better to solve this problem here in a class associated with the view/rendering od the data instead of changing the model.
Best Regards!
Jonathan.

You can't use a column for filtering which isn't acutally present in your table. With an iterator you only control/change the rendering of your tableview, but the table data stays the same. (Unless you change the data, which would make the iterator useless?) You can not filter values that are not present in your table.
So, if you want to filter an iterator-changed column, make sure the column contains data to sort/filter, and also provide a way for the user to be able to use the filter (as it doesn't make much sense to enter a filter value when the displayed data does not correspond to the table data.
Have a look at this thread, it describes how you can add a dropdown to your filter:
TableView: Filter as Dropdown
Now if you alter this dropdown generating code to use your descriptive text (that you use in your iterator for display in column) as dropdown display values, then you should have a working filter for your tableview.
Max
(goes off writing the weblog promised in the mentioned thread)

Similar Messages

  • Drag&drop columns no longer works for selected columns in EA3

    Hi
    drag&drop from navigator to build select statements in EA3 uses all columns of the tabl instead of the selected ones!
    Best regards
    Joe

    It's working for me in our current dev build, if it's broken in EA3, it's since been fixed.

  • Standard appraisal reports don't work for added goals

    the standard reports available from SAP ( 'Export to Excel' for instance) do not work for appraisal documents with free enhancements.
    I have a requirement to generate a report that will also include goals added by end-users using the free enhancement 'add new element'.
    more so, the report cannot be downloaded to Excel if the appraisal document contains more than 20 appraisal elements. This can easily happen in our case, since employees can add their own goals to the document.
    how can we report on appraisal documents with more than 20 elements and added goals?
    Tiberiu
    Edited by: Tiberiu Sasu on Jan 7, 2011 1:24 PM

    I confirmed with sap that this is a system limitation and sap has no plans to resolve it for now. more so, sap is planning to replace the export to excel functionality with an export to PDF function.
    my question - has anybody tried to remove this limitation? we need some guide on how to do this... (name of SAP program, code to be enhanced etc)
    Edited by: Tiberiu Sasu on Jan 7, 2011 4:59 PM

  • ALV Filter : Not working for a text field - Strange problem

    Dear All,
    I have a Z-program where the ALV filter is not working on a particular text field.
    The output on that text field is as below :
    ABCD
    JKLM
    YYZZ
    ABCD
    JKLM
    ABCD
    JKLM
    YYZZ
    YYZZ
    When we try to filter on YYZZ, it gives blank list. But for other options given abobe it works fine.
    I know it is because of the negative sign , but how can we over come this problem ?
    Thanks in advance,
    Sandip.

    Hi Sandip,
    Use 'LOWERCASE' in the fieldcatalog.
    For the particular text field when you are appending the Fieldcatalog structure to the Fieldcatalog Table
    ( Suppose LS_FIELDCAT)
    Then check the LOWERCASE field.
    (LS_FIELDCAT-LOWERCASE = 'X' )
    This will serve the purpose.
    Regards,
    Sourav

  • Nested Composite Component Doesn't work for table column

    I have reported this issue as defect 1541 but I'm hoping someone my have a suggestion on a work around for this. Here is the issue
    I am attempting to use composites to represent a table column. I have tried this with both IceFaces and the standard implementation. I have a custom component that is of type UIColumn that is being inserted into another composite that houses a table. The table renders and the column renders. However, the outputText that should represent the row data does not render. Interestingly this will render using composites when I don't have the column rendering as a composite (IE the table is contained in the composite and the row level output is contained in the top level page.). That is not my requirement though. This seems to be a tough cookie to crack. I have the source now and am starting to acquaint myself with it in an attempt to figure out what is going on. Any brilliant ideas out there?
    Code is below.
    tableColumn.xhtml
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
    </h:head>
    <h:body>
    <composite:interface componentType="MyColumn">
    </composite:interface>
    <composite:implementation>
    <ice:column headerText="Make" id="column3">
    <composite:insertChildren />
    </ice:column>
    </composite:implementation>
    </h:body>
    </html>
    table.xhtml
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
    <title></title>
    </h:head>
    <h:body>
    <composite:interface>
    </composite:interface>
    <composite:implementation>
    <ice:dataTable augmentTitle="false"
    rows="10"
    value="#{SessionBean1.carDataProvider.tableDisplayList}"
    var="item" >
    <composite:insertChildren />
    </ice:dataTable>
    </composite:implementation>
    </h:body>
    </html>
    Example Page
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:temp="http://java.sun.com/jsf/composite/tempcomp"
    <h:head id="outputHead1">
    </h:head>
    <h:body>
    <ice:form id="form1">
    <temp:table>
    <temp:tableColumn>
    <ice:outputText id="outputText3" value="#{item.make}"/>
    </temp:tableColumn>
    </temp:table>
    </ice:form>
    </h:body>
    </html>
    The the new UIMyColumn class
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package icefacestestapp2;
    import com.icesoft.faces.component.ext.UIColumn;
    import javax.faces.component.FacesComponent;
    @FacesComponent(value = "MyColumn")
    public class MyColumn extends UIColumn {
    @Override
    public String getFamily() {
    return "custom";
    Interestingly the row text will not render even if I add it directly to the new
    composite column class as seen below.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
    </h:head>
    <h:body>
    <composite:interface componentType="MyColumn">
    </composite:interface>
    <composite:implementation>
    <ice:column headerText="Make" id="column3">
    <ice:outputText id="outputText3" value="#{item.make}"/>
    </ice:column>
    </composite:implementation>
    </h:body>
    </html>

    Hi,
    I recall an issue in 10.1.3.2 with inner frames that had the wrong JavaScript reference to the DOM. So I assume this to be the same in your case. So you can give it a try with JDeveloper 10.1.3.3 and see if this fixes the problem
    Frank

  • Filter not working for session timeout

    Hi all,
    I am working on a struts application in portal. I want to logout of the application when a user does not perform any action, for say 30 mins. For this, i am using a filter and defined the filter as follows in web.xml.
    <filter>
    <filter-name>PageFilter</filter-name>
    <filter-class>SessionFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>PageFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    Also i gave the timeout in web.xml as follows.
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    And i had the filter servlet as follows.
    public class SessionTimeoutFilter implements Filter
    public SessionFilter()
    public void init(FilterConfig conf) throws ServletException {
    public void destroy()
    // Create a new instance of SessionFilter
    private static int firstRequest = 0;
    public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain)
    throws IOException,ServletException
    HttpServletRequest hreq = (HttpServletRequest)request;
    HttpServletResponse hres = (HttpServletResponse)response;
    HttpSession session = hreq.getSession();
    try{
    if (session.isNew()) {
    if(firstRequest == 0){
    firstRequest++;
    else {
    hres.sendRedirect("http://www.google.com");
    firstRequest = 0;
    return;
    }catch(Exception e){
    e.printStackTrace();
    chain.doFilter(request,response);
    When trying to execute this one i am getting a portlet 500 internal error. I am not sure where i went wrong. Can anyone give me a suggestion for this to work in a portal.?
    Thx in advance....

    Hi,
    Thx for ur reply, Here i am using firstRequest as a counter variable. when the session is new and firstRequest is 1, it means that the session has expired and new session started and this is where i am redirecting to another page. The problem is, i think is mainly because of the sendRedirect i am using there in the code. I think sendRedirect will not work in portal, because when i test this application locally , it is working fine. But when i deploy it in portal, i am getting the error. Can you suggest me an alternative for sendredirect in portal.Even i tried with forward but no use.
    Thx....

  • Filter not working for a Webi report

    Hi There,
    We have a BOBJ Webi report having variable selection screen when I run the report with default fiscal year Ex.2012 it's working fine. Then by click on refresh button and trying to change selection value to Ex. 2013 and I'm unable to see any values even though it has values for 2013.
    When I click on the filter bar then the values are appearing. Could anyone please let me know what could be the reason for this issue and how can we avoid this.
    We are in BOBJ 4.0 SP6.
    Thank you,
    Regards,
    Shiva

    Hi Jakub,
    Thanks for the reply, Please find the screen shots below
    1. Report initial screen running with the default prod year for 2012 and it's working.
    2. Then I click on refresh and run for another prod year it's not displaying values even though it has values for that prod year.
    3. When I click on filter bar then the values are appearing. Not sure why it's behaving like this?
    Also note that there is no filter, under query filters. Please give me any idea about this issue.
    Regards,
    Shiva

  • Extension Point not working for extending Columns in sap.m.Table

    Hi Colleagues,
    We are recently developing a UI5 application and we tried to extend the Fragments and views as per wiki.
    Below is the code :
    <core:View xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core"
      xmlns="sap.m" controllerName="ui.s2p.srm.sourcingcockpit.view.S1">
      <Page id="page" class="marginBoxContent" showNavButton="true"
      navButtonTap="_navBack">
      <content>
      <l:Grid class="" defaultSpan="L12 M12 S12">
      <Table id="demandsTable" mode="MultiSelect" growing="true"
      updateFinished="handleUpdateFinished" growingFinished="onListLoad"
      growingThreshold="20" items="{/UnsourcedDemandCollection}">
      <columns>
      <Column id="col_sos" minScreenWidth="tablet" demandPopin="true">
      <Text text="{i18n>col_sos}" />
      </Column>
      <core:ExtensionPoint id="extDemandColumn">
      <Column id="col_attach" minScreenWidth="tablet"
      demandPopin="false" width="4%">
      <Text text="{i18n>col_attach}" visible="false" />
      </columns>
      <items>
      <ColumnListItem>
      <cells>
      <Link
      text="{parts:[{path:'ObjectID'}, {path:'NUMBER_INT'}],formatter:'.formatObjectIdNumberInt'}"
      wrapping="true" />
      <core:ExtensionPoint name='extDemandList' />
      <l:HorizontalLayout>
      <l:content>
      <core:Icon src="sap-icon://attachment">
      </core:Icon>
      <Text text="({AttachmentCount})" class="paddingRightLeft" />
      </l:content>
      </l:HorizontalLayout>
      </cells>
      </ColumnListItem>
      </items>
      </Table>
      </l:Grid>
      </content>
      </Page>
    </core:View>
    In the above code we have specified two extension points. While extending it through Component.js, extDemandList works fine, but extDemandColumn does not work.
    Please let me know the way through which we can extend the columns in table and similarly formelements in FormContainer control.
    Thanks in advance.
    Best Regards,
    Ankit Jain

    I think you have defined 'id' instead of 'name' for the extDemandColumn
    <core:ExtensionPoint id="extDemandColumn">
    Regards,
    Jason

  • Instruction "lineedit"  of the tableView element doesnu00B4t work

    hello,
    I have a table, which is called itab_move.
    This internal table is shown on a bsp with a tableView.
    This tableView contains a button with the method "ineedit". When I click the button the actual line changes its colour and you can make changes.
    So far it works...
    But the internal table doesn´t save the changes. I don´t know where the problem is.

    post this in BSP forum (Business Server Pages (BSP)) for better response.
    the changed values will not automatically get modified into the internal table. you have to write a code in the oninputprocessing event for the same.
    check the sample application SBSPEXT_TABLE for sample code.
    Regards
    Raja

  • LookUpSet is Not working for multiple columns in SSRS 2008 R2

    Hi Friends,
    I have a problem when i use more than one LookUpSet in SSRS to display more than one value based on Day Number & other fields..Please find the below details and please suggest me a solution for this.
    Crystal : 
                    Day1                              Day2
    Period 4     Arts,Maths               Arts,Maths
    For this in SSRS i am using LookUpSet as below based on StaffID,PeriodNumber & DayNumber like  this:
    = (IIF(Fields!DayNumber.Value=1,Join(LookupSet(Fields!StaffID.Value & Fields!PeriodNumber.Value &  Fields!DayNumber.Value
        , Fields!StaffID.Value & Fields!PeriodNumber.Value & Fields!DayNumber.Value
        , Fields!ClassCode.Value
        , "TIMSTF5"), "," ),"")) 
    which is displaying correct in SSRS,But when i use the same expression to display Day 2 classes it is returning empty even though i have values on Day 2.Please have a look at the SSRS output below:
                    Day1                              Day2
    Period 4     Arts,Maths              
    Day 2 Expression is :
    = (IIF(Fields!DayNumber.Value=2,Join(LookupSet(Fields!StaffID.Value & Fields!PeriodNumber.Value &  Fields!DayNumber.Value
        , Fields!StaffID.Value & Fields!PeriodNumber.Value & Fields!DayNumber.Value
        , Fields!ClassCode.Value
        , "TIMSTF5"), "," ),""))
    I am not sure why it is not liking to use more than LookUpSet in the same report,Please suggest me with a work around for this.
    Thanks in advance,
    Sam.

    Hi Guys,
    I have sorted out the problem.Solution for the above problem is use Max before the expression like below, since it has multiple days and periods in the Dataset.
    = Max((IIF(Fields!DayNumber.Value=2,Join(LookupSet(Fields!StaffID.Value & Fields!PeriodNumber.Value &  ields!DayNumber.Value
        , Fields!StaffID.Value & Fields!PeriodNumber.Value & Fields!DayNumber.Value
        , Fields!ClassCode.Value
        , "TIMSTF5"), ","  + vbcrlf),"")))
    Thanks,
    Sam

  • Filter not working for Supplier

    Hi Experts,
    When iam trying to apply filter on Supplier dimension ( options >Filter slect value) , system is giving following error message "Event Error occured from server Failed" in log it gave --Invalid  info object type for a node  of type  0XASUPPLIER.
    following prechecks i have done :
    > we have SP6 P1
    >For supplier hierarchy is imbalanced
    > In Bex query hierarchy is active
    > in UI - user defualt -we maintained Supplier hierarchy
    thanks in advence for your reply
    Regards,
    Madhavi

    Hi Madhavi,
    Please use the following steps to narrow down the issue.
    First under data source administration check to make sure you can see the hierarchy under the supplier dimension and the numbers of levels show up correctly.  If necessary perform 'Refresh Datasource' to ensure SPM has the most up to date definition of the BW query.
    Secondly, when you receive this error message please check the portal logs which should give you more details as to what might be causing this issue.
    Third, SP6 patch 2 was just released.  Please apply this patch 2 see if this resolves the issue.
    Regards,
    Rohit

  • WHAT FORMULA WORKS FOR ADDING TICK BOXES

    while using numbers in a column needed the formula to add up boxes ticked marked, that is to say in 10 cells if six are checked is there a formula to add up these six tick marks
    singh

    Checkboxes cannot be summed, as they do not contain numerical values.
    They can be counted, using COUNTIF.
    If your checkboxes are cells B2 - B11, the formula below will count the number that are checked:
    =COUNTIF(B2:B11,TRUE)
    The range in the example may be expressed as "B" because all cells (except the one in the header row) contain checkboxes.
    Regards,
    Barry

  • Filter not working for all objects

    I have 17 objects in one group with an applied "Repel" behaviour. All of the objects are affected except one, why is this?

    Move the object that doesn't move slightly off of "dead center" (0,0,0).

  • How does Toggle Visible for a Column in a Table work ?

    Hi All,
    I have a question for you.
    Using version 11.1.1.7:
    I was playing with a use case where I need to show and hide columns in an af:table component.
    I want to do this clientside using javascript.
    Guess what: It works, however, it only works for hiding columns ?!
    Initially I have client component = true and visible is true.
    See javascript below.
    When I call hideColumn, the component is found and hidden after calling.
    When I call showColumns (after it is hidden) the component cannot be found anymore.
      function showColumn(evt){
          var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
          col.setVisible(true);    
       function hideColumn(evt){
          var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
          col.setVisible(false);    
        }I checked and when the columns visible property is initially false, the column is not found by AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9"), which means it is not available ?!
    It looks like the visible property for an af:column works slightly different then for other components such as buttons.
    Also makes me wonder how the panelCollection component shows and hides columns. Doesn't that component do exactly the same ?
    Thanks.

    Luc,
    couldn't find a hint in the sources (maybe didn't spend enough time). However, one reason for this behavior would be if the hidden column had no client component created (in which case it only exists as hidden HTML). The work around I think would be to use a serverListener on the table and to pass the columns to show/hide as the payload for server side show/hide
    Frank

  • SUM function for a column made 'on the fly'

    I have access to a database, however only SELECT statements can be run on the database. Basically the database lists switches, these switches can have up to 20 computers connected to them but some do not. I need to know the switches which contail less than 20 computers so I know where there is space for more computers (I've wrote the code for this already). I also need something to keep a tally/total for the number of spare spaces left so I can run the script and go 'ok we have a total of 20 spare places for computers theres 10 on this switch and 10 on this one'.
    I just need to get the sum funtion working for the column that I've created 'on the fly', the column revealing the number of spare slots, heres the code I've got so far:
    SELECT switch, COUNT(*) as "Servers", 20 - COUNT(*) as "Spare slots"
    from dedicated_servers
    where switch like 'rs%'
    GROUP by switch
    HAVING COUNT(switch) < 20
    order by Servers;
    Which gives the following:
    | switch | Servers | Spare slots |
    | rsj14-1.dc | 12 | 8 |
    | rsj12-1.dc | 15 | 5 |
    | rsi2-2.dc | 16 | 4 |
    | rsj13-1.dc | 16 | 4 |
    | rsi2-1.dc | 16 | 4 |
    Just need something at the end saying TOTAL=25

    OK I'll have to make em up though, but they are something like this for one switch:
    INSERT INTO dedicated_servers (switch, server_number, switch_socket)
    VALUES (rsj-1.dc, 100, 18)
    On switch rsj-1.dc there can be upto 20 servers (the server_number is the primary key)
    Message was edited by:
    slowpoke115

Maybe you are looking for

  • Apple store replaced logic board backlit keys no longer work

    So about a week ago I had to have the logic board replaced because airport would connect only half the time. The apple store did fix the problem, but only one more thing, the backlit keyboard no longer is recongnized, its like the employees didnt plu

  • Hover over image will change background color and size since IE8

    Hello, I have a problem that only occurs in IE8 without compability view. I have in CSS set all textlinks to change background color on hover. Now my sliced imageslinks also change background color and for a larger background area than the actual ima

  • I can't install the drivers for my Nom

    I have Windows XP. We just got a Nomad, and I installed everything from the CD. As it went through the install, it would pop up a message that says "An error occured while setting up the driver." I've uninstalled and reinstalled the program 3 times,

  • Is searchme part of the latest Mountain Lion update

    Found Searchme extension in Safari Browser extension after latest software update.  Is this a virus or Trojan?

  • Commit per session

    hi guru's i have one little question which v$view can tell us " how many commits done by user x in particular session" ???? thanks for response