Revisions not working properly on custom item types

Former Member
Former Member
I have a custom item type that has Versionable enabled. I can "Version" the part when in manual versioning mode, which modifies the "Generation". I do not have the "Create New Revision" Option in the Actions menu. In fact I have no actions menu at all. Have I missed something here?
Parents
  • Hello, It is possible to read the 'Released' property on the Life Cycle State with the following sample C# code.
    Innovator inn = this.getInnovator();
    
    // Get the Life Cycle State
    string lcsID = this.getProperty("current_state");
    
    Item LCS = inn.newItem("Life Cycle State", "get");
    LCS.setID(lcsID);
    LCS = LCS.apply();
    
    // Check if this state is flagged as 'released'
    string isReleasedState = LCS.getProperty("set_is_released");
    
    if (isReleasedState == "1")
    {
    // Logic to run if state is released
    }
    
    // Default logic
    I tested this sample by running it through an action, but it should also work being called through a server event. Chris ______________________________ Christopher Gillis Aras Labs Software Engineer
Reply
  • Hello, It is possible to read the 'Released' property on the Life Cycle State with the following sample C# code.
    Innovator inn = this.getInnovator();
    
    // Get the Life Cycle State
    string lcsID = this.getProperty("current_state");
    
    Item LCS = inn.newItem("Life Cycle State", "get");
    LCS.setID(lcsID);
    LCS = LCS.apply();
    
    // Check if this state is flagged as 'released'
    string isReleasedState = LCS.getProperty("set_is_released");
    
    if (isReleasedState == "1")
    {
    // Logic to run if state is released
    }
    
    // Default logic
    I tested this sample by running it through an action, but it should also work being called through a server event. Chris ______________________________ Christopher Gillis Aras Labs Software Engineer
Children
No Data