Re: ERExcelLook filename
Re: ERExcelLook filename
- Subject: Re: ERExcelLook filename
- From: David Holt <email@hidden>
- Date: Fri, 2 Oct 2009 15:19:57 -0700
Added a new page:
http://wiki.objectstyle.org/confluence/display/WO/Additional+tips+for
+ERExcelLook
David
On 2-Oct-09, at 3:05 PM, David LeBer wrote:
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:
@mac.com
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