Sorting based on attributes
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
Thanks
Not currently. We're considering this for a future release.
Regards,
Jerry
null
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 -
How to sort based on my priority in Activity search view.
Hi,
In Activity Search category ddlb should show based on my priority order but its showing default based on ascending order based on alphabetical order. How can I assign the values based on my priority how can I archive this? I want to sort based on my values.
Component : BT126S_APPT
View : BT126S_APPT/ApptSQ
CN : BTQACT
Attribute : CATEGORY
can redefine get_v_category in search view please guide me.
Regards,
Jemmi.method GET_DQUERY_DEFINITIONS.
*CALL METHOD SUPER->GET_DQUERY_DEFINITIONS
RECEIVING
RT_RESULT =
Method returns value help definitions of advanced search
The method is called from the advanced search tag as a base of its operation
Take value help definitions from cache if possible
NO adjustments are done! - Take the operators as set in vrmc_dq
FIELD-SYMBOLS: <rt_result> TYPE crms_thtmlb_search_field_info.
DATA: lv_getter TYPE string,
lv_cnode TYPE REF TO cl_bsp_wd_context_node_asp,
lv_operator TYPE crm_thtmlb_search_operator.
category TYPE REF TO cl_bsp_wd_context_node_asp.
lv_cnode = me->get_dquery_cnode( ).
IF lv_cnode IS BOUND.
Delegate operation to advanced search context node
me->dquery_valuehelps = lv_cnode->get_dquery_valuehelps( ).
rt_result = me->dquery_valuehelps.
ENDIF.
LOOP AT rt_result ASSIGNING <rt_result>.
IF <RT_RESULT>-FIELD = <category>
DELETE <RT_RESULT>-DDLB_OPTIONS WHERE KEY '001' OR
KEY '003' OR
KEY '005' OR
KEY '006' OR
KEY '201' OR
KEY '401'.
ENDIF.
LOOP AT <rt_result>-operators INTO lv_operator.
CASE lv_operator.
WHEN 'NM'. "'EM' OR 'NM' OR 'SW'.
DELETE <rt_result>-operators INDEX sy-tabix.
WHEN 'EQ'.
IF sy-tabix > 1.
DELETE <rt_result>-operators INDEX sy-tabix.
INSERT 'EQ' INTO <rt_result>-operators INDEX 1.
ENDIF.
ENDCASE.
ENDLOOP.
CONCATENATE 'GET_V_' <rt_result>-field INTO lv_getter.
TRANSLATE lv_getter TO UPPER CASE. "#EC SYNTCHAR
TRY.
CALL METHOD me->(lv_getter)
CHANGING
cs_result = <rt_result>.
CATCH cx_sy_dyn_call_illegal_method.
no V-Getter found
ENDTRY.
ENDLOOP.
ENDMETHOD.
it's showing error Field "<CATEGORY>" is unknown. It is not contained in one of the specified tables nor is it defined by a "DATA" statement. "DATA" statement. -
Sorting based on a specific value in Columns
Hi All,
Crystal 2008 version I have. And we are connecting to BW queries as source.
In a crosstab, I want to sort my row values based on a column value.
For example, in rows I have an element with three values . In column I have only one element(month), with couple of month values. My requirement is to sort rows based on a specific month (Mar'09 for example).
.....................Jan'09......Feb'09.....Mar'09
ABC...............10.............323...........33....
XYZ...............32..............33............11....
FGH...............5................34.............55...
But when I try to sort based on the Month, I can not select a specific value(mar'09). And it sorts based on the total value (sum of all months).
How can I achieve this problem?
Thanks
OzanFor {Sort Value}, if you wanted to sort on the Jan column, then substitute the field name that your example shows as 10 in row ABC. For {row value}, substitute the field name that is used in the first column (ABC in the example).
In other words, take the value that you want to sort on, and put it in front of the value currently displaying as the row header. Then, sort on the results.
The purpose of the "000000000.00" is to make the length of the number, when converted to string, a consistent size. This is needed (a) so you know how many characters to strip off when displaying the row value, and (b) so the records don't sort as 1, 12, 2, 234, 235423, 25, 3, ...
HTH,
Carl -
F110- Check Sort Based on document number
Hi All,
We are using the program RFFOUS_C to print check when we are doing the payment run F110.
Presently, checks are sorted as per vendor name (Name 1) while printing. We need to print check sorted based on document (Invoice) number, field BELNR. SO, that checks are printed in the same order as we have entered invoices.
But the field BELNR field for sorting is not available in the application REGUH (Correspondence), which is a natural way to check print sorting. (In customizing FBZP, "Payment method in Company Code" form data, Sorting of corrpondence)
Is there a way, we can sort check based on the invoice number (BELNR). .
Thanks
Ron
Edited by: Ron on Jan 7, 2010 1:34 PMHey Ron,
In Free Selection tab on F110 tcode, Pick Field name as BKPF-BELNR (Document number). Now create the proposal and do the payment run.
Thanks
Raghuram -
Filter master rows based on attributes in detail view.
Hi,
How do I set up VO's so that I can:
1. filter master records based on attribute values in either the detail or master attribute values.
and
2. display each distinct master record with all its associated detail records.
Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
TIA, for ideas or guidance.Hi,
How do I set up VO's so that I can:
1. filter master records based on attribute values in either the detail or master attribute values.
and
2. display each distinct master record with all its associated detail records.
Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
TIA, for ideas or guidance. -
Sorting based on two columns in report
Hi,
we have one issue on sorting based on two columns in report.
In the report we are doing sorting on two columns(week_id and stage_name). I have attached the screen shot for the same. The sorting is first done on the week_id and then on the stage_name. The issue comes when we have no data for the stage 1 - Prospect in W1. The stage goes to the second position.
Please suggest if there is any work around to show the 1 - Prospect stage in W1.
Regards,
Ambika Nanda.what is w1? where is screenshot? and is stage seoncd sort? if so what is the issue?
-
I would like to create KPI's based on attributes dimension.Making a singe example based on the SAMPLE db, the formula should look like this:KPI1 = Profit->True;"KPI1" & "Profit" are Accounts."True" is a member of the attribute dimension Cafeinated linked to the Product dimension.I would appreciate it if you could give me an idea or a workaround.Jana
ok, you want:KPI1 = Profit->True; You could try something like:Fix(@withattr(Caffeinated,"==",True))KPI1=Profit;EndfixYou could also fix using the @attribute.
-
XSD Validation based on attribute type value
Hi,
Can any one tell me how to validate xml element value based on attribute value.
Ex:-
my xml has the elements like this.
<channel>
<meta type="VideoTitle">Harding Park Golf Club</meta>
<meta type="ReleaseDate">Wed, 03 Jan 2018 15:00:00 GMT</meta> </channel> I want to validate the xml based on meta type value using xsd. For "VideoTitle" i would like check for String type and for ReleaseDate" i want to check for date format. Thanks, RajTry the below statement in “Competitor Lost To” picklist (IndexedPick2)
IIf (([<ReasonWonLost>] = 'Lost to Competition' AND [<IndexedPick2>] IS NULL), N, [<IndexedPick2>])
after you enter this do sign out and then sign in, then check
PS: You need not change it to lookupvalue, the above statement will work as it is -
URGENT - Does Select Query Sort based on RowId ?
Does Select Query Sort based on RowId ?
Eg: Select * from Employee;
RowId primkey name
aaaa 1 kiran
aaab 2 kumar
aaac 3 someone
Now when i delete the primkey: 2 row.
I will have:
RowId primkey name
aaaa 1 kiran
aaac 3 someone
Now when i insert a new record:
RowId primkey name
aaaa 1 kiran
aaac 3 someone
[Comment: Here the rowid can either be a new one like 'aaad' or 'aaab' is also reused.]
aaad 4 somename
My requirement is that the 'aaab' should not be reused.
Can any one pls suggest some way.Dear Friend,
Plese gothrougth once following steps... (One by One)
Hope you can understand how Rowid Creating and Updting in you table.
SQL> select rowid,enumber from t;
ROWID ENUMBER
AAAJ4oAABAAAWlyAAA 1
AAAJ4oAABAAAWlyAAB 2
AAAJ4oAABAAAWlyAAC 3
AAAJ4oAABAAAWlyAAD 4
SQL> select rowid,enumber from t where enumber = 2;
1 row deleted.
SQL> insert into t values(9):
1 row created.
SQL> select rowid,enumber from t;
ROWID ENUMBER
AAAJ4oAABAAAWlyAAA 1
AAAJ4oAABAAAWlyAAC 3
AAAJ4oAABAAAWlyAAD 4
AAAJ4oAABAAAWlyAAE 9
SQL> delete from t where enumber = 3;
1 row deleted.
SQL> insert into t values(3);
1 row created.
SQL> select rowid,enumber from t;
ROWID ENUMBER
AAAJ4oAABAAAWlyAAA 1
AAAJ4oAABAAAWlyAAB 3
AAAJ4oAABAAAWlyAAD 4
AAAJ4oAABAAAWlyAAE 9
Regards,
G V Sreenivasulu -
Table Sorting based on Column Selection
Dear All,
I am using an AbstractTableModel. I would like to implement the sorting based on Column selection. Could anyone help me in this please.
Thanks in advance,
Regards
Irfaancheck this
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.UIManager;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumnModel;
import java.awt.Component;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Hashtable;
public class TableSorter extends JPanel
private boolean DEBUG = false;
private Object[] columnNames = { "First Name", "Last Name", "Sport", "# of Years",
"Vegetarian"};
private Object[][] data = { { "Mary", "Campione", "Snowboarding", 1, 2 },
{ "Alison", "Huml", "Rowing", 3, 4 }, { "Kathy", "Walrath", "Knitting", 5, 9 },
{ "Sharon", "Zakhour", "Speed reading", 6, 10 }, { "Philip", "Milne", "Pool", 7, 11 },
{ "Isaac", "Rabinovitch", "Nitpicking", 8, 12 }, };
private SortFilterModel m_modSortFilterModel;
private TableColumnModel m_modColumnModel;
private TableHeaderRenderer m_btnSorterRenderer;
protected boolean m_bAbCOC = true;
JTable table = new JTable();
public TableSorter()
super(new GridLayout(1, 0));
m_modSortFilterModel = new SortFilterModel();
m_modSortFilterModel.addMouseListener(table);
table.setModel(m_modSortFilterModel);
m_btnSorterRenderer = new TableHeaderRenderer();
m_modColumnModel = table.getColumnModel();
for (int i = 0; i < columnNames.length; i++)
m_modColumnModel.getColumn(i).setHeaderRenderer(m_btnSorterRenderer);
JScrollPane scrollPane = new JScrollPane(table);
add(scrollPane);
private class SortFilterModel extends AbstractTableModel
int[] indexes;
ATSTableSorter sorter;
public String[] tableHeadersArray;
boolean isAscent = true;
public void addMouseListener(final JTable table)
table.getTableHeader().addMouseListener(new MouseAdapter()
public void mouseClicked(MouseEvent event)
int tableColumn = table.columnAtPoint(event.getPoint());
m_btnSorterRenderer.setPressedColumn(tableColumn);
m_btnSorterRenderer.setSelectedColumn(tableColumn);
if (TableHeaderRenderer.DOWN == m_btnSorterRenderer.getState(tableColumn))
isAscent = true;
else
isAscent = false;
// translate to table model index and sort
int modelColumn = table.convertColumnIndexToModel(tableColumn);
sortByColumn(modelColumn, isAscent);
public Object getValueAt(int row, int col)
int rowIndex = row;
if (indexes != null)
rowIndex = indexes[row];
return data[rowIndex][col];
public void setValueAt(Object value, int row, int col)
int rowIndex = row;
if (indexes != null)
rowIndex = indexes[row];
super.setValueAt(value, rowIndex, col);
public void sortByColumn(int column, boolean isAscent)
if (sorter == null)
sorter = new ATSTableSorter(this);
sorter.sort(column, isAscent);
fireTableDataChanged();
public int[] getIndexes()
int n = getRowCount();
if (indexes != null)
if (indexes.length == n)
return indexes;
indexes = new int[n];
for (int i = 0; i < n; i++)
indexes[i] = i;
return indexes;
public int getRowCount()
return data.length;
public String getColumnName(int c)
return columnNames[c].toString();
public int getColumnCount()
return columnNames.length;
public Class getColumnClass(int col)
switch (col)
case 0:
return String.class;
case 1:
return String.class;
case 2:
return String.class;
case 3:
return Integer.class;
case 4:
return Integer.class;
default:
return Object.class;
class ATSTableSorter
SortFilterModel model;
public ATSTableSorter(SortFilterModel model)
this.model = model;
public void sort(int column, boolean isAscent)
int n = model.getRowCount();
int[] indexes = model.getIndexes();
for (int i = 0; i < n - 1; i++)
int k = i;
for (int j = i + 1; j < n; j++)
if (isAscent)
if (compare(column, j, k) < 0)
k = j;
else
if (compare(column, j, k) > 0)
k = j;
int tmp = indexes;
indexes[i] = indexes[k];
indexes[k] = tmp;
public int compare(int column, int row1, int row2)
Object o1 = model.getValueAt(row1, column);
Object o2 = model.getValueAt(row2, column);
if (o1 == null && o2 == null)
return 0;
else if (o1 == null)
return -1;
else if (o2 == null)
return 1;
else
Class type = model.getColumnClass(column);
if (type.getSuperclass() == Number.class)
return compare((Number) o1, (Number) o2);
else if (type == String.class)
return ((String) o1).compareTo((String) o2);
else
return ((String) o1).compareTo((String) o2);
public int compare(Number o1, Number o2)
double n1 = o1.doubleValue();
double n2 = o2.doubleValue();
if (n1 < n2)
return -1;
else if (n1 > n2)
return 1;
else
return 0;
class TableHeaderRenderer extends JButton implements TableCellRenderer
public static final int NONE = 0;
public static final int DOWN = 1;
public static final int UP = 2;
int pushedColumn;
Hashtable state;
public TableHeaderRenderer()
pushedColumn = -1;
state = new Hashtable();
setMargin(new Insets(0, 0, 0, 0));
setHorizontalTextPosition(LEFT);
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus,
int row, int column)
setText((value == null) ? "" : value.toString());
setBorder(UIManager.getBorder("TableHeader.cellBorder"));
boolean isPressed = (column == pushedColumn);
getModel().setPressed(isPressed);
getModel().setArmed(isPressed);
return this;
public void setPressedColumn(int col)
pushedColumn = col;
public void setSelectedColumn(int col)
if (col < 0)
return;
Integer value = null;
Object obj = state.get(new Integer(col));
if (obj == null)
value = new Integer(DOWN);
else
if (((Integer) obj).intValue() == DOWN)
value = new Integer(UP);
else
value = new Integer(DOWN);
state.clear();
state.put(new Integer(col), value);
public int getState(int col)
int retValue;
Object obj = state.get(new Integer(col));
if (obj == null)
retValue = NONE;
else
if (((Integer) obj).intValue() == DOWN)
retValue = DOWN;
else
retValue = UP;
return retValue;
private static void createAndShowGUI()
JFrame frame = new JFrame("TableDemo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
TableSorter newContentPane = new TableSorter();
newContentPane.setOpaque(true); // content panes must be opaque
frame.setContentPane(newContentPane);
frame.pack();
frame.setVisible(true);
public static void main(String[] args)
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
createAndShowGUI(); -
How to Select Members Based on Attributes using Excel VBA
Hi there,Does anyone know how to select members based on attributes using Excel VBA?I don't seem to be able to find macros or functions to do that.Panda
you can use the Range or the Cells objects to get a reference to your range values
in this sample the data is on A1 to B5
Dim lineList(4)
lineList(0) = Array(Cells(1, 1).Value, Cells(1, 2).Value)
lineList(1) = Array(Cells(2, 1).Value, Cells(2, 2).Value)
lineList(2) = Array(Cells(3, 1).Value, Cells(3, 2).Value)
lineList(3) = Array(Cells(4, 1).Value, Cells(4, 2).Value)
lineList(4) = Array(Cells(5, 1).Value, Cells(5, 2).Value) -
Restrictions based on attribute
Hi,
Is it possible to do restrictions based on attributes?
Procurement Type is an attribute of Material Plant View.
I need to restrict Procurement Type to 'F'.
How do i do this?
Thanks,
Arun KKArun,
You can do this if it is Navigational Attribute.
If it is not, make it Navigational.
--> Open that object in change mode > Uncheck the ATTRIBUTE OnLY check box and Activate again
-->Open ur Infocube Navigational Attribute Tab > Check this Nav attr > activate the Cube
--> Open your Query > Drag this Nav Attribute > Restrict.
Regards,
Ramkumar. -
Is it possible to regroup data based on attribute value of a tag?
is it possible to regroup data based on attribute value of a tag?
Hi Rajeev,
You can filter records during import if one of the Matching field is of type Lookup.
In your case if you create City as flat lookup table in MDM & maintain lookup values in DM(Just as an example), then you can import only records where city is HYD.
Map Name & City, Then in Match Records tab select both the fields (Combination)
then right click on it & select Filter.. option.
Now new pop up will open where you be able to see ur Lookup table values, from there select HYD and Add
Now in default Import Action, set Create Action for None/None (All other will be skip)
This way you will import only HYD records.
But this is possible only on Lookup fields & not foe Text fields
Hope this will help you
Thanks & Regards,
Mahi -
Invoke different Summary Screen based on attribute value
Hi Experts,
I have a requirement to show different OPA landing summary page based on attribute value received from Siebel application. Is that possible?
For e.g.: Create 2 summary screen
Siebel field value opa_attr1 = A or B, if A I want to display summary screen 1 otherwise display summary screen 2.
Thanks,
VinayThanks you for your reply. The link is not what I want. My case is that I already have a map stored in Oracle database under obiee_navteq schema. I want to use OBIEE to display map by adding different image/icon at different cities based on the value of an attribute column. All the examples I can find is to use measure column as an condition, not by attribute column.
Thanks
Maybe you are looking for
-
How to find expired backup?
Dear All, how to find expired RMAN backup? how it got expired?(according to which concept) expired RMAN backup not used to restore? If catalog database is their we need to register and then take backup?(is must?) sorry for easy questions..but i'm in
-
Forgot to attach documents on purchase
Hi. I forgot to attach documents on purchase of my MacBook Air 2012 according to the Up To Date program here http://www.apple.com/ru/osx/uptodate/. Whether it is possible to send the photo of checks for receiving a free copy of OS X ML?
-
Can I change the default paper type for a printer?
I have a client that prints off a lot of paperwork from an insurance company. They have barcodes that go pretty much to the end of the page that are nessesary for fileing. The default print setup cuts off the barcode and a few code numbers. If I manu
-
10g on Leopard (10.5.2, not leopard)
Hi, Does anyone have step by step instructions for installing Oracle 10g specifically on Mac OS X Leopard, not server. I've tried instructions for 10.4 and lower, which seem to require a deprecated command "nicl" not available in 10.5.2. Thanks, John
-
What is a new line, really?
Continuing my voyage into Java's I/O space... Okay, this might sound like a really stupid question, but I'm all new to programming. :) But what is a new line, really!? I ask since I've gotten the impression that there is more than one "kind" of new l