Issue 102902 - recorded macro for sort not working
Summary: recorded macro for sort not working
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 3.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 20046
  Show dependency tree
 
Reported: 2009-06-18 12:22 UTC by noel.power
Modified: 2013-01-29 21:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description noel.power 2009-06-18 12:22:23 UTC
create a document with a column of data ( e.g. col f ) 
1. enable macro recording
2. select col F
3. data | sort  ( sort by the defaults )
4. stop macro recorder
5. save recorded macro somewhere

you will get a macro ( see below ), however if undo the sorting and run the
macro you will notice that no sorting occurs :-/

 
sub Main
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
dim args1(6) as new com.sun.star.beans.PropertyValue
args1(0).Name = "ByRows"
args1(0).Value = true
args1(1).Name = "HasHeader"
args1(1).Value = false
args1(2).Name = "CaseSensitive"
args1(2).Value = false
args1(3).Name = "IncludeAttribs"
args1(3).Value = true
args1(4).Name = "UserDefIndex"
args1(4).Value = 0
args1(5).Name = "Col1"
args1(5).Value = 6
args1(6).Name = "Ascending1"
args1(6).Value = true

dispatcher.executeDispatch(document, ".uno:DataSort", "", 0, args1())

rem ------------------------------------------------------------------
Comment 1 Olaf Felka 2009-06-18 13:37:26 UTC
@ jsk: please have look.
Comment 2 kpalagin 2009-06-19 04:46:09 UTC
20046 is metabug for macro recorder
Comment 3 hans_werner67 2011-03-28 11:54:46 UTC
Assign to new default-assignee