Greetings,
Since Cloverleaf 3.81P, you will need to test the return value from your table lookup and if null (empty) then pass your original value to the utput target. Of course if you specifiy a default value (dflt=somevalue) then you would get that returned from your table lookup.
For example we have the following in a tps Tcl procedure:
set obx_3_text [tbllookup EPIC_OBX3_1_CO.tbl $obx_3_1 ]
if {![string equal $obx_3_text {}]} {
set keep_obx(OBX${obx_seq}) $obx_3_text
} else {
set keep_obx(OBX${obx_seq} $obx_3_1 ;#added here to illustrate
}
Here we test if a value was returned from the table lookup and do some code. We added an else for the empty value returned case and use the original lookup key for the logic.
Or you could do a test like the following:
if { [string equal [tbllookup EPIC_PASS_LOC_PAREX.tbl $pv1_3_1] {}] } {
set somevariable $pv1_3_1 ;#not on table use original value
}
I hope this helps you out in solving your problem.
I hope this helps you out.