Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Integration > WEB

Forum

Search UsersRules
WEB
#1
Active user
Points:: 0
Joined:: Jan 29, 2013

Hi
Can you help me to find an example for a managing a web browser in managed application, as an example I want to reach to my emails in program and also open the email in normal browser

Profile
#2
Active user
Points:: 0
Joined:: Jan 29, 2013

Right now I enter ID and password, but I can't click the ENTER button, for example I want to login to my acconut, I open web site, entering my ID and Pasword but can not click the OK button

Profile
#3
Active user
Points:: 0
Joined:: Jun 25, 2013

What application exactly are you running?

Profile
#4
Just came
Points:: 0
Joined:: Sep 23, 2013

Hello,

Let me explain, by using 1C:Enterprise 8 platform, we want to manage a web-site (it's like a its - u click a button in a program and it 1-opens web site, 2-writes ID and password and then 3-eners the site). We did first two steps, but we couldn't find how to do the last one.
And the other question is, how to do all these not in a program form, but with explorer or chrome.

Profile
#5
Active user
Points:: 0
Joined:: Jun 25, 2013

If you are trying to do it with GotoURL, you can't click the button on the website directly, but you can use an external web-server that gets parameters from 1C application and manages your website.

Profile
#6
Just came
Points:: 0
Joined:: Sep 23, 2013

we didn't use GotoURL, I can share what did we do (managed form), here we open the gmail web-site, fill e-mail address and password, but don't know how to sign in, because we did not find how to call event to click button:

Code
&AtClient
Procedure Go(Command)
 
 HMTL=Adres; // (HTML=html document field, Adres = web-site)

EndProcedure

 

&AtClient
Procedure SignIn(Command)
    
 HTMLPage=Items.HMTL.Document;
 

 For Each Row In HTMLPage.all Do
  
   If Not Row.nodeType=10 Then 
    

      If Row.HasAttribute("Name") Then
    
         If Row.Name="Email" Then
     
            Row.SetAttribute("innerText","destek@1c.com.tr");
        
         EndIf;
    
         If Row.Name="Passwd" Then
     
            Row.SetAttribute("innerText","password");     
       
         EndIf;
    
         If Row.Name="signIn" Then
                    
            //calling button onclick
                    
         EndIf;

     EndIf;
 
   EndIf; 
  
 EndDo; 
 
EndProcedure

Profile
#7
Active user
Points:: 0
Joined:: Jun 25, 2013

Code
         If Row.Name="signIn" Then
                    
            Row.Click()//click button
                    
         EndIf;

Profile
#8
Just came
Points:: 0
Joined:: Sep 23, 2013

Thank you very much! we didn't find it in Syntax assistant :)

Profile
#9
Active user
Points:: 0
Joined:: Jun 25, 2013

You're welcome :)

Click() is a method of the COM-object, it's not a part of 1C:Enterprise language.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.