function makeSelection($id){ 
        /*@var parentElement /SimplOn/Elements/Element */
        //$orig_sid = Main::$globalSID;
       
        $this->element->fillFromDSById($id);
        //$parentElement = new $parentClass();
        //Main::$globalSID = $orig_sid;
        //$template = $parentElement->templateFilePath('View');
        
        $return = array(
			'status' => true,
			'type' => 'commands',
			'data' => array(
                array(
                    'func' => 'changeValue',
                    'args' => array($this->element->getId())
                ),
                array(
                    'func' => 'changePreview',
                    //'args' => array($this->showInputView(Main::$GENERIC_TEMPLATES_PATH . $short_template, true).'')
                    'args' => array($this->showInputView())
                ),
                array(
                    'func' => 'closeLightbox'
                ),
            )
        );

        header('Content-type: application/json');
        echo json_encode($return);

        
    }
function makeSelection($id){ 
        /*@var parentElement /SimplOn/Elements/Element */
        //$orig_sid = Main::$globalSID;
       
        $this->element->fillFromDSById($id);
        //$parentElement = new $parentClass();
        //Main::$globalSID = $orig_sid;
        //$template = $parentElement->templateFilePath('View');
        
        $return = array(
			'status' => true,
			'type' => 'commands',
			'data' => array(
                array(
                    'func' => 'changeValue',
                    'args' => array($this->element->getId())
                ),
                array(
                    'func' => 'changePreview',
                    //'args' => array($this->showInputView(Main::$GENERIC_TEMPLATES_PATH . $short_template, true).'')
                    'args' => array($this->showInputView())
                ),
                array(
                    'func' => 'closeLightbox'
                ),
            )
        );

        header('Content-type: application/json');
        echo json_encode($return);

        
    }
function makeSelection ( $ id ) { /*@var parentElement /SimplOn/Elements/Element */ //$orig_sid = Main::$globalSID; $ this -> element -> fillFromDSById ( $ id ) ; //$parentElement = new $parentClass(); //Main::$globalSID = $orig_sid; //$template = $parentElement->templateFilePath('View'); $ return = array ( 'status' => true , 'type' => 'commands' , 'data' => array ( array ( 'func' => 'changeValue' , 'args' => array ( $ this -> element -> getId ( ) ) ) , array ( 'func' => 'changePreview' , //'args' => array($this->showInputView(Main::$GENERIC_TEMPLATES_PATH . $short_template, true).'') 'args' => array ( $ this -> showInputView ( ) ) ) , array ( 'func' => 'closeLightbox' ) , ) ) ; header ( 'Content-type: application/json' ) ; echo json_encode ( $ return ) ; }
function makeSelection - this function pass the arguments to javascript file to
display the light box.
@param type $id
function makeSelection - this function pass the arguments to javascript file to display the light box .