Skip to content

Getting Started

Make sure you have a fresh copy of Arrigo Local on your machine.

Prepare the view

  • In a project, select a user area of your choise.
  • Open up Folder views tool, and create a new Link icon. In view file attribute, Select the Create new view option and open up the view.
  • Add a Text Element with the name Text_1.
  • Add a Button Element with the name Button_1.
  • Save the file.

Browse to the link icon in your browser and make sure the button and text element displays correctly.

Hello world

In the view root object, on the Javascript tab, open up the Server Side JS editor and create the function:

View - Server Side JS
return {
    helloWorld: function(args,callInfo){
        return "Hello World";
    }
}
In the button Button_1 OnManeuver event code, create the snippet:

Button_1 - OnManeuver
const view = this.view;
view.call('.helloWorld').then( function(result){ 
    view.Text_1.value(result);
});
Save the file, refresh the browser and press the Button_1. The text Hello World displays in the text element.

Tip

Read more about Serverside functions in next section Context and follow the tutorials here.