1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Modify documents using Fluent API

Modify documents using Fluent API

2 posts, 0 answered
  1. Jmr
    Jmr avatar
    53 posts
    Registered:
    21 Jan 2011
    01 Mar 2011
    Link to this post
    Hi
    
    I want to modify the dynamic column value?
    
    App.WorkWith()
           .Documents()
           .Where(d => d.Title == "PsDocument")
           .ForEach(i =>
           {
               i.SetValue("PStatus", "True"); its not updating.
           })
           .SaveChanges();
    
    please send me the syntax for this.
    
    Thanks
    Jmr
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    02 Mar 2011
    Link to this post
    Hi Jmr,

    I performed a test using the code below and the value gets saved correctly

    App.WorkWith().Documents().ForEach(itm => itm.SetValue("test", "newvalue")).SaveChanges();

    Regards,
    Ivan Dimitrov
    the Telerik team
2 posts, 0 answered