How do I post data in HTML fields

Hi.
I need to log onto a web server from LabVIEW 7.1. I have this working in VB, but I don't know how to use the Microsoft Web Browser ActiveX object (specifically how to find the types of some variants).
In VB, I'd do the following to post data into two fields and click a button:
WebBrowser1.Document.frames(1).loginform.UserName.Value = "username"
WebBrowser1.Document.frames(1).loginform.Password.Value = "password"
WebBrowser1.Document.frames(1).loginform.Item(2).Click
From the web browser object in LV I can navigate to the URL, and decode the Document variant which seems to be of type MSHTML.DispHTMLDocument. How do I proceed from here? How do I access the different frames, forms, data fields and buttons on the web page?
Since variants in LabVIEW carry type descriptors internally, it'd be nice to have some way to access this so I wouldn't have to guess what object prototype to convert the variant with.
Regards
Steen Schmidt
CLA and CTA. Worked with LabVIEW from 4.0 to 2010 and counting...

Hi Steen,
I was workin in an application of accessing frames, forms and then buttons in web pages in background...
In labview there was a problem in the MSHTMLDocument.frames functions and so will not be able to get the frames ..
but it is possible to access forms in a page directly...i have an eg for searchin in google..(i have attached the vi)
I need to know whether it is possible in VB to go to a particular frame in a page and then if the frame has a form i need to login in form in that frame...
Could you please share me the code in VB (for the same)..so that it would be helpful for me...and also is it possible to make dll in vb and use in other enviorment like VC++..
REGARDS
vevek
Attachments:
autologin.vi ‏67 KB

