Alternatively, how is this done programatically? I'm not grokking the rule system yet, obviously.
On Fri, Oct 2, 2009 at 2:18 PM, Joe Little <[email protected]> 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... > > On Wed, Sep 30, 2009 at 3:10 PM, David LeBer > <[email protected]> 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 >> >> >> >> >> > _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
