cancel
Showing results for 
Search instead for 
Did you mean: 

SEGW enhancing an already generated service

madankumarp
Product and Topic Expert
Product and Topic Expert
0 Kudos

hi all,

I've an OData service generated via SEGW.

It has only one entity which i created by importing from a DDIC structure.

I went ahead and redefined all my read, write methods and the service works fine.

Now i want to enhance the structure

     - Add a new field to the structure

     - Change the data element of an existing field

After making these changes to the structure, how should i enhance the entity in SEGW?

Option 1: Do I have to delete the already created entity and recreate a new entity from this enhanced structure?

Option 2: Or do I've to add the new fields to the existing entity manually and also make changes to the field properties based on the new data elements?

When i regenerate, would i lose the custom code that i've written in the EXT classes.

thanks for the help

~Madan

Accepted Solutions (1)

Accepted Solutions (1)

JyotiD
Active Participant

Hi Madan,

- Add a new field to the structure


Right click on entity name- > Import -> Properties, you can add new properties in you entity.


  - Change the data element of an existing field


If it doesn't update automatically, when you try regenerating the project, it will give you model binding error, check and correct that manually.


When i regenerate, would i lose the custom code that i've written in the EXT classes.


- If you have redefined the method it will not be loss of code on regenerating.


Regards,

Tarun

madankumarp
Product and Topic Expert
Product and Topic Expert
0 Kudos

thank you Tarun.

It indeed works just like what you have explained.

Answers (0)