Hi Ivan
great job with the JStree...impressive...I have been twidling with it
for a while. now I want to try and integrate it with my Oracle APEX
application. I want to build the tree based on Json that is generated
on the fly by a PL/SQL procedure (that I can call via URL).
The produced Json code is:
[ { data: "Company:NECS, LDA" ,
children : [ { data : "Car2" ,
children : [ {data:"358244017666654" ,
title:"358244017666654 ",href:"p=APP_ID:
9:SESSION_ID::::P9_COMPANY,P9_VEHICLE,P9_SELECTOR,P9_USERID,P9_SHOW_ALL:
61,358244017666654,SELECTOR,USERID,N",
title: ]} ,
{ data : "Truck" , children : [ ]} ,
{ data : "Van" , children : [
{data:"358244016773352" , title:"358244016773352
",href:"p=APP_ID:
9:SESSION_ID::::P9_COMPANY,P9_VEHICLE,P9_SELECTOR,P9_USERID,P9_SHOW_ALL:
61,358244016773352,SELECTOR,USERID,N", title: ,
{data:"353234021217920" , title:"353234021217920 ",href:"p=APP_ID:
9:SESSION_ID::::P9_COMPANY,P9_VEHICLE,P9_SELECTOR,P9_USERID,P9_SHOW_ALL:
61,353234021217920,SELECTOR,USERID,N", title: ]} , { data :
"Motorcycle" , children : [ {data:"358244017666878" ,
title:"358244017666878 ",href:"p=APP_ID:
9:SESSION_ID::::P9_COMPANY,P9_VEHICLE,P9_SELECTOR,P9_USERID,P9_SHOW_ALL:
61,358244017666878,SELECTOR,USERID,N", title: ]} ]
and the URL I need to set is of the format:
http://127.0.0.1:8082/apex/getJsonvehicle?pcomp=61
where pcomp is a parameter I am passing.
The HTM code for this is:
<script type="text/javascript" class="source">
$(function () {
var pcom = 61;
$("#async_json_1").tree({
data : {
async : true,
opts : {
type : "json",
url : "/getJsonvehicle?pcomp=61",
method: "GET"
}
} });
});
yet in firebug I get an error saying that the procedure call is wrong
as if it is not reading the parameter...
any help would be greatly appreciated.