![]() ![]() The trick to do so is similar to what is shown in the Rules example included in my answer to " How to concatenate all token values of a list in a single field within a Rules loop?". However, if what you're looking for (= the list of files as stored in your file field) is not available, then just (a) make it available first and (b) wait with your Send an eMail action until it is available. However, by doing so, your Rules Action to Send an eMail no longer has access to that crucial variable list_item which is like a local variable inside your loop. So yes, that's a way to only execute such Send an eMail Rules Action 1 time (instead of for each iteration of the loop). And instead that Send an eMail Rules Action should only be performed 1 time after the Rules loop is completed finished". With that " move Email to the left", you must mean something like " Using the Rules UI, I change the Rules Action to Send an eMail, so that it is no longer considered as one of the Rules Actions to be performed for each iteration of the loop. When I move Send Email to the left, I cannot access the " list_item" variable. That's not really what you want of course. Your rule works as implemented: for each iteration of your loop, you have a Send an eMail action. ![]() So I wrote the function getrange($min,$max) that exactly does this.The Rules Action to Send Email is in a Rules loop, and I get one email per item in list This could be used for example to get the excel column indexes.Į.g. The function "range" is very useful to get an array of characters as range('C','R') does.Īt work, I had to extend the function range($a,$b) to work in this special case: with two uppercase strings $a and $b, it should return all the possible strings between $a and $b. Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Supported Protocols and Wrappers Security Introduction General considerations Installed as CGI binary Installed as an Apache module Session Security Filesystem Security Database Security Error Reporting User Submitted Data Hiding PHP Keeping Current Features HTTP authentication with PHP Cookies Sessions Dealing with XForms Handling file uploads Using remote files Connection handling Persistent Database Connections Command line usage Garbage Collection DTrace Dynamic Tracing Function Reference Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Cryptography Extensions Database Extensions Date and Time Related Extensions File System Related Extensions Human Language and Character Encoding Support Image Processing and Generation Mail Related Extensions Mathematical Extensions Non-Text MIME Output Process Control Extensions Other Basic Extensions Other Services Search Engine Extensions Server Specific Extensions Session Extensions Text Processing Variable and Type Related Extensions Web Services Windows Only Extensions XML Manipulation GUI Extensions Keyboard Shortcuts ? This help j Next menu item k Previous menu item g p Previous man page g n Next man page G Scroll to bottom g g Scroll to top g h Goto homepage g s Goto search
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |