User Manual

Google Blockly Data Source Addition User Guide

23/9/26
Google Blockly Data Source Addition User Guide

Google Blockly is a visual coding tool available on the Kuika platform. It enables block-based coding using a drag-and-drop method and allows users to easily design complex processes. You can use Google Blockly to quickly create workflows, logic checks, and data processing steps for the apps you develop in Kuika.

It is a useful tool for users with limited coding knowledge and speeds up the app development process. In this tutorial, you’ll learn how to integrate Google Blockly into your Kuika apps and how to design functions using block-based coding.

Google Blockly is available only for web apps.

Add Data Source Connectivity to Your App with Google Blockly

  1. Log in to the Kuika platform and open the project you’ll be working on from the Apps screen.
  2. Click the Datasources icon on the top navigation bar.
  3. On the Datasources main screen, click the Create a Function card and select the Google Blockly option under the Development category. You can also access the same list by clicking the + icon next to the Sources heading in the left panel.
  1. In the form that opens, enter a name for the data source in the Name field.
  2. Click the CREATE button.

The data source you created is added to the Sources list in the left panel, and the Google Blockly editor opens.

Anatomy of the Google Blockly Editor

Top area: The name of the action (Blockly_Action1 by default) appears in the top-left corner. You can change the name using the pencil icon next to it, or return to the Datasources screen using the back button (←) on the left. The CREATE button in the top right saves the action.

Block categories: The categories into which blocks are grouped are listed on the left side of the editor: Logic, Loops, Math, Text, Lists, Color, Variables, Functions, and Kuika Parameters. When you click a category, the blocks in that category are displayed.

Workspace: This is the dotted area where you drag and drop blocks. By default, the Main Function block is located in the workspace. Place the blocks that the action will execute inside this block; connect the value that the action will return to the block’s return input.

Trash can: Blocks dragged into the trash can in the lower-right corner are deleted.

Steps for creating a function with blocks:

  1. Select the block you want to use from the categories on the left.
  2. Drag the block into the workspace and place it inside the Main Function block.
  3. Connect values and other blocks to each other as needed.
  4. Connect the value to be returned to the return input.
  5. Click the CREATE button to save the action.

Google Blockly Properties

Kuika’s Google Blockly module contains blocks in various categories. With these blocks, you can easily perform operations such as logical checks, loops, mathematical operations, and data management.

Logic

  • Feature: Used to control program flow.
  • Content: You can create conditional statements using logical blocks such as “if,” “and,” and “not.”
  • Example: It can perform a specified operation when a certain condition is met.

Loops

  • Feature: Allows you to run a specific code multiple times.
  • Content: The “while” loop runs as long as a specific condition is met. The “repeat times do” block repeats the operation a specified number of times.

Math (Mathematics)

  • Feature: Allows you to perform operations with numbers.
  • Content: Includes mathematical operations such as addition, subtraction, multiplication, division, and finding square roots.

Text

  • Feature: Used to process text data.
  • Content: You can perform operations such as concatenating text, measuring length, searching for characters, and extracting substrings.
  • Example: The “is empty” block checks whether a piece of text is empty.

Lists

  • Feature: Allows you to store multiple items together.
  • Content: Supports operations such as adding items to a list, sorting a list, and accessing a specific item.
  • Example: The “length of” block returns the length of a list.

Color

  • Feature: Allows you to perform operations related to colors.
  • Content: You can create and use colors using RGB, HEX, or predefined colors.
  • Example: With the “blend color” block, you can blend two colors to create a new one.

Variables

  • Feature: Used to temporarily store data in a program.
  • Content: Numbers, text, or other data types can be stored in variables.

Functions

  • Feature: Allows you to reuse a specific operation repeatedly.
  • Content: Functions can accept parameters, perform operations, and return results.
  • Example: The “to do something” block turns a specific operation into a function.

Kuika Parameters

Used to define the input parameters your action will receive from outside. Supported data types are as follows:

  • datetime: Date and time data
  • boolean: True/false value
  • decimal: Decimal numbers

These parameters are filled in as inputs when the action is used. Missing or incorrect parameter entries may prevent the action from working properly.

Thanks to Google Blockly, you can develop functions quickly and efficiently using block-based programming on the Kuika platform.

Glossary

No items found.

Alt Başlıklar