Home » Developer & Programmer » Forms » FRM-47307: Cannot get the properties of the tree root node.
FRM-47307: Cannot get the properties of the tree root node. [message #617388] Sat, 28 June 2014 09:02 Go to next message
shahzad-ul-hasan
Messages: 615
Registered: August 2002
Senior Member
DECLARE
	v_def_where			VARCHAR2(500);
	v_block					VARCHAR2(30);
BEGIN
	Tree_Control.Node_Activated;
	
	IF ( Tree_Control.n_curr_parent_node = 0 ) THEN -- Dept Selected
		v_block := 'REGIST_DET';
		v_def_where := Get_Block_Property(v_block,DEFAULT_WHERE);
		Set_Block_Property('REGIST_DET',DEFAULT_WHERE, 'CPID = '||TO_NUMBER(Tree_Control.v_curr_value));
		Go_Block('REGIST_DET');	
	ELSE  -- Employee selected.
		v_block := 'REGIST_DET';
		v_def_where := Get_Block_Property(v_block,DEFAULT_WHERE);
		Set_Block_Property('REGIST_DET',DEFAULT_WHERE, 'CPID = '||TO_NUMBER(Tree_Control.v_curr_value));
		Go_Block('REGIST_DET');
		
	END IF;
	--Execute_Query;
	-- Reset the DEF_WHERE on the block.
	Set_Block_Property(v_block,DEFAULT_WHERE, v_def_where);
	Go_Item('REGIST_DET.MEDICIN');
END;

i am using this code in When tree Node Activiated. It works fine. But when i place this code in when mouse double click and expand the tree it gives me error:
FRM-47307: Cannot get the properties of the tree root node.
please advised.

[Updated on: Sun, 29 June 2014 06:28]

Report message to a moderator

Re: FRM-47307: Cannot get the properties of the tree root node. [message #617464 is a reply to message #617388] Mon, 30 June 2014 06:50 Go to previous message
shahzad-ul-hasan
Messages: 615
Registered: August 2002
Senior Member
Please advised me....Someone
Previous Topic: Toolbar on developer 10G
Next Topic: forms compile error
Goto Forum:
  


Current Time: Tue Apr 30 16:51:55 CDT 2024