Calling data from a web page

I am trying to communicate with an external database. I want to give the database a certain number and recieve back another corresponding number.The way it is currently done is with MATLAB. MATLAB opens a browser (in the background because you cannot see it) and connects to a url that has the certain number in it. That url connects to the database which sends the corresponding number back to the browser, which MATLAB then extracts. I was wondering if LabView has any similar built in function that can do this. If not, i think i will be able to create the correct url and have labview open a browser, but I am not sure how to extract the value that the data base sends back. I know this may not be super clear, so feel free to ask any questions. thanks in advance

Take a look at the DataSocket functions. You can wire a URL to the Read command and it will return the text of the document available at that URL. Then you just need to parse out the value that you want. In order to get help with that you'll have to provide the format of the response.

Similar Messages

  • Help: getting data from a web page

    i have a jsp page which generates some strings. i pass these strings in to a login page on some server. the web page displays my login status. is it possible to read or get data from the web page?
    i have captured the header of a web page and modifying the header based on my generated strings.
    or jus say is it possible to read whats in a web page into a jsp page?
    thanks in advance for any help , assistance or redirection to a source where i can find help.

    hi,
    sorry for a poorly framed question.
    this is what i m trying to do.
    i call google with a header generated.
    now i want to read back the content in the google search result page onto my jsp page.
    possible?
    first.jsp calls google. i m using redirect (url)
    the url is modified based on user input
    now i want the links in the google page to be put up in my page itself. so i want to read the links there...
    Message was edited by:
    on_track

  • How to retrieve data from a web page through php scripts..........

    kindly suggest me the php parsing script so that i can fetch the data from a web page.....
    suppose we have a url.........
    http://abc.com/news/companydetails.aspx?sskicode=x&Exchange=y
    and the page contains the various fields.........like
    xyz 10
    xyz1 20
    xyz2 30 etc...
    then we have to retrive data from this page trough php script and insert it into database.....
    value of xyz , xyz1 n xyz2 should be retrived and further inserted into database.......
    thanx ......

    Should be nice..
    But its not working i think..

  • How do I add dates from a web page into iCal?

    Hello. I would love to find a way to input dates from a web page, into iCal as an event. Right now, if there is a conference or whatever that is on such and such a date, I have to keep the web page open that has the dates and time, and then open iCal, and create a new event on that date, etc. Is there a way to highlight said dates on a web page, run some automation, and voila, it is a new event in iCal?

    Don't double tap. Just try pressing on the text. That should highlight it.

  • Automated process to pull data from a web page without using VS and PS.

    Hello,
    I'm looking at finding a solution to pull data from an external web page and creating a list. I'm looking for a NON-POWERSHELL AND NON-VISUAL STUDIO solution. I am open to using InfoPath Designer.
    There exists a custom, non-SharePoint page built for us which has raw data. We've already created a custom list to match the data and now need to come up with a solution to automatically update the data. In this particular scenario, power shell and visual
    studio cannot be used.
    Thanks in advance.

    Why would you cripple yourself and restrict PowerShell at the very least which has perfect functionality for doing exactly that.
    I doubt you could use the InfoPath data sources to pull the raw data in, re-map it and save to SharePoint without resorting to some sort of coding within InfoPath.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • The data from my web page insert in SQL table as question marks

    I use Farsi language in my web page for inserting customer data. The data that is inserted in webpage and submitted, showed as ???? in SQL table. A lot of developers say that I should use N' before the Unicode character, but I don't know how I can use it
    in my code. I attached the code. Can someone say me where I should insert the N in my code?
    protected void cmdInsert_Click(object sender, EventArgs e)
    //Checking the validation of required fields
    if (cboCustomerType.Text == "" || cboTitle.Text == "" || SearchableName.Text == "" ||
    FinalName.Text == "" || NationalID.Text == "" || BusinessID.Text == "" || MobilePhone.Text == "")
    lblStatus.Text = "لطفا فیلدهای اجباری را حتما پر کنید";
    return;
    //define ADO.NET objects.
    string insertSQL;
    insertSQL = "INSERT INTO Customers(";
    insertSQL += "CustomerType,CustomerTitle,CustomerFirstName,CustomerLastName,CompanyType,";
    insertSQL += "CompanyName,SearchableName,FinalName,NationalCode,BusinessID,City,Address,PostalCode,";
    insertSQL += "Zone,MobileNumber,WorkPhone1,WorkPhone2,HomePhone,FaxNumber,Email,Website,Note)";
    insertSQL += "VALUES('";
    insertSQL += cboCustomerType.Text + "','";
    insertSQL += cboTitle.Text + "','";
    insertSQL += CustomerFirstName.Text + "','";
    insertSQL += CustomerLastName.Text + "','";
    insertSQL += cboCompanyType.Text + "','";
    insertSQL += CompanyName.Text + "','";
    insertSQL += SearchableName.Text + "','";
    insertSQL += FinalName.Text + "','";
    insertSQL += NationalID.Text + "','";
    insertSQL += BusinessID.Text + "','";
    insertSQL += City.Text + "','";
    insertSQL += Address.Text + "','";
    insertSQL += PostalCode.Text + "','";
    insertSQL += Zone.Text + "','";
    insertSQL += MobilePhone.Text + "','";
    insertSQL += Phone1.Text + "','";
    insertSQL += Phone2.Text + "','";
    insertSQL += HomePhone.Text + "','";
    insertSQL += FaxNumber.Text + "','";
    insertSQL += Email.Text + "','";
    insertSQL += Website.Text + "','";
    insertSQL += Note.Text + "')";
    SqlConnection con = new SqlConnection(connectionString);
    SqlCommand cmd = new SqlCommand(insertSQL, con);
    //try to open the database and execute the insert
    int added = 0;
    try
    con.Open();
    added = cmd.ExecuteNonQuery();
    lblStatus.Text = added.ToString() + "اضافه شد";
    catch (Exception err)
    lblStatus.Text = "Error inserting record.";
    lblStatus.Text += err.Message;
    finally
    con.Close();
    //If the insert succeed, refresh the customer list.
    if (added > 0)
    FillCustomerList();
    Regards,

    Because you're composing the SQL statement with string concatenation, you would put the "N" before the single quote,
    VALUES(N'";
                insertSQL += cboCustomerType.Text + "',N'";
                insertSQL += cboTitle.Text + "',N'"; // ...etc
    However, composing SQL statements with string concatenation is not a suggested practice because it's open to SQL injection (see:
    https://technet.microsoft.com/en-us/library/ms161953(v=sql.105).aspx). A safer way to do this is to use command parameters to represent the values (see SqlCommand.Parameters
    property). If you use parameters, you can specify parameter data type as SqlDbType.NVarchar, which will ensure your text values are passed in as Unicode. Also ensure that the columns in question are defined in the database table definition as Unicode (NVARCHAR
    rather than VARCHAR).
    Hope this helps, Bob

  • How get data from another web page?

    I have my own interface..after i key In a keyword and click search, method post will post the data to server and server will response.write a HTML page that display the result based on the keyword i Key In. The problem is i want the result display on my own page. So how can i read the search result from the HTML page and display on my own design page? I use JSP to built my page. thanks

    I dont know the following solution would solve ur problem, atleast u will get basic idea.
    1st method
    Create an inline frame (IE-IFrame etc), On pressing submit button, Post the data to required page (it might be some page on another server)and specify post target is ur inline frame.
    if u want filter the result data and want to display in ur own way then send ur POST request to ur own JSP and use Http classes to read resend those data to other page (another server) and capture the results implement ur own logic to get desired data and resend to the requested browser
    I hope it would solve ur problem
    Cheers
    Rajendra Bandi

  • Copying data from a web page into Numbers

    I frequently use a Keyword Density Analysis Tool on the web that displays three columns and perhaps 50 to 100 rows of data. There is no export or save to csv, so I just highlight the three columns, copy and paste into a blank Excel spreadsheet - and hey presto, I get three columns of data. that I can sort and analyse. When I do the same with Numbers I get three columns but all the data ends up in three rows - please see attached. Is there a simple way around this because I am trying to stop using Excel? Thanks./Volumes/garyloch/Public/Screenshots/Picture 2.png
    /Volumes/garyloch/Public/Screenshots/Picture 1.png
    /Volumes/garyloch/Public/Screenshots/Picture 3.png

    The only way I was able to reproduce what you described is to run the script after copying a picture.
    Here is a refined version.
    It make two attempts to grab text items from the clipboard.
    If both failed, it send an error message.
    --[SCRIPT table2text]
    Enregistrer le script en tant qu'Application ou Progiciel : table2text.app
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:
    Il vous faudra peut-être créer le dossier Applications.
    Copiez vos données dans le Presse-papiers.
    menu Scripts > table2text
    Le presse-papiers sera alimenté par le composant Text ou utf8 du contenu initial.
    +++++++
    Save the script as an Application or an Application Bundle: table2text.app
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:
    Maybe you would have to create the folder Applications by yourself.
    Copy your block of datas to the Clipboard.
    menu Scripts > table2text
    The Clipboard will be filled with the text or the utf8 component of its original contents.
    Yvan KOENIG (Vallauris, FRANCE)
    4 février 2009
    --=====
    on run
    try
    set the clipboard to (the clipboard as text)
    on error
    try
    set the clipboard to (the clipboard as «class utf8»)
    on error
    if my parleFrancais() then
    error "Pas de données texte dans le presse-papiers !"
    else
    error "No valid text data in the Clipboard !"
    end if
    end try
    end try
    end run
    --=====
    on parleFrancais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z = "Annuler")
    end parleFrancais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE mercredi 4 février 2009 21:49:14)

  • How to obtain table data that is hidden from a web page source?

    Hello!
    I have been trying to obain table data from a web page without success. The data can be copy and pasted from the web page but it can´t be found in the web page source.  I prefer NOT to use automated mouse clicks to obtain the data through CTRL-A, CTRL-C and then to the Clipboard ( I know how to do this but it is not so elegant :-) ). I tried to get the data automatically with the following code: (See snippet)
    I have also looked at the existing solutions in the forum for Loging in to a website but the difference here is that I am just interested in getting out the data from a Table (form or element? I am not so familiar with HTML nor JAVA)
    Any tips are appreciatted.
    Attachments:
    Get Web Table Data example.png ‏53 KB

    The trick is to get the current html of the page and not the source - the source will not render the javascript of the page which is what loads/populates the table. It's the difference between inspecting an element in Chrome and viewing the source.
    You'll need to see if there's a method/property that returns the 'live' html document object model after the Javascript has populated the table rather than the source of the page.
    You may also have more success trying to replicate the same method the webpage uses to actually load the data..it probably makes a request to a page which returns the scores information in a more 'raw' format rather than having to parse out the html elements yourself.
    (Also as an aside - Java is not the same as Javascript - one is a compiled language and one is a scripting language).
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Extracting info from a web page

    Hi,
         I m not sure if i m asking this question at the right forum.
    Can anyone tell me if there is a way to extract data from a web page.
    This means, say for example a web site Yahoo displays stock quotes
    updated or NASDAQ values almost in real time.
    Now if i want to get that information from the web page into one
    of my applications ,say, something that uses that data. Is there
    a way to do it?
    Just curious

    Yes, it's possible. You can use the java.net.URL object to connect to websites and download the html. Doing the coding is not that easy, and you should also be mindful of not redistributing data you've gotten from another site without permission

  • Meta data information from dynamic web page

    Dear all,
    for website searching, we should put the meta data in every page, in my case
    i have to get the data from dynamic page(data are coming from database).
    So, how can i meta data information from dynamic web page
    kindly suggest.
    thanx,
    R. Ramasubramanaim.

    Build your web application with BSP, that's all I can say...

  • Calling a JApplet from a web page...

    I'm currently having an issue with calling a method in a JApplet from a web page.
    I'm adding a modal JDialog to the Applet, and then displaying it when a user clicks an HTML button.
    Everything works great until another IE window is opened... At that point, the resources being used by IE skyrocket to 99%, and pretty much stays level, and the original window becomes locked, while the new IE window works just fine.
    Here's the html and the java source code.... Hopefully someone can point me into the right direction on this...
    <html>
    <head>
    <title>CACTest</title>
    </head>
    <body>
    <applet id="Test" width="1" height="1" code ="Test.class">
    </applet>
    <script language=Javascript>
         function clicked(){
              document.Test.showDialog();
    </script>
    <input type="button" name="myButton" value="click me" onClick="clicked()">
    </body>
    </html>
    import java.awt.*;
    import javax.swing.*;
    public class Test extends JApplet {
    private Frame findParentFrame(){
    Component c = getParent();
    while(true){
    if(c instanceof Frame)
    return (Frame)c;
    c = c.getParent();
    public void init(){
    public void showDialog(){
    Frame f = findParentFrame();
    JDialog d = new JDialog(f, "modalDialog", true);
    d.getContentPane().add(new JLabel("hello"));
    d.pack();
    d.setLocation(100,100);
    d.show();

    I'm currently having an issue with calling a method in
    a JApplet from a web page.
    I'm adding a modal JDialog to the Applet, and then
    displaying it when a user clicks an HTML button.
    Everything works great until another IE window is
    opened... At that point, the resources being used by
    IE skyrocket to 99%, and pretty much stays level, and
    the original window becomes locked, while the new IE
    window works just fine.
    Here's the html and the java source code.... Hopefully
    someone can point me into the right direction on
    this...
    <html>
    <head>
    <title>CACTest</title>
    </head>
    <body>
    <applet id="Test" width="1" height="1" code
    ="Test.class">
    </applet>
    <script language=Javascript>
    function clicked(){
    document.Test.showDialog();
    </script>
    <input type="button" name="myButton" value="click me"
    onClick="clicked()">
    </body>
    </html>
    import java.awt.*;
    import javax.swing.*;
    public class Test extends JApplet {
    private Frame findParentFrame(){
    Component c = getParent();
    while(true){
    if(c instanceof Frame)
    return (Frame)c;
    c = c.getParent();
    public void init(){
    public void showDialog(){
    Frame f = findParentFrame();
    JDialog d = new JDialog(f, "modalDialog", true);
    d.getContentPane().add(new JLabel("hello"));
    d.pack();
    d.setLocation(100,100);
    d.show();
    The while(true){ } is a busy loop if the (c instanceof Frame) test fails.

  • Posting an XML Variable to a BLS Transaction from a web page

    I am working in xMII 11.5 with all the latest service packs. I know this is probably a really basic question but I am stumped.
    I am trying to pass a multi row and multi column XML data set from a web page into a BLS transaction (actually, two of them) in order to populate the parameter. I want to use the Web Service interface to the transaction. I have tried using parameters on an Xacute Query in an Applet as well with an equal lack of success. I cannot persuade the transaction to see the incoming variable as an XML data type. I have tried encoding and decoding and string to xml conversions and nothing seems to successfully allow the data set to be seen withing the BLS as anything but a string. The String to XML action will not handle the number of columns in the dataset though it seems to work if the data set has only one column. The data set is formatted in the proper "Rowsets/Rowset/Row" format. I have considered writing the data to an XML file on the server (I know I can deal with that) but that is not acceptable in this application.
    Can someone share the secret with me?
    ...Sparks

    Parameter value:
    r1d1,r1d2,r1d3;r2d1,r2d2,r2d3;r3d1,r3d2,r3d2
    Pass thru String List to Xml Parser with delim ";"
    <Row>
    <Item>r1d1,r1d2,r1d3</Item>
    </Row>
    <Row>
    <Item>r2d1,r2d2,r2d3</Item>
    </Row>
    <Row>
    <Item>r3d1,r3d2,r3d2</Item>
    </Row>
    Repeat on each row/item and pass thru String List to Xml Parser with delim ","
    <Row>
    <Item>r1d1</Item>
    </Row>
    <Row>
    <Item>r1d2</Item>
    </Row>
    <Row>
    <Item>r1d3</Item>
    </Row>
    Of course, your columns aren't flat but they are easy to ref, to get "column 2" for example:
    StringListToXml_1.Output{/Rowsets/Rowset/Row[2]/Item}
    So now you have rows and columns. Assign your data to your BAPI structured as needed.
    We have passed complex XML via the SOAP interface in 11.5, but it involved some "hacks". Basically we passed the sterilized XML via a String Type Parameter, and then unserialized it inside the BLT.  
    I have been told on this board that there is a solution to passing XML data vie the SOAP interface using ref docs, but i have never personally seen a working example.

  • How to read text from a web page

    I want to read text from a web page. Can any body tell me how to do it.

    Ok i tell you detail. visit the site " http://seriouswheels.com/" you will a index from A to Z which are basically car name index i want to read each page get car name and its model and store it in data base. I you can provide me the code i will be very thankful.

  • Why does Acrobat suddenly not work on my Mac (won't open pdf files from a web page), yet I can open them from my iPhone? Everything worked fine yesteray.

    Hello:
    I have a Mac running OS 10.8.5 and I use Acrobat Pro and Acrobat Reader. Today for some reason, any time I try and access a pdf file from a web page, it won't open. I get a blank window. PDF files already on my computer open fine and I can create PDF files from Word docs, but I can't download or view any pdf file from any web page. Strangely, PDF files on web pages open just fine on my iPhone.
    I checked that both my copy of Acrobat Pro and Acrobat Reader are up-to-date. They are.
    I checked that my copy of Firefox is up-to-date. It is. And nothing changed with Firefox within the last 24 hours.
    I am a humble computer end-user. I am baffled as to why this would suddenly not work. I have not changed any settings, etc. Any help or suggestions would be greatly appreciated.

    Thank you.
    I checked your instructions you sent and as far as I can tell all of my settings, etc for Firefox (plugin updates and preferences) are correct but I am having the same problem.
    However, everything works in Safari. I don't have time to attempt to diagnose why Firefox no longer works. I will just switch to Safari.
    Many thanks.
    Charles
    Charles Deister
    (503) 949-5762
    [email protected]<applewebdata://81CB4171-226F-49DF-BD59-A38A7360B3FB/[email protected]>
            PO Box 5032
         Salem, OR 97304
    http://www.pilotstrat.com<http://www.pilotstrat.com/>
    This transmission (including any attachments) may contain confidential information, privileged material, or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

Maybe you are looking for

  • LOP days are not calculated properly

    Dear Experts, I am new to TM, i have configured abscence type for LOP. but when i maintained the same in IT 2001 for an employee for the entire month, the absence days calculated is only for working days i.e 22 days. but i want it to calculate for th

  • I purchased two songs and can't play them

    I purchased two songs on iTunes from the same album but when I try to play them, I get an error message that says, "This computer is already associated with an Apple ID. You can download past purchases on this computer with just one Apple ID every 90

  • How do I find 'Other' when it comes to my hard drive so I can delete unwanted files?

    Can someone please help me with this problem? When pulling up my system profiler, the catagories under storage are: Audio Movies Photos Apps Backups Other How do I find where the files that are located in the 'Other' group. So I can delete unwanted f

  • I bought a season of a tv show. Now it shows up in iTunes as regular price. No "purchased" icon

    I bought the first season of game of thrones in hd one episode at a time. Instead of doing the complete my season, I just bought the last episode thinking there would be no difference. Even though I have all episodes, I still do not have access to al

  • SAPscript layout of page on grid does not display

    Hello all, The popup window that displays the page on top of the grid is not appearing when using SE71 to view the page layout if a form.  I have checked the FORM PAINTER setting and Graphical Form Painter is checked as is the Graphical PC editor. Is