Day 18 – Actions Before and After Foreach Looping

A while ago, there was an app that I was building that I wanted to process a bunch of data from a feed in a foreach loop and then wanted to call an action once after the foreach loop was done. I was flustered for a while on how to do this since raising an explicit event in the postlude of the foreach would run the raised event rule once for each time through the foreach loop. I then realized that because rules run in the order they are written for an event, I could just write a rule directly after the looping foreach rule that selected on the same event and would execute right after the foreach loop was done. Smashing! Continue reading

Posted in Kynetx | Leave a comment

Day 17 – Detecting Recent Run of Kynetx App Within Timeframe

For an app I have been working on recently, I wanted a way to let the user know if the data they were being shown was likely to be a cached version of the data or a non cached version. Because the API I was using for the app doesn’t return a timestamp of when the API call was made, I needed a different way to “guess” when the cache expired. I thought of taking a hash of the data returned from the last call and the current API call and comparing them but that would only let me know when the API returns something different and not that it isn’t a cached version of the API call. Thus I came up with the following… Continue reading

Posted in Kynetx | Leave a comment

Day 16 – Delay, Redirect, and Replace inner

Goal: App will check if user auth flag has been set. If not, then will redirect to auth page and set auth flag. Once auth flag is set, app will show that user has been authed. Not a practical app, just shows concepts. Continue reading

Posted in Kynetx | Leave a comment

Day 15 – Ternary Operators or Conditional Expressions

Goal: show off a simple use of conditional expressions in KRL Continue reading

Posted in Kynetx | Leave a comment

Day 14 – Posting Data to Google Spreadsheet

Goal: Be able to post data from a Kynetx app to a Google spreadsheet using KRL Continue reading

Posted in Kynetx | 1 Comment

Day 13 – Use External Resource Files

Goal: use external CSS and JavaScript resources in app Continue reading

Posted in Kynetx | Leave a comment

Day 12 – Persistant Variables

Goal: Test using app level and entity/user level persistant variables. Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 11 – Global Block

Goal: demonstrate using global block in ruleset Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 10 – Capturing Selection Expressions

Goal: Capture information contained in the URL that a Kynetx app is run on Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 9 – Exclusive Selection Expressions

Goal: Be able to write exclusive select statements instead of an inclusive one Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 8 – Raise Web Events From JavaScript

The goal of this post is to rock your socks! : ) Everything that has been shown up to this point has been a one way communication with the Kynetx platform and the Kynetx app user’s browser. The bookmarklet, when clicked, would raise a web event letting the Kynetx server that a pageview event had occurred. The Kynetx server would then respond, based on the rules in the ruleset, with JavaScript.

I am going to show you how you can now have your Kynetx application carry on a CONVERSATION with the Kynetx server, greatly enhancing the breadth and power of what you can do with a Kynetx application. Here is a fun little diagram I had fun making to illustrate what we are going to be doing: Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 7 – Looping Using Foreach

Goal: Demonstrate looping in rules Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 6 – Conditional Action Blocks and Else Postludes

Goal: Execute action based on condition then raise explicit event based on execution of action block Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 5 – MD5 and SHA1 hashing

Goal: Test MD5 and SHA1 hash functions from the math module. Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 4 – Explicit Events

Goal: Demonstrate raising explicit events in a ruleset and how it effects execution flow of the application. Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 3 – Web events and debugging

Getting a look into what is going on when you run your application Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 2 – Dual Execution Environment part 1

A small look into KRL’s dual execution environment and what it means Continue reading

Posted in Kynetx | Tagged | Leave a comment

Day 1 – Basics and Notify

Getting this party started! Continue reading

Posted in Kynetx | Tagged | Leave a comment