49
Views
3
Comments
Solved
Showing the Posts from the database on news feed web screen
Question

Hi all,

I am working on a social media type application called social network application. Its interface is very similar to the facebook interface. We can create post, attach photos, add files and create Poll questions. The data is inserted into the database but i couldn't get how to show that post on to news feed page. If there is anyone who faced similar problem..?

I am attaching the screen shot of page.

Cheers,

Hassan


newsfeed.png
2020-02-28 09-46-54
Eduardo Jauch
Solution

Hello Hassan,

If you HAVE data in database and you aren't able to show it in screen, you probably have a bug in your application...
But is very difficult to say anything with so little information (the image don't say much...)

SO, I would bet you have a problem in the data itself (you're not saving everything you need), or the joins/filters in the aggregate/sql are not correct, so you get nothing.

Hope this helps.

Cheers.


UserImage.jpg
Osama Hassan

Eduardo Jauch wrote:

Hello Hassan,

If you HAVE data in database and you aren't able to show it in screen, you probably have a bug in your application...
But is very difficult to say anything with so little information (the image don't say much...)

SO, I would bet you have a problem in the data itself (you're not saving everything you need), or the joins/filters in the aggregate/sql are not correct, so you get nothing.

Hope this helps.

Cheers.


Hi eduardo,

Yes there was a problem  of filter in the aggregate. I was using AND gate and when changed to OR gate. It worked like a charm.


Cheers


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Hassan,

What problems do you run into? What exactly means you "couldn't get how to show that post"?

2020-02-28 09-46-54
Eduardo Jauch
Solution

Hello Hassan,

If you HAVE data in database and you aren't able to show it in screen, you probably have a bug in your application...
But is very difficult to say anything with so little information (the image don't say much...)

SO, I would bet you have a problem in the data itself (you're not saving everything you need), or the joins/filters in the aggregate/sql are not correct, so you get nothing.

Hope this helps.

Cheers.


UserImage.jpg
Osama Hassan

Eduardo Jauch wrote:

Hello Hassan,

If you HAVE data in database and you aren't able to show it in screen, you probably have a bug in your application...
But is very difficult to say anything with so little information (the image don't say much...)

SO, I would bet you have a problem in the data itself (you're not saving everything you need), or the joins/filters in the aggregate/sql are not correct, so you get nothing.

Hope this helps.

Cheers.


Hi eduardo,

Yes there was a problem  of filter in the aggregate. I was using AND gate and when changed to OR gate. It worked like a charm.


Cheers


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.