Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Natt 5 posts 96 karma points
    Feb 16, 2018 @ 03:43
    Natt
    0

    Can i save value editor to DB

    I use umbraco 7.8.1. I has some editor property to show in web and i want to change and save back to that property

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Feb 16, 2018 @ 08:44
    Alex Skrypnyk
    1

    Hi Natt

    Are you talking about custom property editor?

    You have to assign data to model.value - and that's it, data will be stored when user press save button.

    /Alex

  • Natt 5 posts 96 karma points
    Feb 19, 2018 @ 04:05
    Natt
    0

    Hi Alex

       Thx a lot. Now my problem is i want to update field. So, I used " .Update " and it's not work.It's can not really save.
    

    enter image description here

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Feb 19, 2018 @ 08:47
    Alex Skrypnyk
    1

    Hi Natt

    Do you want to update field value with property value editor?

    /Alex

  • Natt 5 posts 96 karma points
    Feb 19, 2018 @ 09:14
    Natt
    1

    Hi Alex Now I used follow below picture. I can Update success.But i can't save new record and program hasn't error.So sorry for my question.I'm junior Umbraco Dev. enter image description here

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Feb 19, 2018 @ 10:51
    Alex Skrypnyk
    0

    Hi Natt

    Use insert for new items:

    var id = DbHelper.CurrentDb().Insert(item);
    
  • Natt 5 posts 96 karma points
    Feb 19, 2018 @ 11:20
    Natt
    100

    Thx, Alex " .Insert(item) " i used but not work too.Now i use " INSERT INTO ... " . It's work so much.

Please Sign in or register to post replies

Write your reply to:

Draft