How can i request an input of data from a deployed web service via a html

Hi all, I am currently having trouble with a web service. I want a client to be able to input a numerical value for a control in a deployed VI.
At present i have one main vi that generates a signal and i've collected waveform data and displayed this data on a a chart. The web service uses a static folder containing html and javascript files. The html file calls the js file which parses the waveform data and returns to html to be stored as a chart_div. I have all the controls and indicators in one VI, connected by terminals using GET method.
I am looking for a way of scripting a request form so that when called by the html file, the client user can input a control and change the values on the waveform graph. I also have an update button that requests updated data. 
If anyone could suggest a method of how to accomplish this it would be SO helpful
Thanks, Chris

Hi Chris,
I take it you are using the RESTful API method to GET the data. In that case you shoul be able to perform a http POST from your js code in order to update the controls.
This could be done as form components are updated, or after a submit button is pressed (I'm sure you are familiar with this part).
Please see here for more information: http://zone.ni.com/reference/en-XX/help/371361J-01​/lvhowto/build_web_service/
I hope this helps.

Similar Messages

  • How can we transfer huge amount of data from database server to xml format

    hi guru
    how can we transfer huge amount of data from database server to xml format.
    regards
    subhasis.

    Create ABAP coding
    At first we create the internal table TYPES and DATA definition, we want to fill with the XML data. I have declared the table "it_airplus" like the structure from XML file definition for a better overview, because it is a long XML Definition (see the XSD file in the sample ZIP container by airplus.com)
    *the declaration
    TYPES: BEGIN OF t_sum_vat_sum,
              a_rate(5),
              net_value(15),
              vat_value(15),
             END OF t_sum_vat_sum.
    TYPES: BEGIN OF t_sum_total_sale,
            a_currency(3),
            net_total(15),
            vat_total(15),
            vat_sum TYPE REF TO t_sum_vat_sum,
           END OF t_sum_total_sale.
    TYPES: BEGIN OF t_sum_total_bill,
            net_total(15),
            vat_total(15),
            vat_sum TYPE t_sum_vat_sum,
            add_ins_val(15),
            total_bill_amount(15),
           END OF t_sum_total_bill.TYPES: BEGIN OF t_ap_summary,
            a_num_inv_det(5),
            total_sale_values TYPE t_sum_total_sale,
            total_bill_values TYPE t_sum_total_bill,
           END OF t_ap_summary.TYPES: BEGIN OF t_ap,
            head    TYPE t_ap_head,
            details TYPE t_ap_details,
            summary TYPE t_ap_summary,
           END OF t_ap.DATA: it_airplus TYPE STANDARD TABLE OF t_ap
    *call the transformation
    CALL TRANSFORMATION ZFI_AIRPLUS
         SOURCE xml l_xml_x1
         RESULT xml_output = it_airplus
         .see the complete report: Read data from XML file via XSLT program
    Create XSLT program
    There are two options to create a XSLT program:
    Tcode: SE80 -> create/choose packet -> right click on it | Create -> Others -> XSL Transformation
    Tcode: XSLT_TOOL
    For a quick overview you can watch at the SXSLTDEMO* programs.
    In this example we already use the three XSLT options explained later.
    As you can see we define a XSL and ASX (ABAP) tags to handle the ABAP and XML variables/tags. After "

  • Is it possible to read/write data from Salesforce using web service hub in Informatica?

    Anyone from Informatica can asnwer this question please

    Is it possible to read/write data from Salesforce using web service hub in Informatica? Not asking about PowerExchange for Salesforce or Informatica Cloud. Just using web service can we load data into Salesforce? Thanks ahead.

  • How can we retrieve list and library data from rest services

    Hi Everybody,
    How can we get the list or library data from sharepoint 2010 rest services.
    Here is the URL I am trying: https://siteurl/_vti_bin/listdata.svc
    Can anybody please provide sample c# code to pull the info.
    Thanks in advance,
    Krishna
    Krishnasandeep

    Here is reference material:
    http://msdn.microsoft.com/en-us/library/ff798339.aspx
    And an example:
    http://www.c-sharpcorner.com/uploadfile/anavijai/rest-api-in-sharepoint-2010-for-listdata-svc-part-2/
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Pulling Data from an imported web service into a data grid - Flex 3.0

    Hi all,
    I have created a web service from Oracle using JDeveloper and imported it into my Fex 3 project, and I am trying to populate a data grid with the data from the web service.  I was trying to emulate the example found in my Adobe Flex 3.0 for Dummies book (see http://dougmccune.com/flexfordummies/chapter14/srcview/index.html), and while the code from the book with that data service works fine, I can't get my application to work.  My issue is with the part of code mx:DataGrid dataProvider="(service)"  - I do not know how to specify what to use for the data source to populate the data grid from my imported web service.  Any suggestions or examples would be helpful, as I am a newcomer to Adobe Flex.  My code is as follows:
    <?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"xmlns:webservices="
    generated.webservices.*">
     <mx:Script>
    <![CDATA[
     private function getData():void {service.getPdRec(ageDt.text);
    ]]>
    </mx:Script>
     <webservices:PD_Pct_Web_Service id="service" />
     <mx:VBox>
     <mx:HBox width="100%">
     <mx:TextInput id="ageDt" width="100%" />
     <mx:Button id="submitButton" label="Search" click="getData()" />
     </mx:HBox>
     <mx:DataGrid dataProvider="(service.getPdRec_lastResult
    " rowHeight="
    58" width="100%" height="300">
     <mx:columns>
     <mx:DataGridColumn dataField="creditManager" headerText="Credit Manager" width="40" />
     <mx:DataGridColumn dataField="pdTarget" headerText="PD Target" width="40" />
     <mx:DataGridColumn dataField="totalPd" headerText="Total PD" width="40" />
     <mx:DataGridColumn dataField="pdPct" headerText="PD Percent" width="50" />
     </mx:columns>
     </mx:DataGrid>
     </mx:VBox>
     </mx:Application>
    My web service returns the following when invoked:
    <env:Envelope
      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:ns0="http://erec_db/PD_Pct_Web_Service.wsdl/types/">
    <env:Body>
      <ns0:getPdRecResponseElement>
       <ns0:result>
        <ns0:creditManager>Cobb</ns0:creditManager>
        <ns0:pdTarget>10</ns0:pdTarget>
        <ns0:totalPd>147.65</ns0:totalPd>
        <ns0:pdPct>26.77</ns0:pdPct>
       </ns0:result>
       <ns0:result>
        <ns0:creditManager>Collova</ns0:creditManager>
        <ns0:pdTarget>10</ns0:pdTarget>
        <ns0:totalPd>27.71</ns0:totalPd>
        <ns0:pdPct>21.67</ns0:pdPct>
       </ns0:result>
       <ns0:result>
        <ns0:creditManager>Lee</ns0:creditManager>
        <ns0:pdTarget>10</ns0:pdTarget>
        <ns0:totalPd>33.61</ns0:totalPd>
        <ns0:pdPct>72.38</ns0:pdPct>
       </ns0:result>
       <ns0:result>
        <ns0:creditManager>Maynard</ns0:creditManager>
        <ns0:pdTarget>10</ns0:pdTarget>
        <ns0:totalPd>74.19</ns0:totalPd>
        <ns0:pdPct>33.69</ns0:pdPct>
       </ns0:result>
       <ns0:result>
        <ns0:creditManager>Ong</ns0:creditManager>
        <ns0:pdTarget>10</ns0:pdTarget>
        <ns0:totalPd>13.26</ns0:totalPd>
        <ns0:pdPct>46.06</ns0:pdPct>
       </ns0:result>
      </ns0:getPdRecResponseElement>
    </env:Body>
    </env:Envelope>

    Use data binding. <mx:DataGrid dataProvider="{service.getPdRec_lastResult}"
    -Radhakrishna

  • How can i move my game centre data from my old account to another new account??

    I want to tranfer my apple id date to another apple id. Because i was using my moms Apple id.. &amp; now i have created my own new apple. So now i want to move my all game centre, icloud data to my new email. Is that possible to move my data from my moms apple id to my apple id.??

    iTunes: How to move your music to a new computer:
    http://support.apple.com/kb/HT4527?viewlocale=en_US
    This is our resident iPhoto guru, Terence Devlin's, advice:
    You can move your iPhoto Library to an external disk pr new Mac:
    1. Quit iPhoto
    2. Copy the iPhoto Library Folder as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.

  • How can I use notifications to send data from different sources to thesame chart?

    Hi,
    I am using the "Continuous Measurement and Logging" template project that ships with LV 2013.
    It is extremenly helpful for figuring out messaging between the acquire, graph, and log loops. (Thanks NI!)
    I've run into a snag however.
    I would like to modify it so that my graphing loop receives data notifications from two acquisition sources via notifiers.
    I'm having trouble getting data from both sources to display on the same chart.
    I've isolated the issue in the attached vi.
    Here's what happens:
    1. I create data from 2 parallel loops and send the data to a third parallel loop with notifiers.
    2. The third loop receives data from only one of the loops because one of the receiving notifiers just times out instead of receiving data.
    Can someone suggest how I can fix this?
    Thanks.
    - Matt
    Solved!
    Go to Solution.
    Attachments:
    test notification loop.vi ‏42 KB

    Here is my modification of your VI. I put notes on the block diagram to explain the changes. It uses a queue for the data transfer to avoid loss of data. It uses a notifier to stop the loops. All local variables and Value property nodes have been eliminated.
    The way the loops are stopped will likely leave some data in the queue. No more than one or two iterations of each of the data acquisition loops. If you need to guarantee that all data has been displayed (or saved in a real application), then you need to stop the acquisition loops first and read the queue until you know it is empty and both of the other loops have stopped. Then stop the display loop and release the queue and notifier.
    Lynn
    Attachments:
    test notification loop.ldj.vi ‏1036 KB

  • How can I simply restore lost app data from iCloud, without resetting all content. Please someone!!!

    I accidentally deleted a timesheet app from my iPhone, I reinstalled the app again but the data did not come back with it. Can someone help me with details how I can restore my lost data for just that app, from iCloud. iCloud is and was set up on my phone and was updated 3 days before this happened. People have suggested I "reset all content and setting" and it will come back. The sounds of deleting all content on my phone worries me. I have no other devices to back up on, so my only back up is in "iCloud"
    Is there a simple way I can download and reinstall just the data for the app from iCloud?

    Delete all content and settings will wipe your phone. You cannot selectively restore in iTunes or iCloud, it is either all or none. You would have to restore to a backup before you deleted the app to be able to recover the data. However, anything that you did since that time would be lost.

  • How can i request apple to remove icloud from my iphone 4

    hello everyone so i have this problem on my sisters iphone 4, while in france she bought an used iphone 4 but she didnt knew anything how does icloud works, so she bought the phone and came back to home country. so she used the phone for a while until something went wrong with her iphone so i took it and restored it using itunes, but now the iphone it is stuck on i cloud acctivation and she has no idea how to contact the original owner to ask for apple id password, so i was wondering is there any way how can i contact apple and request to them to delete icloud from her iphone  . thanks
    Note: the phone is not stolen, i checked the imei on various websites on the internet and doesnt sems to be on blacklist, and the phone was bought on a mobile shop so i dont think they sell stolen iphones to anyone.

    also got 1 iphone id remve from they they tell they have apple own and they provide me full info of some phones and credit card info also avail with them of apple id which all coustmers use
    Full name: Lxxx Enrxxx Bauxxxxx
    Apple [email protected]
    IMEI9900027xxxxxx
    Spare Apple ID (login alias) NA
    Address and Phone
    Address
    3ra Xxxxxxx
    traxx, Qta # 8x, Los Paxx Granxxx
    Caraxxx, MI
    Venxxx
    Daytime Phone 1-58xxx-28xxxx
    Evening Phone NA
    Archiving e-mail address
    [email protected] - Verified (main)
    [email protected] - verification email has been sent (rescue)
    What was the name of your first pe
    What is the name of your favourite sports team?
    What is your dream job?

  • How can I erase all phantom iCal data from my iPhone/Flat Panel Mac?

    Tried many ideas and Apple Genius could not even help me. Here is the scoop...
    I created an iCloud account then synched my iPhone to my Flat Panel. Suddenly my iPhone showed up to six duplicates of iCal events (often a week or two later than the actual event). My Flat Panel iCal showed no such events. I erased all data and settings from the iPhone, restarted it from scratch (both from a back-up and as a new iPhone). As soon as I synch it to the Flat Panel the multiple events reappear on the iPhone but still not on the Flat Panel. I checked the "replace all calendar info" box in iTunes before synching. I deleted my iCloud account. I tried synching my old 1st gen iPod to teh Flat Panel, and the iCal info there is correct. I erased the iPhone and started over by starting it up/synching with my Macbook Air. The iCal info is now correct on my iPhone. How can I go back to synching on my Flat Panel? Where is the phantom info hiding on the Flat Panel?
    Thanks for helping me with this strange problem!
    John

    Ohnj,
    I presume that you are no longer trying to use iCloud for syncing with the "Flat Panel." It will not work since you are using OS X 10.5.8.
    Quit iCal, go to your Macintosh HD/Users/yourusername/Library/Calendars folder and remove any/all files with "Cache" as a part of the file name. Then log out/in or restart and see what happens.

  • How can I use more than one Data Provider in my web Apps

    I am trying to use two different data provider in my web apps to run two different queries from the same table ,the data provider A is working correctly but when I attempt to run data provider B ,It display an error page ,here is the error message : Exception Details :javax.servlet.ServletEx ception
    java.lang.RuntimeException: java.sql.SQLException : Cannot connect .Both dataSourceName and url properties are null.

    Hi,
    You can use more than one data provider in your application. However if you have defined a dataprovider for a particular table already, and wish to bind a component, select the component and use its context menu to Bind to Data...

  • How can I remove all Time Machine data from an external HD, while retaining the other folders/files on the disk?

    I recently replaced my old Macbook Pro with a new Macbook Pro Retina.
    The original MBP had Time Machine set up on an external HD, and I also had some manually saved/backed up files (stuff that didn't need incremental backups; very old stuff) on the disk as well, in folders.  This worked fine and well for the life of the original MBP.
    When I set up the MBPr, I did not elect to transfer everything over from a Time Machine disk, as I wanted a Fresh Install; I chose to just re-download/install the apps  I needed from the App Store.  Much cleaner, more stable.  I updated to Yosemite immediately so, it gave me more of a  clean install.
    The problem is, Time Machine now won't read any Time Machine backups from that disk.  Migration assistant can pull data from it, but it's a bit wonky.  It was easier to just manually copy over what I needed.
    Now, I just want to "reset", and completely remove the old Time Machine data from the external hard drive, since it is completely useless to me now (I can't access it on this computer, and it's taking up space).  I want to remove the Time Machine data, as if it were never there, but keep my other folders/files that are on the disk (so, a format is not feasible).
    I will then set the disk up as a new, fresh Time Machine disk for the new MBPr. 
    What is the proper method for removing Time Machine data from an external disk (which doesn't seem to be associated with this machine anyway)?  I know a simple rm -rf will cause problems.
    Thanks for any help provided.

    See the yellow box in #12 of Time Machine - Frequently Asked Questions (or use the link in *User Tips* at the top of this forum).

  • My Laptop with Synced Firefox crashed and i had to do a fresh install, how can i retrieve all the synced data from the Mozilla Servers

    I had set up Firefox sync on my Windows 7 Laptop which crashed and I had to reinstall windows. I used to be able to share content with my Firefox synced Android too. Is there a way i can retrieve the synced data from the Mozilla servers? I tried to set up sync on my new installation on a Mac 10.6 but when i click on Set-up Sync it asks me:
    # Set-up new sync account (i already have one)
    # I already have a sync account
    When i select the second option it tells me to Add a device. I went in the "Sync Options" and tried the replace all data on this computer with my sync data, but nothing happened. When i try to connect from my Android it also asks me to add a device with the 3 boxes with letters in them.
    So in both the cases it is asking me to "Add a device" but i cannot connect to my sync account in either case to sync data from there

    Please search the forums. This has been covered here extensively.

  • How can I delete all songs and data from my 80GB ipod classic without opening itunes?

    I have an older 80GB ipod classic that works but will not play any songs. I'm trying to delete all songs and data from the hard drive to see if that will fix the problem, however, it will not appear in my itunes. I've tried various ways to help it appear in my itunes but I do not want to delete my itunes because I have another ipod that has all those songs on it.
    I was wondering if there was a way to restore my ipod back to the beginning without having to go through itunes. Thanks!

    It might, but I wouldn't bet much on it.  Either way, give it a shot.
    Otherwise, if appears in Windows an external hard disk, try a low level reformat of the device's hard drive.  See here for instructions on how to do this.
    http://www.methodshop.com/gadgets/ipodsupport/erase/
    B-rock

  • How can I restore 3rd party app data from my backup in the cloud

    First a brief history. I use the iCloud to backup my iPad 2 and hardly ever synch it to itunes on my computer. I got the new iPad and restored the backup of my iPad 2 onto it.  All was fine except that an issue I had on my iPad 2's Safari had transferred over to my new iPad. That's is for another discussion. Anyhow I went to the genius bar and they said to just setup my new iPad as a new device and then manually install everything back on it. Stuff like mail, contacts, etc, would be reloaded from the cloud. So I did and I noticed that one of my 3rd party apps, MadPad, had none of my saved data. Does anyone know of a way to restore 3rd party app data from the iCloud? Is there some sort of utility out there that would do this?  I don't want to restore it from my previous iPad 2 backup because it will reintroduce the Safari problem back onto my new iPad.
    Thanks!

    Assuming that you even have a backup with the data in it, you have no choice but to use a backup in order to restore that data. That is the idea behind backing up to iCloud. If that is the only backup that you have - then that is the one that you have to use.
    But if the backup is bad - or had corrupt data - then you will end up with the corrupt data again. You cannot selectively restore app data from a backup. you restore all settings and data - or nothing at all.

Maybe you are looking for

  • Can no longer open NY Times puzzles: "puz could not be opened, because an unknown error occurred.?

    Since updating Firefox, I can no longer open the NY Times daily/Sunday puzzle in the program used for crossword puzzles. Older puzzles sall open.

  • Income tax deduction

    Hi, We are facing the following issue: When employee is locked say in the month of November and then in the month of december when the locked is release and the payroll is processed normally, the net tax payable by the employee is deducted fully and

  • PSD files saved as Photoshop Image 13

    I have been using Photoshop CS6 (64 Bit) on my Windows 8.1 laptop (64 bit) for over a year and has been working perfect. About two days ago something weird happened. All of my PSD files show that they are Photoshop Image 13 files instead of showing i

  • Converting smartform into executable(report) program..........

    Hi Abapers,             I had a requirement to convert the smartform 'zpurchase'(customized std. PO form /SMB80/MMPO_ES), into an executable(report) program..so tat the user can execute this program by giving the Po Number in the run time and get the

  • Difference between Oracle developer suite 9i and 6i

    Hi - Can I know what's the release difference between oracle developer suite 9i and 6i , and what's new in oracle discoverer 9i in compare with last version , we have discoverer version of 4.1... I could not able to get from metalink anything like ne