Jump to content

Test/RiskDataLookup

From RiskiPedia

Test cases for the RiskDataLookup tag

Test/RiskDataLookup:testlookup1
a b c value

a1

b1

c1

1.0

a2

b2

c2

2.0

a3

b3

c3

3.0

Lookup second row by value:

Test/RiskDataLookup:testlookup2
d e f valuedef

d1

e1

f1

1.01

d2

e2

f2

2.02

d3

e3

f3

3.03

Lookup the third row by index:

Test/RiskDataLookup:testlookup3
g h i valueghi

g1

h1

i1

1.11

g2

h2

i2

2.23

g3

h3

i3

3.33

Lookup first row (default row):


Use DropDowns to decide which table and which row to fetch:

Test/RiskDataLookup:selecttable
table

testlookup1

testlookup2

testlookup3

Test/RiskDataLookup:selectrow
row rowindex

1

0

2

1

3

2

Select which table: Select which row:


Errors:

No table set: riskdatalookup: missing table attribute

Row not found: riskdatalookup: can't find row foo in RiskData table testlookup1

Row not found by index: riskdatalookup: can't find row 11 in RiskData table testlookup1