67
Views
7
Comments
Solved
Security Warning You're exposing a database operation in the client side. Validate t

Hello, 

I see this warning. How can I make it disappear. 



Payme.oml

Rank: #89
Solution

Hi Roelof,

As above suggestion read and i provided some detailed on this problem.

As you are using entity Server action in client action like create customer

Now create a server action and this action put your logic to craete customer and use this action inside client action like below image,.

As you can now there is no warning.




.When you use entity server action try to create a sever action and use this in client action and 

.do not use more than one server action in client action  group all server action in one server action and use it client action.

.Do not use anonymous  when you use CRUD operation inside screen


Hope this will help you.

Regards

Rahul Sahu

Payme.oml

mvp_badge
MVP
Rank: #18

Hi Roelof,

You probably created an anonymous screen. Uncheck the Anoymous role from the screen.

Regards,

Daniel

mvp_badge
MVP
Rank: #71

Hi Roelof,

Here is the documentation about that warning with the cause and recommendation.

Hope this helps.

Regards,

Nordin

Rank: #1860

oke, 

Then I have to figure out how to make a validation on the server side. On the react path I thought that was not explained. 

Rank: #89
Solution

Hi Roelof,

As above suggestion read and i provided some detailed on this problem.

As you are using entity Server action in client action like create customer

Now create a server action and this action put your logic to craete customer and use this action inside client action like below image,.

As you can now there is no warning.




.When you use entity server action try to create a sever action and use this in client action and 

.do not use more than one server action in client action  group all server action in one server action and use it client action.

.Do not use anonymous  when you use CRUD operation inside screen


Hope this will help you.

Regards

Rahul Sahu

Payme.oml

mvp_badge
MVP
Rank: #18

As I already said do not use anonymous sxreen

Rank: #1860

@Rahul   Do I need to return the customerId. it looks to me that im doing nothing with it. 

Rank: #89

@Roelof,

No need to retrun CustomerId But if you want see which customer create with Customer ID so you can use it.

@Daniël Yes , but i added only in my points.


Regards

Rahul Sahu