Similar Messages

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

  • How can we post data from CRM to SAP using ABAP proxies???

    Hi ,
      Can anyone hep me to create interface for the following scenario How can we post data from CRM to SAP using ABAP proxies???, can I find any document ???????
    Thanks in advance
    Andy

    Andy,
    Please look at these weblogs.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    These should give a good idea about implementing Proxies.
    Regards,
    Ravi

  • How we will use date n currency fields in bdc

    how we will use date n currency fields in bdc

    Hi
    When you have to upload using BDC, always use char type fields.
    For date, use date(10) type c.
    write sy-datum to date. Date will be as per using setting, either mm/dd/yyyy or dd/mm/yyyy...
    For currency also, you need to declare as
    data1(15) type n and
    data2(15) type c.
    Now suppose you have a value 12545421.91 . As per user setting it can be 12545421,91.
    In this case, first push the value to NUMC type.
    data1 = 1254521.91 and then data2 = data1 / 100.
    This will change it in required format and can be populated in the bdc table.
    Regards
    Navneet

  • How to compare table data and table field

    Hi buddy,
        I have some question about how to compare table data and table field.
       1. I know there is one method:   CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS  , it use in unit test to compare the table data(A and B) , you can loop table A into structure A1, then use this mehtod it can compare whether table B contain structure A1.  but when I try to use this in main program it will dump.
              CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS(
                                                                                                        LINE    = A1
                                                                                                        TABLE = B ).
           Is there any method or FM can be used to compare the table data ?
        2. I also want to compare two table field , try to find out the different. How to realize this.
    Thank you for your sincerely answer.

    Hi Zongjie,
    What`s the difference, if you using loop A into wa_A, read table B into wa_B with all field, then compare with wa_A and wa_B.
    The question 2, seems no standard FM available here.
    Loop A into wa_A.
       Loop B into wa_B.
           if wa_A-field1 eq wa_B-field1.
           endif.
            if wa_A-field2 eq wa_B-field2. 
           endif.
       endloop.
    endloop.
    regards,
    Archer

  • How to populate the data for additional fields in custom report of fbl5n tr

    hallo friends,
    i ha ve to add some fields to the output of custome report of transaction FBL5N.
    Till now i have only added the fields to the output.
    Now i have to write the code to populate the data for those fields in the program.
    1.     Customer Credit Group(ACM/RCM): (Table: KNKK; Field Name: VKORG )
    2.     Credit Representative Group: (Table: KNKK; Field Name: SBGRP)
    3.     Customer Account Number(CAN#): (Table: KNKK; Field Name: KNKLI)
    4.     Alternative Payer(ALTP#) : (Table: KNA1; Field Name: KUNNR)
    5.     Risk Category: (Table: KNKK; Field Name: CTLPC)
    6.     Credit Info Number: (Table: KNKK; Field Name: KRAUS)
    7.     Rating: (Table: KNKK; Field Name: DBRTG)
    8.     Payment Index: (Table: KNKK; Field Name: DBPAY)
    9.     Credit control area: (Table: KNKK; Field Name: KKBER)
    10.     Company code: (Table: KNB1; Field Name: BUKRS)
    11.     Sales Organization: (Table: KNVV; Field Name: VKORG)
    These are al fields i have to populate in the program..
    MY ATTEMPTS:
    I tried getting the data for KNKK table by GET KNKK ,but it is giving some garbage values...
    And Logical database used here is DDF,and i have to add the VKORG of KNVV too...but KNVV is not there in DDF...
    Can anybody tell me how should i proceed..
    thanks in advance.

    Thnx Andreas,
    i have following doubts again..
    I have to add sales organisation field to the selection screen...(this is given in the req.)
    now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
    And what about the KNVV-VKORG ,because the KNVV is not present in the LDB.

  • How to Sort JTable data using Multiple fields (Date, time and string)

    I have to fill the JTable data with some date, time and string values. for example my table data looks like this:
    "1998/12/14","15:14:38","Unicorn1","row1"
    "1998/12/14","15:14:39","Unicorn2","row2"
    "1998/12/14","15:14:40","Unicorn4","row3"
    "1998/12/17","12:14:12","Unicorn4","row6"
    Now the Sorted Table should be in the following way:
    "1998/12/17","12:14:12","Unicorn4","row6"
    "1998/12/14","15:14:40","Unicorn4","row3"
    "1998/12/14","15:14:39","Unicorn2","row2"
    "1998/12/14","15:14:38","Unicorn1","row1"
    ie First Date field should be sorted, if 2 date fields are same then sort based on time. if date and time fields are same then need to be sorted on String field.
    So if any one worked on this please throw some light on how to proceed. I know how to sort based on single column.
    But now i need to sort on multiple columns.So what is code change in the Comparater class.
    Thanks in advance.. This is urgent....

    I think your Schedule objects should implement Comparable. Then you can sort your linked list using the Collections.sort() method without passing in a Comparator.class Schedule(Date date, String class) implements Comparable
      public void compareTo(Object obj)
        Schedule other = (Schedule)obj;
        return date.getTime() - other.getDate().getTime();
    }

  • How to change posting date in J1IH  Code

    i posted the posting date wrongy for current date, in J1IH t code. how to change that into last march month date in table. what is the table name? how to do?

    Hi hi,
    Posting date is system date you shoudnt change it.
    What is your perticular requirement , why you want to change it?
    If you have already post the document then it is not possibe the change the posting date..
    Rgds,
    Kareena

  • How to create a Date or time field that automatically saves current date or time?

    hello,
    i want to know that how to create a Date/Time field that automatically shows current Date/Time when .pdf form is opened.
    also want to how to stop user to give input in Date/Time field
    currently im putting a Date field but it is accepting user input.
    hoping for quick response
    Thanks in advance!

    You can place the below code in the initialize event of the field to display the current date and time.
    Set the language to FormCalc.
    You can play around the formats to get the desired format of date and time.
    if($.rawValue eq null or $.rawValue eq "") then
    $.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY")," ", Num2Time(Time(), "h:MM:SS A"));
    endif
    You can not restrict the input area in Date time field instead you can validate the input while existing the field.
    (OR) set the field to either readOnly or protected mode.
    Thanks
    Srini

  • How to submit POST data to a JSP in iFrame

    Hi,
    We are accessing a JSP from the iFrame from a web collaborator product ( TIBCO PortalBuilder) .
    I have an iFrame where I display the application whose startup page is a JSP. I pass the userid using get method in the iFrame URL but there is a security risk as the userid is visible in the URL. In my situation I don't have any such form that I can submit when I click on the link. I want to parameters using POST method to the JSP.
    Is it possible to build a request on the client side that sends the post data to JSP without using form? Kind of manually building the request.
    How does the http header look like when I send request using POST method ?
    Any other suggetions/ ideas
    Regards,
    Sunil Parmar
    http://sunilparmar.com

    You may find the apache commons httpclient PostMethod useful.
    If it was me, I'd dropped the frames. They are a headache to develop and maintain and last, but not least, can cause bad user experience.

  • How to add posting date in MB5S ?

    Sir ,
    I have been assigned the same task to add posting date in MB5S . kindly provide me steps and logic .
    First Step According to me would be to first Copy Program RM07MSAL in ZRM07MSAL using se80 .
    But How to add Filteration according to Posting Date in the Existing Logic ?
    Thanks in advance for your help .
    kindly provide me steps and logic .
    Rgds ,
    Bharti

    Hi Abap Gurus ,
    Thanks for your reply . I have already copied MB5S into Z Report through se80 . My task is that the output should come filtered according to Posting date which is not there in MB5S selection screen .
    What would be the Logic to filter according to Posting date BUDAT i.e., Table relationships and data retrival from which table .
    Rgds ,
    Bharti

  • How to retrieve the data in texts field for ME23N

    hai all,
    i need to do some coding for the item texts field for PO, which can be saw under ME23N. i need to retrieve the details in the text. but i have no idea how am i going to get the data from that field, which table is it under for PO?
    please advice. thanks

    Hi,
    the texts will be stored in STXH table..u need to pass the four values TDOBJECT
    TDNAME
    TDID
    TDSPRAS...U will get the text details
    Or
    use the FM 'READ_TEXT'.
    cehck the below links
    http://www.sap-basis-abap.com/sapac002.htm
    FM READ_TEXT
    reward if helpful.
    Regards,
    Nagaraj

  • How to change Posting Date in Accounting Document

    Dear All,
    Query: While Releasing Invoice Document (BL) for Account Posting, How can we change the Posting Date for Accounting Document (AB)?
    Explanation: User has created one Invoice on 26.02.2009. that time, Because of Missing Foreign Trade Data, No Accounting Document had been generated. Now, if today i.e. 10.03.2009, I maintain Foreign Trade Data and Release Invoice for Account Posting, The Accounting Document will be posted as on Today's Date, i.e. 10.03.2009.
    User's requirement is the Invoice Document (BL) Date and Accounting Document (AB) Date must be same, i.e. 26.02.2009.
    It shouldn't be like Invoice is getting generated on 26.02.2009 and Accounting Document is getting posted on 10.03.2009.
    Thanks in Advance.
    Amit

    Dear Michael,
    It was a User confusion with Creation Date of Invoice, Billing Date of Invoice and Posting date of Accounting Document.
    User had created Invoice on some 01.03.2009 but Kept Billing Date as 26.02.2009. So, while released Accounting Doc. on 10.03.2009 (Releasing date and not Posting Date), It gets Posted on 26.02.2009, only, and not on 10.03.2009.
    The whole confusion was:
    When User refers Document Flow (for Invoice in VF02), System shows Invoice Date as 01.03.2009, against Accounting Posting Date 26.02.2009.
    Whereas,
    When I showed FBL5N to user, BL Document and AB Document both get posted on 26.02.2009 only.
    Its Clear now.
    Best Regards,
    Amit

  • How can i view data of MessageRichTextEditor field's data

    Hi,
    i am using MessageRichTextEditor to create a JD(Job Description) and saving into database.
    but the problem is when i going to view the data of MessageRichTextEditor in a Table Region by MessageStyledText
    the field is showing data including HTML tag like:
    SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 22px; FONT-FAMILY: georgia, 'times new roman', times, serif; FONT-SIZE: 15px" class=Apple-style-span>Foremost in his mind was his embarrassing stumble as the final-round leader at the Masters in April, a collapse he later blamed on being tentative. This time, he promised a no-lead-is-big-enough approach.</SPAN></SPAN
    but i want the plain text that i used when creating the JD.
    please suggest.

    MRTE - Message Rich Text Editor.
    Can you please put a breakpoint at the ViewObject(corresponding ) Impl class function setXXX(XXX refers to the attribute) and check what value comes in to that function.
    Also after you enter some text into the MRTE , select view html source and check what the data is and then debug the first step.
    Regards,
    Guru Krishnan.

  • How to update posting date in WINVE idocs

    Hi Expert,
    Is there any function module OR BAPI available to update posting date in physical inventory documnet (WINVE03) idocs.
    Regards
    Rajesh

    Hi,
    Please check whether BAPI_MATPHYSINV_POSTDIFF is useful in your case.
    With regards,
    Gokul

Maybe you are looking for

  • MR11 doesnu00B4t work

    Hello, I am trying to see IR/GR differences in MR11 transaction for a PO that belong to SRM system. I put all values for this PO and when I execute the transaction I don´t have any answer... The PO has 0 as GR and 16,14 as IR when the value for the i

  • User Exit and Error message creation at Delivery

    Dear Friends, I am capturing the penal rates and the amount received against the penal rates from the customer in the Z table.If the penal rates and the amount received from the customer is not matching the system should not allow to save the deliver

  • Shockwave Flash

    I continually get a pop-up indicating a plug-in (Shockwave Flash) is not working?  How can this be corrected?

  • Windows AD cannot authenticate if BI platform UNIX?

    We were eagerly awaiting BI4 SP04 to address several SAP integration issues including the requirement  use Windows AD for single sign to SAP Enterprise Portal hosting BI4 content (dashboards/webis/Analysis for OLAP) and BEx Web analyzer, i.e. user lo

  • Clarity (camera raw effect) in after effects

    DOes anyone know how to create the clarity effect that you get with camera raw but within after effects. The kind if thing I'm looking for is see. Within films like 300 and tv shows like Spartacus blood and sand. Now I know this might have been achie