I found this recently while filling a form in Appsheet. Thought of sharing it with the community.
[_THISROW].[_THIS] value of the current column current row (from table i.e. ghseet in my case)
[_THIS] value of the current column in the form-view
I shall describe the usage of both with a sample scenerio
Consider a table with 2 columns [Date] , [Shift]
Lets say we want to set the initial value of column [Shift] based on the value of column [Date]
For this I can use either of the two expressions given below
IF([_Thisrow].[Date]=TODAY(),āAā,āBā)
IF([Date]=TODAY(),āAā,āBā)
The first expression will consider the value of Date from Gsheet i.e. the saved data from Table
The second expression will consider the value of Date from the Form-View i.e. if i change the Date in the Form-View, the Shift updates instantly in the Form-View which does not happen in the case of first expression.
Thatās cool thank you @jyothis_m . Iām think many of us thought that [Column] and [_THISROW].[Column] would be exactly the same.
If I understand right, you are not talking about Add a new row, but about Edit an existing row, right? If so I think you have enabled āReset on Editā to force the initial value to recalculate, right?
Is [_THISROW].[Date] acting the same as [_THISROW_BEFORE].[Date]?
May you also share a usecase for that? I think that the initial value of column [Shift] will behalf different in Add and in Edit. How do you communicate this to the users so that they donāt get confused?
Re use case: Various community posts reference leveraging this distinction in Valid if expressions to prevent duplicate values across a columnās rowsāe.g., NOT(IN([_THIS], Table[Column] - [_THISROW].[Column])).
Thank you @jyothis_m for the GIF. Now I got it
So [_THISROW].[Column] or [_THISROW_BEFORE].[Column] memorizes the Initial value in an add. Or the value in the sheet in an edit. Thatās quite interesting. I didnāt expect that [_THISROW_BEFORE].[Column] would work in an add.
One usecase that comes to my mind: You can show the ābefore valueā in the column description., or in a VC. You can show the before value only if the value has changed.
But in my testings this is working only with
[_THISROW_BEFORE].[Column]
Not with
[_THISROW].[Column]
Nor with
[_THISROW].[_THIS] (gives the error āUnable to find column ā_THISāā)
Here is the GIF
Show More
This is the expression I use in Column Description of column [Enum]:
āEnumā&
IF(
[_THISROW_BEFORE].[Enum]<>[Enum],
" (the before value was: ā&[_THISROW_BEFORE].[Enum]&ā)",
āā
)
I find that if [_THISROW] is used in SHOW? expression itās calcurated not only when saved but also the other page is selected. So [_THISROW] probaly donāt consider value from G sheet in SHOW? expression.
P.S.
I want more explanation in help page about [_THISROW]ā¦