TABLE - VALUE in FUSION
TABLE - VALUE in FUSION
1
GET_TABLE_VALUE and HR_GET_TABLE_VALUE Return No Values in Fast Formula
Formula is below:
L_TABLE_NAME = DATA_ELEMENTS['TABLE_NAME']
L_ROW_NAME = DATA_ELEMENTS['ROW_NAME']
L_COLUMN_NAME = DATA_ELEMENTS['COLUMN_NAME']
L_OUTPUT_VAL = ' '
CHANGE_CONTEXTS(ENTERPRISE_ID=1)
(
L_OUTPUT_VAL = HR_GET_TABLE_VALUE ( L_TABLE_NAME, L_COLUMN_NAME, L_ROW_NAME,
'N/A' )
)
rule_value = L_OUTPUT_VAL
RETURN rule_value
Logs show that the correct values are passed to the formula:
TABLE_NAME ::JF_EMAIL_LIST_TO_CLOUD
ROW_NAME ::CASS_NOTIFICATION_EXTRACT
COLUMN_NAME ::RECIPIENT
Return Value : N/A
CAUSE
------
The values for the GET_TABLE_VALUE call are:
In this instance, the row name has the problem. There is no ROW_LOW_RANGE_OR_NUMBER
value which is passed to the fomrula. When values are updated from the User
Interface (UI), the base / internal value is not changed e.g.
ROW_LOW_RANGE_OR_NUMBER, only the translated / display value is changed e.g.
ROW_NAME. This is the standard implementation.
SOLUTION
*********
select u.base_user_table_name
, u.user_table_name
, u.range_or_match
, u.user_key_units
, c.base_user_column_name
, c.user_column_name
, c.data_type
, r.row_low_range_or_name
, r.row_name
, to_char(r.effective_start_date, 'YYYY-MM-DD') esd
, to_char(r.effective_end_date, 'YYYY-MM-DD') eed
, r.row_high_range
, to_char(uci.effective_start_date, 'YYYY-MM-DD') uci_esd
, to_char(uci.effective_end_date, 'YYYY-MM-DD') uci_eed
from ff_user_tables_vl u
, ff_user_columns_vl c
, ff_user_rows_vl r
, ff_user_column_instances_f uci
where u.base_user_table_name = 'YOUR UDT'
and u.legislative_data_group_id = NNNNNNNNNNNNNNNNN
and c.user_table_id = u.user_table_id
and r.user_table_id = u.user_table_id
and uci.user_column_id = c.user_column_id
and uci.user_row_id = r.user_row_id
and (r.effective_start_date between
uci.effective_start_date and uci.effective_end_date or
r.effective_end_date between
uci.effective_start_date and uci.effective_end_date);