Initial Value Only

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 19-Apr-2007 15:41:06   

Hi,

Is it possible for me to have an entity throw an exception or something if a user trys to change the value of a field for an already existing object?

In other words, they can only specify an initial value and then not change it?

Cheers,

Ian.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 19-Apr-2007 15:59:46   

I think you can use Field Validation. Please refer to the LLBLGen Pro manual: "Using the generated code -> Validation per field or per entity"

Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 20-Apr-2007 12:34:03   

I just had the web app set IsChanged to false on the fields upon an update.