I want the save button to change its caption, depending on whether it is in the Products or Items Form.
I use the following expression:
IFS (
CONTEXT (“View”) = “Orders_Form”, “Send Order”,
CONTEXT (“View”) = “Items_Form”, “Add”
)
It works correctly if I go to each table and enter the Form, but since the Items table is part of the Orders table, when I enter Orders and touch New to enter an item, the caption does not change.
I also notice that in the editor preview, the name of the Form does not change either.
Is there a way to achieve it?
@nghia281 wrote:
when I enter Orders and touch New to enter an item, the caption does not change.
Please check what is the form view name when you perform the above action. it could be possibly different from the two view names you have mentioned. You will see the view name at the bottom in the editor. if different, you will need to add that view name as well in your expression.
No, in children view in form. Still has parent view, context view not change.
Then , please include that parent view name in the expression and test.
I have done it, and it did not change. Can you show me how to do it?
User | Count |
---|---|
25 | |
14 | |
4 | |
3 | |
3 |