DucTran
9 years agoIdeator III
get the checkbox status of versionable Item
I have a problem with get property for versionable Item.
My server method is trigger with event onAfterVersion
Method code:
'Create object innovator
Dim innovator As Innovator = Me.newInnovator
'Get current item "part"
Dim partItem As Item = innovator.newItem(Me.getType())
partItem.setID(Me.getID())
partItem.setAction("get")
partItem.setAttribute("select", "inn_is_total_cost")
Dim partItem_re As Item = partItem.apply()
Dim isTotalCost As String = partItem_re.getProperty("inn_is_total_cost")
I try to lock part > modify something > unlock part (increased version) but isTotalCost is always return value of previous version??? I think it should be value of latest version.
I have tried to use config_id and is_current = 1 but it does not working. :(