View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#1
Hello all,

Some of the original quickactions required an argument to determine which part of the software you were wanting to access. The files were .conf files but are now .json files, the data is almost the same but the syntax is a little different.

I've lost count of the numerous ways I've tried to add my data, but clearly I'm doing something wrong, as my 'shortcut' to "Create a contact" only opens the app but not on the page where we add our new contact.....so what data/code is required?

Here is my original data when we were using quickactions; (note: arguments required)

Code:
    
    priority=0
    icon=icon-m-file-vcard
    title=contacts-me-add_contact
    translation-catalog=contacts
    remote-service="com.jolla.contacts.ui"
    remote-path="/com/jolla/contacts/ui"
    remote-interface="com.jolla.contacts.ui"
    remote-method="createContact"
    remote-arguments/size=1
    remote-arguments/1/argument="createContact"
And here is the data for the new 'Top menu shortcuts', the last 2 lines are the problem I believe;

Code:
{
    "translation_catalog": "lipstick-jolla-home",
    "entries": [
        {
            "path": "system_settings/look_and_feel/topmenu/actions/add_a_contact",
            "title": "Create a contact",
            "translation_id": "settings_quickaction-la-add_a_contact",
            "title_short": "Contact",
            "translation_id_short": "settings_quickaction-la-add_a_contact",
            "type": "action",
            "icon": "image://theme/icon-m-file-vcard",
            "order": 55,
            "params": {
                "type": "grid",
                "remote-service": "com.jolla.contacts.ui",
                "remote-path": "/com/jolla/contacts/ui",
                "remote-interface": "com.jolla.contacts.ui",
                "remote-method": "createContact",

                "remote-arguments/size": 1,
                "remote-arguments/1/argument": "createContact"
            }
        }
    ]
I have tried many different variations to make this work, too many to list. Does anyone have any idea of the code required to make this work?, currently, it opens the app but not on the required page; 'add a contact'

Thanks,
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following 7 Users Say Thank You to Markkyboy For This Useful Post: