custom actions

custom actions

Hello,

Im really not a zoho creator expert, but I am using it for quite a long time.. Now I would like to explore more than basic actions and started to mess with custom actions in reports. Maybe its stupid and newbie question: I have 2 custom actions (buttons in report) and i would like to have one instead of them.

First is:

void Vybavene(Nova_uloha Vybavene)
{
    Vybavene.Protokol = true;
}

and second:

void VytvoritProtokol(date Do, date Od, string Uloha, string Technik, string Z_kazn_k)
    insert into Protokoly
    [
        Added_User = zoho.loginuser
        D_tum_servisu = input.Od
        Koniec_z_sahu = input.Do
        Kr_tky_popis_probl_mu = input.Uloha
        Napl_novan_pr_chod = input.Od
        Pou_it_materi_l = "vyplnit"
        Pou_it_materi_l1 = "vyplnit"
        Stav_z_sahu = "Vyriešené"
        Technik = input.Technik
        Z_kazn_k = input.Z_kazn_k
        Zaraden = zoho.currentdate
    ]
}

How does the script should look like when i want to execute in this order ?