Platform
Learn
Community
Support
Sign up
or
Log in
Profile
messages
Messages
logout
Logout
Platform
Home
Downloads
IPP
Licensing
Project Sizing
Beta
Learn
Training
Documentation
Evaluation Guide
Community
Jobs
Home
Forums
Forge
Ideas
Badges
Members
Support
Partner Guide
Resources Library
Opportunities
Account Management
Pre Sales Demos
Sign up
or
Log in
Home
Jobs
Forums
Forge
Ideas
Members
Badges
Dear ,
What would improve your OutSystems Community experience? Let us know by taking this 2-minute survey.
Pick up the survey
Community
›
Forums
›
Forge Discussions
SilkUI carousel
New Post
New Post
Tomás Eiró
Posted on 2016-07-06
Tomás Eiró
Rank: #3202
Posted on 2016-07-06
Hi all,
I am using the carousel available on the SilkUI Framework and I would like to know if it is possible to select the order of the images that are displayed when the carousel is loaded?
I am using an aggreggate to select the images that I want to display and I am using the order by and it all seems to be working in the aggreggate. But, when the images are displayed on the carousel the order is not the same.
Can somebody help me on this?
Thanks.
Regards,
Tomás Eiró
Niels Favreau
Posted on 2016-07-07
Niels Favreau
Rank: #94
Posted on 2016-07-07
Solution
Can you please share your eSapce? :p
Solution
Tomás Eiró
Posted on 2016-07-07
Tomás Eiró
Rank: #3202
Posted on 2016-07-07
Solution
Carousel.oml
Niels Favreau wrote:
Can you please share your eSapce? :p
Here you have a simplified version of the eSpace. Basicaly, in the preparation you get all the photos that you want and order them by the PrimaryPhoto attribute. When the images are displayed in the carousel it seems impossible to control the order in which they appear.
Thanks
Solution
Niels Favreau
Posted on 2016-07-07
Niels Favreau
Rank: #94
Posted on 2016-07-07
Solution
You are using the PrimaryPhoto attribute( a bool) to define the sorting?
You could Add an other attribute 'order' and add a second sorting, and order by the 'order' atrtibute.
There will be 2 sortings : Primary photo and Order
Solution
Tomás Eiró
Posted on 2016-07-07
Tomás Eiró
Rank: #3202
Posted on 2016-07-07
Solution
Niels Favreau
wrote:
You are using the PrimaryPhoto attribute( a bool) to define the sorting?
You could Add an other attribute 'order' and add a second sorting, and order by the 'order' atrtibute.
There will be 2 sortings : Primary photo and Order
Yes, I am using a boolean because only one of them will be True and I want that one to appear first. I have also tried to use an Integer instead of a boolean, but it also did not work.
Solution
Niels Favreau
Posted on 2016-07-07
Niels Favreau
Rank: #94
Posted on 2016-07-07
Solution
Carousel_Working.oml
Tomás Eiró
wrote:
Niels Favreau
wrote:
You are using the PrimaryPhoto attribute( a bool) to define the sorting?
You could Add an other attribute 'order' and add a second sorting, and order by the 'order' atrtibute.
There will be 2 sortings : Primary photo and Order
Yes, I am using a boolean because only one of them will be True and I want that one to appear first. I have also tried to use an Integer instead of a boolean, but it also did not work.
Okej!
See solution in attached OML.
What have i done?
I Created a
record list inside the carousel
which is linked to your aggregate. Using the list it will display the images taking into account your bool.
In the properties of the list record
set the line separator to 'none
'.
Additionally, drag the image widget into the list record (as atribute) and this should be the properties of the image: (your entitie identifier should now be the one from the list record. Same for filename)
Solution
Tomás Eiró
Posted on 2016-07-07
Tomás Eiró
Rank: #3202
Posted on 2016-07-07
Solution
Thank you very much Niels. It worked perfectly :)!
Solution
Niels Favreau
Posted on 2016-07-07
Niels Favreau
Rank: #94
Posted on 2016-07-07
Solution
Tomás Eiró
wrote:
Thank you very much Niels. It worked perfectly :)!
You're welcome.
Solution
Login to reply
New Post
Available Forums
Technology & Integration
News and Announcements
Forge Discussions
Meta
Hints and How-To Guides
Usability
Installation Troubleshooting
Personal Environment Troubleshooting
Forum Notifications
Email Digest Settings
Loading...
(hidden) New Badge Popup