How to get the result string of last executed step?

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
I know that we can grab the result string of any executed step using this macro: {-FieldData.FieldData-|-stepID-|-branchID-}

To make it easier to write more portable code, it would very useful if there was a way to grab the result string from the last executed step, without having to name the step explicitly.

How to get the result string of last executed step?

Thanks!
 

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83
Taking the result of the branch in the usual way does not fit?
 

Вложения

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Taking the result of the branch in the usual way does not fit?
For many situations the usual way works very well.

But lets say you have a complex macro or javascript that you'd like to use in many places in the template. Is there a way to retrieve the result of the last executed step so that its not necessary to repeat the same complex macro many times?

For example several branches might lead to a common step, but the processing is dependent on the output of the preceding step, the incoming link.

commonstep.jpg
 

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83
Use the global repository. And after each of the 3 branches assign a global variable to the previous step. Then it suffices to take a macro value to this global variable.
 

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Thanks step85, that is a solution I have considered but there is always the risk of one thread overwriting the value set by a different thread.

If new macro were available that could access the result of the last execution step, that would be very useful.

Thanks.
 

playmefast

Client
Регистрация
08.09.2010
Сообщения
70
Благодарностей
0
Баллы
6
I think that worth adding, nice suggestion. Maybe not as a macro, but as an option in branch.
 

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