.fetchRelationships() showing outdated data

Hello,

I have:

Promise () => Method => Back to Promise and perform .fetchRelatioships() of one of the items manipulated in the method.

There is still data in .fetchRelationships that should no longer be there, as Method was performing SQL deletions. I am wondering if I need to swap it to AML posts within the method, or if I am missing a way to force update AML dom.

Best Regards,

Frank

Parents
  • Alright so .fetchRelationsihps wasn't showing outdated data. It was showing the db data (as we should know)

    Why I assumed it was, was that the passed Item variable had outdated data within its node xml

    To update the node's xml, please look at my larger comment which talks of using .getItemsByXPath

    Thanks

  • fetch is only used to get DB data.

    Easy example: You have manually opened a Part in Innovator. Typically the BOM relationship is visible too after you have opened the item.

    Now you can immediately use "get" to work with data from the BOM. Cause you already HAVE the data. It´s visible for you and present in the DOM. But if you need to work with data from the "AML" tab in a Method (without opening the tab), you need to "fetch" the data first. 

    "fetch" is just a command for the item dog. (Greetings to the attendees of Innovator Dev Course Gröbenzell 2018)

Reply
  • fetch is only used to get DB data.

    Easy example: You have manually opened a Part in Innovator. Typically the BOM relationship is visible too after you have opened the item.

    Now you can immediately use "get" to work with data from the BOM. Cause you already HAVE the data. It´s visible for you and present in the DOM. But if you need to work with data from the "AML" tab in a Method (without opening the tab), you need to "fetch" the data first. 

    "fetch" is just a command for the item dog. (Greetings to the attendees of Innovator Dev Course Gröbenzell 2018)

Children
No Data