Is possible??

Hello.

instead of 

<setting propertyKey="@Properties.arc_boards" title="@Strings.arc_boards_title" prompt="@Strings.arc_boards_title">
    <settingConfig type="list" >
    	<listEntry value="0">@Strings.board_1</listEntry>
    	<listEntry value="1">@Strings.board_2</listEntry>
    	<listEntry value="2">@Strings.board_3</listEntry>
    	<listEntry value="3">@Strings.board_4</listEntry>
    	<listEntry value="4">@Strings.board_5</listEntry>
    </settingConfig>

is possible that each user can add their boards ?? and that boards be saved somewhere on the watch to be used when the user go windsurfing and choose what board will use??

is like a database to store boards, sails, fins... 

I have this static menu 

            
            ....
            
            else if (item.getId().equals("item_board")) { 
                           
                var menu_sub = new WatchUi.Menu2({:title=>"Board Size"});

                menu_sub.addItem(new WatchUi.MenuItem("160", null, "board160", null));
                menu_sub.addItem(new WatchUi.MenuItem("127", null, "board127", null));
                menu_sub.addItem(new WatchUi.MenuItem("116", null, "board116", null));
                menu_sub.addItem(new WatchUi.MenuItem("80",  null, "board80",  null));
                
                ....

and would be something like

var menu_sub = new WatchUi.Menu2({:title=>"Board Size"});

for (.....) {
menu_sub.addItem(new WatchUi.MenuItem(...));
}

is this possible??

  • For System 5 devices, line 6 is fine.  You must be trying to use an older device or older SDK.  Here's what it says for substring in the API doc:

    Note:

    Starting with 3.3.2, passing null for startIndex sets it to the start of the string and passing null for endIndex sets it to the end of the string. Passing in a negative number for either startIndex or endIndex offsets it from the end of the string.

  • Yes, I'm using Fenix5XPlus