Get ( LayoutTableName ) would return "temp_1" if the layout was based on a TO that was based on table named temp_1
Set Variable [ $action ; Value: Forms::temp_1 ]
Set Variable [ $table_name ; Get ( LayoutTableName ) ]
Set Variable [ $field_name ; "temp_1" ]
Set Field By Name [ $table_name & "::" & $field_name ; $action ]
I don't understand why you want to do this action but you're not setting a field you're only setting an variable.
What field do want to set which data in and most of all ...why? Maybe there's a better way.
But I think you mean:
Set Variable [ $layout_name ; Get ( LayoutTableName ) ]
Set Variable [ $action ; Value: $layout_name & "" & "::temp_1" ]
Set Field [ Value: Forms::temp_1; $action ]
Maybe this works, or maybe you know what to do now, but can you tell us why you want to do this, maybe we can help.
the table is named Forms
It's not Get ( LayoutTableName ), it's about the result you build from it.
$layout_name & "::temp_1"
… is just a (dumb) piece of text; what you want is the value in a field of the same name as this piece of text; but FM doesn't know that, so it just uses the text as is.
To get the value from that field, you need
Evaluate ( $layout_name & "::temp_1" ), or – more to the point IMO –
GetField ( $layout_name & "::temp_1" )
its returning a question mark, basically i am trying to set the name of the Table to a variable and use the variable along with ::temp_1 to get the value of the field.
Oh thanks , i put two && instead of one.
Thanks so much!!!