Version:
  1. Script for a button

    Article: AN0001898 Displayed: 456x

    Setting up button in class detail

    You can hide buttons in the list of records or in the record detail. You can always hide a button by a script. However, if the button is disabled for display already in its definition, you cannot display it.
    Following script hides button with code wf-timer.

    Where to use this script: Class detail: Script for record detail or Script for list of records

    function OnLoad()
    {
        OGControlOperations['wf-timer'].Visible = false;
    }


    Setting up button Back

    There is button Back on page wih list of records or page with webparts. This button can be controlled by following script.

    Where to use this script: Class detail: Script for record detail or Script for list of records; Page detail: Script
    var b = OGForm.GetControl('backToolbarButton');
    b.Visible = true;    //displaying the button
    b.Text = 'My Back to start';  //defining custom tex
    b.NavigateUrl = 'Datas.aspx?CId=407'; //url to navigate after clicking on button

  2.    ---
    Your rating:
    Rated by users: 0x
  3. Top
SearchTitle
×