EntityNameStripPatterns

Posts   
 
    
siegemos
User
Posts: 47
Joined: 25-Jun-2007
# Posted on: 05-Nov-2007 15:41:22   

Hello all,

Does anyone know if its possible to use regular expressions (or something like) for setting up EntityNameStripPatterns in my project?

At the moment I have this:

{tbl_,SN_ECOMMERCE,SN_SHARED,SN_FILEMANAGER, .......}{}

I'd like to be able to do this:

{tbl,SN[A-Z0-9]+_}{}

Thanks,

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 05-Nov-2007 19:49:48   

I believe this is not possible for the moment, you can only strip prefix and suffix as it is, but no regular expression allowed.

simmotech
User
Posts: 1024
Joined: 01-Feb-2006
# Posted on: 06-Nov-2007 06:30:55   

siegemos wrote:

Hello all,

Does anyone know if its possible to use regular expressions (or something like) for setting up EntityNameStripPatterns in my project?

At the moment I have this:

{tbl_,SN_ECOMMERCE,SN_SHARED,SN_FILEMANAGER, .......}{}

I'd like to be able to do this:

{tbl,SN[A-Z0-9]+_}{}

Thanks,

If you are using v2.5, have a look at Project, Properties then click the Abbreviations tab. You can set up two abbrevations, one for "tbl" and one for "SN" and set their Full Word to "".

Cheers Simon

siegemos
User
Posts: 47
Joined: 25-Jun-2007
# Posted on: 09-Nov-2007 16:31:41   

Simon,

unfortunately that doesn't solve my problem, it works great for tbl_ table but the tables prefixed with SN_ are also subprefixed with their module name.

SN_ECOMMERCE SN_PORTAL etc..

So I would still have to add an abbreviation for each of these.

To clarify: I need SN_ECOMMERCE_Cart to become 'Cart' rather than 'ECOMMERCE_Cart' Shame the Pattern can't be done yet. Fingers crossed it will be in there for a future release.

Cheers.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 09-Nov-2007 20:41:49   

I don't know how many prefixes there are, but you could write them all out, specify them in a file and import them.

Frans Bouma | Lead developer LLBLGen Pro
simmotech
User
Posts: 1024
Joined: 01-Feb-2006
# Posted on: 11-Nov-2007 06:18:28   

siegemos wrote:

Simon,

unfortunately that doesn't solve my problem, it works great for tbl_ table but the tables prefixed with SN_ are also subprefixed with their module name.

SN_ECOMMERCE SN_PORTAL etc..

So I would still have to add an abbreviation for each of these.

To clarify: I need SN_ECOMMERCE_Cart to become 'Cart' rather than 'ECOMMERCE_Cart' Shame the Pattern can't be done yet. Fingers crossed it will be in there for a future release.

Cheers.

Can't you just add more abbreviations? so "SN" = "" and "ECOMMERCE = "" and "PORTAL_" = ""

Cheers Simon

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 12-Nov-2007 10:11:17   

If you are going to specify these patterns in the Abbreviations, why don't you just specify them all in the strip pattern: {tbl_,SN_ECOMMERCE,SN_SHARED,SN_FILEMANAGER, .......}{}