code not works if there is an "if" .
???
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
???
Hello!
We are working on it.
I will let you know when have more information from developers team.
Hi Rafael,
I'ts correct behavior.
So you can read with read item with read service only by "_id" from this collection.
You can not get item from collection_2 with id from collection_1 item.
So i guess there is some problem with business logic. Or you should link these collections with pointer field type. Then you can make search by "_id" if related collection.
Read more here:
http://devcenter.appery.io/documentat...
Regards.
Ok ... but from what I understand, this has nothing to do with my problem.
My "if" codes don't work!
and nobody solves my problem.
Can you help me?
Hi Rafael,
Unfortunatly we can not help you in such extensive problem cause of it's lot of business logic in this case.
So you should debug your app step by step and find a culprit of your problem. Then give us "smallest broken code".
Please take a look how to debug application: http://devcenter.appery.io/documentat...
Regards.
Friend. The problem is not logic.
How can the problem be if you were me logic provided all the codes?
How can the problem be logical if everything worked properly and after you have updated the constructor the codes "if" stopped working?
How can the problem be logical if I've done another application, and tried to create some function with some code "if" and also didn't work?
The problem is in the constructor.
And now, what am I going to do?
I'm paying for something that is not being helpful.
Can you please help me?
I am Brazilian, I don't speak English, I do everything by the translator.. step huge difficulties to be able to work with the apperyio, but I'm not satisfied.
Please, help me.
I really need you.
Hello Rafael,
Sorry, I'm not sure I understand you correctly, could you please clarify what is this if that you talk about?
You call both services on the show pages Empresa, this is shows on the source code on screenshot 1.
And one service returns the result and the other one - service error, because the specified _id is not found in the collection (please see 2 screenshots). In theory you should call some one service, depending on in what collection you want to search. For this you need to add js code in which you will check (using "if"), what service shlould be called and call only him.
Can you help me with the js code?
How can I escrevelo?
Not sure how to write it ..
Can you help me?
Hi Rafael,
Please answer on Evgenes post.
Regards.
Can you help me with the js code?
How can I escrevelo?
Not sure how to write it ..
Can you help me?
It may be that this works.