Copied to clipboard

Flag this post as spam?

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


  • Zihadul Azam 26 posts 171 karma points c-trib
    Aug 17, 2017 @ 10:53
    Zihadul Azam
    0
    Field field = AutoMapper.Mapper.Map<Field>(Model.Items.FirstOrDefault());
    

    If I have to add new fields, where can I find the "Field" class ?

    -Thanks

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Aug 28, 2017 @ 15:15
    Alex Skrypnyk
    1

    Hi Zihadul

    Where did you find this code?

    Are you sure you need a Field class?

    Thanks,

    Alex

  • Zihadul Azam 26 posts 171 karma points c-trib
    Aug 29, 2017 @ 07:22
    Zihadul Azam
    0

    Hello Alex,

    Manao Form use LeBlender plugin, which is used to create a new Grid Editor easily. And every Grid Editor has a Partial View, which is located in the folder :

    Views > Partials > Grid > Editors
    

    At these Partials views manao form use the "Field" class to map Grid Editor's properties. So on, we can call a property simply with:

    Field field = AutoMapper.Mapper.Map<Field>(Model.Items.FirstOrDefault());    
    @field.Name
    

    And this class comes from:

    @using FormPackage6_74.Core.DomainModel.Form;
    

    Now I'm trying to add some new properties. So to map them on my partial view I need this class.

    Thanks, Zihadul

Please Sign in or register to post replies

Write your reply to:

Draft