Access subform entries over hash cookies
Posted: Fri Jun 28, 2019 9:46 am
Hello,
I have the following structure:
Now I wanted to add a nuBuilder object to format and concat some data on subform level.
So I created:
subformTable.test_concat (as nuBuilder object, not in sql)
I took the following configuration:
Type "Display"
Access "Readonly"
Display SQL
This concats and displays the first entry of subformTable but the rest of the lines also get the first entry as expected.
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:
This does not work and I found out that the problem is the hash cookie is not resolved by nubuilder.
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.
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.