To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=99894
                 Issue #|99894
                 Summary|Using the now() XPath function with anything else in X
                        |Forms crashes or lock up OO.o
               Component|Word processor
                 Version|OOo 3.0
                Platform|Unknown
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|writerneedsconfirm
             Reported by|safway





------- Additional comments from [email protected] Wed Mar  4 19:14:55 
+0000 2009 -------
Details: The now() XPath function works fine by itself in OO.o, but the moment
you try to use it with anything else (such as calculations or other functions),
OO.o either crashes or freezes.

What I have done:
* Tried to use now() with operations such as + and - and OO.o still crashes.
* Tried to use now() with other functions and OO.o still crashes.
* Tried to reference the now() function using XPath nodes and THAT WORKS but is
roundabout.

Rational: OO.o should not need to have one XPath node have the now() value and
require another node to reference that node in order to do any operation.  OO.o
should be able to, for example, work with substring(now(), 1, 4) or
days-from-date(now()) or now()-1 or now()+now() without crashing.

Steps to reproduce:
Open a new XForm
     File
     New
     XML Form Document
Ensure form control toolbar is enabled:
     View
     Toolbars
     Form controls
Ensure form design toolbar is enabled:
     View
     Toolbars
     Form design
Ensure XML Data Navigator window is enabled:
     Withing Form design toolbar toggle on XML data navigator using icon
Insert a node using the XML data navigator
     In the XML data navigator, click the instance tab
     Right-click the instanceData and select to edit element
     This brings up the edit element window
Alter the element (also called node) data
     From the edit element window go to the Settings section
     Select any of the checkboxes in the Settings section, say calculate
     Click the calculate Condition button
     Type one of the example above such as now()+now() or choose your own using
the now() function
     Poof. . . OO.o is either locked or crashes.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to