5.2 editing "target element details"

Posts   
 
    
Jamanga
User
Posts: 93
Joined: 21-Jul-2006
# Posted on: 20-Jun-2017 05:47:46   

Hi all

Under 4.2, within the Field Mappings for an entity I used to be able to edit the field definition in the designer e.g. to modify a field to be not null, or the length to match the model, however now the "edit field..." button is disabled.

Am I missing something?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 20-Jun-2017 09:19:33   

The sync source of your model is likely set to 'database' so it's not allowing model first changes on relational model data that is used database-first.

Open 'sync', then change the sync source for your database to 'model' and you can work model first. https://www.llblgen.com/Documentation/5.2/Designer/Functionality%20Reference/SyncTab.htm

Frans Bouma | Lead developer LLBLGen Pro
Jamanga
User
Posts: 93
Joined: 21-Jul-2006
# Posted on: 21-Jun-2017 03:57:14   

Hi Frans

Thanks for the quick response.

Sorry I wasn't clear. I still work database-first, however I wasn't always involved in the DB design.. so there is some crap legacy design stuff confused e.g. null values not set, or different field lengths etc.

So is there no longer a way to either edit the db field definition post refresh, or not have them "error" during validation, stopping source code rebuilds?

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 21-Jun-2017 13:58:29   

I believe you need to edit the fields in the "Fields" tab, not in the "Field Mappings".

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 21-Jun-2017 17:00:43   

Indeed. The previous versions allowed you to edit the db field which would result in you dismissing changes when you generated code. THat's no longer the case, you have to edit the entity field. This will give warnings instead but you have to ignore these.

Frans Bouma | Lead developer LLBLGen Pro