• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: excel export D2W
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: excel export D2W


  • Subject: Re: excel export D2W
  • From: Theodore Petrosky <email@hidden>
  • Date: Fri, 28 Oct 2016 08:01:17 -0400

I see from the docs that Dates are stored as numbers. 42644 is displayed as October 1, 2016. So if I subtract 42644 days from today, I get 1/26/1900.

Maybe I could fake it for excel and create a method that returns an integer! The number of days from 1/26/1900! then apply the column type and formatter.





> On Oct 28, 2016, at 3:07 AM, Fabian Peters <email@hidden> wrote:
>
> Hi Ted,
>
> That's handled via the rules. I don't have an example for dates, but for numeric values it looks like:
>
> 10 : (propertyKey like '*NetTurnover' or propertyKey like '*GrossProfit') => excelCellFormatForProperty = "#,##0€;#,##0€" [com.webobjects.directtoweb.Assignment]
> 10 : (propertyKey like '*NetTurnover' or propertyKey like '*GrossProfit') => excelCellTypeForProperty = "CELL_TYPE_NUMERIC" [com.webobjects.directtoweb.Assignment]
>
> Fabian
>
>> Am 28.10.2016 um 05:29 schrieb Theodore Petrosky <email@hidden>:
>>
>> I am looking at ERExcelLook and the minimal video from David. Is there a way to specify the cell type for an attribute? I have added a formatter for my date column, but I really want to specify that it is a date column. I am trying to get the data into excel with as much of the cell types set up as I can.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >excel export D2W (From: Theodore Petrosky <email@hidden>)
 >Re: excel export D2W (From: Fabian Peters <email@hidden>)

  • Prev by Date: Using WOInject with an intermediate WOApplication subclass
  • Next by Date: direct action URL without a session
  • Previous by thread: Re: excel export D2W
  • Next by thread: Using WOInject with an intermediate WOApplication subclass
  • Index(es):
    • Date
    • Thread