I am attempting the relational database MOD. My app is the same as the MOD: a user database and an items database. All works well but this: I want to first select a user and then add an item automatically under the selected user's ID.
I have tried the following link which does not work (field UserID exists in both databases):
db_script_url?db=items&uid=$db_uid&addform=1&UserID=$rec{'UserID'}
I see 2 problems:
1. the function $rec{UserID} is returning a null
2. Even when I try to hardwire the link to say ...&UserID=3, it still does not work.
What am I doing wrong.
I have tried the following link which does not work (field UserID exists in both databases):
db_script_url?db=items&uid=$db_uid&addform=1&UserID=$rec{'UserID'}
I see 2 problems:
1. the function $rec{UserID} is returning a null
2. Even when I try to hardwire the link to say ...&UserID=3, it still does not work.
What am I doing wrong.