Please help! I am having trouble getting the ‘In context’ to work on a button within a drawer. I have tried the ‘button set’ component and the ‘page title’ component but neither seem to be working. The ‘in context’ that I am trying to access is just the record ID for the row I am on - nothing fancy. (I am using Brooklyn 9.3.1)
For both Button Set and Page Title components: Within the component configurations I set the Model to the same model that the table uses & I set the context condition to read “Id of record = Id of row in context”
I then created a button in each component and used the name of the record as the label on the button (to see what was pulling through). On the Button component the label listed the name of the 1st record on the table, the Page Title component correctly displayed the row’s name.
Within the action framework I was not able to get either component to work correctly. For each button, I set up an action framework that creates a new child record and assigns the record id of the row to the correct parent lookup field. For both buttons, the first row in the table is always used as the parent.
Some troubleshooting I’ve done:
Child record model (we’ll call the model NewChild) is configured to not load data on page load and does not create a default row
Whenever the button is clicked, the action framework removes all rows from NewChild then creates a new row.
I have tried to set a filterable condition on the NewChild model for the parent lookup where I used the Id from the parent model
Another trial where I set a filterable condition to a ‘single specified value’ but left the value blank and then activated and set it from the button.
I have also removed the condition entirely and tried to use the ‘update row’ action to set the parent Id.
I can’t figure out what else might be the problem. It seems that I didn’t have this problem before brooklyn, but I cannot remember for sure. Has anybody experienced this on Brooklyn or see something that I am missing?
Many thanks!!
Question
In context" not working on a button within a drawer"

Translate
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.