Af:column (tr:column) sortProperty for multiple field sort

I'm using JDeveloper 10.1.3.5, but this ought to apply to Trinidad in 11g as well. In ADF Faces 10g there is a sortProperty attribute of af:column (or in Trinidad, tr:column) that takes the name of the field to use to re-sort the table, if the user clicks the column header. But I have a column that contains an entire address: Street Address, City, State, and Zip-Code as separate af:outputText components. Is there a way to tell it to sort the address on State, then City, then Zip-Code? The best I can do now is to set sortProperty to "zipCode", but that isn't really right.

Hi,
Yes and no, sadly. We reimplemented the table component partly for that on our project. Anyway, the workaround is to create a transient attribute on your row instance that returns a Comparable containing, or able to refer to, all three values (state, city, zip) and set the sortProperty on that dummy property (it does not have to be the same as the one actually shown in the page).
Regards,
~ Simon

Similar Messages

  • Question about distinct_values for multiple fields

    Hi,
    With the distinct_values() function we can get the distinct value for a specified field, and is there any way to get the distinct value for multiple fields?
    Thanks!

    Hi simpson213,
    According to your description, you have some questions about your report design.
    1. How to have non-duplicating child info?
    In this scenario, since you don't want to hide the duplicate data, we suggest you filter the duplicated records on query level by using Distinct statement. If you want to do it on report level, you can group
    records on chid id and use First() function on other fields. 
    Reference: First Function (Report Builder and SSRS)
    2. How to  have various sections that contain fields with numerous values?
    We can also add these fileds into the child group of child and have them toggled by child id. 
    Reference: Add an Expand/Collapse Action to an Item (Report Builder and SSRS)
    3. How to add a page break between each child?
    Right click on the Row Group(child id)->Page Break->Select between each group instance.
    Reference: Add a Page Break (Report Builder and SSRS)
    4. How to select multiple child id when rendering report?
    When creating parameter, select Allow multiple values in General.
    Reference: Add, Change, or Delete a Report Parameter (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How can I create a search plugin for multiple fields

    There are a number of sites that have search capabilities but they require entries into multiple fields.
    One such site is for instance the IBM Employee directory.
    (http://www.ibm.com/contact/employees/servlets/lookup)
    On this site - in order to get usable results - I have to enter both First name and Last name of the employee I'm looking for.
    I created a search plugin for the site, however I wasn't able to split the entered text into two parts and provide them as separate fields for the form.
    Is there a way to do this?
    Regards,
    Imre

    Hi,
    This is excellent. Not search-plugin though but but this is as good as a search-plugin. (Even better, as I haven't seen any solution with the plugins for the problem.)
    I didn't know that it was possible to use javascript as bookmark location.
    Thanks,
    Imre

  • Multiple values for multiple fields sharing common id

    I'm new to Reporting Services and I need to create report based on a common child id that includes multiple values from multiple fields in several tables. I can combine all the values into one query for a list report; however, this causes the rows to duplicate
    multiple times based on the differing fields having multiple values (i.e. report contains various child ids and multiple medication dates/names, multiple health diagnoses with onset dates, multiple health service dates/values, multiple immunization types and
    service dates, etc). If I create a list report and try to use various tables, I run into problems with how the tables view the data due to the duplicating child id rows from multiple field values on that child id. If I hide duplicates for these different tables,
    I can run into spacing issues from the duplicating rows and/or hiding data that shouldn't be hid.
    I need the report to have the basic non-duplicating child info (id, name, basic health info) and then also have various sections that contain fields with numerous values (i.e. section for health issue name and onset dates, section for medication name and
    prescription dates, section for health service name and service date, etc). I would want a page break after each child id and would want all the child ids to be viewed/exported for printing purposes at the same time (i.e. not choosing one child id at
    a time to print or view the data). I have tried to create one main table on a list report with various subreports on the child id; however, this is hard for my machine to process (it takes forever) and I can only view/export one child id at a time when I use
    child id as the report parameter.
    Any help you can give this newbie would be greatly appreciate.
    Thanks,
    Melissa S.
    What's the best way for me to
    MelissaS

    Hi simpson213,
    According to your description, you have some questions about your report design.
    1. How to have non-duplicating child info?
    In this scenario, since you don't want to hide the duplicate data, we suggest you filter the duplicated records on query level by using Distinct statement. If you want to do it on report level, you can group
    records on chid id and use First() function on other fields. 
    Reference: First Function (Report Builder and SSRS)
    2. How to  have various sections that contain fields with numerous values?
    We can also add these fileds into the child group of child and have them toggled by child id. 
    Reference: Add an Expand/Collapse Action to an Item (Report Builder and SSRS)
    3. How to add a page break between each child?
    Right click on the Row Group(child id)->Page Break->Select between each group instance.
    Reference: Add a Page Break (Report Builder and SSRS)
    4. How to select multiple child id when rendering report?
    When creating parameter, select Allow multiple values in General.
    Reference: Add, Change, or Delete a Report Parameter (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Correlation for multiple fields in messages inside BPM

    Hi All,
    We have a requirement to collect multiple IDOCs based on combination of field1,field2,field3 and field4.
    Could you please tel me possible ways to implement this solution:
    I have tried the below options:
    Multiple fields in one correlation
    Correlation name is given and then in Correlation editor,we have given all four fields in correlation container and 1 involved message and properties are given for all fields
    Using this solution.IDOCSa re not collected even if all the IDOCs coming with same value for (field1field2field3+field4)
    for example even if combination of (field1field2field3+field4) is same still its not collecting and sending each IDOC sepearately outside BPM.
    Could you please suggest where the problem is?
    Please suggest if there is any other way to implement this in BPM.
    Thanks in advance
    Best Regards,
    Harleen Kaur Chadha

    Hi Harleen Kaur Chadha,
    Open your Integration Process (ccBPM), go menu bar u201CViewu201D, select u201CCorrelation Editoru201D. Then you can see the Correlation variables you have declared. Go the third tab u201CPropertiesu201D, and then try to edit u201CValueu201D. Expression Editor window pops up, select u201CInterface Variableu201D, then select XPath. Now edit u201CXPath Expressionu201D. Pay attention to Prefix u201Cp1u201D, it should be present in XPath expression. Check SAP help [Link|http://help.sap.com/saphelp_nwpi711/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm]
    Regards,
    Raghu_Vamsee

  • Customised metadata - search for multiple fields?

    Background: I'm logging a STACK of footage and attempting to arrange it all by a series of different keyword categories (the day the footage was shot, location, camera type, content type, key players, etc). Each category has multiple variables (ie: in the camera category the options are Sony FS700, Canon 5D, Canon 600D, GoPro). I'm adding custom fields via the PPr Project Metadata>Add Property function using a simple Boolean tickbox.
    Question: Is there a way to sort and search the custom fields? For example if I wanted to pull up all the footage shot on day 5, with the Sony, that comprises of interview content with a particular person is there a way to search for all these fields? I've been able to search for one keyword if I tag the material but so far searching and organising by multiple fields has eluded me.
    The long way round is to create multiple bins and/or sequences for each variable in each category by hand, but that's a little tedious and has the potential to bloat the project. Any ideas to solve the problem? I've come from FCP a few months ago so the metadata side of PPro is still something I'm getting my head around. Thanks for reading!
    EDIT: I'm running PPro CC for reference and can install and use Prelude if it helped.

    For the time being I'm using a workaround employing titles above the footage to signify the relevant categories, and tagging significant moments in clips with markers, but it is perplexing.. Premiere seems to employ metadata in a phenomenal way - such that I haven't come across in any other mainstream editor - I just wish it had the functionality to sort and manage all that metadata it is producing beyond the search bar in the Project window.
    Premiere gurus and Adobe affiniados: am I missing something obvious?

  • Ovs implementation for multiple field

    Hi,
    Is it possible to set OVS(Object Value Selector) for multiple input fields in a single screen?
    Field1: From  [ ] To [ ]
    Field2: From [ ]  To [ ]
    Field3: Form [ ]   To [ ]
    where [] being the input field, and user entered value should retain there like
    Field1: From [11] to [22]
    Please let me know, if you any suggestion on implementing.

    If I implement seperate OVSListener for each From and To fields with sepeare context attributes, it works.
    But , I am trying to re-use same OVSListener for both From and To field, as the data to which comes from same RFC. Using single ovslistener, set the selected entry only to the From input field, if it is differentiated with seperate context attributes.

  • One instance of FCKeditor for multiple fields in a page

    How to implement only one instance of FCKeditor (one set of buttons) for multiple textareas in a page?

    Hello,
    Is that possible with the normal FCK Editor?
    I've never seen something like that on any website, but if you find such an example, I can have a look how it's done. If you see it somewhere working, we should be able to make it work in APEX as well.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Can't get field labels to display above for multiple fields in one cell

    I've tried searching for how to fix this to no avail. I'm new to Apex and I'm trying to get 5 fields on one line with labels above each: salutation, first name, middle initial, last name and title. I've set New Line and New Field to No for all but the first item. With the labels for each field set to Right, everything displays on one line. With the labels set to Above, fields are displayed on separate lines and I'm not sure why. There are other fields on the form as well but they are each on their own line. Any help would be greatly appreciated. My Apex version is 4.1.1.00.23. I'm running the standalone Apex Listener (current version from 7/12) with a 10g database.
    Thanks

    Hi,
    have you tried to set New Field to Yes? If that doesn't work, a test case on apex.oracle.com would be great. That's the easiest way to show you how it works.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Best solution for multiple field validation

    Hi
    I am using jdeveloper 11r2 (11.1.2.3.0) & JSF2 Facelet
    What is best way to validate multiple field is same time?
    In my use case I have address component and there is a dependensy between suburb ,posrcode and state fiels
    How I can implement this in ADF?What is the best way working in ADF?
    As I know using <f:validator > we can validate one field each time
    Appreciate any suggestion or comments
    Mohsen

    Write entity level method validator

  • How to specify multiple sequence for multiple fields in a primary key!

    Hi,
    i have a table which has about 15 fields, one of the field is primary key and i am able to specify the sequence for it using toplink and when the object is created through toplink the sequence get generated automatically, which is fine.
    Now i have to add another sequence generated field to the table this field is not nullable and
    i am looking for a way in toplink to specify the sequence for this field too, so that when we create objects through toplink the value for the field is automatically generated instead of us fetching the next value from sequence using a sql statement and then using the set method for the field.
    is there a way i can specify a sequence for another field through toplink, while keeping the sequence settings for the primary field untouched.
    thanks for your help!
    -

    TopLink only supports a single sequence field in its' mappings. There should be an API you can use to get another sequence number from an event, but I could not find an easy one (please log a bug for this on EclipseLink). The following code might work if you define the other sequence in TopLink, but you could also just execute the raw SQL as you are doing.
    i.e. something like,
    preInsert(DescriptorEvent event) {
    MyObject object = (MyObject) event.getObject();
    object.setOtherId(event.getSession().getDatasourcePlatform().getSequence("MY_OTHER_SEQ").getGeneratedValue(event.getSession().getAccessor(), event.getSession()));
    -- James : http://www.eclipselink.org

  • F4 help for multiple fields

    DEar All,
    I have a requirement actually I have a field shipping codition on the screen for which I have created the custom F4 help now when I select the the value using the F4 help I want another fields shipping type on the scren to be filled atomatically based on the shipping condition.
    Mean to say I will click F4 only on shipping condition field and ressult will be both the fields shipping condition and shipping type would be filled on the screen.
    Please suggest,
    Thanks,
    Anup.

    Hi Anup,
    Here is the code I have tried to copy multiple values, it is working fine, try this program once.
    REPORT ZTEST_F4_MULTIPLE_FIELDS .
    TYPES: BEGIN OF ad_loc_type,
             location_cd    TYPE zloc_cd,
             location_desc  TYPE zloc,
             bland          TYPE regio,
             land1          TYPE land1,
             upper          TYPE char30,
           END OF ad_loc_type.
    DATA: w_ad_display         TYPE char1,
          w_ad_change          TYPE char1,
          w_ad_progname        TYPE sy-repid,
          w_ad_dynnum          TYPE sy-dynnr ,
          t_dselc              TYPE STANDARD TABLE OF dselc,
                t_ad_loc_mast        TYPE STANDARD TABLE OF ad_loc_type
                               WITH KEY location_cd.
    DATA : wa_data TYPE ad_loc_type .
    PARAMETERS :
             p2          TYPE zloc ,
    *data :
             p3          TYPE regio ,
             p4          TYPE land1 .
    CONSTANTS
               c_structed        TYPE char1 VALUE 'S' .
    INITIALIZATION .
      w_ad_progname = sy-cprog .
      w_ad_dynnum = sy-dynnr .
      wa_data-location_desc = 'Desc1'.
      wa_data-bland = 'MO'.
      wa_data-land1 = 'US'.
      APPEND wa_data TO t_ad_loc_mast  .
      wa_data-location_desc = 'Desc2'.
      wa_data-bland = 'WA'.
      wa_data-land1 = 'US'.
      APPEND wa_data TO t_ad_loc_mast  .
      wa_data-location_desc = 'Desc3'.
      wa_data-bland = 'CA'.
      wa_data-land1 = 'US'.
      APPEND wa_data TO t_ad_loc_mast  .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p2 .
      PERFORM f4_help.
    AT SELECTION-SCREEN OUTPUT .
    LOOP AT SCREEN .
       IF screen-name = 'P3' OR screen-name = 'P4'.
         screen-input = 0.
         MODIFY SCREEN .
       ENDIF.
    ENDLOOP .
    START-OF-SELECTION .
      WRITE :/  p2 .
      WRITE :/ p3 .
      WRITE :/ p4 .
    delete from ZSERV_CMTMNT_CTR where werks = '03BV' .
    COMMIT WORK .
          FORM F4_HELP                                                  *
    FORM f4_help .
    DATA : WA_1 TYPE dselc .
      REFRESH t_dselc.
      PERFORM fill_dselc USING: 'F0003' 'P3',
                                'F0004' 'P4'.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'LOCATION_DESC'
                dynpprog        = w_ad_progname
                dynpnr          = w_ad_dynnum
                dynprofield     = 'P2'
                value_org       = c_structed
           TABLES
                value_tab       = t_ad_loc_mast
                dynpfld_mapping = t_dselc.
    LOOP AT t_dselc INTO WA_1.
    WRITE : WA_1 .
    ENDLOOP.
    ENDFORM .
          FORM fill_dselc                                               *
    FORM fill_dselc USING pw_field pw_screen_field.
      DATA: wal_dselc TYPE dselc.
      wal_dselc-fldname   = pw_field.
      wal_dselc-dyfldname =  pw_screen_field.
      APPEND wal_dselc TO t_dselc.
    ENDFORM.
    Regards,
    Arun.

  • Using one prompt for multiple fields in a report

    We are using Oracle CRM on Demand, Release 16.
    I have a report I am building that involves four different date fields. I'd like to give the user the ability to enter a date range for the date fields via a Prompt when the report executes. But the date range would be the same for all four date fields. Is there a way to capture the date range in one prompt, but use that same range in all four date fields in the report?

    I recommend to use two dashboard prompts, one for each date field of your range and each will set a presentation variable.
    Then use the FILTER metric function and reference the presentation variable.
    Best Regards,
    Christian

  • Using a single master data infoobject for multiple fields

    Hello experts. Today I ran un with the following problem: I am modelling an Infocube and will be receiving a flat file with several fields, of which 3 of them give information about sales representatives.
    For each transaction there are 1-3 sales representatives involved, and this is reflected in the file I am going to be loading. If only one representative is involved, it means that he was in charge of a complete negotiation, and his code will be found in all three fields, if two representatives are involved, it means that one was in charge of one part of the negotiation, while the other was in charge of the rest, and according to what they were in charge, their code will appear in one or two of the fields. If three representatives are involved, each one's code will appear on the field corresponding to the part of the negotiation they were in charge of handling.
    I already have the sales representative's codes as master data, but I was wondering how I can have those three fields map into the same InfoObject, if that is possible at all. Maybe in the transformation I map them to the same object? Also, what happens when you create the Data Source? As far as I know, each field in the Data Source must be unique, which makes it impossible to use my ZSALESREP InfoObject for the three fields, at least at Data Source level. What can I do in this case?

    Hi  Pedro Olvera,
    You need 3 infoobjects in datasouce to load 3 different fields.
    If you want load to a single infoobject, you can map accordingly in transformation, bult last field overwrites previous one.
    Its better to maintain 3 fields in cube. Create 2 more sales Reps(ZSALESREP1 & ZSALESREP2) with Reference to ZSALESREP then you no need to maintain master data for ZSALESREP1 & ZSALESREP2.
    Use these 3 fields for modeling.
    Hope it Helps
    Srini
    [Dont forget to close the call by assigning poings.... - Food for Points: Make a Difference through Community Contribution!|https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/007928c5-c4ef-2a10-d9a3-8109ae621a82]

  • Double click event to be captured for multiple fields in the same screen

    Hi all,
    I am doing one module pool development in which the requirement for one screen is like when I click on a particular field (BP number), it should go to a particular transaction and when I click on Loan number on the same screen, it should goto another transaction. I had set PICK for F2 in GUI status and also used GET CURSOR FIELD <field>. The ok code is coming as 'PICK' but GET CURSOR FIELD is not working and I am not getting the field that is been double clicked, because here I need the field that is been double clicked. Is there any other settings to be made or is there any work around for this. Please Help.
    Regards,
    Harikumar

    Thanks everyone. I have solved it.

Maybe you are looking for