How to filter the data displayed in a datatable

Is there a way to populate a datatable so that the data displays in a column only when it is different than the previous rows. For example if I have a List of InventoryItems that have properties State, WHouse, Widget, Count.
And I want to display them something like this:
    GA    WH1    Widg1      255
                 Widg2      566
                 Widg3      999
          WH2    Widg1      100
                 Widg4       55
    FL    WH5    Widg1      687
          WH6    Widg5      566I hope the formatting comes out correct. The GA & FL should be in the first column. WHX in the second, WidgX in the third, and the count in the fourth.
I hope someone has an idea how I can achieve this effect.
Thanks

Yes, binding to the rendered property the way you suggested should do the trick.
FYI, here's an example that illustrates how the <if> component in JSFTemplating works:
<foreach key="key" list={"A" "B" "C"}>
    <!if !(#{key} = B)>
        <staticText value="Not B, it's '<b>#{key}</b>'</br>" />
    </if>
</foreach>If you cut / paste that code into a file called test.jsf and run it in a JSFTemplating enabled application (follow the directions on the www site to run the demo app, drop it in that app), it will show values not equal to 'B" (A and C). FYI (#2): the <staticText> component above has a short cut syntax, so it could also be written:
<foreach key="key" list={"A" "B" "C"}>
    <!if !(#{key} = B)>
        "Not B, it's '<b>#{key}</b>'</br>
    </if>
</foreach>FYI (#3): You can use any #{} you want in the <if> condition and can form complex boolean equations.
Good luck!
Ken Paulsen
https://jsftemplating.dev.java.net

Similar Messages

  • How to filter the data on Reports from collected from differnet Agents

    1) I have to write a Plug-in which would fetch the same type of data from 7 Agents. I need to generate the report for each Agent separately,This plug-in will be deployed in various different environment. So I will not know the host name as it will be deployed different environment. Can anyone suggest how to filter the data for each agent from the table. I see one solution of using Bind variable for the Target GUID in PL/SQL file. Can you please suggest if there is any other better way of doing this.????
    Also Can you please suggest what are the best ways to debug the OEM Plug-in?
    Thanks Anyway.....

    What I mean filtering data means displaying data for each Agent Seperatly. Assume I have collected Filesystem data from 5 Agents (5 different server). Now I want do display file system data for Agent1 (server 1). How would I fetch it from MGMT$Metric_Current. Currently I use a bind variable
    ??EMIP_BIND_TARGET_GUID?? to filter the data for a Agent from MGMT$Metric_Current view. I compare Target Name entered while deploying Plug-in with the Target_Name column of specified view.Is there any other way of fetching data from this table for a Agent?
    I hope I am prety clear now. My Problem is IO dont want to force user to enter exact Server name while deploying Plug-in.
    Thanks......

  • How to filter the data in different sections (e.g. Report Footers)?

    Hi,
    I am using Crystal Reports 11 to generate cross-tables.
    I plan to generate 3 cross-tabs, and each cross-table will be put in a section. For example, cross-tab1 in Report Footer a; cross-tab2 in Report Footer b; cross-tab3 in Report Footer c.
    I know use "Select Expert" to filter data. But, it seems that "Select Expert" filters data for the whole report.
    I want to filter the data for each cross-table separately. For example, filter cross-tab1 based on condition1; filter cross-tab2 based on condition2; filter cross-tab3 based on condition3.
    How to filter the data in different sections (e.g. Report Footers)?
    Thank you in advance.

    Hi,
    Now that you've inserted the subreport just right-click the sub-report and click Edit. The Design page for sub-report should open up.
    You can now insert the cross-tab on the Report Header and insert a record selection formula of your choice.
    Also, suppress all the other sections of the subreport so the Main report only shows the crosstab without any spaces.
    Do the same for all the subreports.
    -Abhilash

  • How to fetch the data & display the data if fields got the same name in alv

    hi frnds, i need ur help.
    how to fetch the data & display the data if fields got the same name in alv grid format.
    thanks in advance,
    Regards,
    mahesh
    9321043028

    Refer the url :
    http://abapexpert.blogspot.com/2007/07/sap-list-viewer-alv.html
    Go thru the guide for OOPs based ALV.
    Use SET_TABLE_FOR_FIRST_DISPLAY to display the table:
    CALL METHOD grid->set_table_for_first_display
     EXPORTING
    I_STRUCTURE_NAME = 'SFLIGHT'     “Structure data
    CHANGING
    IT_OUTTAB = gt_sflight.          “ Output table
    You can also implement
    Full Screen ALV, its quite easy. Just pass the output table to FM REUSE_ALV_GRID_DISPLAY. 
    For controlling and implementing the FS-ALV we have to concentrate on few of the components as follows :
    1. Selection of data.
    2. Prepare Layout of display list.
    3. Event handling.
    4. Export all the prepared data to REUSE_ALV_GRID_DISPLAY.
    Regd,
    Vishal

  • How to filter the data in dropdown?

    Hello,
    How to filter the data
    I got all the project name in dropdown when you select the project name in other textbox the project id will come automatically.
    so I want to get only those project name that is assigned to that particular user.
    I have
    ProjectName(dropdown),
    ProjectId(Textbox),
    Employee code(Unique value),
    employee Id (Unique for particular employee means if User A works on 5 projects so for all 5 projects the employee Id will be same),
    Project Id( 5 projects 5 different id)
    I didnt get the exact formula or I have to use any javascript code.Any help...
    Thanks,

    If I am understanding correctly, you want to populate a drop down with values from a list.
    Using InfoPath:
    right click on the drop down to be populated, and choose drop down list box properties.
    add the list with the values as a data source.
    click the filter box next to entries.
    select the field you want from the other list.
    click filter data.
    set the filter (click AND if you need more lines).
    click OK on any dialogs you need to to get back to the editor.
    Test your form.

  • How to Audit the data displayed within a Webi report

    Hi All,
    We have BOBJ XI R2 SP4 installed on our server.
    One of the requirements is to audit the data the user has viewed through Canned reports and also Adhoc reports created in Webi.
    I understand that we can audit what reports are accessed by the user, but not sure how to audit the data within the report. Could someone please let me know if auditing data can be acheived form SDK ? If so how ?
    Thanks,
    Sireesha

    Pablo,
    The following should get you started;
    This is a report to pull Universe Name, Report Name, Action Time (last refreshed), Action Duration (execution time), User Name and Object Name (universe objects used in reports).
    The Result Objects are as follows:
    Object Name from Actions/Action Details
    Action Time from Actions
    Action Duration from Actions
    Action Type from Actions
    Action Type Detail from Actions (detail object associated with Action Type)
    User Name from Actions
    Document Name from Actions/Document
    Universe Name from Actions/Action Details
    The Query Filters are as follows:
    Action Time between Day1 And Day2
    Note: The Query Filter is necessary (obviously) only to restrict the size of the query. I wouldn't run this query without a filter on demand. Depending on the size of your deployment, you might want to restrict the query initially to a specific universe/list of universes while testing.
    At the report level, I moved Universe Name and Document Name in to (nested) sections.
    i.e.
    Section on: Universe Name
    Section on: Document Name
    Table
    Another option would be to retrieve this information from the CMS tables using WID Scanner [here|http://www.forumtopics.com/busobj/viewtopic.php?t=80856]
    The last option would be to use the Report Engine SDK (for Webi) to write a program extract this information from the CMS tables and pass it to another table. WID scanner (above) does effectively the same thing, passes the info to an MS Access table (if I remember correctly..I may be wrong. I have'nt used it since it last tried to create a report to extract all used objects.)
    Best,
    Srinivas

  • How To change the Date display format to dd.mm.yyyy format

    Hello friends
    I am expected to display the date fields in my BEx reports in the standard dd/mm/yy format. However, I find that it is getting displayed in mm/dd/yyyy form.
    This is creating a bit of a confusion for the client.
    Hence can someone please let me know, if I can make any change to the way the date is displayed in the reports.
    Looking for a prompt reply
    Thanks in advance
    regards
    Zubin Kurian

    Hi Zubin,
            There are some corrections in that coding.
    year = year+2(2).
    CONCATENATE day month year INTO l_date SEPERATED BY u2018/u2019.
    Regards,
    Yokesh.

  • How to filter the data

    Hi
    this is my code in which vkorg is compulsory.
    DATA: ITAB_VBAK TYPE TABLE OF VBAK,
          WA_VBAK TYPE VBAK.
    DATA: ITAB_VBAP TYPE TABLE OF VBAP,
          WA_VBAP TYPE VBAP.
    DATA: P_VKORG TYPE VBAK-VKORG,
          P_KUNNR TYPE VBAK-KUNNR,
          P_VBELN TYPE VBAK-VBELN,
          P_MATNR TYPE VBAP-MATNR,
          P_AUDAT TYPE VBAK-AUDAT,
          P_VDATU TYPE VBAK-VDATU,
          P_ERNAM TYPE VBAK-ERNAM,
          P_VKAUS TYPE VBAP-VKAUS.
    SELECT-OPTIONS: s_VKORG FOR P_VKORG OBLIGATORY,         " Sales Organization
                    s_KUNNR FOR P_KUNNR,         " Sold-to party.
                    s_VBELN FOR P_VBELN,         " Sales Document.
                    s_MATNR FOR P_MATNR,         " Material number.
                    s_AUDAT FOR P_AUDAT,         " Document Date (Date Received/Sent).
                    s_VDATU FOR P_VDATU,         " Requested delivery date.
                    s_ERNAM FOR P_ERNAM,         " Name of Person who Created the Object.
                    s_VKAUS FOR P_VKAUS.         " Usage indicator.
    wa_vbak_key-vbeln = s_vbeln-low.
    append wa_vbak_key to it_vbak_key.
    CALL FUNCTION 'SD_VBAK_ARRAY_READ'
    EXPORTING
      I_BYPASSING_BUFFER          = ' '
      I_REFRESH_BUFFER            =
      TABLES
        IT_VBAK_KEY                 = IT_VBAK_KEY
        ET_VBAK                      = ITAB_VBAK
    EXCEPTIONS
      RECORDS_NOT_FOUND           = 1
      RECORDS_NOT_REQUESTED       = 2
      OTHERS                      = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    The records are coming in the internal table itab_vbak.
    But i want to filter the values coming in the internal table by the value whatever the user enters in select option.
    The first field ie. VKORG is manadatory and rest is optional.
    Please help me out to filter the table.

    hi Darshana,
    You can not directly vaidated records for all those fields which are not mendetory.
    So after getting values in internal table check each record for given selection screen value if not match for any of selection screen value then delete that record fron internal table.
    Reward if useful..

  • Reg :  vo.writeXML() how to filter the data before generating the xml data

    Hi team,
    I have table region with multi selection option.
    My requirement is to fetch the data and generate the xml data for the selected rows.
    By using : writeXML() --> it is fetching all the data.
    What are the methods i need to use,so i can fetch only the selected data ?
    Any pointers ?
    -Sridhar

    Hi Peddi,
    i tried the way u mentioned :
    But the new VO2 (Target) VO is having an extra row, iam not understanding how that is getting stored in VO2.
    Can you please review the below query and let me know if any issue.
    public void copyVO()
    int rowCount=0 ;
    OAFXMLVOImpl vo1 = getOAFXMLVO1(); //source
    OAFXMLVOImpl vo2 = getOAFXMLVO2(); //destination
    OAFXMLVORowImpl row2= null ;
    OAFXMLVORowImpl row1 =null;
    if(vo2!=null && vo2.hasNext())
    { vo2.first();
    do
    vo2.getCurrentRow().remove();
    vo2.next();
    while (vo2.hasNext());
    oracle.jbo.Row[] rows = (oracle.jbo.Row[]) vo1.getFilteredRows("check", "Y");
    rowCount = rows.length;
    if(rowCount>0)
    vo2.setMaxFetchSize(0);
    for(int i=0;i<rowCount;i++)
    row1 = (OAFXMLVORowImpl)rows;
    System.out.println("User ID-->"+ row1.getUserId());
    System.out.println("Checked -->"+ row1.getcheck() );
    row2 = (OAFXMLVORowImpl) vo2.createRow();
    row2.setUserId(row1.getUserId());
    row2.setcheck(row1.getcheck());
    vo2.insertRow(row2);
    row2.setNewRowState(row2.STATUS_INITIALIZED);
    } //end of if
    -Sridhar

  • How to filter the data in a table UI/

    hi all,
    I have to put filter  and sort functions in my table UI.can ayone please help me how to do this with a code.
    regrads,
    Sharan

    >
    But the only thing is that such function cannot be used in SQL.
    >
    Perhaps you weren't including the use of autonomous transactions?
    CREATE OR REPLACE FUNCTION remove_emp (employee_id NUMBER) RETURN NUMBER AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    tot_emps NUMBER;
    BEGIN
    SELECT COUNT(*) INTO TOT_EMPS FROM EMP3;
    DELETE FROM emp3
    WHERE empno = employee_id;
    COMMIT;
    tot_emps := tot_emps - 1;
    RETURN TOT_EMPS;
    END;
    SQL> SELECT REMOVE_EMP(7499) FROM DUAL;
    REMOVE_EMP(7499)
                  12
    SQL> SELECT REMOVE_EMP(7521) FROM DUAL;
    REMOVE_EMP(7521)
                  11
    SQL> SELECT REMOVE_EMP(7566) FROM DUAL;
    REMOVE_EMP(7566)
                  10
    SQL>

  • How to filter the Event Data from the EventHub when consuming data?

    We know the EventHub has the filter function. I'm designing a new solution for a customer and it looks like EventHubs are great for sending and receiving our near-realtime
    data. Downside is when receiving the data, we receive all data of all our devices in the world. Most of the time, our clients only want to see data of one (or a few) device. We could of course filter the data by ourselves, client side, but
    this would cost a lot of bandwith.
    From the
    FeedBack, it said Filters will be tied to Consumer Groups. And I Check the Consumer Group Class, it has the Create Time and Update Time, but it
    has no set Function,
    So how to use the Consumer Group to filter Event Data during the Receiving data?
    Because in our solution, we use the EventHubHost to consume data, if our service bus worker role restart, we will receive all data in the EventHub, but we only want
    to receive the latest data,
    If we use the EventHubHost to consume data, can we also to filter data? If yes, how to do?
    Thanks very much!

    Yes right,
    AFAIK there isn't a filter feature for Event Hub. The only way to have now is to put a specific property inside your EventData that consumer group can check to filter if it is interested in the data or not.
    Paolo.
    Paolo Patierno

  • I scanned an old photo but the date displayed is today, I want the date to be the date the photo was taken.  How do I change the date of the photo in iPhoto 11?

    I scanned an old photo but the date displayed is today, I want the date to be the date the photo was taken.  How do I change the date of the photo in iPhoto 11?

    There are two kinds of metadata involved when you consider jpeg or other image file.
    One is the file data. This is what the Finder shows. This tells you nothing about the contents of the file, just the File itself.
    The problem with File metadata is that it can easily change as the file is moved from place to place or exported, e-mailed, uploaded etc.
    Photographs have also got both Exif and IPTC metadata. The date and time that your camera snapped the Photograph is recorded in the Exif metadata. Regardless if what the file date says, this is the actual time recorded by the camera.
    Photo applications like iPhoto, Aperture, Lightroom, Picasa, Photoshop etc get their date and time from the Exif metadata.
    When you export from iPhoto to the Finder new file is created containing your Photo (and its Exif). The File date is - quite accurately - reported as the date of Export.
    However, the Photo Date doesn't change.
    The problem is that the Finder doesn't work with Exif.
    So, your photo has the correct date, and so does the file, but they are different things. To sort on the Photo date you'll need to use a photo app.

  • Canon Vixia HF R20 - How do I turn off the date display?

    How do I turn off the date display on my Canon Vixia HF R20? I do not want the date on my videos. I searched the manual and googled it and can't find an answer.

    Hello DaisyKary,
    When shooting with the VIXIA HF R20 you would be able to turn off most of the displays by pressing the [DISP. Batt. Info] button through a cycle.  It will change what is displayed on the camcorder's LCD panel.
    If this is an urgent technical support matter I would urge you to contact Canon technical support directly for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to filter VO data based on user access

    Hello,
    Can anyone help me with an approach for the below case.
    Once a user logs in, we want to show them a list of various Company(s) and Role(s) that they have access to(this comes from a custom Table).Based on the selection they make here, we would like to filter the data(Here company is very much like ORG_ID in Oracle EBS).So how do I apply this criteria across all VOs once the selection is made so that user sees a specific company data only.Also the Role would be used to enable and disable few fields(regions) on the forms.How do we approach getting this done too.Again as in Oracle EBS,this is more like, SPEL in OAF.
    Any help is appreciated.Thnx!
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi All,
    I have made some progress and but I am stuck with an issue now.Please let me know what am I missing here.
    Approach:
    1. Once a user logs in, I display the various operating companies that he has access to as a Table region.As he selects a row in this table, I set a pageFlowscope variable.I am able to display the value also as he selects various companies from the table region displayed.
    2. Now I created a bounded Task flow(BTF) which has a default method activity(ExecuteWithparams) which would take a company as a paramter(bind var) and I have set this to use the pageFlowscope variable referred above.And after this method it goes to a view which displays data for that company data.
    3. Now I dragged and dropped this BTF as a region onto my page.
    Problem: When I run the actual page it says "No data to display" in the BTF region. But there is data in the database for that company.How can I fix this issue or what is it that I am doing wrong.Please help.
    Thanks,
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • In BI how to filter the selection options based on inputs on top field

    Hi Friends,
    In BI, How to filter the selection options based on inputs on top field.
    The system should automatically filter the lower level drop downs based on the selection of a higher level.
    For e.g. :
    If a user selects a Country then the States drop down should only display the State's belongs to the Country. Similarly when a State is selected, the District drop down should display only those District's belongs to the State.
    Thanks in Advance.
    Regards
    Jayaram M

    Hi Anil,
    Thanks for reply but I couldn't use Compounding Characteristic here. Need some other solution.
    Regards
    Jayaram M

Maybe you are looking for

  • Challenge: call local ejb from remote ejb on weblogic 9.2

    Hi ALL, How do I call to local ejb from remote ejb object. The jar file is deployed on weblogic server 9.2, if you want get it http://geocities.yahoo.com.br/lindembe/BEAProject.jar and the source code are http://geocities.yahoo.com.br/lindembe/BEAPro

  • Quicktime format to IMovie

    We bought a machine that easily captures our videos from camera to DVD, It plays back in Quicktime but will not import into IMovie for editing. Any suggestions?

  • Raw images and windows 8

    Hi , I just purchased a windows 8 new laptop.I uploaded my cs6 software but get a message that it cannot read raw files.I downloaded raw converter 8.7.1 but it still doesnt work Can anyone help me with this please

  • How can I avoid rendering objects outside of the page?

    Hi, I have a few big objects in my webpage that stretch the boundaries of the page in preview mode. How can I avoid rendering those parts that are off the page? Thanks, Hadi

  • HELP!!!!! STUDENT IN NEED

    Hi everyone, I'm a student who's completely confused using labview. I've a project due in a couple of weeks and it's wrecking my head trying to figure it out. I've got most of it done, but i can't get the rest of it. I have to modify the attached fil