Thanks for any advice. I had this same exact issue 6 months ago and for the life of me I cannot remember the fix.
Repeating group. posts the same info over and over. Not the next one, and next one. etc. WTH??
Any Help Would Be Appriciated.
Thanks for any advice. I had this same exact issue 6 months ago and for the life of me I cannot remember the fix.
Repeating group. posts the same info over and over. Not the next one, and next one. etc. WTH??
Any Help Would Be Appriciated.
Hi there,
Can you post a screenshot of what your repeating group looks like in preview mode?
It appears you have a group inside the repeating group - could you screenshot how that group’s data source is set?
Your RG is loading a list of Notifications - so each Notification found in the search will create one cell in the RG.
Then, inside the each RG cell, you have a Group (Group Cell) which has it’s own datasource, that being a new search for notifications: last item).
That means that each Group Cell in your RG will contain the exact same Notification (the one return in the Group Cell datasource, and then you’re text elements all reference the parent Group, which is why they are all displaying the same data.
I’m not sure why you’re doing a new search inside the Group Cell (what are you intending to do with that?)
But I would assume you’re actually intending simply to show the data from each cell in the text elements (this is a much more usual way of doing things).
in which case get rid of the search as the datasource of the Group Cell (that doesn’t make any sense) and use the Current Cell’s thing as the data source - which is the usual, and correct (in most cases) way of doing things.
EDIT: from your additional screenshots, you’re also doing additional searches inside the RG cell…
This is not the correct way to work with RGs.
In most cases you always want to refer to the Cell’s data.
In Group Cell, you are doing another “search for” try replacing it with “current cell notification” - and the “last item” condition only returns the last item, maybe that’s why it’s repeating the same thing in all of them.
Thank you both for helping. I think in trying to correct I added to everything in a give it a try.
This is what I have now and the space is blank on the real site.
Nevermind. I fixed it. Dam… I went crazy trying to figure that out last night.
Thanks a lot for all the help. I do have one more quick question.
I put a reply box and also played around with that but it creates a new data thing.
I want it to stay in the same data line and just add the response to it.
Is that correct thinking, or does it need to create a new data every time? What do you into here? and the workflow?? Please
Great!!
In your Notification data type, you will need to have a “data type response”, of type “text”, for example. And always record this response related to the current cell notifications. Which in this case will be the “parent group notification”. See if this works for what you want.
It 100% works, Almost done… Thank you everyone.
Just ran into my next simple but confounding issue… When You hit the reply button. I have the workflow set to this.
Problem is, I need when reply 1 value is not empty it goes to reply 2 value and so on.
Thoughts??
It appears you’ve added 3 additional text fields to the “Notification” data type called “Reply 1” “Reply 2” and “Reply 3”, yes?
Unless there is some reason you’re limiting to 3 replies, and/or if Reply 1, 2, and 3 have very different functions, you should not be making them separate fields. That’s not scalable or dynamic, and a hassle for the reason you’re running into right now, where you’re trying to conditionally set the correct reply field based on whether others exist…
So instead, use a single field called “Replies”, which will be a list of texts.
Go to your Notification data type, and create a new field “Replies”. Field type=text. And then be sure to check the box “this field is a list (multiple entries)”
Now a Notification record has a “List of texts” field where you can store each notification’s replies.
For your workflow, keep your existing step “make charges to a thing” (Parent group’s Notification).
However, the field to modify will be “Replies”, and you will use the add operator.
Replies add: multilineInput’s value
This same workflow will continue to work for all additional replies - no work needed to find out if other replies exist. Because the workflow always adds each newly submitted “Reply” text input as a new entry into this notification’s list of replies.
Later, when you get to the point of displaying the replies, it’s easy. You wont need to place multiple text elements for each reply like you would have, nor any logic to hide “reply 2” 3 , etc if they didn’t exist yet.
Instead, you’ll make a “replies” RepeatingGroup to display any replies.
Type of content: text
Data source: “<this Notification’s> Replies”.
Getting any or all the Replies to appear is as simple as placing a single text element in the new “Replies” repeating group. You’ll set that text correctly with the dynamic expression (“current cell’s text”)
This way, all notifications with replies will display all replies, no matter how many. All by utilizing the “List of Texts” field.
I’ll also advise that if you plan to add more functionality to individual replies other than just adding/editing/removing them (such as adding a “like” button on specific replies, or showing their creation timestamp) then you’ll need to get ahead of it by making a whole new data type for Replies, where each Reply record has fields to hold its own info… and then you’d need your Notification data type’s “replies” field to be a list of Replies instead of a list of texts. But that’s a lot more setup and explaining than I’ll get into. If text is all you need for individual replies, then what I outlined should cover your bases!
Thank you this helped out greatly and worked.
I have it working on the current users replies… (message out) that works great. Keeps and add to the record the way it should.
I figured out how to get the first message from sender. (message in) Problem is, I cannot figure out how to get the next message like a reg back and forth.
No matter what I try it’s the same message in all, or all the messages with a comma between them.
Next Move?? or easier way? Driving me nuts,