Columnwise Sorting Of CheckBoxGrp attributes
Hi All,
I have to implement the below.
Display all the Users using a check box group with 4 columns. The displayed users in this need to be sorted column wise. i.e. say there are 48 users sorted alphabetically, I have to display the first 12 sorted users in column 1 and the next 12 in column 2 and so on. Is it possible to achieve this?
Any pointers in this regard will be of great help!!
Thanks & Regards,
Gayathri
The CheckBoxGroup UI element displays a checkbox for each element of the context node to which it is bound. To get the arrangement you want, just rearrange the context node elements accordingly.
Say the sorted sequence of node elements is e(1),...,e(n). Rearrange the node elements to get the following order (read row-wise):
e(1), e(n/4+1), e(n/2+1), e(3*n/4+1)
e(2), e(n/4+2), e(n/2+2), e(3*n/4+2)
e(n/4), e(n/2), e(3*n/4), e(n)
Similar Messages
-
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); // clusterListHi 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 -
In a content area folder is there a way to
sort items based on regular/custom attributes?
I know that we can sort based on title and size
ThanksNot currently. We're considering this for a future release.
Regards,
Jerry
null -
Formation of a separate address book sorted by NAME attribute
In one Ekchange organization with a single address book, there are Russian-speaking people and English-speaking users.
American counterparts, in comparison with Russian not so much. Hence there exists a naming standard in which:
Displayname - Cyrillic (Russian), but "FirstName" and "Lastname" - Latin (English) and the attribute "Name" - Latin.
In the global address book - names sorted by Displayname (Russian). US users have a problem.
How for US users (English-speaking), change the appearance of the book by default, or create an address book in which the main attribute of the sort will be the Name field or LastName?Hi,
You can't change the way the Address Books is sorted - It is hardcoded to use the DisplayName.
Martina Miskovic -
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?
ErikErik,
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 -
Problem in sorting advacned table attribute
Hello everyone,
Would anyone please help me to sort the column of advanced table becoz I need readonly type columns but when I sort in converts into writeable format...
thanks in advanceHi,
In coloumnHeaderPrompt ther is one property ;Sort All and Initila Staus set them,,,
wht is the style of the columns in AdvancE Table RN...? IF u want only read only make it to "MessageStyledText"
Nani
Edited by: Nani652595 on Feb 24, 2010 10:06 PM -
hi
How do we control the sorting of article attributes in a web template?
At the moment we can choose to add any of the article attributes to the report, but they are not sorted in any decent manner, which makes scrolling them to find the required attribute quite tedious.
There is no sort icon in the attribute selection screen.
Is there possibly something we can do on the backend to force them to be sorted alphabetically?
Cheers,
AndrewHi Lewis,
Attribute is the further explanation of Charateristic in the report. You can only sort based on the characteristics not based on Attribute. There is no setting in query designer or template to acheive this.
You can not even filter attribute in the query. It is only for display purpose to explain the characteristics in more detail.
Regards,
Kams -
SORTING Partner Result List with value Attributes
Hi Gurus,
I have added two value attribues in partner result list component and trying to sort the same in WEB UI, but is not working alothough I have logic in get_p and on_sort even.
Please help if anyone knows how to sort by value attributes.
Regards.Hi Ginger,
the problem is because you have no real BOL attribute for your firstname and lastname that the values are not stored.
what you need to do is sort via an internal table.
here is how we did it:
TYPES: BEGIN OF ltyp_cp_sort,
sort_key1 TYPE string,
sort_key2 TYPE string,
sort_key3 TYPE string,
bp_partner_guid TYPE bu_partner_guid,
entity TYPE REF TO cl_crm_bol_entity,
END OF ltyp_cp_sort,
ttyp_cp_sort TYPE TABLE OF ltyp_cp_sort.
DATA: lt_cp_sort TYPE ttyp_cp_sort,
lt_cp_as_sort TYPE ttyp_cp_sort,
ls_cp_sort TYPE ltyp_cp_sort,
lr_entity TYPE REF TO cl_crm_bol_entity,
lv_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
lv_value TYPE string,
lv_firstname TYPE bu_namep_f,
lv_lastname TYPE bu_namep_l.
DATA: lv_bp_partner_guid TYPE bu_partner_guid,
lv_partner TYPE bu_partner.
DATA: lv_archived TYPE bu_xdele.
FIELD-SYMBOLS:
<cp_sort> TYPE ltyp_cp_sort.
FIELD-SYMBOLS:
<lv_guid> TYPE crmt_object_guid.
DATA: ls_data_person TYPE bapibus1006_central_person,
lo_iterator TYPE REF TO if_bol_bo_col_iterator.
DATA: lv_number_cp TYPE i.
Fill up a table with the value of the sort attribute, the entity and its treenode attributes
lv_wrapper = typed_context->result->get_collection_wrapper( ).
lo_iterator = lv_wrapper->get_iterator( ).
lr_entity ?= lv_wrapper->get_first( ).
WHILE lr_entity IS BOUND.
CLEAR ls_cp_sort.
CLEAR: lv_value,
lv_firstname,
lv_lastname.
CALL METHOD lr_entity->if_bol_bo_property_access~get_property_as_value
EXPORTING
iv_attr_name = 'CONP_GUID'
IMPORTING
ev_result = lv_bp_partner_guid.
here read the firstname and lastname of the BP again in variables
CALL METHOD lr_entity->if_bol_bo_property_access~get_property_as_value
EXPORTING
iv_attr_name = 'ZFIRSTNAME'
IMPORTING
ev_result = ls_cp_sort-sort_key1.
CALL METHOD lr_entity->if_bol_bo_property_access~get_property_as_value
EXPORTING
iv_attr_name = 'ZLASTNAME'
IMPORTING
ev_result = ls_cp_sort-sort_key2.
TRANSLATE ls_cp_sort-sort_key1 TO UPPER CASE.
TRANSLATE ls_cp_sort-sort_key2 TO UPPER CASE.
ls_cp_sort-bp_partner_guid = lv_bp_partner_guid.
ls_cp_sort-entity ?= lr_entity.
INSERT ls_cp_sort INTO TABLE lt_cp_sort.
lr_entity ?= lv_wrapper->get_next( ).
ENDWHILE.
lv_wrapper->clear( ).
Now you are sorting the way the user wants to sort is, so change this code according to your needs and the users input..
SORT lt_cp_sort BY sort_key1 sort_key2.
UNASSIGN <cp_sort>.
After having sorted the list, add it back to the collection wrapper...
LOOP AT lt_cp_sort ASSIGNING <cp_sort>.
lv_wrapper->add( <cp_sort>-entity ).
ENDLOOP.
Hope this helps a bit...
KR,
Micha -
Sort dimension attributes then show folder
I have an dimension as below where i have created an folder for Spanish fields and rest attributes are non foldered.
i want to sort the dimension attributes then show the folder attributes.
ie:
Customer
Customer Key
Education
Gender
Material Status
Spanish Fields
ShanmugaRajHi Shanmuga,
Generally, all the folders will display on the above of dimension attributes, all the folders and attributes are listed in alphabetical order, we can sort one property members' sequence, but there is no build-in feature to sort all properties' sequence,
if you want to sort the properties at your will, you have to add some prefix to property's name using the letter. However, you want to display attributes first and then folders, right? I am afraid this requirement cannot be achieved.
However here I still would recommend you to submit a feedback to Microsoft Connect at this link at this link
https://connect.microsoft.com/SQLServer/Feedback This connect site is a connection point between you and Microsoft. Your feedback enables Microsoft to make software and services the best that they
can be, Microsoft might consider adding this feature in the following release after official confirmation.
Regards,
Charlie Liao
If you have any feedback on our support,
please click here.
Charlie Liao
TechNet Community Support -
Filter and Sort Transient Attribute from Query Panel
Jdev 11.1.1.3
Hello,
i am not able to filter a transient attribute from the standard query panel (with result table).
I did following things:
-Call an Initial AppMod Service Method from my Bounded Task Flow, and fill the Transient Attribute with some values (with setter method)
-Next, call the Page with following characteristics:
I defined a custom View Criteria with particular Bind Variables, take as query execution mode = In Memory and activate the Auto Query Flag
Drag and Droped this Criteria from Conroll Panel on the Page as Query Panel with Table
In Page Data Binding Definition, i set the InitialQueryOverridden Flag to true, otherwise no data will be filled in the transient attribute
The sort and filter works only for the Database Attributes.
Has anyone an Idea, how to keep same behavior for the trans attr.?
Thank You!
(Note: When i set the Query Mode (after init Call) to vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS), then the sorting of Trans Attr is working fine.
But the filtering is not working well: Lets say a filtering is done by the Trans Attribute and we get 3 Rows. But when all rows wanted to be retrieved again, only those 3 are available then, no chance to get all rows back)Hi,
assuming that sorting and filtering are similar, have a look here
sorting on transient attribute
Frank -
Input table sort for uncommited data
Hi OTN,
I have an input table on my ADF page. The table is based on a view object which has ORDER BY VALUE clause.
There is an opportunity to insert new rows and edit Value attribute of any row.
I would like the table always to be sorted by Value attribute before commiting the changes.
Input fields have autosubmit=true and I also have button which performs ADFUtils.findIterator(..).executeQuery() and refreshing the table (with addPartialTarget or table's partial trigger).
Besides I tried declarative column sorting.
By no means I succeeded to sort the table with new values without commiting data.
Is there any possibility to do this?
Thanks.
JDev 11.1.1.4Hi,
After applying this code in a managed bean System.out.println("ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES | ViewObject.QUERY_MODE_SCAN_VIEW_ROWS");
trIter.getViewObject().setQueryMode(ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES | ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
trIter.getViewObject().setSortBy("NEnd");
trIter.executeQuery();in-memory sorting really works.
But now I have a row with null NEnd first in my table. Without modifying query mode it was last just as I need.
It is now:null
10
20
30Can I bring null row back to last position?
Tried trIter.getViewObject().setSortBy("NEnd nulls last"); and trIter.getViewObject().setSortBy("deocde(NEnd, null, 9999, NEnd)"); with no success.
Edited by: ILya Cyclone on Jul 8, 2011 3:28 PM -
Sort Not working - Please help
Hello,
I have design2003 parameter. Im displaying table with following logic. Problem is it is not activating SORT icon thats comes in table header text line which sorts the column. What could be wrong? Please help.
<htmlb:tableView id = "table_prod_cat"
design = "alternating"
fillUpEmptyRows = "true"
headerText = "Category_List"
headerVisible = "true"
onRowSelection = "prod_cat_rowselection"
selectionMode = "none"
table = "<%= lt_prod_cat_list %>"
visibleRowCount = "<%= l_sprec_display %>"
width = "100%" >
<htmlb:tableViewColumns>
<%-- Product Category ID --%>
<htmlb:tableViewColumn columnName = "product_cat"
onItemClick = "prod_cat_id_itemclick"
width = "80"
sort = "X"
title = "<B>Category</>"
type = "link" />
<%-- Product Category Description --%>
<htmlb:tableViewColumn columnName = "CATEGORY_TEXT"
title = "<B> Category Text</>"
sort = "X"
width = "200" />
<htmlb:tableViewColumn columnName = "PRODUCT_GRP"
title = "<B>Product Group</>"
sort = "X"
width = "200" />
<htmlb:tableViewColumn columnName = "PRODUCT_SGRP"
title = "<B>Product Sub-Group</>"
sort = "X"
width = "200" />
</htmlb:tableViewColumns>
</htmlb:tableView>Ajay,
You should use sort = "server" or sort = "none" .
sort - Use this attribute to activate sorting for the
individual rows and to determine who is responsible for the sorting.
NONE (default, there is no sorting), SERVER (HTMLB carries out the
sorting) and APPLICATION (the application carries out the sorting) If
you specify SERVER, you should also set the attributes keyColumn and
onHeaderClick.
I have changed your code..use this code and let me know if you get any issue.
<htmlb:tableView id = "table_prod_cat"
design = "alternating"
fillUpEmptyRows = "true"
headerText = "Category_List"
headerVisible = "true"
onRowSelection = "prod_cat_rowselection"
selectionMode = "none"
<b>sort = "server"</b>
table = "<%= lt_prod_cat_list %>"
visibleRowCount = "<%= l_sprec_display %>"
width = "100%" >
<htmlb:tableViewColumns>
<%-- Product Category ID --%>
<htmlb:tableViewColumn columnName = "product_cat"
onItemClick = "prod_cat_id_itemclick"
width = "80"
<b>sort = "true"</b>
title = "<B>Category</>"
type = "link" />
<%-- Product Category Description --%>
<htmlb:tableViewColumn columnName = "CATEGORY_TEXT"
title = "<B> Category Text</>"
<b>sort = "true"</b>
width = "200" />
<htmlb:tableViewColumn columnName = "PRODUCT_GRP"
title = "<B>Product Group</>"
<b>sort = "true"</b>
width = "200" />
<htmlb:tableViewColumn columnName = "PRODUCT_SGRP"
title = "<B>Product Sub-Group</>"
<b>sort = "true"</b>
width = "200" />
</htmlb:tableViewColumns>
</htmlb:tableView>
Thanks!
Lakshmikandh<b></b>
Message was edited by:
Lakshmikandh Chinnasamy -
Hi,
I try to sort an n:m mapping.
The Toplink Workbench has an Sorting Option for
n:m mapping, but I need to sort for an attribute which
is located in the reference Table.
The QueryKey-ComboBox of the Collection Properties Tab
does not contain the Attributes of the Reference Table, it only contains the Attributes of the Target Table.
Could I set a default sorting for an n:m Mapping?The M:M mapping is intended for situations where the join table only has the foreign keys for both sides of the relationship. As soon as you add additional columns to this table it is not possible to have TopLink insert or update these values.
For this reason it is recommended to add a class to your model that is mapped to this table, which now contains application state. This will then allow you to populate the value on write and sort on the value during read.
Doug -
Sorting issue in Advance table region
Hi All,
Facing issue in sorting.
I have an advance table region , I have set the property
Sort Allowed : Yes ; Sort By View Attribute : View attribute Name
This is working for all the columns but it is failing for date columns.
Data is not getting sorted for date columns.
Output format of Date is : 09-Feb13 09:08:01
Please help.
Do let me know if any further information is required.Hi All,
Can anyone lookinto this ...
Am still waiting for an update ... -
Hi,
I want to know that what is the difference between User defined attributes and Operational Attributes.
I want to display the Operational Attributes only, then
How do I sort the operational attribute from the list when I fire a query for search?Please read RFC 4512 - LDAP Information Model for the complete details about Operational Attributes.
But in a nutshell, Operational Attributes are attributes which values are affecting the Directory Server behavior.
Operational attributes are not returned in a search unless specifically requested.
To request only operational attributes, just list the ones you're interested in and no other (and do not use the *). For example:
ldapsearch -b "dc=com" '(objectclass=*)' modifiersname modifytimestamp numsubordinates
If you want to identify the operational attributes handled by the server, you will need to read the schema (cn=schema , attributetypes) and parse it to select the ones with "USAGE directoryOperation".
Regards,
Ludovic.
Maybe you are looking for
-
Why aren't I allowed to post in the iPad Forum?
I was allowed to post in the iPhone forum but now I'm told that I'm not allowed to post in the iPad forum! What is going on here? EDIT. Disregard; I went back and tried for the 5th or 6th time and it seems to have posted. Jive software must being act
-
EEM problem with "event timer absolute time"
Hi I wanted to execute a EEM script at a certain time, 2015-05-04 03:00:00 GMT+2:00. So I used the "event timer absolute time" command. But the switch executed the script immediately. Is there something wrong with the script? Is there another way to
-
IMac will not boot, just runs apple screen with turning circle
Trying to turn iMac on, but only get the gray screen with Apple icon and turning wheel. Any advise on how to get iMac to boot?
-
Change position Contact or Home text in Flash Gallery
Perhaps I overlooked a possibillity, but I want to change the position of the Contact (or Home) text (in de upper right corner of a Lightroom Flash Gallery) to the left upper corner. Or to the center. Anyone any idea how to realise this? Thanks in ad
-
Hi guys. So I have my image gallery practically sorted. The final thing I wanted to do is when one of my thumbnails was clicked, for the screen to darken and that image enlarge into the center. I have to code to do this, but I am having difficulti