Hi,
I want to display published adverts in my application. I want to use 'Display Message' tag to show the advert. My problem is that when I use FIND action, it does not display the records sequentially. It just shows the first record on top of the stack.
I am wondering if I can find any trick or tips to achieve this. Please help
Record iteration
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
-
- Posts: 10
- Joined: Fri May 22, 2009 10:49 am
refined iteration record
I believe that my post was not clear enough.
Firstly, I want to use MESSAGE DISPLAY ASYNCH tag to display adverts.
Secondly, when I use FIND to fetch records, it only displays the first record it fetches from the database.
How can I iterate through the fetched records so that it can display the records one after the other?
Firstly, I want to use MESSAGE DISPLAY ASYNCH tag to display adverts.
Secondly, when I use FIND to fetch records, it only displays the first record it fetches from the database.
How can I iterate through the fetched records so that it can display the records one after the other?
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
-
- Posts: 10
- Joined: Fri May 22, 2009 10:49 am
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Store messages in the database as objects with attributes. One attribute will be a message and another one - sequence order of the message. Remember the current sequence order in some other object somewhere and then each time increment the sequence order and only retrieve the message for the current order number.
This idea is implemented in the CRM app. You just need to take the idea on board and implement it properly.
This idea is implemented in the CRM app. You just need to take the idea on board and implement it properly.
Aware IM Support Team