1C: Enterprise mode shutting down when change HTML field to load Google map

For students who study 1C Junior course.

#1
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jan 11, 2021
Company: Robot cho mọi người

Hi every one,
I have got a problem when working with HTML field. I'm trying to show Google map base on the address of suppliers
Let's me describe my case below
Case 1: When I create a new address in supplier and click refresh map, 1C:Enterprise mode shut down and my screen move to 1C:Designer (and there are no message from the platform to talk about the problem
Case 2:When I load an old address. The map has been load correctly.
Case 3:When I change the address and press Enter (AddressOnChange), it has the same problem with case 1
Case 4:When I change the address and click Refresh map, it has the same problem with case 1.
Case 5:When I change nothing and click Refresh the map, nothing happen, 1C:Enterprise mode hadn't been shut downed.

I checked with my old code in the Junior course and I met the same problem with case 1 and asked some other developer check with their code in Module 4, Junior course (HTML field) and they got the same problem like me.

I attached here my dt file. Could anyone help me to figure out what problem is happening with this.
Thank you.


Here is the form


Here is the code
https://scontent.fsgn3-1.fna.fbcdn.net/v/t1.6435-9/231289276_10159647488914238_8621204638963222150_n.jpg?_nc_cat=104&ccb=1-5&_nc_sid=b9115d&_nc_ohc=WE3ed4x_DioAX9rAFZa&tn=_C0PJLC7Zw-UDzx4&_nc_ht=scontent.fsgn3-1.fna&oh=b60fd70c0541027c60b9744fdd3abbd2&oe=61427454

Here is the form when loading

 
#2
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jan 11, 2021
Company: Robot cho mọi người

here is the code


And the form

 
#3
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jan 11, 2021
Company: Robot cho mọi người

Hi everyone,
I have check some case when I change value of OpenThisURL
It has no problem if I change this from 1c-dn.com to google.com

However if I start with a value of a google map URL like that

"https://www.google.com/maps/place/Ph%E1%BB%91+L%C6%B0%C6%A1ng+%C4%90%E1%BB%8Bnh­+C%E1%BB%A7a,+%C4%90%E1%BB%91ng+%C4%90a,+H%C3%A0+N%E1%BB%99i/@21.0051976,105.8355164,17z/data=!3m1!4b1!4m5!3m4!1s0x3135ac7f35dcfcd3:0xa4810c02ae0a992!8m2!3d21.0051976!4d105.8355164"

When I change the value of OpenThisURL to another Google map URL or even 1c-dn.com or google.com. The 1C:Enterprise mode has been shutdown.

So If possible I hope that some experts can help me to check if it is a platform error or an error in my code.

Thank a lot

 
Subscribe
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.