Document number differences?

smk

Client
Регистрация
25.12.2011
Сообщения
9
Благодарностей
0
Баллы
0
How do I handle this? Setting the document to -1 makes zenno search for the document -1
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
you must call out the proper document address in order for the element to be found. It could be 0...1...2...0;0....0;0;0...0;1. The value -1 can only be used for the form number to find any element. In order to handle the dynamic document addresses is to set up a counter and use the counter value for the document address value..ie; 0;{-Counter.Get-|-docadrcounter-} or to make separate steps for every possible document address that the site may serve.
 

smk

Client
Регистрация
25.12.2011
Сообщения
9
Благодарностей
0
Баллы
0
On what conditions would I have the counter increase?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
On unsuccessful exit of finding the element. I you were clicking on a link or more likely, filling in a tinymce editor, if the element isn't found you would put an unsuccessful branch exit to the counter, add 1, and then loop back into the branch where the element wasn't found.
 
  • Спасибо
Реакции: smk

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
but dont forget to put logic branch which will check if counter is greater then something. If you dont put it in and you dont get a hit, then template will just keep looping ;-)
 
  • Спасибо
Реакции: bigcajones

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)