Momen Docs
Go to Momen
  • Get Started
    • Introduction
    • Quick Start
    • Software Development Process
    • Editor Overview
  • Changelog
    • Latest Product Update
  • Build UI
    • Pages
    • Components
    • Canvas
    • Layout
    • Component - Display
    • Component - Input
    • Component - View
    • Component - List
    • Component - Tab View
    • Component - Select View
    • Component - Conditional View
    • Component - Others
    • Component - Map
    • Custom Component
  • Data
    • Overview
    • Data Model and Database
    • API
    • Variable
    • Parameter
    • Formula and Conditions
  • Actions
    • Overview
    • Request
    • Navigation
    • Actionflow
      • Custom Code
      • Database Trigger
    • AI
      • AI Data Model
      • AI Point
      • Vector Data Storage and Sorting
    • User Actions
    • Component Management
    • App and Page Management
    • Toast Notifications & Modal
    • Payment
    • SSO
    • Share
    • Location
    • File Management
    • QR Code
    • Clipboard
    • Conditional
    • Loop
  • Release and Growth
    • Publish Application
    • Upgrade Project
    • Multiple Clients
    • Permission
    • Log Service
    • SEO
    • Hosting Files
  • My Account and Community
    • My Wallet
    • Promoting Momen
    • Code Component
    • Collaboration
  • Debugging
    • How to Debug in Momen
    • Request Error Reference
  • Tutorial
    • How to Build an AI Needs Analysis Project?
    • How to Set Up Payment with Stripe Plugin?
    • How to Embed an Iframe Component into Your Momen Project?
    • How to Build Your Login Page?
    • How to Convert Momen App to Native Mobile App?
    • How to Build a CMS (MVP Version) in Hours?
    • How to Set a Countdown Timer When Sending a Verification Code
  • Template
    • AI Mental Health Assistant
    • Angry Dietitian
    • AI Help Center
    • AI Knowledge Base
    • SaaS Corporate Site
    • Blog
    • AI Feedback Tool
    • Feedback Tool, a Nod to Canny
    • Portfolio
    • Online Courses, a Nod to Udemy
    • Mobile Auto Repair AI Scheduler
Powered by GitBook
On this page
  • 1. Set page data
  • Introduction
  • Action configuration guide
  • Scenarios
  • 2. Set global variable
  • Brief
  • Action configuration guide
  • 3. Refresh
  • Brief
  • Action configuration guide
  • 4. Scroll page to
  • Brief
  • Action configuration guide
  1. Actions

App and Page Management

Learn how to create and manage page data, configure global data, refresh data, and implement scroll behaviors in Zion’s no-code platform.

Application & page operation includes:

  1. Set page variable

  2. Set up global variable

  3. Refresh

  4. Scroll page to

1. Set page data

Introduction

Allows assigning values to a pre-defined page variable.

Action configuration guide

  1. Create a page variable: Define a page variable on the page to store value (e.g., text, number). If there are multiple values, enable List Mode when creating the page variable to store multiple values as an array.

  2. Assign Values: Use the Set Page Data action to assign a value, either a static input or data retrieved from other actions like file uploads.

Scenarios

1. Assigning Values to Page Variable through Other Actions

Many actions in Momen require the page variable to be assigned a value after the data is obtained, as shown in the following figure. Take "Upload File" as an example. After setting the page variable of the type "File," the action of uploading a file will be triggered by clicking the button, and the uploaded file will be assigned to the page variable.

2. Setting up a page variable that holds multiple data

The following figure shows how to set a page variable: When setting a page variable for a page, activate "Is List" mode. Utilizing "Is List" for a page variable is akin to initializing an empty array.

Through the [Set Page variable] action, you can incorporate multiple data entries into the page variable by adjusting the action to [Append]. However, each invocation of the action allows adding only one data entry at a time.

3. Removing Data from Page variable

Enabling the "Unique" option allows you to utilize the [Remove] function within [Set Page variable]. During a [Remove] operation, the value to be removed is compared with the values in the page variable. If a match is found, the corresponding value in the page variable is deleted.

2. Set global variable

Brief

Assigns values to a global variable that can be accessed across multiple pages within the app.

Action configuration guide

In the header, click Setting and under App Global Settings, add a [Global Variable].

After adding a [Global Variable], you can set the global variable on any page or component according to the business scenario through the [Set Global Variable] action. The global variable can be used in all pages and components.

3. Refresh

Brief

Triggers a data refresh by re-fetching the latest data from the database. This ensures that displayed content is up-to-date after actions such as adding, updating, or deleting data.

Action configuration guide

  1. Refresh Page: Add this action to a desired component, and when triggered, it refreshes all data on the page, retrieving the latest information for display or condition checking.

  2. Refresh List Item: Refreshes a specific item in a list by re-fetching its latest data.

    • Commonly used after modifying a list item’s data, such as updating a post’s comment count.

    • Configure this action within the list item’s component interaction, binding the list’s index to ensure the correct item is refreshed.

  3. Refresh Current User Data: Updates the default account table’s current user data.

    • Since user data isn’t updated in real-time by default, this action ensures that any changes to the user’s profile or account are reflected immediately.

4. Scroll page to

Brief

Scrolls the page to a specific component or position, improving user navigation and interaction.

Action configuration guide

Add the Scroll Page To action to a component (usually a button). Choose whether to scroll to a specific component or to the top of the page.

  • Scroll to Component: Select the target component, and the page will scroll to its position when triggered.

  • Scroll to Top: Instantly scrolls the page to the top.

PreviousComponent ManagementNextToast Notifications & Modal

Last updated 1 day ago

Set Page variable
Set Page variable and incorporate multiple data entries
Remove data from page variable