how to redefine &quot;source section&quot; setter<br><br>my function  &quot;setSoureSection&quot;  is not calling when i change the source section value<br>i can call this function directly from the URL<br><br>pl see the attached file for complete code<br>
#############################################################<br><br> def setSourceSection(self, value=None):<br>        &quot;&quot;&quot;<br>        &quot;&quot;&quot;<br>        self.source_section = value<br>        self.calBalanceAvalibleInBudget()<br>
        return<br><br> def calBalanceAvalibleInBudget(self):<br>        &quot;&quot;&quot; Budget Balance<br>        &quot;&quot;&quot;<br>        catalog = getToolByName(self, &#39;portal_catalog&#39;)<br><br>        uid1 = self.getSourceSectionUid()<br>
        result = catalog(uid=uid1)<br>        if not len(result):<br>                self.setBalanceAvalibleInBudget(0)<br>                return 0<br>        obj = result[0].getObject()<br>        #obj.calBalanceAmount()<br>
        val = obj.getBalanceAmount()<br>        if not val:<br>                self.setBalanceAvalibleInBudget(0)<br>                return 0<br>        out = int(val)<br>        self.setBalanceAvalibleInBudget(out)<br>        return out<br>
<br><br><br><br>