Sorting based on string datatype
hi
In one of the BIP sample rtf i found "<?sort:END_T;'ascending';data-type='number'?>" which sorts END_T which is of number data type in ascending order
i have set of values like
<BALANCES>
<CONSUMPTION>50</CONSUMPTION>
<NAME>Free SMS</NAME>
</BALANCES>
<BALANCES>
<CONSUMPTION>10</CONSUMPTION>
<NAME>Data Usage</NAME>
</BALANCES>
<BALANCES>
<CONSUMPTION>80</CONSUMPTION>
<NAME>Free MMS</NAME>
</BALANCES>
the BALANCES array should be sorted by content in the field NAME
ex : CONSUPTION detail of SMS should appear first, then MMS,then Data
how this can be achieved.
thanks in advance
Edited by: 842344 on Mar 7, 2011 4:56 AM
It is not possible to sort it in the order you want unless you provide an index or have it presorted.
Each of them requires that you do that task at yourd db level.
Otherwise, as alternative (not the best) if you are 100% sure the order your rows come always in
this way:
Free SMS
Data Usage
Free MMS
Then a simple for-each would do the work as your data comes in the way you want to print it.
regards
Jorge
Similar Messages
-
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 -
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. -
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(); -
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 -
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 -
Cannot convert between unicode and non-unicode string datatypes
My source is having 3 fields :
ItemCode nvarchar(50)
DivisionCode nvarchar(50)
Salesplan (float)
My destination is :
ItemCode nvarchar(50)
DivisionCode nvarchar(50)
Salesplan (float)
But still I am getting this error :
Column ItemCode cannot convert between unicode and non-unicode string datatypes.
As I am new to SSIS , please show me step by step.
Thanks In Advance.My source is having 3 fields :
ItemCode nvarchar(50)
DivisionCode nvarchar(50)
Salesplan (float)
My destination is :
ItemCode nvarchar(50)
DivisionCode nvarchar(50)
Salesplan (float)
But still I am getting this error :
Column ItemCode cannot convert between unicode and non-unicode string datatypes.
As I am new to SSIS , please show me step by step.
Thanks In Advance.
HI Subu ,
there is some information gap , what is your source ? are there any transformation in between ?
If its SQL server source and destination and the datatype is as you have mentioned I dont think you should be getting such errors ... to be sure check advance properties of your source and check metada of your source columns
just check simple oledb source as
SELECT TOP 1 ItemCode = cast('111' as nvarchar(50)),DivisionCode = cast('222' AS nvarchar(50)), Salesplan = cast(3.3 As float) FROM sys.sysobjects
and destination as you mentioned ... it should work ...
somewher in your package the source columns metadata is not right .. and you need to convert it or fix the source.
Hope that helps
-- Kunal
Hope that helps ... Kunal -
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?
-
Sorting randomly genareted string in alphapetic order
import java.util.*;
public class test {
public static char[] chars;
public static Random random;
static {
chars = new char[26];//taking caracters from asci table
for (int i = 0; i < 26; i ++) {
chars[i] = (char) (97 + i);
random = new Random ();
public static void main (String[] args) { //printing random characters
for (int i = 1; i <= 10; i++ ) {
System.out.println(randomString(20));
private static String randomString (int length) { //generating random
char[] array = new char[length];
for (int i = 0; i < length; i ++) {
array[i] = chars[random.nextInt (chars.length)];
return new String (array);
i have this code.i found that in the forums and modified it a bit.but i have still problems to sort randomly genareted strings in alphabetic order.i have a method to do it.but i couldn't implement it correctly.the way that i try to sort them is
void sort(String[] a) {
for (int i=0; i<a.length-1; i++) {
for (int j=i+1; j<a.length; j++) {
if (a.compareTo(a[j]) > 0) {
String temp=a[j];
a[j]=a[i];
a[i]=temp;
thats a method i try to use but i couldn't put it in a correct place in the code and couldn't call him.always it gives error.pls help this unexprienced java user...Hard to understand your problems, because you're too vague. At one point you mention you don't know where to put your method, at another you say you don't know how to call your method. If that is the case (which seems unlikely but oh well) here's an example.
public class Testing9 {
public Testing9() { // constructor
String basicString = "BasicExample";
String sortedString = mySortMethod(basicString); // call mySortMethod passing the string
System.out.println("sortedString = " + sortedString);
public static void main(String[] args) { // main method starts app
Testing9 app = new Testing9(); // calls constructor
public String mySortMethod(String s) { // put the method here cause I feel like it
String sortedString = "";
// do your own work here to sort, etc....
return sortedString;
} -
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 -
How to do a TopN Sort based on a formula
Hi all,
My report has two groups, Store and Department. In the details section are multiple jobs per store with costs. These are subtotalled by Store and Department. I want to compare total spend for each store with the store budget and produce a list of the Top 10 stores based on the percentage actual spend/budget.
My problem is I can only do a Top 10 sort on a summary field and I cannot summarise the percentage field as this is a formula which doesn't seem to allow summaries.
Any help much appreciated.
Cheers,
JDJan,
Here are a couple of options.
1) Do the calcuations on the database (thru either a stored proc or command object).
2) Insert a crosstab where the rows are based on the Store and the summarized field is based on the formula that outputs the percentage of the actual vs budget as a Maximum. You can then do a TopN sort on the crosstab
Edited by: Graham Cunningham on Oct 10, 2008 8:27 AM -
Sorting and Searching String (Please help me)
Hi, Could somn please be of any help here. I am trying to sort this string in alphabetical order and then search for data available but I am not makingprogress with the code. Does anyone have any advise or better still the code to solve this problem... This is hat I have at the moment
import java.util.*;
import java.io.PrintStream;
import java.io.File;
import java.io.FileNotFoundException;
public class coursework2
public static final int MAX_RECORDS = 20;
public static String lastName[] = new String[MAX_RECORDS];
public static String firstName[] = new String[MAX_RECORDS];
public static String telNumber[] = new String[MAX_RECORDS];
public static String emailAddress[] = new String[MAX_RECORDS];
public static int read_in_file(String file_name)
Scanner read_in;
Scanner line;
int record_count = 0;
String record;
try
read_in = new Scanner(new File(file_name));
// read in one line at a time
read_in.useDelimiter(System.getProperty("line.separator"));
while (read_in.hasNext())
// Test to see if there are too many records in the file
if (record_count == MAX_RECORDS)
System.out.printf("Only %d records allowed in file", MAX_RECORDS);
System.exit(0);
// read in record
record = new String(read_in.next());
// Split the record up into its fields and store in
// appropriate arrays
line = new Scanner(record);
line.useDelimiter("\\s*,,\\s*");
lastName[record_count] = line.next();
firstName[record_count] = line.next();
telNumber[record_count] = line.next();
emailAddress[record_count] = line.next();
// Increment record count
record_count++;
catch (FileNotFoundException e)
e.printStackTrace();
return record_count;
public static void write_out_file(int no_of_records, String filename)
PrintStream write_out;
int counter;
try
// Create new file
write_out = new PrintStream(new File(filename));
// Output all reacords
for(counter = 0; counter < no_of_records; counter++)
// Output a record
write_out.print(lastName[counter]);
write_out.print(",,");
write_out.print(firstName[counter]);
write_out.print(",,");
write_out.print(telNumber[counter]);
write_out.print(",,");
write_out.println(emailAddress[counter]);
// Close file
write_out.close();
catch (FileNotFoundException e)
e.printStackTrace();
// Your 'functions' go here
//This code sorts out the record after loaded into alphabetical order using
//the selection sort method
public static void sort()
// Your 'main' code goes here
//The code below uses a binary search method to search for record because
//record have been sorted and this would make search faster and more efficient
public static boolean linearSearch(String strFirstName, String strLastName)
//Set-up data_input and declare variables
//This linear search searches for record in the contact application.
//Search for a record using surname only
int i = 0;
boolean found = false;
while (!found && i < lastName.length)
if(strFirstName.equals("") && strLastName.equals(""))
return true;
if(lastName.equalsIgnoreCase(strLastName)){
//List records from surname only
System.out.println("Enter your search criteria (last name only):");
System.out.print(lastName[i] + "\t" + firstName[i] + "\t" + telNumber[i] +"\t" + emailAddress[i]);
System.out.println("");
if (lastName[i].compareTo(strLastName) == 0)
//Compare the last name values and type to make sure they are same.
found = true;
i++;
System.out.print(lastName[i] + "\t" + firstName[i] + "\t" + telNumber[i] +"\t" + emailAddress[i]);
System.out.println("");
return found;
//Search for a record using first name only
public static void main(String[] args)
// Set-up data input
Scanner data_input = new Scanner(System.in);
// Declare Variables
int number_of_records;
String filename;
int counter;
// Get filename and read in file
System.out.print("Enter the masterfile file name: ");
filename = data_input.next();
number_of_records = read_in_file("data2.dat");
//Get new filename and write out the file
System.out.print("Enter new masterfile file name: ");
filename = data_input.next();
//System.out.println("Enter your search criteria (first or last name):");
linearSearch("*", "");
Am very sorry this is long, the file should be sorted after it is loaded and I have that, You can make up some data with last ane, first name, tel and email to show me an example. Thanks alot
JosephHi Monica, Thanks for you patience with me.
I have tried writing a selection sort method but am having some errors. Could you kindly have a lookand correct me please.
This is the code i wrote
public static void selectionSort(Comparable [] data)
String strFirstName;
String strLastName;
Comparable temp;
for(int i = 0; i < lastName.length; i++)
lastName = index;
for (int j = i; j < lastName.length; j++)
if (lastName[j].compareTo(lastName) < 0)
lastName[j] = lastName[i];
//Swap the string values
temp = lastName[j];
lastName[j] = lastName[i];
lastName[i] = temp;
As you requested, below are 4 error messages I had
E:\coursework2.java:101: cannot find symbol
symbol : variable index
location: class coursework2
lastName = index;
^
E:\coursework2.java:107: cannot find symbol
symbol : variable j
location: class coursework2
temp = lastName[j];
^
E:\coursework2.java:108: cannot find symbol
symbol : variable j
location: class coursework2
lastName[j] = lastName[i];
^
E:\coursework2.java:109: incompatible types
found : java.lang.Comparable
required: java.lang.String
lastName[i] = temp;
^
4 errors
JCompiler done.
JCompiler ready.
Joseph -
Content Items Sorting based on picklist property fails
Content Server 6.0
We have developed a custom presentation template to display a list of all the work items. While displaying the work items, I would like to sort them based on a property and then filter them based on another property. I have a template code similar to below:
<pcs:foreach var="item" expr="filter(sort(sort(index.folder, 'item.pcs_id', true), 'item.application', true), '(filtered.workflow_status != "Completed")')">
The content item has two properties: application - a picklist, and workflow_status - a picklist.
The above code template does not return any results. However if I change the expression so that I am sorting by a text property, then it displays the results correctly.
For e.g,
<pcs:foreach var="item" expr="filter(sort(sort(index.folder, 'item.pcs_id', true), 'item.name', true), '(filtered.workflow_status != "Completed")')">
(name is a text property of the content item).
Is there another way of accesing a picklist property in sort function to retrieve the desired results? Can somebody point out what am I doing wrong?
Thanks for your help in advance.
Thanks
Jignesh.Not currently. We're considering this for a future release.
Regards,
Jerry
null -
Sorting based on non-base table columns
I have a form block based on X table. There are also some columns from Y table in the same block and the tables X and Y are joined through the appropriate columns. I want to sort the queried record in the block ( based on table X ) based on two columns that are present in the Y table. How do I do this? Any help would be highly appreciated. Ofcourse! we can create a view and achieve that. But I don't want to create a view. Also I can use select statement in the order by column. But it works if I select one column. But when I select two columns it says too many value. Any solutions
why dont u create a function
and sort by the returning values ? -
CSS Troubleshooting "advanced-balance url" based on string-range
Hi together,
a questions for troubleshooting "string range stickyness".
I configured a content rule:
content L5_HTTP_81
vip address 192.168.1.1
balance aca
no persistent
protocol tcp
port 81
url "/*"
advanced-balance url
add service service1 weight 1
add service service2 weight 1
string range 30 to 255
string eos-char "_"
string prefix "shopId="
active
service service1
ip address 10.1.128.23
keepalive maxfailure 2
protocol tcp
redundant-index 2102
keepalive frequency 15
keepalive retryperiod 10
keepalive type http
keepalive port 80
keepalive method get
keepalive uri "/admin/Ping.simple"
string 148.49
port 80
active
service service2
ip address 10.1.128.22
keepalive maxfailure 2
protocol tcp
redundant-index 2101
keepalive type http
keepalive method get
keepalive frequency 15
keepalive retryperiod 10
keepalive port 80
keepalive uri "/admin/Ping.simple"
string 148.48
port 80
active
1. I take a string from the 30rd to 255 character out of the URL starting at "/".
2. Now I search for a string between "shop_Id=" and "_", on which the stickyness is based.
3. string "148.49" is allocated to service1, string "148.48" is allocated to service2.
Is there any possibillity to view or debug the handling, how the string is matched in the http request and on which service the request is forwarded ?
thanks in advance
saschaHere is the command reference. take a look at the available commands.
http://www.cisco.com/univercd/cc/td/doc/product/webscale/css/css_710/cmdrefgd/index.htm
Maybe you are looking for
-
Showing Oracle 10g reports in Dashboard?
Configuration: Oracle Business Intelligence Release 10.1.3.4 on Windows 2003 EE R2 Oracle 10gR1 on Windows 2003 EE R2 Problem: We have to show Oracle Reports 10i in Oracle Busines Publisher. Resolving failure: Conversion of current reports to "xdo" a
-
While applying the patch 11i FND.H the installation coudln't be completed. Actually there is two workers failed because it didn't find the FNDLOADSO.exe. Can someone send this file "FNDLOADSO.exe" ..... Please it's urgent....
-
Where is shown my phone number on my Z30 display .... sim card ?
I use to see my phone number in the Setting /security & privacy / SIM CARD.... and now I can't see it anymore on my Z30 / BB 10.2.1.3062. Why but How can I have my phone number back on the display ?
-
Include parameter under from clause query
Hi all, please help me to solve this query as i wanted to put in under query data source name - from clause query. select capexpgrp.deptgrp, sum(capexpdmv.cbbuam) cbbuam, sum(capexpdmv.cbacam) cbacam, sum(capexpdmv.cbunam) cbunam, sum(capexpdmv.cbbua
-
Troubble with system preferences applescript!
I am writing a script to turn on internet sharing from ethernet to airport... Yet I dont know the names of the menu and check boxes i need. Go into sharing in system preferences and follow along with the script.. How do i get it to do what I want it