will not strip view in the view name

Posts   
 
    
vairam2008
User
Posts: 86
Joined: 11-Mar-2008
# Posted on: 03-Apr-2008 00:26:51   

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7807&HighLight=1

I have the following setting in my project TypedViewNameStripPattern={vw_, view}{} TypedViewNameStripPattern: Does this work for only prefix & not the suffix? I understand middle won't work from the other thread. Do I have to write a plugin for this purpose or am I missing somethid

well, I paused for a bit & tried with a view with prefix view & it will not remove view while it constructed it.

Thanks

PS: GenPro 2.5 03052008 release. .net 3.5 adapter method of generation. asa 10.0.1.3619

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 03-Apr-2008 07:17:43   

vairam2008 wrote:

I have the following setting in my project TypedViewNameStripPattern={vw_, view}{} TypedViewNameStripPattern: Does this work for only prefix & not the suffix?

This works for both prefixes and suffixes. The suffix part is the second "{}".

vairam2008 wrote:

I understand middle won't work from the other thread. Do I have to write a plugin for this purpose or am I missing somethid

The thread suggest a plugin for the FieldMappedOn... patterns. So if you just want to strip off the prefix or suffix of the typedView, you don't need a plugin.

vairam2008 wrote:

well, I paused for a bit & tried with a view with prefix view & it will not remove view while it constructed it.

  • Please make sure that you don't have a typo somewhere.
  • Are you adding the strip-off pattern before or after the catalog refresh?
David Elizondo | LLBLGen Support Team
vairam2008
User
Posts: 86
Joined: 11-Mar-2008
# Posted on: 03-Apr-2008 07:40:11   

before refresh & after refresh didn't work. however, when I started a new project, connected to database. set the project properties & added views with view suffix pattern it did work now. thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 03-Apr-2008 07:44:03   

Mmm yes, that's because the precedence of the Preferences vs. Project properties. Next time you just need to set the strip-off pattern at Project properties (if you want to strip only some projects) wink

David Elizondo | LLBLGen Support Team
vairam2008
User
Posts: 86
Joined: 11-Mar-2008
# Posted on: 03-Apr-2008 09:27:25   

daelmo wrote:

Mmm yes, that's because the precedence of the Preferences vs. Project properties. Next time you just need to set the strip-off pattern at Project properties (if you want to strip only some projects) wink

When I said before & after refresh, I set in project properties & not preferences. When it worked when I created a new project, then also I set only in preferences.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 03-Apr-2008 11:04:15   

I guess TypedViewNameStripPattern works when mapping a view to a TypedView, so if the view was already mapped it won't be renamed, only when mapping a view to a TypedView does the strip patter take effect.

vairam2008
User
Posts: 86
Joined: 11-Mar-2008
# Posted on: 04-Apr-2008 18:35:32   

that's correct