Issue with Sorting by Custom Attributes

In our custom SES query application, I am trying to implement sorting at the custom attribute level. I am having difficulty in understanding exactly how to set the options on doOracleOrganizedSearch() to achieve the desired result.
We have a table based content source and allow a user to search via custom search attribute. We are also going to allow them to sort by custom attribute.
For example, say we have a Project content source and one of the attributes is "Client Name". Users are going to be able to sort by client name (A-Z and Z-A). I have a prototype working but it only seems to work if I set topN to a very high number.
I want to bring back the first 10 documents sorted by Client Name A - Z and allowing paging to the next set of sorted results. My prototype works if I set topN to 1000 (more than the # of results) but does not work if I set it to 10 (# of results I want to display per page).
Below if my code. Note I am not setting the group attribute or the cluster list. Perhaps this is the issue?
Many thanks in advance!
OracleResultContainer results = service.doOracleOrganizedSearch
(this.m_query, // query
this.m_docsRequested, // topN
this.m_startIndex, // startIndex
new Integer(10), // docsRequested
this.m_dupRemoved, // dupRemoved
this.m_dupMarked, // dupMarked
this.m_searchDataGroup, // groups
this.m_queryLang, // queryLang
this.m_docLang, // docLang
this.m_returnCount, // returnCount
this.m_filterConnector, // filterConnector
filters, // filters
this.m_fetchAttributeNames, // fetchAttributeNames
null, // searchControls
null, // groupAttr
this.m_sortAttributes, // sortAttrList
null); // clusterList

Hi Nikola,
in 9.0.1 even if you rewrite the web interface you can't sort files by custom attributes setting a SortSpecification to a Folder. You can only sort by base attributes with getItems(). To get item sorted on custom attributes you must perform a search (a lot more codelines).
Regards, Alessandro

Similar Messages

  • DQM Sync in TCA: Facing issue with the sync of  Attributes.

    Hi All,
    We have a system where the syncing of some attributes like the party number etc in HZ_PARTIES takes place when ever a new party is created in the Customers Online Module, and i am able to search it using a search screen, but there are these custom attributes which are also linked to DQM through setups and also some standard attributes like the ORIG_SYSTEM_REFERENCE attribute in the HZ_ORIG_SYS_REFERENCES table which are not Synced automatically, can you please suggest why is this happening and what could be the way around for their automatic Sync and not having to run the DQM Staging program everytime.
    Also we have faced regular instances in the way the search gets disabled, due to not syncing For Eg: when a custom table having some details for the Product and services related to the party are updated, or any other attributes lof the HZ_ORIG_SYS_REFERENCES are updated and not the ORIG_SYSTEM_REFERENCE which is used for search, This also sometimes leads to disabling the search.
    Can you please suggest what can be the possible reasons and the workarounds for this.
    What i am expecting is a way that this can be overcome and we dont need to run the Staging program instantly to correct the problem , though we may be scheduling the Program run for once a day.
    Thanks,
    Mayank

    Have you tried going to ->
    Trading Community Manager -> Administration -> DQM - Synchronization -> Synchronize Method
    Set the Synchronizing Method to Autmatic. This should sync whenever a new Party is created.
    We are facing significant performance issues, and are also exploring this.
    Kumar

  • Print Issue with Sorted ALV Grid

    Hi Team,
    I am using ALV display for my Program. Iam using REUSE_ALV_GRID_DISPLAY. Also i have a Sorting condition for my ALV grid. So iam filling the Sort table & passing it to the Function module. The data is displayed correctly with Sorting as required in the Output.
    Now the issue is with: Print from this ALV. When we try to print the data, The requirement is that the Print should be same as how it is displayed in the ALV. "Grouped Columns"..... But now, the Print is that all the data is filled in all the columns. But user wants the Print also to appear  same as it is shown in a Sorted ALV display.(With some similar column data missing in succeding sort columns until new entry starts)
    Please suggest a solution to acheive the same.
    Thanks & regards,
    Chaitanya

    Look at Q#19 in the note 1009650. Merging functionality is available only for ALV grid display.
    Related Note: 447055
    Work around would be to display the excel in the SAP window (Excel in Place)  and print it from Excel. Read the following thread to make the necessary settings to make it work. Download Report exactly same as seems with Layout set !!
    Edited by: Jeevan Sagar on Jan 19, 2012 12:38 AM

  • Does anybody have an issue with not hearing custom text tones on their Iphone 5?

    I am having a problem not hearing any custom text tones on my Iphone 5 even though it is not on silent mode.  It's very upsetting cuz friends will text me when I'm at work at my phone is in my pocket but I don't know until I look at my screen.  Never had this issue with my old Iphone 4 plus my WiFi seems to kind of suck to with reception.

    I have the same problem! I have been on the phone and emailing apple support for several days and still not working. They credited back my purchased text tones. I even repurchased a couple text tones and they work for a couple hours then it stops working. If I click on sounds under settings and try to just listen to the tone, all It does is vibrate

  • Issue with value of  transient attribute after filtering or sorting a table

    Hi guys,
      i'm using jdev 11.1.1.4.0 .
      i've the use case :
             - a table with a column containing a checkbox to mark the selection of  a row
    <af:column align="center" sortProperty="TemIsChosen" filterable="true"
    sortable="true" id="c6">
    <af:selectBooleanCheckbox value="#{row.bindings.TemIsChosen.inputValue}" autoSubmit="true"
    shortDesc="#{bindings.ServersIndicTempVVO.hints.TemIsChosen.tooltip}"
    id="sbc1"
    valueChangeListener="#{backing_initIndicatorsTemp.onSelectTemp}"/>
    </af:column>
             - i select one or more rows with checkboxes
             - if i filter  or sort the table, the selection of the checkboxes reset to not selected (value false by default).
         I understand that for the framework, it's a normal behavior because for filtering or sorting , it re-executes the query from database. And transient attribute is not persistent, so it goes back to the default initial value "false".
         What i would appreciate, it's that filtering or sorting has no effect on the value of the transient attribute, ie end user selection remains.
          I tried to modify query mode of the ViewObject to filter with in-memory data. It works fine but if you reset filter inputs you can't retrieve correct RowSet. Only new RowSet is stored, old is lost.
           So  now it's the filtering feature that doesn't work as expected.
       How can i implement  my use case withouth the troubles i've described.
    Best regards,
    David

    Hi Frank,
       no it's a view object level attribute inside a read-only view object.
      The view object doesn't use any entity.
      Here is the definition of the attribute in the xml file of the VO, if can help you :
    <ViewAttribute
        Name="TemIsChosen"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.Boolean"
        ColumnType="BIT"
        AliasName="VIEW_ATTR"
        SQLType="BIT"
        Passivate="true">
        <Properties>
          <SchemaBasedProperties>
            <TOOLTIP
              ResId="ADD"/>
            <DISPLAYWIDTH
              Value="50"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
    David

  • Issue with sorting of TO line item while using LM05 / LM07

    Hi,
    We have found an issue in using LM05 / LM07 trnasactionwhile performing picking activity using the RF transaction.
    1. Transfer Order is created for the same Material and Batch Combination with multiple line items. So when we display the TO the materials appear in the sequence of TO line item say 1, 2, 3, 4, 5 etc.
    2.  When we try to confirm the transfer order using LM05 the system is not picking the line items in the order that the TO was created. It is pickinga a random line item from the order and selecting an item from the lower line items of the TO's.
    We have debugged and found that there is no specific sort sequence which is changing the sequence of line items as all the sort eliments have the same values except that there are few empty fields. The statement where the sort sequence is changing is 'SORT TMP_SORT_TAB BY NLTYP SORLP NLENR MATNR CHARG' but my concern is it is not sorting by this sequence specified in the code after execution.
    If anyone has seen this kind of an issue and has a solution please let me know.
    Thanks in Advance,
    Harish

    As for std SAP ME59N - make sure there is not rounding value is activated in the Material master as well as info record
    If this is not the case than check any custom code is activated for ME59N
    becuase generally in many compnay when they use ME59n they don't want the same material from diff PR to create the diff line item in the PO so using the custom logic in the user exist they trick the code
    it might be the case for you where you have issue.

  • Issue with RCDC for Custom "Department" object type

    Hey Guys,
    Maybe somebody can point out where the issue is with the RCDC. I have a custom object type called Department in FIM portal and wanted to create a simple interface for it so users can add and edit department fields.
    The only two fields that should show on the RCDC is department and divisions(this is the name of the custom field) all the fields work but I keep getting the following error "There's an error in the Department display configuration.Please contact your
    system administrator"
    Below is the RCDC:
    <?xml version="1.0" encoding="utf-8"?>
    <!--Copyright (c) Microsoft Corporation. All rights reserved.-->
    <my:ObjectControlConfiguration xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:my="http://schemas.microsoft.com/2006/11/ResourceManagement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <my:ObjectDataSource my:Name="object" my:TypeName="PrimaryResourceObjectDataSource"/>
    <my:ObjectDataSource my:Name="delta" my:TypeName="PrimaryResourceDeltaDataSource"/>
    <my:ObjectDataSource my:Name="rights" my:TypeName="PrimaryResourceRightsDataSource"/>
    <my:ObjectDataSource my:Name="schema" my:TypeName="SchemaDataSource"/>
    <my:XmlDataSource my:Name="summaryTransformXsl" <my:Parameters="Microsoft.IdentityManagement.WebUI.Controls.Resources.DefaultSummary.xsl"/>
    <my:Panel my:Name="page" my:Caption="Default Configuration" my:AutoValidate="true">
    <my:Grouping my:Name="_caption" my:Caption="Caption" my:IsHeader="true">
    <my:Control my:Name="_caption" my:TypeName="UocCaptionControl" my:Caption="Create Department" my:Description="" my:ExpandArea="true">
    <my:Properties>
    <my:Property my:Name="MaxHeight" my:Value="32"/>
    <my:Property my:Name="MaxWidth" my:Value="32"/>
    </my:Properties>
    </my:Control>
    </my:Grouping>
    <my:Grouping my:Name="DepartmentInformation" my:Caption="Department Information">
    <my:Control my:Name="Department" my:TypeName="UocLabel" my:Caption="{Binding Source=schema, Path=Department.DisplayName}" my:Description="" my:RightsLevel="{Binding Source=rights, Path=Department}">
    <my:Properties>
    <my:Property my:Name="Required" my:Value="True"/>
    <my:Property my:Name="Text" my:Value="{Binding Source=object, Path=Department, Mode=TwoWay}"/>
    </my:Properties>
    </my:Control>
    <my:Control my:Name="Divisions" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=Divisions.DisplayName}" my:Description="{Binding Source=schema, Path=Divisions.Description}">
    <my:Options>
    <my:Option my:Value="" my:Caption="" my:Hint="Please Select a Division"/>
    <my:Option my:Value="Division of Academic Affairs" my:Caption="Division of Academic Affairs"/>
    <my:Option my:Value="Division of Administration" my:Caption="Division of Administration"/>
    <my:Option my:Value="Division of Adult &amp; Continuing Education" my:Caption="Division of Adult &amp; Continuing Education"/>
    <my:Option my:Value="Division of Information Technology" my:Caption="Division of Information Technology"/>
    <my:Option my:Value="Division of Institutional Advancement" my:Caption="Division of Institutional Advancement"/>
    <my:Option my:Value="Division of President's Office" my:Caption="Division of President's Office"/>
    <my:Option my:Value="Division of Student Affairs" my:Caption="Division of Student Affairs"/>
    </my:Options>
    <my:Properties>
    <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=Divisions.Required}"/>
    <my:Property my:Name="ValuePath" my:Value="Value"/>
    <my:Property my:Name="CaptionPath" my:Value="Caption"/>
    <my:Property my:Name="HintPath" my:Value="Hint"/>
    <my:Property my:Name="ItemSource" my:Value="Custom"/>
    <my:Property my:Name="SelectedValue" my:Value="{Binding Source=object, Path=Divisions, Mode=TwoWay}"/>
    </my:Properties>
    </my:Control>
    </my:Grouping>
    <my:Grouping my:Name="summary" my:Caption="Summary" my:IsSummary="true">
    <my:Control my:Name="summaryControl" my:TypeName="UocHtmlSummary" my:ExpandArea="true">
    <my:Properties>
    <my:Property my:Name="ModificationsXml" my:Value="{Binding Source=delta, Path=DeltaXml}"/>
    <my:Property my:Name="TransformXsl" my:Value="{Binding Source=summaryTransformXsl, Path=/}"/>
    <my:Property my:Name="Hint" my:Value="{Binding Source=schema, Path=%AttributeName%.Hint}"/>
    </my:Properties>
    </my:Control>
    </my:Grouping>
    </my:Panel>
    </my:ObjectControlConfiguration>
    Any advice is appreciated.

    I don't know RCDCs well enough to debug it from the xml. One approach when I don't know something too well is to brute it. Copy one of the default RCDCs and make sure it's working then add the required attributes one by one checking that it works each
    time. Once it's working with the added attributes remove all the ones you don't need. If that breaks it, go back to where it was working and remove them one by one.

  • Aperture 3.2.1 still issues with sorting images in albums, after making adjustments, cannot use arrow keys to go to next image. straightening tool auto turns image prior to straightening inconsistantly

    Have updated aperture to 3.2.1, still having some issues during editing images.
    1. Basic item is sorting images does not happen correctly, move some images in file, they don't move correctly, after trying to move several, then they almost randomly move around.
    2. Straightening tool will automatically tilt images as soon as you touch the tool, turns them on about a 30 degree angle clockwise.
    3. Arrows on right side of keyboard used to move images in browser from the editing position, they move them if no editing is done, once you edit an image, cannot move to the next image using the arrow keys.
    tks, gmoney in ladner

    Oh, baby! This bad boy flies!! Here's what to expect:
    I had 40,000 images in Aperture 3 and it was dog slow at everything. I installed 3.1 update today. It took 5 minutes to update the database and then behaved marginally better than before at ASIC library navigation. I was disappointed.
    Then I QUIT the app. It took a couple of hours to "update files for sharing" with a counter that went to 110,000 images. So it must have updated every thumbnail and variation of preview. Turned it back on , and BAM. Came up fully in seconds. Paused for 10 seconds ten everything was lickrty split. For the first time ever, I can use the Projects view with all 791 projects and scroll quickly. I even put it in photos modevand whipped thru all 49,000 images!
    Haven't done anybprocessing yet, but i'm liking it!!
    Jim

  • Issue with sorting in a PPR report

    Hi:
    I have a report based on a query that references a view whose defining query references a remote table. I have the columns of this report enabled for sorting and there is no default sort column specified
    All is fine when the page containing this report is called up for the first time. The problems start once I click a column heading to sort the report by that column. The report then renders with fewer than 15 rows (the rows per page value) and hence the pagination links disappear. if I now click a different column heading then more than 15 rows are shown again. I cant say whether the truncation of the result set ihappens only when sorting by a particular column. It does appear to be random. Surprisingly, if PPR is disabled then this bizzare behaviour is not seen.
    Any idea what is going on here ?
    Varad

    Hi Carl:
    I have posted the page at apex.oracle.com. The URL is http://apex.oracle.com/pls/otn/f?p=23548:22
    However, the problem doesnt manifiest itself here.
    Further investigation on my side leads me to believe that it is the contents of one of the columns displayed by the report (column named STMT) that appears to be the culprit. I remove this column from the report and all is well. The column contents are pl-sql/SQL statements. I cant understand why the contents of the column should matter.
    Thanks for your response.
    Varad

  • Issue with display of view attributes via page personalization

    Hi,
    We are having the standard search region whose VO we are extending to display additional columns.
    For this we did VO Ext, migrated the code to the instance. We added new columns in the ‘Result Region’ via personalization and mapped the corresponding view attribute to it.
    The issue is that, in spite of the mapping being correct, it is trying to display the value of previous view attribute from the same view instance.
    Example:
    Std Query fetches say Employee Name, Employee Id and we have extended the VO to include say DeptNo, DeptName.Now on doing Personalization for displaying the new fields we are getting Employee Id in DeptNo column and DeptNo in DeptName column.
    In short, we can say like, the newly added columns are displaying the values of the previous view attribute columns.
    Kindy provide your inputs for resolving this issue.
    Reagrds,
    Asha

    Hi,
    i think u need to import jpx also .
    Thanks
    Raju

  • Issue with muliti level custom Leave Workflow

    Hi,
       our Leave Workflow is multi level Approvals based on Absence codes.
       Say for Example : Case 1: For casual leave 2 Level Approval,
                                  Case 2: For Sick Leave 1 Level Approval,
                                  Case 3: For Maternity leave 3 Level Approval.
      The Workflow is working fine for Case 1 and Case 2. Workflow is Getting Completed. No issues at all here.
      The Issue is with Maternity Leave there are 3 level of approvals Manager 1, Manager 2, Manager 3.
       First 2 Managers are able to approve it from portal and for third level approval the work item is going to Manager 3's UWL.
       But when we click on work item it is showing the message like your Work list is Empty.
       Even we have forwarded the work item to Manager 2 and Manager 1 using SWIA. From their UWL also we are getting this same message
       your Work list is Empty.
       Observations:
          Request status is in SENT status.
           Visualization parameters are fine.
           Agent is Ready.
           In R3 Level we are not able to see the worklist details in Approval mode in PTARQ tcode for Manager 3,
          For Manager 1 & Manager 2 it is fine there we had approved in PTARQ.
    Here are the Screen shots.
         What Could be the issues? Are we missing something?
         Ideas and Suggestions are welcome
         Regards,
         Arun

    Hi Arun
    Can you please give a screen shot of the technical workflow log with the step history selected for this step? (ensure that you have tried executing it once from UWL and rcd the same message), then get to the backend WF log).
    Also, is the same Workflow task sent to all three levels in a loop or is it a different task at level 3?
    Is there any deadline monitoring assigned to the task (for third level)?
    Regards,
    Modak

  • Issue with Variables using Customer Exit.

    Dear All,
    I have the following scenario,
    I the Variable Screen I have 4 variables, lets say for eg: Plant, Material, Material Group, Calendar Day.
    Then I have 4 Customer Exit Variables in the report, 2 of type Char Value Variables and 2 of type Text Variables.
    I have written the customer exit code and all the 4 customer exit variables derive their values from the Calendar Day Variable from Variable Screen.
    In the Variable screen if i give the values only for the variable calendar the report executes fine.
    But along with Calendar Day If I enter values for any other variable the report gives the following error message - "No value could be determined for variable VAR_CALDAY_CEXIT_1." VAR_CALDAY_CEXIT_1 is the name of my one of the Customer Exit Variables.
    Please let me know how to solve this problem.
    Cheers,
    Neel.

    IF i_step = 2.
      CASE i_vnam.
           WHEN 'VAR_CALDAY_CEXIT_1'.
           LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'VAR_CALDAY_MULSIN_MAN'.
             CLEAR L_S_RANGE.
             IF SY-TABIX = 1.
             L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
             L_S_RANGE-SIGN = 'I'.
             L_S_RANGE-OPT = 'EQ'.
           APPEND L_S_RANGE TO E_T_RANGE.
           ENDIF.
           ENDLOOP.
           WHEN 'VAR_CALDAY_TEXT_CEXIT_1'.
           LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'VAR_CALDAY_MULSIN_MAN'.
             CLEAR L_S_RANGE.
             IF SY-TABIX = 1.
             L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
             L_S_RANGE-SIGN = 'I'.
             L_S_RANGE-OPT = 'EQ'.
           APPEND L_S_RANGE TO E_T_RANGE.
           ENDIF.
           ENDLOOP.
            WHEN 'VAR_CALDAY_CEXIT_2'.
            LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'VAR_CALDAY_MULSIN_MAN'.
             CLEAR L_S_RANGE.
             IF SY-TABIX = 2.
             L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
             L_S_RANGE-SIGN = 'I'.
             L_S_RANGE-OPT = 'EQ'.
           APPEND L_S_RANGE TO E_T_RANGE.
           ENDIF.
           ENDLOOP.
           WHEN 'VAR_CALDAY_TEXT_CEXIT_2'.
           LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'VAR_CALDAY_MULSIN_MAN'.
             CLEAR L_S_RANGE.
             IF SY-TABIX = 2.
             L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
             L_S_RANGE-SIGN = 'I'.
             L_S_RANGE-OPT = 'EQ'.
           APPEND L_S_RANGE TO E_T_RANGE.
           ENDIF.
           ENDLOOP.
      ENDCASE.
    ENDIF.
    'VAR_CALDAY_MULSIN_MAN' is the Calenday Day Variable from the Variable Screen.
    It is of type multiple single values.
    The User enters two dates and then the code is utilized to pass these 2 dates to 2 Char Value Variables and 2 Text Variables.
    Once again, if i do not enter the values for any other variable then the report executes fine.
    Cheers,
    Neel.

  • ORA-06502 on  'SQL query' report with sort in 'Report Attributes'

    Hi All,
    We get the next error if we set sorting on a column in a 'Report' based on a 'SQL query'. Removing the sort, error disappeares:
    failed to parse SQL query:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    Any suggestions?
    Erik

    Erik,
    Thanks, this explains it. By specifying the request as part of your URL you run into the recently uncovered issue. The request you're setting is REMFROMLIST and ADD2LIST. You probably either have links that include those requests or you have branches where you specify them. Either way, in order to get reports sorting to work, you'll have to make sure that the request strings are not part of your URL. This is a work-around and the upcoming HTML DB patch release will solve this issue.
    One way of avoiding this is to have computations on the previous pages that set a napplication level or page level item to the REMFROMLIST and ADD2LIST values and then you can use those items for your conditions that are currently evaluating those strings.
    Hope this helps and sorry for the inconvenience,
    Marc

  • Who can I speak for CS5 technical support. I am having issues with the printing custom paper size! please please please help.

    Is there any one that can help you on Adobe? I have been on hold twice for 30min and I need help. Contact line is for something else not to happy. I downloaded Yosemite and now my CS5 when I custom print it shuts down the whole program and restarts again. Yes I did restart com+shift+op and yes I restarted computer. And yes called 1800-642-3623 no help. What the heck Adobe!!!!! and now this?????

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    This Cloud forum is not about help with program problems... a program would be Photoshop or Lighroom or Muse or ???
    >downloaded Yosemite and now my CS5 when I custom print it shuts down
    CS5 was written LONG before Yosemite was available, and CS5 is no longer updated... have you told Apple that their new operating system breaks your old program?
    Yosemite sometimes has problems, often related to "default" permissions needing to be changed
    -one person's solution https://forums.adobe.com/thread/1689788
    -http://blogs.adobe.com/creativecloud/creative-cloud-and-yosemite/
    -https://helpx.adobe.com/x-productkb/global/mac-os-yosemite-compatability.html

  • Issue with creation of custom layouts using SAP Help Documentation

    Hi Experts,
    My requirement is to create a home custom page layout (using web dynpro) in Composite Environment. The default options available in CE are not useful for me. I set out to make a custom layout using the following this SAP Help Documentation: [          Creating a Web Dynpro Page Layout (SAP Library - Using the Portal as a Frontend)|https://cw.sdn.sap.com/cw/docs/DOC-102846]
    I have followed the instructions and followed all the steps, yet I fail to see the application in CE. The custom page layout is not displayed neither in options and is not available any where.
    Please let me know if anybody followed these steps and have got any success.
    Thanks in advance
    Srikant

    Hi
    Can somebody let me know if they have implemented a customised solution of creation of page layouts using Web Dynpro - as per the steps suggested by SAP.
    Thanks in advance
    Srikant

Maybe you are looking for