public function getFormedFunction()
    {
        //return $this->getInvokeAction();
        $name = $this->_elemName;
        $ehName = $this->objectName;
        $formobj = Openbizx::getObject($this->_formName);
        if ($this->formedFunction)
        {
            return $this->formedFunction;
        }        
        if (!$this->formedFunction || $isDataPanelElement==true)
        {
            // add direct URL support
            if ($this->url) 
            {
                $_func = "loadPage('" . $this->url . "');";
                $_func = Expression::evaluateExpression($_func, $formobj);
            }
            else if (strpos($this->function, "js:") === 0) 
            {
                $_func = substr($this->function, 3).";";
                $_func = Expression::evaluateExpression($_func, $formobj);
            }
            else 
            {
                //$temp = ($this->functionType==null) ? "" : ",'".$this->functionType."'";
                //$_func = "SetOnElement('$name:$ehName'); $selectRecord CallFunction('" . $this->function . "'$temp);";
                //$_func = "Openbizx.CallFunction('" . $this->function . "'$temp);";
                $_func = Expression::evaluateExpression($this->function, $formobj);
                $options = "{'type':'$this->functionType','target':'','evthdl':'$name:$ehName'}";
                $_func = "Openbizx.CallFunction('$_func',$options);";
            }
            $this->formedFunction = $_func;
        }
        return $this->formedFunction;
    }