WEB

1C:Enterprise platform integration capabilities and techniques

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jan 29, 2013
Company:

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

 
#2
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jan 29, 2013
Company:

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

 
#3
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 8
Joined: Jun 25, 2013
Company: 1C Company

What application exactly are you running?

1C Company support team
 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Sep 23, 2013
Company: 1TC-MERV

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.

 
#5
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 8
Joined: Jun 25, 2013
Company: 1C Company

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.

1C Company support team
 
#6
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Sep 23, 2013
Company: 1TC-MERV

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

 
#7
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 8
Joined: Jun 25, 2013
Company: 1C Company

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

1C Company support team
 
#8
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Sep 23, 2013
Company: 1TC-MERV

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

 
#9
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 8
Joined: Jun 25, 2013
Company: 1C Company

You're welcome :)

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

1C Company support team
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.