I have the following structure:
Code: Select all
mainTable
mainTable.main_index_key
mainTable.data
subformTable
subformTable.sub_index_key
subformTable.main_index_key_link
subformTable.any_sub_data_1
subformTable.any_sub_data_2
So I created:
subformTable.test_concat (as nuBuilder object, not in sql)
I took the following configuration:
Type "Display"
Access "Readonly"
Display SQL
Code: Select all
SELECT CONCAT(subformTable.any_sub_data_1, ' - ', subformTable.any_sub_data_2) AS test_concat FROM subformTable
Now I wanted to extend the SQL with a WHERE statement and hash cookies to display the current line.
I thought of something like this:
Code: Select all
SELECT CONCAT(subformTable.any_sub_data_1, ' - ', subformTable.any_sub_data_2) AS test_concat FROM subformTable WHERE subformTable.sub_index_key = '#sub_index_key#'
In the end it seems that none of the subformTable.* can be accessed as hash cookie.
Otherwise, mainTable.* can be accessed as hash cookie but this does not help.
Any idea? Thank you.