Displaying JavaFX Graph through xml located remotely

Hi
I am writing a application which gets a XML file thought URL and parse it and generates a JavaFX Graph.
i used HTTPRequest and PullParser
I know due to asyncronous call of HTTPRequest its not displaying the graph.
I like to know easy and effective way to creating this type of application.
I use my code in this format
imports;
var graphValues:String[]=[];
def pullParser = PullParser {
// parse xml and assign to graphValues
def httpRequest : HttpRequest = HttpRequest {
//get xml
def scene : Stage = Stage {
content: [
           BarChart3D {
//create graph and display
}If i need to write the asynchronous code inside stage then how ? sample code will be good.
is it possible to write in postinit{} block?
Edited by: rrhegde on Jul 29, 2009 7:14 PM

Hi.
One solution could be to put a message "Loading..." as the scene´s initial content.
Then at the end of the XML reading, You call a function that change the scene´s content to Your chart.
The function could look like this:
function changeSceneContent() {
    var myChart:MyChart = MyChart{};
    s.scene.content = [myChart];
}Another try could be to instantiate Your chart and bind It as the scene´s content.
var myChart:MyChart = MyChart{};
Stage {
  scene {
  content: bind [myChart]
}Cheers

Similar Messages

  • Web display of graphs through oracle 9i reports

    How do i display a graph on the web page in reports 9i.

    Hello Vijayalakshmi,
    Invoke Builder. Create a Report with layout "Web and paper layout".
    Now switch to Web Source. Go to Menu, Insert -> Graph. Graph Wizard will be invoked. Create the required graph.
    Save the report as JSP.
    Now you can run the Report throuh Builder: - > Run Web Layout and graph will be shown or browser with other data in Web Layout.
    or You can run the Report as JSP from OC4J and see the output.
    With Regards
    Sachin

  • Proxy output not displayed in the output XML

    Hi,
    I have created a web service and is calling the service using SOAP UI tool. To do it i have created an RFC Fm and inported to SAP PI and activated it with the input and output parameters that i need. When i am calling the service through the SOAP UI, in debugging( in the provider class of the service interface of the sproxy transaction ) i am able to see the values filled in one of the parameters but the same is not getting displayed in the output XML.(Response). Can any one please suggest what cud be the reason.
    Thanks

    Hi,
    can give us a hint? Code output, screenshot? btw I hope your service is a Synchronous service.
    Thanks Nick.

  • Help with delivering dynamic text through an external file, through XML?

    I'm struggling to find the best way to deliver dynamic text
    from an external file, through XML, to a Flash file.
    I use small Flash pieces to deliver multiple sets of content
    through a single .swf file. An example is here:
    http://www.esi-intl.com/public/government/federal.asp
    In the .swf file at the bottom, I'm using a three-scene .fla
    file. I'm putting the actionScript in the Actions layer atop each
    frame. Example:
    stop ();
    loadVarsText = new LoadVars();
    loadVarsText.load("fedNews.txt");
    //assign a function which fires when the data is loaded:
    loadVarsText.onLoad = function(success) {
    if (success) {
    trace("done loading");
    //Now that we know the data is loaded,
    //set the text content of the Text Field
    //with the instance name "scroller" equal to the
    //contents of the variable
    scroller.html=true;
    scroller.htmlText = this.var1;
    } else {
    trace("not loaded");
    In that .txt file, I'm putting the information like this:
    var1=<font face="tahoma,verdana,sans-serif" size="11px"
    color="#000000"><b><a href='
    http://www.esi-intl.com/public/classroomtraining/dau.asp'>DAU
    Grants ESI Course CON353
    Equivalency</a></b><br>Advanced Business Solution
    in Contracting (CON 353) is an equivalency for DAU's CON 3535
    course, Advanced Business Solutions for Mission Support. <a
    href='
    http://www.esi-intl.com/public/classroomtraining/dau.asp'><U><font
    color="#996633">Continue</font></U></a></font>
    So much of this is pick-ups from what I've researched in
    Google. I'm looking for a way I can feel more confident in my code,
    and also have that code follow CSS.
    Lastly, I recognize the problems in XML with using single
    quotes / double quotes, and the & symbol. This is one of my
    largest time sucks, and I'd like to find a better way to do this.
    Thank you

    Hi,
    Did you ever find a resolution to this? I'm having a similar
    issue that I can't seem to get multiline dynamic text working in
    CS3.
    The font is embedded but it just displays the first line, and
    then a blank. I'm sure this worked fine in Flash MX.
    Cheers, Ant

  • How to Call DataGrid through xml

    Hi,
    I need to fill my datagrid when i click the add button. How
    to do it and how to call through Xml. Any idea.
    Regards
    Muthu

    Hi,
    You can find a sample in which XML data is being displayed
    using DataGrid.
    http://livedocs.adobe.com/flex/3/langref/mx/controls/DataGrid.html#includeExamplesSummary
    Hope this helps.

  • Inserting a record through XML into the tbale

    Hi,
    When i insert a record into a table through XML data which is through CLOB,
    the data gets inserted and when i commit the ransaaction and check in my table, the data gets inserted for only few feilds and the remaining feilds will be blank , though the value in the field is inserted through XML.
    please get back to me at the earliest.

    are you sure you can see the hole content?
    increase the maximum width for displaying CLOB:
    SQL> desc test
    Name Null? Typ
    DATA CLOB
    SQL> insert into test values ('<EMPS><EMPLOYEE_ID>200</EMPLOYEE_ID>
    2 <FIRST_NAME>Jennifer</FIRST_NAME>
    3 <LAST_NAME>Whalen</LAST_NAME>
    4 <EMAIL>JWHALEN</EMAIL>
    5 <PHONE_NUMBER>515.123.4444</PHONE_NUMBER>
    6 <HIRE_DATE>17-SEP-87</HIRE_DATE>
    7 <JOB_ID>AD_ASST</JOB_ID>
    8 <SALARY>4400</SALARY>
    9 <MANAGER_ID>101</MANAGER_ID>
    10 <DEPARTMENT_ID>10</DEPARTMENT_ID></EMPS');
    1 row created
    SQL> select * from test;
    DATA
    <EMPS><EMPLOYEE_ID>200</EMPLOYEE_ID>
    <FIRST_NAME
    SQL> set long 500
    SQL> select * from test;
    DATA
    <EMPS><EMPLOYEE_ID>200</EMPLOYEE_ID>
    <FIRST_NAME>Jennifer</FIRST_NAME>
    <LAST_NAME>Whalen</LAST_NAME>
    <EMAIL>JWHALEN</EMAIL>
    <PHONE_NUMBER>515.123.4444</PHONE_NUMBER>
    <HIRE_DATE>17-SEP-87</HIRE_DATE>
    <JOB_ID>AD_ASST</JOB_ID>
    <SALARY>4400</SALARY>
    <MANAGER_ID>101</MANAGER_ID>
    <DEPARTMENT_ID>10</DEPARTMENT_ID></EMPS
    SQL>

  • CUSTOMIZING GRAPH USING XML AND SRW.APPLY_DEFINITION

    Hello,
    I'm trying to use the document
    http://www.cs.uvm.edu/oracle9doc/appdev.901/a88894/adx14rep.htm#1017323
    and trying to modify a graph property. I keep getting "Rep-6106 Error in
    Report Definition at Line 1", whenever I add the graph tag.
    Is graph allowed to be changed through XML and SRW.APPLY_DEFINITION?
    Here's how I'm giving it in the report:
    '<report name="esummarytestg" DTDVersion="1.0">
    <layout>
    <section name="main">
    <field name="F_1" source="ACTIVE_INSTANCES" textColor="red">
    <graph name="CT_2">
    <geometryInfo x="0.25000" y="0.25000" width="9.06250" height="3.68750" />
    <generalLayout verticalElasticity="variable"
    horizontalElasticity="variable" />
    <graphDefinition>
    <![CDATA[
                  <rw:graph id="CT_2" src="G_RTG" groups="RTG"
    dataValues="NUM_OF_WEEKS">
                  <!--
                  <?xml version="1.0" ?>
                  <Graph version="3.2.0.22">
                  <LegendArea automaticPlacement="AP_NEVER"
    position="LAP_BOTTOM"/>
                  <MarkerText visible="true"/>
                  <SeriesItems defaultFitlineType="FT_NONE"/>
                  </Graph>
                  -->
                  </rw:graph>
                 ]]>
    </graphDefinition>
    </graph>
    </section>
    </layout>
    <customize>
    </customize>
    </report>'

    Come on, guys. Help! :(

  • OVM Server login through xml-rpc

    Hi,
    I installed OVM Server 2.2.1 on a x86 pc. Interested in remote control of OVM through xml-rpc, I try to login through xml-rpc. The python codes which are referenced from Xen API are:
    *>>> import xmlrpclib*
    *>>> server = xmlrpclib.Server("http://mypc:8006")*
    *>>> session = server.session.login_with_password("xxxx", "xxxx")*
    The OVM Server can't be login. The error message is:
    *{'Status': 'Failure', 'ErrorDescription': ['MESSAGE_METHOD_UNKNOWN', 'session.login_with_password']}*
    I have modified /etc/xen/xend-config.sxp as follows before login:
    *1. (xend-tcp-xmlrpc-server yes)*
    *2. (xend-tcp-xmlrpc-server-address 'mypc')*
    *3. (xend-tcp-xmlrpc-server-port 8006)*
    Then I restart xend.
    OVM Server support xml-rpc, since the communication between OVM Server and Manager is through xml-rpc. From feedback error message, the socket communciation is OK. I wonder whether xmlrpclib is modified, or the question lies on password and username?
    Thanks for any help.
    Edited by: 854681 on Apr 26, 2011 2:30 AM
    Edited by: 854681 on Apr 26, 2011 2:31 AM

    Hi,
    I would not mess around with xml-rpc, because the calls are not documented by Oracle.
    So if you change the OVS_AGENT/MANAGER it might be, that these calls change.
    As an alternative I would suggest either taking the web-service API, which the OVM Manager provides, or use ovmcli, if you prefer the commandline.
    Regards
    Sebastian

  • It is possible to display a graph in smartforms

    Hi,
    In report , i am displaying the graph similary i want to   print the graph in smartforms.
    Plz give me details .
    Wht is spf ?
    Regards,
    Rani.

    Hi Rani,
    chech this link..
    http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1192768,00.html?NextURL=http%3A//searchsap.techtarget.com/tip/0%2C289483%2Csid21_gci1192768%2C00.html
    Reward points if helpful..
    Regards,
    Goutham.

  • Null Error in Displaying a value through view attribute

    I just want to display a value through message styled text bean from view attribute .
    For that i use the code in PR:
    But it gives null error: Please any one help me.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("StaffInfoVO1");
    if(vo!=null)
    OARow row = (OARow)vo.getCurrentRow();
    System.out.println("vo is not null");
    String str1 = row.getAttribute("FullName").toString();
    OAMessageStyledTextBean stext1 = (OAMessageStyledTextBean)webBean.findChildRecursive("RFStaffName");
    stext1.setText(str1);
    While getattribute("FullName") executed it gives null error. Why?
    how to rectify?

    Hai,
    I can execute the query in toad which returns 1 row of data. It is not null rows.
    But my vo object, why it is not executed. Returning null. I dont know.. Too many hours i spent.
    VO query:
    select distinct papf.person_id,papf.FULL_NAME,
    papf.EMPLOYEE_NUMBER,
    papf.EMAIL_ADDRESS,
    papf.WORK_TELEPHONE,
    hla.COUNTRY,
    sysdate,
    pap.NAME,
    haou.NAMe department,
    ood.ORGANIZATION_NAME
    from
    per_all_people_f papf,
    per_all_assignments_f paaf,
    per_all_positions pap,
    per_jobs pj,
    per_grades pg,
    per_person_types ppt,
    hr_all_organization_units haou,
    hr_locations_all hla,
    org_organization_definitions ood
    where
    papf.PERSON_TYPE_ID=ppt.PERSON_TYPE_ID and
    papf.PERSON_ID=paaf.PERSON_ID and
    paaf.POSITION_ID=pap.POSITION_ID and
    paaf.JOB_ID=pj.JOB_ID and
    paaf.BUSINESS_GROUP_ID=haou.BUSINESS_GROUP_ID and
    papf.person_type_id=13 and
    haou.business_group_id=202 and
    haou.NAME like '%Global%Sales%' and
    papf.FULL_NAME like '%Stand%' and
    paaf.LOCATION_ID=hla.LOCATION_ID and
    paaf.ORGANIZATION_ID=ood.ORGANIZATION_ID and
    sysdate between papf.EFFECTIVE_START_DATE and papf.EFFECTIVE_END_DATE and
    sysdate between paaf.EFFECTIVE_START_DATE and paaf.EFFECTIVE_END_DATE
    Help Me.
    Thanks & Regards

  • How to display the drill through report in a new browser seperate window

    Hello All,
    I am working on a drill through report which should run when I select the column value from the main report. The drill through report I am working on is Centerline Validate Angles for a specific line. It has 2 parameters, Pods ID and Angle. Main report supplies
    these 2 values. Right now, I am having an issue in displaying the drill through report in a seperate window. I have selected Go To URL option from the text box properties in main report and gave the expression as
    ="javascript:void(window.open('http://vmaidbdev1/Reportserver?%2fADN2%2fPipeline%2fCenterline+Validate+Angles+For+Specifi+Line&rs%3aCommand=Render&PODS_ID="&Fields!LINE_ID.Value &"&Angle="&Parameters!Angle.Value
    This is not working. The field in the main report is clickable but when I click it is throwing me error as Reporting services error. Could any one let me know if there is any error in the above expression or anything I need to add or correct.
    Please help. Thanks so much.

    Hi srisql,
    Sorry for the delay in getting back to you.
    After double-check the URL which I posted, I find that I have made some error in it. As you can see, there are some spaces in the URL. So please try the following expressions to check the issue again.
    Angle parameter is a multi-value parameter:
    ="javascript:void(window.open('http://vmaidbdev1/reportserver?/Adn2/Pipeline/Centerline Validate Angles for a specific line&PODS_ID="& Fields!LINE_ID.Value &"&Angle="
    &Join(Parameters!Angle.Value,"& Angle =") &"','_blank'))"
    Angle parameter is a single-value parameter:
    ="javascript:void(window.open('http://vmaidbdev1/reportserver?/Adn2/Pipeline/Centerline Validate Angles for a specific line&PODS_ID="&Fields!LINE_ID.Value &"&Angle="&Parameters!Angle.Value
    &"','_blank'))"
    The following general URL is for your reference:
    ="javascript:void(window.open('http://server_name/reportserver?/folder/ folder/report_name&parameter_name="&Fields!field_name.Value &"&parameter_name="&Parameters!parameter_name.Value
    &"','_blank'))"
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to send a request and get a response through xml

    How to send a request and get a response through xml files?

    This is the code that works for me. Hope you find it useful.
         public static String sendHttpGetRequest(String endpoint, String requestParameters){
              String result = null;
              // Send a GET request to the servlet
              try{
                   // Send data
                   String urlStr = endpoint;
                   if (requestParameters != null && requestParameters.length () > 0){
                        urlStr += "?" + requestParameters;
                   URL url = new URL(urlStr);
                   HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                   conn.setRequestProperty("Accept", "application/xml");
                   // Get the response
                   BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                   StringBuffer sb = new StringBuffer();
                   String line;
                   while ((line = rd.readLine()) != null){
                        sb.append(line);
                   rd.close();
                   result = sb.toString();
              } catch (Exception e){
                   e.printStackTrace();
              return result;
         }

  • Sender sending data through XML, How to process it in ECC (No PI involve)?

    Hi,
    The sender system sending data through XML tag and that need to be processed in SAP side.
    How it can be done without involving XI or IDoc?
    Is it possible through HTTP post?
    Sample XML Transactions
    1. SAP Availability Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILREQUEST>
    <AVAILTEXT>CHK STATUS</AVAILTEXT>
    </ECCAVAILREQUEST>
    2. SAP Availability Transaction (Response)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILRESPONSE>
    <AVAILTEXT>OK</AVAILTEXT>
    </ECCAVAILRESPONSE>
    3. DUMMY_SYSTEM PO Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <DUMMY_SYSTEM REQUEST>
    <CREATEPB>1</CREATEPB>
    <POORDERDATA>
    05607015156070151TORDAEHTWW05727500002D0979054+
    </POORDERDATA>
    4. DUMMY_SYSTEM Order/Inquiry Transaction (Response)
    <DUMMY_SYSTEM RESPONSE>
    <C_PO>99999</C_PO>
    <RETURNDATA>
    DAT&#13;&#10;
    </RETURNDATA>
    </DUMMY_SYSTEM RESPONSE>

    Hi,
    check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/21/e9c97ceb1911d6b2ea00508b6b8a93/content.htm
    this is for processing inbound IDOc through XML-HTTP(Inbound) port
    like this there should be an option for reading files placed by HTTP_POST.
    in SICF transaction there should be a service to do that.
    defaulthost -> sap-> xi-> adapter_plain. i know you don't have XI in your landscape but this is the component which be responsble for receving messages over HTTP_POST.
    look for a program which can access messages from there.
    please check with your basis team
    Suresh

  • Opening files through network location is not working in Office 2013

    Dear Colleagues!
    We have faced the following problem. On our Windows 7 Professional computers were installed Office 2013 Standard. softwares.  As before we have defined network locations.  After the step into the folder through the dfined network location
    the Word and Excel do not open the files and the base Office 2013 screen appears with the icons. If we define a shortcut onto the desktop of the computer the same way and step into this folder through the mentioned shortcut the Word and Excel 2013 opens
    the files. For Exemple a pdf file opens in Acrobat Reader through the dfined network location and through the mentioned shorcut as well. It would be important to solve the file handling through network locations too.
    Thanks in advance your answers.
    Best regards
    LAMBDA61 László

    Hi,
    As per the description, I understand that your Office 2013 cannot open files through a network share directly.
    I would like to know that how many clients/users are affected by this in your environment. It could be some specific user account settings, that the Office applications are being affected by.
    I'd first suggest you try with a new Windows user profile, then verify result.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Display only graph in the Crystal report viewer

    Background:
    We used Crystal Reports ver10 to display various graphs in our ASP.Net 2.0 Web Application (Visual Studio 2005)
    We recently migrated our application to .NET 4.5 and Crystal Reports ver13 (Visual Studio 2012)
    Issue:
    Now, the Crystal Report Viewer control loads the graph inside an <IFRAME> which shows the whole page with the graph placed on the right bottom corner instead of just the graph image as it used to previously.
    I have checked various properties that hides the tree and the toolbar and I am unable to get rid of the whole page.
    Query:
    Is there a way to not display the page and display only the image that contains the graph? OR
    Is there a way to not render the whole <iframe> and just display the graph image inside a <div> as it used to happen before?

    Hi Ludek, thanks for your response. Please refer the screenshots below.
    1) CR ver10 - the graph <img> is simply enclosed inside a div
    2) CR ver13 - the graph <img> is enclosed inside an <iframe>'s body - you can also see the scroll bars and "white-page-background" and "grey space" which I am hoping to hide or disable
    3) We are using the same set of CRViewer properties in both cases:
    - DisplayGroupTree = False
    - DisplayToolbar = False
    - HasDrillUpButton = Flase
    - HasRefreshButton = False
    - HasToggleGroupTreeButton = Fasle
    - HasViewList = False
    - HasZoomFactorList = False
    - EnableViewState = True
    4) Here's a screenshot of of the .rpt file opened in the VS 2012:
    We only want to render the graph image on the UI and not the whole page. Is there a property setting that will help us achive this or should we define explicit CSS styles to hide those areas?
    Thank you for looking into this!
    Avrosh

Maybe you are looking for

  • Is it possible to see transcript from analyzed clips when working in multiclip view?

    I have a 2 camera interview and a transcript and would like to use the to use the speech analysis feature in the multiclip window to edit the 2 clips together. Macbook Pro 2.3 ghz i7 8gbRAM OSX 10.9.1

  • Problem in Constructor in JApplet

    I try the following code to create a new class. private Dept depts; public void init() depts = new Dept( "blah.." ); class Dept public Dept( String strTemp ) I successfully compile it. But when I try to run the applet, it gave me this error: java.lan

  • Which course is better for consolidation apects of BPC and other EPM tools

    Hi All, I am having the technical understanding of BPC as a tool, but I am not able to understand the consolidation part of it. I would like to gain an insight of the financial part of the BPC consolidation. Not only this, there are few other tools i

  • 9i can't connect to a data base, even when I use another user's tnanames.or

    I can't connect to a data base, even using tnsping with a tnanames.ora file that I copied from a user's PC that was able to connect. It's a new install of 9i on my PC. What did I miss? I'm on a Win 2000 box and Oracle is on a UNIX server. Here's the

  • Security with WLC

    when we confiure wlc for authentication using ACS server or 802.1x server then we have to configure the same authentication method on client device also under profile management of the cisco aironet desktop utility. but what happens when we r using i