Element Groups in filenames

Posts   
 
    
GabeNodland avatar
Posts: 65
Joined: 31-Dec-2004
# Posted on: 09-Sep-2010 23:16:57   

Hello.

I am wondering if there is a way to create a file per element group, when group usage is set to AsVisualGroupingMechanism.

it would be nice to leverage the grouping when naming files, I think there should be a [groupName] placeholder, but couldn't find anything like this.

Thanks,

Gabe

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-Sep-2010 06:04:40   

What do you want to do exactly? Maybe it's something you can achieve modifying templates or creating new ones. However spliting files by groupname is not possible, as I far as I know you (according to SDK manual) can't use something like [groupname] in filenameformat at.Templatebindings.

David Elizondo | LLBLGen Support Team
GabeNodland avatar
Posts: 65
Joined: 31-Dec-2004
# Posted on: 10-Sep-2010 16:12:34   

I would like to be able to create file names per group using the LPTParser. Something like this.


            <task name="BusinessLogicHelperClassGenerator" assemblyFilename="SD.LLBLGen.Pro.LptParser.dll" taskPerformerClass="SD.LLBLGen.Pro.LptParser.DotNetTemplateEngine">
                <parameters>
                    <parameter isOptional="false" name="destinationFolder" defaultValue="BusinessLayer\ManagerClasses"/>
                    <parameter isOptional="false" name="failWhenExistent" defaultValue="false"/>
                    <parameter isOptional="false" name="filenameFormat" defaultValue="[groupName]BusinessLogicHelper.[extension]"/>
                    <parameter isOptional="false" name="templateAssemblySourceFileFormat" defaultValue="templateClassesSource.[extension]"/>
                    <parameter isOptional="false" name="templateID" defaultValue="BusinessLogicHelper"/>
                    <parameter isOptional="false" name="emitType" defaultValue="allEntities"/>
                </parameters>
            </task>

This would write the file multiple times just overwriting it each time for every entity in the group. However it would produce the output that i am looking for.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003
# Posted on: 11-Sep-2010 12:57:24   

so what you're after is the [groupName] specification in filename patterns for task performers?

Frans Bouma | Lead developer LLBLGen Pro
GabeNodland avatar
Posts: 65
Joined: 31-Dec-2004
# Posted on: 11-Sep-2010 18:03:02   

exactly. smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003
# Posted on: 12-Sep-2010 12:25:06   

Workitem added. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003
# Posted on: 17-Sep-2013 16:55:11   

Implemented for v4.1

Frans Bouma | Lead developer LLBLGen Pro