How to prevent field code generation for specific columns

Posts   
 
    
idsn11
User
Posts: 39
Joined: 06-May-2008
# Posted on: 02-Feb-2011 12:50:40   

Hi!

Please tell me how I can correctly realize prevention of field code generation for specific columns.

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 02-Feb-2011 14:19:22   

You can un-map fields you want, using the Designer.

idsn11
User
Posts: 39
Joined: 06-May-2008
# Posted on: 02-Feb-2011 14:27:01   

It is not appllicable in my situation: too many tables includes the same set of unused (for my purposes) fields.

I think It can be realized by templates. But I don't know how to make this?

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 02-Feb-2011 17:42:11   

Whicih template set are you using, Adapter or SelfServicing?

idsn11
User
Posts: 39
Joined: 06-May-2008
# Posted on: 03-Feb-2011 08:41:20   

Adapter

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 03-Feb-2011 10:56:53   

In the AdapterIncludeEnity.template, you should look for the <[Foreach EntityField]> loop token. And then include everything wihtout that loop inside the following condition:

<[If Not StringValueEquals EntityFieldName  "YourFieldName"]>

<[EndIf]>

To execlude unwanted field.

idsn11
User
Posts: 39
Joined: 06-May-2008
# Posted on: 03-Feb-2011 11:18:34   

10x )