How to sort/index table in tabular frame ?
Hi all,
I got one table list in tabular frame. I need to sor/ order the display of the records when the frame is being displayed. How am I go to do this ?
Thanks.
Rgds
Lim
i think so: in the block propertys you must work with the property ORDER BY CLAUSE and there put your items of order, if that is the case.
Similar Messages
-
How to sort internal tables of unknown structure?
Hello
Itab is an internal table of unknown structure with field F1 and many other.
How to sort this table by field F1 is the structure is unknown?
SORT ITAB by F1 ascending.
ThanksHello,
Which version of SAP are you using?
As of Release 701, you can specify the fields dynamically by specifying the fields in an internal table of type ABAP_SORTORDER_TAB. Further read can be found here: [SORT by (otab)|http://help.sap.com/abapdocu_702/en/abapsort_itab.htm#!ABAP_ADDITION_5@5@].
For prior releases you can try something like this:
SORT itab BY ('F1') ('F2) ... ('Fn')
Hope this helps.
BR,
Suhas -
Hi
How to sort internal by binary search...please don't suggest SORT TABLE or HASHED table to use...hi,
Use SORT Statement....
i.e,
sort itab.
Here is the code
TYPES: BEGIN OF PERSON_TYPE,
NAME(10) TYPE C,
AGE TYPE I,
COUNTRY(3) TYPE C,
END OF PERSON_TYPE.
DATA: PERSON TYPE STANDARD TABLE OF PERSON_TYPE WITH
NON-UNIQUE DEFAULT KEY INITIAL SIZE 5,
WA_PERSON TYPE PERSON_TYPE.
WA_PERSON-NAME = 'Muller'. WA_PERSON-AGE = 22.
WA_PERSON-COUNTRY = 'USA'.
APPEND WA_PERSON TO PERSON.
WA_PERSON-NAME = 'Moller'. WA_PERSON-AGE = 25.
WA_PERSON-COUNTRY = 'FRG'.
APPEND WA_PERSON TO PERSON.
WA_PERSON-NAME = 'Möller'. WA_PERSON-AGE = 22.
WA_PERSON-COUNTRY = 'USA'.
APPEND WA_PERSON TO PERSON.
WA_PERSON-NAME = 'Miller'. WA_PERSON-AGE = 23.
WA_PERSON-COUNTRY = 'USA'.
APPEND WA_PERSON TO PERSON.
SORT PERSON.
SORT PERSON BY NAME AS TEXT
SORT PERSON DESCENDING BY COUNTRY AGE NAME.
SORT PERSON DESCENDING BY AGE ASCENDING NAME AS TEXT.
Reward if it helps,
Regards,
Santosh -
How To Sort the Table Through Push Buttons (ASC & Desc)???
Hi,
I am facing a problem with regard to 'Push Buttons' that I have created on
my Form. I want the 'Push Button' to sort the table with respect to a
specific column in 'Ascending order' on first push and then in 'Descending
order' on second push and then again in 'Ascending order' on third push and so
on...
please help me to achieve this
regards,
.Hello,
You could try something like this:
Declare
LC$Order Varchar2(128) := Get_Block_Property( 'EMP', ORDER_BY ) ;
Begin
If Instr( LC$Order, 'DESC' ) > 1 Then
Set_Block_Property( 'EMP', ORDER_BY, 'EMPNO ASC' ) ;
Else
Set_Block_Property( 'EMP', ORDER_BY, 'EMPNO DESC' ) ;
End if ;
Execute_Query ;
End ; Francois -
How to sort/filter tables and lists like in Excel?
Hi.
I used to keep track of my expenses in Excel and had a nice table or list (I forget what it's officially called) with a header row where when I clicked on the header of a particular column it would let me sort and filter- for example, I have a column called "category" and I could click on the header for that column and select a filter so that I only saw travel expenses and then the sum below would only reflect how much I spent on travel. I could also click on the "date" column header and "sort ascending" to put everything in chronological order. That was awesome.
I got a new mac and thought I could keep updating and using this file in Numbers and wouldn't have to buy MS Office. But when I opened the file and saved it as a numbers file, I find that I've lost the ability to sort or filter. The cell at the bottom that has the SUM still works but the header row does nothing. I've seen some other threads about this but I don't really understand them so please forgive me if this is repetitive. Someone suggested hovering the cursor over a column header and a triangle pops up- that is not happening- I think that's in an old version of Numbers. How can I do those things I listed above- sort and filter my entire table? Right now I can only see the total sum of everything in the table but I often need to just add up one category of expenses.
I don't really know all the math stuff, like formulas. My brain has trouble following that stuff. It was so simple in Excel. Is there anyway to get my header row back to how it was in Excel? If not, if you are able to guide me through some more complicated way to do it I would really appreciate it and I hope I can follow it.
Thank you for your time.
-RebsI want to understand how to make the sum cell only show the total of visible rows...
I don't think you can do that directly. SUM will include hidden rows. But you can use SUMIF and SUMIFS.
An example using SUMIF:
An example using SUMIFS:
Instead of putting SUMIF and SUMIFS in a separate summary table, you could also put them in Footer Rows of your data table.
SG -
How to put a table inside a frame in html
Hi, I have a html table as follows:
<TABLE BORDER=2><TR><TD>No</TD><TD>Name</TD><TD>Age</TD></TR><TR><TD>1</TD><TD>John</TD><TD>30</TD></TR><TR><TD>2</TD><TD>Michael</TD><TD>20</TD></TR></TABLE>
I want to put it inside a html frame in order to have the scroll bar with the table.
Is there a way to do it in html?
Thanks.Put the table inside of a div tag with a set width and height, borders, and overflow set to scroll:
<html>
<head>
<style>
.tableDiv {
width: 140px;
height: 200px;
overflow: scroll;
border: 3px outset;
.no {
width: 20px;
.name {
width: 50px;
.age {
width: 30px;
</style>
</head>
<body>
<div class="tableDiv">
<table border="2">
<thead>
<TR><TH class="no">No</TH><TH class="name">Name</TH><TH class="age">Age</TH></TR>
</thead>
<tbody>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
<TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
</tbody>
</table>
</div>
</body>
</html> -
Sorting a table in numbers for iPad
Hello,
can anyone help me figure out how to sort a table, such as a league table sorted by points?
ThanksGenerally, you are more likely to get an answer if you post in the iWork for iOS forum at
https://discussions.apple.com/community/app_store/iwork_for_ios
Cheers, Tom -
How can I sort multiple tables on a single page as if they were one continuous table?
I have a single narrow column of numbers that cover multiple pages. I would like to do either of the following: break that long single column into multiple colums that fit on one page and are still able to be sorted in that arrangement OR sort the long column as it is (spread out over multiple pages) and then break that long sorted column down into multiple segments that can be placed onto a single page.
I have been sorting the long single column, then copy and pasting sections from the column onto a new page so that I can print them on a single page.
I am hoping there is a more elegant method to do this.Hi Walt,
Sorting is one of the things that changed between Numbers '09 and Numbers 3. If you are on Mountain Lion I want to assume you are using '09. Is that true?
This will work in '09 and 3. Table one is a single column with entries 1-89.
A2 ==INDEX(Table 1 :: $A,ROW())
B2 =INDEX(Table 1 :: $A,ROW()+35)
C2 =INDEX(Table 1 :: $A,ROW()+70)
The formulas are filled down.
You can adjust the formulas in B and C to reflect how many rows fit on your page.
quinn -
How to load color table in a indexed mode file??
How to load color table in a indexed mode file??
Actually, if i opened a indexed file and want to edit color table by loading another color table from desktop (or any other location), any way to do this through java scripting??continuing...
I wrote a script to read a color table from a GIF file and save to an ACT color table file. I think it might be useful for someone.
It goes a little more deeper than the code I posted before, as it now identifies the table size. It is important because it tells how much data to read.
Some gif files, even if they are saved with a reduced palette (less than 256), they have all the bytes for the full color palette filled inside the file (sometimes with 0x000000). But, some gif files exported in PS via "save for web" for example, have the color table reduced to optimize file size.
The script store all colors into an array, allowing some kind of sorting, or processing at will.
It uses the xlib/Stream.js in xtools from Xbytor
Here is the code:
// reads the color table from a GIF image
// saves to an ACT color table file format
#include "xtools/xlib/Stream.js"
// read the 0xA byte in hex format from the gif file
// this byte has the color table size info at it's 3 last bits
Stream.readByteHex = function(s) {
function hexDigit(d) {
if (d < 10) return d.toString();
d -= 10;
return String.fromCharCode('A'.charCodeAt(0) + d);
var str = '';
s = s.toString();
var ch = s.charCodeAt(0xA);
str += hexDigit(ch >> 4) + hexDigit(ch & 0xF);
return str;
// hex to bin conversion
Math.base = function(n, to, from) {
return parseInt(n, from || 10).toString(to);
//load test image
var img = Stream.readFromFile("~/file.gif");
hex = Stream.readByteHex(img); // hex string of the 0xA byte
bin = Math.base(hex,2,16); // binary string of the 0xA byte
tableSize = bin.slice(5,8) // Get the 3 bit info that defines size of the ct
switch(tableSize)
case '000': // 6 bytes table
tablSize = 2
break;
case '001': // 12 bytes table
tablSize = 4
break;
case '010': // 24 bytes table
tablSize = 8
break;
case '011': // 48 bytes table
tablSize = 16
break;
case '100': // 96 bytes table
tablSize = 32
break;
case '101': // 192 bytes table
tablSize = 64
break;
case '110': // 384 bytes table
tablSize = 128
break;
case '111': // 768 bytes table
tablSize = 256
break;
//========================================================
// read a color (triplet) from the color lookup table
// of a GIF image file | return 3 Bytes Hex String
Stream.getTbColor = function(s, color) {
function hexDigit(d) {
if (d < 10) return d.toString();
d -= 10;
return String.fromCharCode('A'.charCodeAt(0) + d);
var tbStart = 0xD; // Start of the color table byte location
var colStrSz = 3; // Constant -> RGB
var str = '';
s = s.toString();
for (var i = tbStart+(colStrSz*color); i < tbStart+(colStrSz*color)+colStrSz; i++) {
var ch = s.charCodeAt(i);
str += hexDigit(ch >> 4) + hexDigit(ch & 0xF);
return str;
var colorHex = [];
importColors = function (){
for (i=0; i< tablSize; i++){ // number of colors
colorHex[i] = Stream.getTbColor(img, i);
importColors();
// remove redundant colors
// important to determine exact color number
function unique(arrayName){
var newArray=new Array();
label:for(var i=0; i<arrayName.length;i++ ){
for(var j=0; j<newArray.length;j++ ){
if(newArray[j]==arrayName[i])
continue label;
newArray[newArray.length] = arrayName[i];
return newArray;
colorHex = unique(colorHex);
// we have now an array with all colors from the table in hex format
// it can be sorted if you want to have some ordering to the exported file
// in case, add code here.
var colorStr = colorHex.join('');
//=================================================================
// Output to ACT => color triplets in hex format until 256 (Adr. dec 767)
// if palette has less than 256 colors, is necessary to add the
// number of colors info in decimal format to the the byte 768.
ColorNum = colorStr.length/6;
lstclr = colorStr.slice(-6); // get last color
if (ColorNum < 10){
ColorNum = '0'+ ColorNum;
cConv = function (s){
var opt = '';
var str = '';
for (i=0; i < s.length ; i++){
for (j=0; j<2 ; j++){
var ch = s.charAt(i+j);
str += ch;
i ++;
opt += String.fromCharCode(parseInt(str,16));
str = '';
return opt
output = cConv(colorStr);
// add ending file info for tables with less than 256 colors
if (ColorNum < 256){
emptyColors = ((768-(colorStr.length/2))/3);
lstclr = cConv(lstclr);
for (i=0; i < emptyColors ; i++){
output += lstclr; // fill 256 colors
output += String.fromCharCode(ColorNum) +'\xFF\xFF'; // add ending bytes
Stream.writeToFile("~/file.act", output);
PeterGun -
How to find min and max of a field from sorted internal table
Hi,
I have sorted Internal Table by field f1.
How do I find max and min value of f1.
For min value of f1 I am using,
READ TABLE IT1 INDEX 1.
IT1-F1 = MIN.
Is this correct? And how do I find the max value of f1 from this table.
Thanks,
CDYes, that is right, and you can get the max like this.
data: lv_lines type i.
* get min
READ TABLE IT1 INDEX 1.
MIN = IT1-F1.
* get max
lv_lines = lines( it1 ).
read table it1 index lv_lines.
MAX = IT1-F1.
Regards,
Rich Heilman -
How to check small table scan full table scan if we will use index in where clause.
How to check small table scan full table scan if i will use index column in where clause.
Is there example link there i can test small table scan full table if index is used in where clause.Use explain plan on your statement or set autotrace traceonly in your SQL*Plus session followed by the SQL you are testing.
For example
SQL> set autotrace traceonly
SQL> select *
2 from XXX
3 where id='fga';
no rows selected
Execution Plan
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=13 Card=1 Bytes=16
5)
1 0 PARTITION RANGE (ALL) (Cost=13 Card=1 Bytes=165)
2 1 TABLE ACCESS (FULL) OF 'XXX' (TABLE) (Cost=13 Card
=1 Bytes=165)
Statistics
1 recursive calls
0 db block gets
1561 consistent gets
540 physical reads
0 redo size
1864 bytes sent via SQL*Net to client
333 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
0 rows processed -
How to Sort Dimension in Pivot Table via Order Column which is changing like Factual values
Hi,
Recently in of our product offerings we got stuck on this following question:
How to Sort Dimension based on the Order Value which Keeps Changing with Factual Values??
We have a data source laid out as (example)
In the above the “Order” columns are changing per
Company/(DimensionA) for DimesnsionB.
Instead what we want is: (But only if we can get the following result without putting the “Order” Column in the “Values” Section.
If there are any configurations that we can make to our power pivot model for the similar data set so that the
DimesnionB in this case can be sorted by the Order column, would be greatly helpful to us.
Sample File:
http://tms.managility.com.au/query_example.xlsx
Thanks
AmolHi Amol,
According to your description, you need to sort dimension members in Pivot Table via order column, and you don't want the order column show on the Pivot table, right?
Based on my research, we can sort the data on the Pivot table based on one of the columns in that table, and we cannot sort the data based on the columns that not existed on the Pivot table. So in your scenario, to achieve your requirement, you can
add the column to pivot table and hide it.
https://support.office.com/en-gb/article/Sort-data-in-a-PivotTable-or-a-PivotChart-report-49efc50a-c8d9-4d34-a254-632794ff1e6e
Regards,
Charlie Liao
TechNet Community Support -
How to sort a custom database table ?
Hi,
how do I sort/order a custom (Z) database table (not internal table) ? Couldn't find a suiting option with F1 for the SORT statement.
Thanks,
Avraham>
Avraham Kahana wrote:
> I have to do this within my program.
Use ORDER BY in your select. Or just select your data into an itab and use SORT. I don't see the problem.
If you mean that you want to sort your table in the database itself, then you can't. Database table rows are not held in any specific order; the order is applied when you select the data out of the table. -
How to create indexes using CREATE TABLE statement
Hi,
Can anyone please tell me how to create indexes using CREATE TABLE staement? This point is part SQL Expert exam (1Z0-047) and please guide me to use which books for this particular exam.
Thanks in advance.Can anyone please tell me how to create indexes using CREATE TABLE staement?e.g. creating a primary key or a unique constraint will generate indexes along with the create table syntax:
SQL> create table t (a integer primary key, b integer unique)
Table created.
SQL> select index_name, index_type, uniqueness
from user_indexes
where table_name = 'T'
INDEX_NAME INDEX_TYPE UNIQUENES
SYS_C0016575 NORMAL UNIQUE
SYS_C0016574 NORMAL UNIQUE
2 rows selected. -
How to modify field symbol of type Index Table with other field symbol of type any.
Hello Experts,
How is it possible to update an filed symbol table of type Index table with other filed symbol table.
e.g.
Field symbol : <lt_table1> type Index table.
Field symbol : <lt_table2> type Index table.
after some code...at run time these table filled like following.
<lt_tabel1 > has value fore column like c11 , c12 , c13
<lt_table2> has value for column like C11 , C12 , C13 , C14 , C15 . some extra values from <lt_table1>
Now I want to be modify <table1> one entires like C12 with <table2 > col C12.
how I can achieve this.
Regards,
Chetan.Hi,
did you try ASSIGN COMPONENT xx OF STRUCTURE <IT_TABEL1> TO <IT_TABLE2>.
xx will contain the number of the column
or maybe, if you have the description with a field catalog or other, that will be easier ..
regards
Fred
Maybe you are looking for
-
Kernel Panics 10.5.6
Hello, I am having trouble with one of the macs where I work...I am not very familiar with Macs, so need some help. This system is getting kernel panics at seemingly random intervals throughout the day. Things I have tried, include wiping out the sys
-
Can't Activate my iPhone 6. Help!
When i call to activate my iPhone 6, the message says "terms and conditions have been accepted for this order". I get 3G on it, but not LTE and I cannot make calls. Help!
-
Help.. Need more Ram...
Hi.. Lately, I noticed that when I have a few programs open the machine acts really sluggish, and the spinning beach ball seems to pop up often. Can anyone tell me what the max amount of ram you can install in the G3 ibook 900 MHz.. Currently I have
-
I just need to know how firefox handles/takes care of/and does its work with cookies and cache, basically its caching mechanism. Also comparing it to IE versions 6/7 and 8/9 would help, for the sake of web development with respect to the two browsers
-
Hi, I was wondering if APEX had the functionality to link to external applications such as Digital Paper? Right now, im my APEX application & Digital Paper Application, every viaduct is indexed by a Reference Number. Can I link my APEX record to pict