cabrillo.navigation - クライアント

  • リリースバージョン: Zurich
  • 更新日 2025年07月31日
  • 所要時間:2分
  • Cabrillo JS 前方および後方ナビゲーションのための関数

    cabrillo.navigation - goBack()

    後方ナビゲーションを有効にします。

    表 : 1. パラメーター
    名前 タイプ 説明
    なし
    表 : 2. 返される内容
    タイプ 説明
    ブーリアン Cabrillo JS が後方にナビゲートする場合は true、それ以外の場合は false。
    cabrillo.navigation.goBack();

    cabrillo.navigation goto( 文字列 url, Cabrillo.NavigationRequest request)

    前方ナビゲーションを有効にします。

    リストまたはレコードのナビゲーションには、URL パラメーターではなく要求パラメーターを使用します。

    表 : 3. パラメーター
    名前 タイプ 説明
    url 文字列 ナビゲートする URL。これは、カスタム URL ナビゲーションに使用する必要があります。オプション。
    要求 Cabrillo.NavigationRequest ナビゲートするリストまたはレコードについて説明します。オプション。
    表 : 4. 返される内容
    タイプ 説明
    ブーリアン Cabrillo JS が移動する場合は true、それ以外の場合は false を返します。

    URL に移動します。

    cabrillo.navigation["goto"]('/$sp.do?id=my_custom_page');

    リストに移動します。リクエスト パラメーターは、リスト ナビゲーションの URL パラメーターよりも優先されます。

    // A Cabrillo.NavigationRequest dictionary that specifies a list of active incidents.
    var request = {
        table: 'incident',
        query: 'active=true',
    };
    cabrillo.navigation["goto"](null, request);

    レコードに移動します。リクエスト パラメーターは、レコード ナビゲーションの URL パラメーターよりも優先されます。

    // A Cabrillo.NavigationRequest dictionary that specifies an incident record.
    var request = {
        table: 'incident',
        sysId: 'a9e30c7dc61122760116894de7bcc7bd'
    };
    cabrillo.navigation["goto"](null, request);

    新しいレコードに移動します。

    // A Cabrillo.NavigationRequest dictionary that specifies a new incident record.
    // The new record will be seeded with the encoded query.
    var request = {
        table: 'incident',
        sysId: '-1',
        query: 'short_description=This is a new incident.'
    };
    cabrillo.navigation["goto"](null, request);