Edit Business Logic

Filter by IDE
Select the AppBuilder client you are currently using for development.

IDE

With Business Logic, you can execute JavaScript code before and after performing CRUD operations on content types in your app. You can use this feature to check for duplicate items before creating a new item in a content type, to validate input, to ask for confirmation before deleting an item, to log events for your app and so on. You can add console.log() to your business logic (cloud code) for debugging.

By default, the business logic (cloud code) for every content type consists of a template in which you can insert your JavaScript code.

For more information about business logic (cloud code), see the Introduction to Business Logic section in the Data, Users, Notifications and Business Logic documentation.

Prerequisites

  • Verify that your preferred AppBuilder client is running and you are logged in.
  • Verify that you have opened the code for your app in AppBuilder.
  • Verify that you have enabled Business Logic for your app.

Procedure

In-Browser

  1. In the left-hand menu of your app, click Business Logic.
  2. In the right-hand explorer for your content types, select the content type for which you want to edit the business logic.
  3. Click Code to return to the in-browser client.

Universal

  1. Open the Data Navigator.
  2. Expand Backend Services and expand your app.
  3. Right-click the content type for which you want to edit the business logic (cloud code).
  4. Select Edit Cloud Code.
    The universal desktop client opens the selected Data, Users, Notifications and Business Logic service in a new browser tab and opens for editing the business logic (cloud code) for the selected content type.
  5. Make your changes to the business logic (cloud code) and click Save.

Windows

  1. Open the Data Navigator.
  2. Expand your account and locate your app in the list.
  3. Expand your app and right-click the content type for which you want to edit the business logic (cloud code).
  4. Click Edit Cloud Code.
    The classic Windows desktop client opens the business logic (cloud code) for editing in a new tab in the code editor.
  5. Make your changes to the business logic (cloud code) and click Save.

Visual Studio

  1. Open the Data Navigator.
  2. Expand your account and locate your app in the list.
  3. Expand your app and right-click the content type for which you want to edit the business logic (cloud code).
  4. Click Edit Cloud Code.
    The extension for Visual Studio opens the selected Data, Users, Notifications and Business Logic service in a new browser tab and opens for editing the business logic (cloud code) for the selected content type.
  5. Make your changes to the business logic (cloud code) and click Save.

CLI

  1. In your browser, open the Telerik Platform and log in.
  2. Open your app.
  3. In the left-hand menu of your app, click Business Logic.
  4. In the right-hand explorer for your content types, select the content type for which you want to edit the business logic.
  5. Make your changes to the business logic (cloud code) and click Save.

Next Steps

Show the business logic (cloud code) log.

See Also

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.