19
Views
10
Comments
Solved
'DisableCarouselSwipe' is not visible in outsystems.

Currently using 'Interaction\Carousel'

'Interaction\DEPRECATED_Carousel' has something called 'CarouselDisableSwipe', but

'DisableCarouselSwipe' in 'Interaction Carousel' is not visible...

Has it disappeared by any chance?

2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

You can use CarouselToggleDrag client action and set HasDrag to False

2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

I could find a solution. I did some changes to your OML:

I removed Carouselnitialize action and gave a name to carousel control itself to be able to get its Id and finally I used client action CarouselToggleDrag into OnRender event of the screen.


Kindly find updated OML attached

Halp_Modified.oml
2020-11-25 10-45-32
Mostafa Othman
Champion

Hello,

This client action is existing into OutSystemsUI. You can add it to your module by clicking manage dependencies then select OutSystemsUI from left panel then tick Deprecated_CarouselDisableSwipe

UserImage.jpg
Yeongeun Seo

The 'Disable Carousel Swipe' you mentioned only works for 'Interaction\DEPRECATED_Carousel' and not for 'Interaction\Carousel'

2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

You can use CarouselToggleDrag client action and set HasDrag to False

UserImage.jpg
Yeongeun Seo


I tried the information you provided, but it doesn't work.

What I want is to prevent the user from swiping the carousel.

Does this work for you?

All other logic in the carousel works fine.


2020-11-25 10-45-32
Mostafa Othman
Champion

Yes, its working fine.

Kindly find attached OML as an example.

TestCarousel.oml
2020-11-25 10-45-32
Mostafa Othman
Champion

You can also set AutoPlay property to False if you don't want to change item unless user click arrow or dots

UserImage.jpg
Yeongeun Seo


친절하게 알려주셔서 감사합니다. 

OML을 기반으로 동일한 캐러셀을 만들었지만 사용자 스와이프가 작동합니다. 

제 OML 좀 봐주시겠어요? 

친절한 답변 감사드립니다 

Halp.oml
2020-11-25 10-45-32
Mostafa Othman
Champion

I am currently facing same issue you have and I think its due to fetching images from database.

I am working on it and trying to find the reason and I will update you once have any update

2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

I could find a solution. I did some changes to your OML:

I removed Carouselnitialize action and gave a name to carousel control itself to be able to get its Id and finally I used client action CarouselToggleDrag into OnRender event of the screen.


Kindly find updated OML attached

Halp_Modified.oml
UserImage.jpg
Yeongeun Seo


You are so kind!!

Thanks to you, I was able to solve a problem I had been worrying about for a long time.

Thank you so much for taking the time to resolve the matter.

I hope only good things happen to you. ♥ _♥

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