Ascending and descending
I'm a new convert from pc's to macs. In pages, is there a way to do ascending and/or descending without having to use tables? I just want to use a blank page and type things in and then alphabetize without having to use tables to do so.
My guess is that Services like WordService are forced to drop some characters from the text which they treat as this short script does.
set noteMark to ASCII character (14)
tell application "Pages" to tell document 1
set tb to (body text)
if tb contains noteMark then my strip(tb, noteMark)
set the body text to tb
end tell
on strip(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return l as text
end strip
noteMark is what we get at a note ref location when we grab the body text.
If we don't drop it, the
set the body text to tb
instruction will fail leaving Pages in an unstable status.
You may test after disabling the instruction:
if tb contains noteMark then my strip(tb, noteMark)
Yvan KOENIG (from FRANCE vendredi 6 mars 2009 12:23:35)
Similar Messages
-
Hide sort(ascending and descending) buttons in an alv report.
Hi,
I want to hide the sort(ascending and descending) buttons in an alv report.
can any one help me with the code?
I am not able to use the parameter IT_TOOLBAR_EXCLUDING
of SET_TABLE_FOR_FIRST_DISPLAY of class CL_GUI_ALV_GRID.
Regards,
Himanshu.Hi,
data it_exclude type ui_functions.
Exclude Standard Functions
PERFORM f_excludetoolbar USING obj_cust_grid
CHANGING it_exclude.
FORM f_excludetoolbar USING u_obj_cust_grid TYPE REF TO cl_gui_alv_grid
CHANGING c_it_exclude TYPE ui_functions.
Exclude Standard Functions
CLEAR: c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_check TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_refresh TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_copy TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_copy_row TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_cut TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_delete_row TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_append_row TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_insert_row TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_move_row TO c_it_exclude.
APPEND u_obj_cust_grid->MC_FC_SORT_DSC TO c_it_exclude.
APPEND u_obj_cust_grid->MC_FC_SORT_ASC TO c_it_exclude.
APPEND u_obj_cust_grid->MC_FC_SORT TO c_it_exclude.*
ENDFORM. " f_excludetoolbar
Hope it will helpful for you.
Reward if found helpful.
Regards,
SB -
I want to write a CAML query on Id based on Ascending and Descending.
Hi,
i want to write a CAML query on Id based on Ascending and Descending.
Can i write CAML query using both Ascending and Descending?
Actually my requirement is if i changed the id, Ascending and Descending will perform based on this id.Hi,
Do you want to retrieve a set of items which are sorted based on the value of the ID column using CAML query statement?
If this is the case, you can compose and test the CAML query statement with the help of
CAML Designer which with a Graphic User Interface provided:
http://karinebosch.wordpress.com/my-articles/caml-designer-for-sharepoint-2013/
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
Mix Ascending and Descending in SQL
I am very new to Oracle and SQL, but I am very curious if one can sort by mixing both ascending and descending orders within a single SELECT statement.
I have been trying to figure out why this would even be needed, but I'm certain that there are unique circumstances where one would want this capability.SQL> select rank() over (order by a1 asc) "ASC",
2 rank() over (order by a1 desc) "DESC"
3 from test_asc_desc
4 order by a1 asc;
ASC DESC
1 6
2 5
3 4
4 3
5 2
6 1
6 rows selected.
SQL> select row_number() over (order by a1 asc) "ASC",
2 row_number() over (order by a1 desc) "DESC"
3 from test_asc_desc
4 order by a1 asc;
ASC DESC
1 6
2 5
3 4
4 3
5 2
6 1
6 rows selected. -
The formula field is not sorting both ascending and descending
Dear All,
I am designing scoreboard the net amount contains the formula field, i sorted with asceding order by using sort,but it is not sorted both ascending or descending ,
Suppose if i used to sort the database field it is sorted properly so any one help me very urgent
Regards
Selva.D
Edited by: Rui Pereira on Aug 8, 2008 11:32 AMDear Suda,
The scoreboard i designed via query print layout. So i calculated by using formula field ie totalsales- sales return for that i used formula and i follow the below steps
Choose repetitive area -
> Right mouse click---> sort
in the sorting i choose the formula uinque id and i choose Ascending then summary, after i click ok
Suggest me the solution
Regards
Selva.D
Edited by: Rui Pereira on Jul 8, 2008 5:18 PM -
Sorting by "x" then by "y" my table (multiple criterias ascending and descending)
Hi,
I converted some text to a table using this:
function ConvertoTable(){
var myStory = app.selection[0].parentStory;
var myTexts = myStory.texts[0];
//We now can convert that "texts" object to a table:
//Both arguments are separated by a "comma"
myTexts.convertToTable("\t","\r");}
I will always have the same kind of data with 3 columns, one with a mark/value, then a name, then a description.
I need to sort my table first by the first column in descending order (99 to 90) and then by name in ascending order(A to Z).
I will then export this table once it's sorted again as a text but it's an another story .
I know that you can do it through Indesign but I would want to automate it. My javascript is really rusted and I've just started to play with the greps and the scripts within Indesign...so I was hoping someone could help me to achieve that?
Thanks guys,
Michael A.@Feeltheday – sorting tables is not that funny ;-)
Hm. Too lazy? Just a suggestion…
As a starting point look into the following blog posts and scripts:
Peter Kahrel
InDesign: Sort tables | Peter Kahrel
And when it comes to language specific sort:
Language-aware paragraph/line sorter (light) | Peter Kahrel
Here the heavy-lifting:
Language-aware paragraph/line sorter | Peter Kahrel
Marc Autret
Indiscripts :: Alphabetical Sort in JavaScript (and InDesign)
Forum discussion here:
SortParagraphs Rules Do Not Follow Standards
Uwe -
I am trying to arrange my photostream saved search (which doesn't update automatically after I did the search for the first time which is very annoying) but finder won't let me arrange in ascending order of date (i.e.: oldest to newest). Is there a way I can do this or will my folder arrangements always be the one way without the option to change it to the opposite arrangement (same for alphabetical). Also, Finder automatically arranges my photos into groups of dates (e.g.: 'previous 30 days', 'September'). Is there any way I can turn this off?
Also if anyone can fix this stupid photostream issue for me that would be great!
thanks very muchEven in list view, the photos are grouped by previous seven days, previous 30 days, October, and so on.. there is no option i see that will let me change to order by date modified without these groupings or to just turn these groupings off altogether
but thank you for your reply
-Peelo2311 -
Change sorting in Finder from ascending to descending and keyboard shortcut
Hallo,
can someone point me in the right direction of how to change sorting in Finder from ascending to descending and what are the corresponding keyboard shortcuts?
I am already using the ctrl-cmd+number key shortcuts to modify my sorting, and a Google search produced the answer that I can change from ascending to descending by hitting the key-combination again. But it does not work ...
Any help ;-) ?
Thank you !Never heard of a keyboard command to toggle the sort sequence from ascending to descending and back.
The usual way to change it is to click the highlighted column name in the Finder window. -
How can I do sorting from ascending to descending then unsort?
Hi all,
Can anybody help on this issue?
I have a bunch of numbers in a table, and I hope when I click the column header once, it will do ascending.
Click again, do descending. Then click three times, become unsort (which is origially ordered in absolute value).
I tried to add tree SortKeys in sorter, but it doesn't work:
List<RowSorter.SortKey> sortKeys = new ArrayList<RowSorter.SortKey>();
sortKeys.add(new RowSorter.SortKey(2, SortOrder.UNSORTED)); // 2 means it's the 3rd column I want to sort
sortKeys.add(new RowSorter.SortKey(2, SortOrder.DESCENDING));
sortKeys.add(new RowSorter.SortKey(2, SortOrder.ASCENDING));
sorter.setSortKeys(sortKeys);Then I tried to implement my own Comparator, but will always get numbers ordered in absolute value.
Comparator<Float> comparator = new Comparator<Float>() {
public int compare(Float s1, Float s2) {
if (s1 < 0) s1 *= (-1);
if (s2 < 0) s2 *= (-1);
return s1.compareTo(s2);
sorter.setComparator(2, comparator); // 2 means it's the 3rd column I want to sortThank you very much indeed in advance.
Cheers,
GeorgeApologies for not saying it clearly.
I can easily do ascending and decending by applying this:
sorter = new TableRowSorter<TableModel>(table.getModel());
table.setRowSorter(sorter);But I also need my data to be sorted by absolute value. That's why I tried to implement my own Comparator.
However, it turned out that I will only have one sorting method, which is the absolute value as you have noticed.
Hence I hope the result, if possible, would be if I first click the column header, ascending orders.
Click the second time, decending orders. And then click the third time, absolute value orders.
Cheers -
Needs rows to be listed in a particular order(not ascending or descending)
Hi Friends,
I want rows to be listed in a particular order(not ascending or descending) when running a BEX query. for example, if there is a characteristic called name with the following values a,b,c,d , then i want it the rows in the output to be listed like a,d, b,c (not a,b,c,d or d,c,b,a). Can anyone help.I think the only way to do that is to build a hierachy in wich you insert all the possible value in the order you like.
If exist a logic, you can use this logic at loading time to set an order fields to be used in reporting.
Hope it helps.
Regards
PS: assign points is the way to say thanks -
Tracing cell predecessors and descendants
I'm an Excel user learning to use Numbers. One feature I find essential in Excel is the ability to select a cell and then, using the appropriate commands, trace predecessors and descendants of the cell (other cells that feed into the selected cell, or are used by the selected cell). I can't find a way to do this in Numbers. Is there a way?
Thanks,Free openOffice
http://www.openoffice.org/ (now no longer needs X11)
Free neoOffice
http://www.neooffice.org/neojava/en/index.php
Yvan KOENIG (from FRANCE dimanche 19 octobre 2008 17:40:25) -
How to sort database record in an Ascending or Descending order
First script below is on Initialize the second on Validate. I need the database to sort on an ascending order. I tried using the order by script in RED below to the Validate script but to no avail. Any help would be greatly appreciated.
$sourceSet.DataConnection2.#command.query.select.nodes.item(0).value = Concat("Select * from brw.ps_m_ee_genl_data Where FULL_NAME = ", Ltrim(Rtrim(SelectField.rawValue)) , " order by FULL_Name asc")
form1.#subform[0].SelectField::initialize - (JavaScript, client)
/* This listbox object will populate two columns with data from a data connection.
sDataConnectionName - name of the data connection to get the data from. Note the data connection will appear in the Data View.
sColHiddenValue - this is the hidden value column of the listbox. Specify the table column name used for populating.
sColDisplayText - this is the display text column of the listbox. Specify the table column name used for populating.
These variables must be assigned for this script to run correctly. Replace <value> with the correct value.
var
sDataConnectionName = "DataConnection2"; // example - var sDataConnectionName = "MyDataConnection";
var
sColHiddenValue = "FULL_NAME"; // example - var sColHiddenValue = "MyIndexValue";
var
sColDisplayText = "EMPLID"; // example - var sColDisplayText = "MyDescription"
// Search for sourceSet node which matchs the DataConnection name
var
nIndex = 0;
while
(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName){
nIndex
++;}
var
oDB = xfa.sourceSet.nodes.item(nIndex);oDB.open();
oDB.first();
// Search node with the class name "command"
nIndex
= 0;
while
(oDB.nodes.item(nIndex).className != "command"){
nIndex
++;}
// Need to set BOF and EOF to stay
oDB.nodes.item(nIndex).query.recordSet.setAttribute("stayBOF"
, "bofAction");oDB.nodes.item(nIndex).query.recordSet.setAttribute("stayEOF"
, "eofAction");
// Search for the record node with the matching Data Connection name
nIndex
= 0;
while
(xfa.record.nodes.item(nIndex).name != sDataConnectionName){
nIndex
++;}
var
oRecord = xfa.record.nodes.item(nIndex);
// Find the value node
var
oValueNode = null;
var
oTextNode = null;
for
(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++){
if(oRecord.nodes.item(nColIndex).name == sColHiddenValue){
oValueNode
= oRecord.nodes.item(nColIndex);}
else if(oRecord.nodes.item(nColIndex).name == sColDisplayText){
oTextNode
= oRecord.nodes.item(nColIndex);}
while
(!oDB.isEOF()){
this.addItem(oValueNode.value
, oValueNode.value);
//IDList.addItem(oValueNode.value, oTextNode.value);
oDB.next();
// Close connection
oDB.close();
form1.#subform[0].SelectField::validate - (FormCalc, client)
if (Len(Ltrim(Rtrim(SelectField.rawValue))) > 0) then
//Change the commandType from TABLE to TEXT. TEXT is the equivalent of SQL Property
$sourceSet.DataConnection2.#command.query.commandType= "text"
//Set the Select Node. Select in this case will be whatever the SQL Property you want.
$sourceSet.DataConnection2.#command.query.select.nodes.item(0).value= Concat("Select * from brw.ps_m_ee_genl_data Where FULL_NAME = ", Ltrim(Rtrim(SelectField.rawValue)) , "")
//Reopen the Dataconnection
$sourceSet.DataConnection2.open()endifThis is in Mavericks, but I think it also applies to the Finder in Lion.
View menu / Arrange by / Name. -
Ascending vs Descending Order in Photoshop
When I have multiple files open in Photoshop I always have this issue: I will be editing multiple files, and I prefer to work on them in ascending order. However, once I close a file so I can move on to the next one, Photoshop jumps to the last file in the sequence. For example, if I am working on image 001 and close it, I would like Photoshop to automatically go to image 002. Instead, it always goes to image 010. How can I change this?
Hi Ashok,
Thanks for your reply. I tried the option given by you that is changing the definition of the info object from Text to Key and loaded the data accordingly. But when I run the report, I could see no changes in the sheet as before. But when I put this info object in the first column, I mean I changed the order of the info objects in the query designer then it worked for only first column but not for any other columns. I just wonder why it is happening, is there any way to find out what should be the order as I have followed the order given by the functional guys in their requirement? I tried with deifferent positions but it is working for only the first column.
Please reply... -
How to arrange files in trash folder by date, both ascending and decending?
My trash folder is ordered by date. Currently, it is ascending order. I would like to change to decending order.
If any more info is needed, I would be only too happy to provide it for you.
Thank you,
Dennis Guidi
[email protected]Clicking on an column header will sort on that column. Clicking that same header a second time will reverse the sort order. Click the Date header.
-
#rightbox div > ul > li
color: black;
background-image: url(../siteimages/navsq03.gif);
background-repeat: no-repeat;
background-position: left 13px;
padding: 10px 0 0 12px;
list-style: none;
That rule seemed to go really well for a while to style the
nested <li> items in my list. But IE 6.0 doesn't like it.
There's a class on the list element <li class="sub">
and I thought that this might work
.sub
color: black;
and: so on;
or even
.sub li
Now I realise I still haven't got it or is it IE 6?
Thanks
Martin> .sub
> {
> color: #000;
> and: so on;
> }
>
> or even
>
> .sub li
>
These two are NOT the same selectors, you know?
Try .sub { color:#000!important; }
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"martcol" <[email protected]> wrote in
message
news:ggrtnu$5n3$[email protected]..
> #rightbox div > ul > li
> {
> color: black;
> background-image: url(../siteimages/navsq03.gif);
> background-repeat: no-repeat;
> background-position: left 13px;
> padding: 10px 0 0 12px;
> list-style: none;
> }
>
> That rule seemed to go really well for a while to style
the nested
> items
> in my list. But IE 6.0 doesn't like it.
>
> There's a class on the list element <li
class="sub"> and I thought that
> this
> might work
>
> .sub
> {
> color: #000;
> and: so on;
> }
>
> or even
>
> .sub li
>
> Now I realise I still haven't got it or is it IE 6?
>
> Thanks
>
> Martin
>
>
>
Maybe you are looking for
-
Refreshing animated gif in Jlabel
Hi, I've created a GUI for a cashmachine application and have the problem that my animated GIF's work on the first call, but only display the last frame of the animation on subsequent calls. I've tried alot of things, including validate, repaint, ref
-
Best way to move a site between farms running different versions of SharePoint.
I will try and keep this short and summarize what we are trying to do to see if I am on the right track. I am at a new job and trying to clean up stuff that has collected over the years. I might be making this more difficult than necessary and lookin
-
Well let me tell you a shortened version of my story. I bought a performa 500. It worked for a while. I was playing number munchers (the best game ever) and it crashed and hasn't been right since. I don't have any disks that would have came with it o
-
Need Permission for Firefox Update?!
More permissions problems in Leopard. I've been trying to install the latest version of Firefox (2.0.1.14 or something to that effect) only to have it tell me at start-up that the update can't be installed because I do not have sufficient permission
-
Storade 2.4 and Sun MC 3.5
Greetings, We have recently deployed Sun MC 3.5 at our organisation, and wish to integrate notifications from Storade 2.4. I have read the Storade documentation, turned on Sun MC as a provider, specified the Sun MC server, reporting frequency and SNM