Custom-Trigger more than one type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-05 3:15 AM
Is it possible to create 2 or more types in a custom trigger? i tried it with a komma, but i doesn't work.
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-06 1:57 AM
Hello @Roman REITER​,
Yes, that is possible.
Select <custom> as your Action type and rename whatever you want (in my example I named it ThreeThings):
In the Includes tab, create a struct and insert your variables, with different types if you want, like this :
Then, you can link an interaction with your Custom Trigger, e.g. :
I attach my TouchGFX project example to this post, so you can look at it in details if you want.
/Yoann
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-06 1:57 AM
Hello @Roman REITER​,
Yes, that is possible.
Select <custom> as your Action type and rename whatever you want (in my example I named it ThreeThings):
In the Includes tab, create a struct and insert your variables, with different types if you want, like this :
Then, you can link an interaction with your Custom Trigger, e.g. :
I attach my TouchGFX project example to this post, so you can look at it in details if you want.
/Yoann
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-10 7:34 AM
Thanks, but I knew that. would have thought of something like this: <custom>, <custom>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-11 5:24 AM
Hello,
I'm not sure to fully understand, why doing that when you can just pass a struct with as much parameters as you want ?
/Yoann
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-23 3:34 AM
mostly an array with size is passed to functions (2 parameters-char * array, uint8_t size). i just wanted to do it the way it is done (as shown in books). However thank you for your help.
