Problem with receiving all records
Hello, I am having trouble building a messaging system right now. I have a user input that, when entered, returns a record that includes both the user and the message recipient. I want to create a solution when I am signed in, I want to see the username of the other person, but if they log in, I want them to see my username. I am using an if statement that would check the first id within the array, and if they are the same, it returns the other user's information from the array. Unfortunately, it returns one of the records instead of all. How can I receive all the records? I will provide images of my stack and results
This user has two different chats with two different users but it only shows one.
Best Answer
-
Looking at the debugger would let you introspect - look inside what the function stack is thinking about each step along the way. That would probably make clearer what is happening and help you align the processes with your intended outputs. I think a little patient examination would surface where the stack is going sideways.
Complicated data manipulation is an area where Xano shines by providing good tools with intuitive logic. But that doesn't stop it from being complicated! Give yourself permission to take your time. This is also the kind of "hardest 5%" problem we work on every day in our State Change office hours and loom-enabled forums.
Answers
-
Hey @justJosuke,
Could you please provide a screenshot of the steps 4, 6.1, 7, 8.2, 8.3(by clicking on it and screenshotting the right bar that appear), as well as your response variable, so I can assist you better?
-
Sure, I will provide all the screenshots. 8.2 and 8.3 are Get Records with the same inputs and outputs.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback