How to change a current page on a form?

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Jul 18, 2012
Company:

Good morning!

I have added groups of Page type on a form and they look like tabs in a web browser, the first page is active by default, but what if I would like to change the current page depending on a document transaction type, for example? Is it possible to change the current page from the script?

 
#2
People who like this:1Yes/0No
Active user
Rating: 7
Joined: Sep 26, 2012
Company: individual

yes, groups of Page type have property CurrentPage

Code
Items.Group1.CurrentPage = Items.Tab2;

where Items.Tab2 is group with type Page

 
#3
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Jul 18, 2012
Company:

Thank you, Ivan!

 
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.