Skip to content
Notifications
Clear all

[Solved] Example showing how to add new item to index from a button

1 Posts
1 Users
0 Reactions
1,983 Views
Avatar
Posts: 26
Moderator
Topic starter
(@drice)
Member
Joined: 3 years ago

This example shows how you can use a button (as part of your model's user interface) to add a new element to an index.

In this case, the user types a new project name and hits the + button to add the new project. 

The + button is a normal button, + is its title. In node style, its font is set large (38pt) with border & fill turned off. Using color palette, its font was set to blue.  The code that adds the project to the index is in the button's OnClick.

The user input, "Enter a new project name", is set to text-only.

Share:

Download the free edition of Analytica

The free version of Analytica lets you create and edit models with up to 101 variables, which is pretty substantial since each variable can be a multidimensional array. It also lets you run larger modes in ‘browse mode.’ Learn more about the free edition.

While Analytica doesn’t run on macOS, it does work with Parallels or VMWare through Windows.


    Analytica Cubes Pattern

    Download the free edition of Analytica

    The free version of Analytica lets you create and edit models with up to 101 variables, which is pretty substantial since each variable can be a multidimensional array. It also lets you run larger modes in ‘browse mode.’ Learn more about the free edition.

    While Analytica doesn’t run on macOS, it does work with Parallels or VMWare through Windows.


      Analytica Cubes Pattern