Action to LINKTOFORM not taking the right KEY value

Hi!
I had a parent tables with 2 child tables.
When the user opens to complete the form of the parent table and finish completing, I create and action at parent table, that shows a special detail view, where this action is shown, so the user can click the button and opens the first child form pulling the KEY value from the parent FORM that they just completed, they complete the FORM of this first child table, and then it show a similar DETAIL view with a similar action that opens the form of the second child table, that supposses to get the KEY value from the parent table.

Action 1:
Parent table
App: go to another view within this app
Target: LINKTOFORM(“Form_Eval_Pro_Inter_Form” , “Dt_Form_Pdv3” ,[_THISROW].[Dt_Form_Pdv])
Behavior: CONTEXT(“View”)=“ActionDetailFormProInter”

And this first child action works fine, but the second action for the second child table is not gettin the KEY from the parent table, is taking the KEY from the previous ROW form the parent table.

Action 2:
Parent table
App: go to another view within this app
Target: LINKTOFORM(“Form_Medic_Cobertura_Form” , “DtFormPdv2” ,[_THISROW].[Dt_Form_Pdv])
Behavior: CONTEXT(“View”)=“ActionDetailFormMedicCobert”

What am I missing?

Don’t use [_THISROW]. in LINKTOFORM() expressions.

I try first with this expression and then add it [_THISROW] because it was causing the same issue.
This was the expressions before:
Action 1:
LINKTOFORM(“Form_Eval_Pro_Inter_Form” , “Dt_Form_Pdv3” ,[Dt_Form_Pdv])
and
Action 2:
LINKTOFORM(“Form_Medic_Cobertura_Form” , “DtFormPdv2” ,[Dt_Form_Pdv])

With those I have the same issue with the KEY parent table

1 Like

Please post screenshots of the configurations of the two actions.

This is how I have them right now.


1 Like

Those look good.

Please post screenshots of the configurations of the views that display each of those two actions.

Slices:


Views:


1 Like

I am very confused.

How does all this happen? What views? What tables or slices? What actions?

This will help to a better understanding

1 Like

Did the video help?

1 Like

Unfortunately, the video did not help me. I think this problem will require someone look at your app configuration directly, which I’m not prepared to do. Consider engaging Support–they may be able to help.

https://www.appsheet.com/Support/Contact

I did, thanks!

1 Like