1. Giuseppe moglia
  2. SnapDevelop
  3. Sunday, 14 February 2021 09:29 AM UTC

Hi Guys

I have a dw of 4 columns (The Key is A,B)

 

I imported it into my snap developer project and I Scaffolded it creating service and controller

The model is this  (for instance)

A: "",

B: "",

C: "",

D: ""

}

Now My CRUD API are created but I f I just want to update 2 columns of my dw

Now I call the create passing a complete Json:

A: "a",

B: "b",

C: "c",

D: "d"

}

If I call a Read the result is:

A: "a",

B: "b",

C: "c",

D: "d"

}

Now I just want to update properties A and B, my customer pass me just this on my WEB API:

A: "a",

B: "b",

C: "cc"

}

Is there a smart way to just update column C without set column D to null?

 

Or customer has to pass me the json containg all columns?

 

Thanks

 

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 17 February 2021 15:08 PM UTC
  2. SnapDevelop
  3. # 1

Hi Giuseppe,

You can try to dynamically modify the updateable columns of the .NET DataStore before calling Update().

dataStore.DwMeta.DataWindow.Table.FindColumn("Column D").Update = false;

Regards,

Logan

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.