Welcome, Guest Login

Support Center

Building a PowerBlock

Last Updated: May 10, 2017 12:25PM EDT
PowerBlocks


Introduction
A PowerBlock is used to speed up app development.

It is a reusable the part of an app, an app experience which remains identical in nature yet is used across multiple apps. For example a Navigation Bar.
These are 'part of an app' which are common to many apps.
PowerBlocks are made of Blocks and Layout, they come on one or multiple views.
PowerBlocks are shared across workspaces, app developer drop them into their app to speed up app development.
PowerBlocks are extremely useful to speed up app development
Another key benefit of PowerBlock is that they are configurable.
When a PowerBlock is dropped into an app, it can ask the app developer for specific values like what data source it will use, what image or what text will be used to instantiate the PowerBlocks.
To configure a PowerBlock we use Descriptors, more on this later.
Reusability associated to configurability make PowerBlocks extremely powerful elements.


After you create a PowerBlock it will be accessible  in the "Published Components" tab.


To create a PowerBlock simply click on "New PowerBlock 



Give your PowerBlock a name and the type of View that will first be created.



Then click "Create"
 

You can now create an app with the functions and Views you want to share just like a regular app.





To Publish your PowerBlock and make it available for your Workspace, and Workspaces below the main one, simply select on "Configure" in the PowerBlock menu
 


Then click on the "PowerBlock" tab and choose "Yes" in the dropdown for "Published for Enterprise".



Then click "Update" on the bottom to save your changes.



Now when you are in a regular app in your Workspace or the Workspaces below your PowerBlock will be available in the "Published" tab.



You can now drag the PowerBlock into any App and the Views and data sources of the PowerBlock will be added to the existing app.



When you drop the PowerBlock in the View you'll be prompted to confirm adding the PowerBlock to your app.



Note, while custom scripts may be used in PowerBlocks, if there is a name conflict between a custom script in the PowerBlock and a custom script in the destination app (the app to which the PowerBlock is being imported), the script in the destination app will be used, and the script in the PowerBlock will not be imported. 

In the next lesson we'll learn how to add Descriptors to PowerBlocks to prompt the user to enter Data Sources or configuration of Blocks.

ARTICLE: Adding and Using Descriptors in a PowerBlock

Other Help Documents
- Adding and Using Descriptors in a PowerBlock 
Writing PowerBlocks Descriptors
- Descriptor Field Type for Blocks

Help us improve! Rate this article:

Yes I found this article helpful

Ask a Question   

support@eachscape.com
http://assets0.desk.com/
false
eachscape
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete