Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 1 Support › Bug with EntityBase.toStoreProperties?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6120

    Christian
    Felgo Team

    Hi,
    I was just trying to save additional properties with an entity using toStoreProperties: [“myProperty”]

    I was wondering why it was never or only sometimes saved, so i checked out EntityManager’s logs, which always said:

    WARNING: EntityManager: the entity does not have the property defined in toStoreProperties: undefined

    So the property name was always undefined?
    I also checked out the source code, where i found something strange:

    // toStoreProperties is a variant property array in EntityBase
    var toStoreProps = entity.toStoreProperties;
    console.debug("toStoreProperties = " + JSON.stringify(toStoreProps))
    for(var j=0; j<toStoreProps.length; j++) {
    var toStorePropertyName = toStoreProps[i];

    The for loop uses the variable “j” but the index for toStoreProps is “i”?

    (Using VPlay 1.5)

    Cheers, Chrisu

    #6123

    Christian
    Felgo Team

    Hi Chrisu,

    thanks a lot for digging into the source code – you have found a bug in this function which will be fixed with the next daily build!

    Should we send you a desktop build with the new library?

    Cheers, Chris

    #6145

    Christian
    Felgo Team

    Hey that’s awesome that you already fixed it 🙂

    Yes a new build would be cool!

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded