DATASOURCE get parse json of json hierchy
DATASOURCE get parse json of json hierchy.txt
dataSource.fetchData(null, new DSCallback() {
@Override
public void execute(DSResponse response, Object rawData, DSRequest request) {
// TODO Auto-generated method stub
Record[] record_data = response.getData();
//CONFIG BASICA
titulo_chart = record_data[0].getAttribute("titulo");
subtitulo_chart = record_data[0].getAttribute("subtitulo");
b_msg_chart = record_data[0].getAttribute("b_msg");
t_msg_chart = record_data[0].getAttribute("t_msg");
//CONFIG X AXIS
String x_list_primate = XMLTools.selectObjects( rawData , "/x_list/RESULTADO/x_list").get(0).toString();
com.google.gwt.user.client.Window.alert( key.toString() );
//CONFIG SERIES
//CONFIG GENERALDATA
widget_real_chart.change_Chart(
tipo_chart_id ,
titulo_chart , subtitulo_chart , b_msg_chart , t_msg_chart , "rd",
xlist, seriesList , generalData
);
}
});
dataSource.fetchData(null, new DSCallback() {
@Override
public void execute(DSResponse response, Object rawData, DSRequest request) {
// TODO Auto-generated method stub
Record[] record_data = response.getData();
//CONFIG BASICA
titulo_chart = record_data[0].getAttribute("titulo");
subtitulo_chart = record_data[0].getAttribute("subtitulo");
b_msg_chart = record_data[0].getAttribute("b_msg");
t_msg_chart = record_data[0].getAttribute("t_msg");
//CONFIG X AXIS
String x_list_primate = XMLTools.selectObjects( rawData , "/x_list/RESULTADO/x_list").get(0).toString();
com.google.gwt.user.client.Window.alert( key.toString() );
//CONFIG SERIES
//CONFIG GENERALDATA
widget_real_chart.change_Chart(
tipo_chart_id ,
titulo_chart , subtitulo_chart , b_msg_chart , t_msg_chart , "rd",
xlist, seriesList , generalData
);
}
});
Comments
Post a Comment