To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=80927


User ama changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|ama                       |tmorgner
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Wed Nov 28 14:31:46 +0000 
2007 -------
ama->tmorgner:
Here is the related snippet of the styles.xml:
<table:table-cell table:style-name="ce3" table:number-columns-spanned="2" 
                        office:date-value="2001-01-31T12:00:00.0Z"
office:value-type="date">
  <text:p>
     <text:variable-get text:name="auto_report_2" office:value-type="date">
     </text:variable-get>
  </text:p>
</table:table-cell>
Here is a first (potential) problem: if the table-cell is of value-type date and
a date-value is set like above then the content of the cell
(<text:p>...</text:p> could be ignored, it is regarding as a cache only. So if
you need a text:variable-get inside a cell, the value-type of the cell should be
string.
But the real problem of this issue is the wished date-format.
The odf-specification says that a variable-get can have a style:data-style-name
attribute, so if you do not want the variable displayed in default (numeric)
format, so have to assign this attribute to the variable, e.g.
<number:date-style number:language="en" number:automatic-order="true" 
                             number:country="US"style:name="N37">
      <number:month number:style="long"/>
      <number:text>/</number:text>
      <number:day number:style="long"/>
      <number:text>/</number:text>
      <number:year/>
</number:date-style>
....
<table:table-cell table:style-name="ce3" table:number-columns-spanned="2" 
                        office:value-type="string">
  <text:p>
     <text:variable-get text:name="auto_report_2" office:value-type="date" 
                               style:data-style-name="N37">
     </text:variable-get>
  </text:p>
</table:table-cell>

So the problem seems to be for you to get the right data-style-name when you are
creating the cell content.

---------------------------------------------------------------------
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]

Reply via email to