i worked with apex 4.2 and i created Tree and tabular form to retrieve the date according the value of tree select node the code of tree something like this
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
end as status,
"ENAME" as title,
null as icon,
"EMPNO" as value,
null as tooltip,
'f?p=36648:34:5234984107903::::P40_SELECTED_NODE:'||empno as link
start with "MGR" is null
connect by prior "EMPNO" = "MGR"
order siblings by "ENAME
and i put Selected Node Page Item: P40_SELECTED_NODE . the tree worked good and retrieve the data into tabular form according to tree node value
my Question :
1- i want to retrieve the data without submit the page where each time i select value from tree make page reload to update the tabular form with new value ,there is any way to pass the value of tree node to P40_SELECTED_NODE item and refresh tabular form without page reload .
2- i want when selected from tree run page process according to value of tree node i tray to create Dynamic action with (jquery selector : div.tree li>a) but the Value of node incorrect.
Take a look at my tree example application.
When you select a node, a details report is refreshed. That should help you implement it for your situation.
One thing to note though is the link on each node you have. Clicking a node will redirect to the same page and set the value of P40_SELECTED_NODE. You can keep the item, but the link will have to go, as that is the one "reloading" the page each time you click a node. Implementing the tree "onselect" action and setting the page item to the node value will do that instead. Don't forget to add the page item to the items to submit in the tabular form.
The reason why your selector didn't return the correct value is because you have a click event bound to the anchor tag in each list item. The anchor tag does not hold the actual value (usually and id), but only holds the display value. The list item elements contain the actual value in their "id" attribute. Thus, to get that value you'd always need to inspect the first parent of the clicked anchor tag. (which is another way of solving it, of course)