• 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: ERExcelLook filename
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERExcelLook filename


  • Subject: Re: ERExcelLook filename
  • From: David LeBer <email@hidden>
  • Date: Fri, 2 Oct 2009 18:05:46 -0400


On 2009-10-02, at 5:18 PM, Joe Little wrote:

The samples in the d2wmodel file in the frameworks don't seem to give
me enough guidance to actually use rules to set values.

I set a rule for pageConfiguration = 'ListExcelApplicantsFull', the
RHS key as excelFileName, the RHS value as "derivedFileName, and the
class to ERDDelayedKeyValueAssignment. derivedFileName is a method
defined to generate the correct file name per call to lpi.setNextPage.
Doesn't seem to take it. I'm trying to find any way for D2W to accept
variables into the rule system, but there is no examples on
confluence...

This works for me:

100: pageConfiguration = 'ListExcelFooBar' => excelFileName = "session.excelFileName" [ERDDelayedKeyValueAssignment]


On Wed, Sep 30, 2009 at 3:10 PM, David LeBer <email@hidden> wrote:

On 2009-09-30, at 5:21 PM, Joe Little wrote:

I saw that one can statically name a sheet from a rule, but I both
want to title an Excel spreadsheet in some way (via a rule) as well as
name the file something more unique than results-#.xls. Anybody with
experience setting either the sheet names to some var as well as the
filename?

In looking at the ERExcelListPage source, it looks like the file name is
pulled from d2wContext.excelFileName and the sheet name from
d2wContext.excelSheetName.


You could set those values in your rules, or if you really wanted to you
could set them in code.


;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:        http://www.linkedin.com/in/davidleber
twitter:        http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org






;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: 	http://codeferous.com
blog: 	http://davidleber.net
profile:	http://www.linkedin.com/in/davidleber
twitter:	http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




_______________________________________________ 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
  • Follow-Ups:
    • Re: ERExcelLook filename
      • From: David Holt <email@hidden>
References: 
 >Re: ERExcelLook filename (From: Joe Little <email@hidden>)

  • Prev by Date: Searching Question
  • Next by Date: Re: ERExcelLook filename
  • Previous by thread: Re: ERExcelLook filename
  • Next by thread: Re: ERExcelLook filename
  • Index(es):
    • Date
    • Thread