Copied to clipboard

Flag this post as spam?

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


  • Søren Mastrup 122 posts 564 karma points c-trib
    Jun 16, 2015 @ 10:18
    Søren Mastrup
    0

    Numeric property returns 0

    When I add an numeric property to a LeBlender Editor I always get "0".

    I use:

    Model.Items.First().GetValue("newsCount")
    

    I have also tried casting it as an Integer by doing:

    Convert.ToInt32(Model.Items.First().GetValue("newsCount"))
    

    How do I get the correct value from a numeric property?

  • Antoine 176 posts 1494 karma points
    Jun 16, 2015 @ 17:50
    Antoine
    0

    Yes you right, I have the same issue ! I will try to figure out what is happening

  • Antoine 176 posts 1494 karma points
    Jun 16, 2015 @ 18:26
    Antoine
    2

    Hi Søren,

    I have found the issue https://github.com/imulus/Archetype/issues/102

    I will prepare a patch for that.

    Thanks for your feedback, I will keep you up to date about that.

  • Mike 18 posts 39 karma points
    Jun 25, 2015 @ 12:47
    Mike
    0

    We're having the same issue, getting a zero value for a numeric field in a LeBlender Grid Editor. All other field types work fine.

  • Antoine 176 posts 1494 karma points
    Jul 02, 2015 @ 17:18
    Antoine
    0

    Hi !

    The fix is here https://github.com/Lecoati/LeBlender/commit/1e62b334bc95121d33b1a9b176da36ba01f61e3a it will be part of the next release (hopefuly next week)

    Thanks

  • Antoine 176 posts 1494 karma points
    Jul 20, 2015 @ 11:24
    Antoine
    100

    Hi !

    The bug is fixed in LeBlender 1.0.8 (just released)

Please Sign in or register to post replies

Write your reply to:

Draft