User login control to open form with for this user

I modified this control:


And I create this form to open data for the logged user only

By using this menu

So, I get this error

But when I open the second form application alone it show me this message:
image
and if I enter user name it show me the actual data:
image


Can you please help me to solve this issue?

I suggest to define the global v_EmployeeNo as Session Variable Out instead of using sc_set_global function.
In called application the same variable must be defined as Session In.
Hope this help

1 Like

I try to make project like this one in scriptcase
image
But I can`t
So, Can you please modify my code above to work good
Thanks in advance

You have an error when declare variable. Your variable must declare it like
sc_set_global({v_EmployeeNo});
sc_set_global({v_NameAr});

1 Like

I`ll will try this God willing.
Many thanks for your help and support me.
I am very grateful to you.
Sincerely, respect and appreciation