Forum Discussion
AlexWilkinson
Qrew Assistant Captain
Nice idea! Essentially, this creates a row of buttons that can be styled to look like tabs. If you're OK with ordinary buttons, the global variables for [BtnDivStyle] and [BtnTextStyle] become unnecessary.
Also, the code-length can be reduced substantially by adding three global variables for Part1, Part2 and Part3 of the text for each button (or tab). Thus, without the custom styling, you would have something like this:
[Part1] is this global variable:
"<a href='" &
URLRoot() & "db/" & [_DBID_OPPORTUNITIES]
& "?a=dr"
& "&rid=" & [Opp ID]
& "&dfid="
[Part2] is this global variable:
"&z=" & Rurl() & "' "
& "style='Vibrant;' >"
[Part3] is this global variable:
</a>"
Then the series of buttons becomes:
[Part1] & "11" & [Part2] & "Main" & [Part3] &
[Part1] & "22" & [Part2] & "Scope" & [Part3] & ... etc.
Also, the code-length can be reduced substantially by adding three global variables for Part1, Part2 and Part3 of the text for each button (or tab). Thus, without the custom styling, you would have something like this:
[Part1] is this global variable:
"<a href='" &
URLRoot() & "db/" & [_DBID_OPPORTUNITIES]
& "?a=dr"
& "&rid=" & [Opp ID]
& "&dfid="
[Part2] is this global variable:
"&z=" & Rurl() & "' "
& "style='Vibrant;' >"
[Part3] is this global variable:
</a>"
Then the series of buttons becomes:
[Part1] & "11" & [Part2] & "Main" & [Part3] &
[Part1] & "22" & [Part2] & "Scope" & [Part3] & ... etc.
AlinMihalcea1
7 years agoQrew Assistant Captain
Thanks Alex!