Main Content

getDialog

Get user interface dialogs from OSLC service provider

Since R2021a

    Description

    myDialog = getDialog(myClient) returns the available user interface dialogs for the OSLC client myClient.

    example

    Examples

    collapse all

    This example shows how to get and view an OSLC user interface dialog for a configured OSLC client.

    After you have created and configured an OSLC client as described in Create and Configure an OSLC Client for the Requirements Management Domain, get the available user interface dialogs in the requirements management domain of the client myClient.

    dialogs = getDialog(myClient)
    dialogs = 
    
      1×4 Dialog array with properties:
    
        dialog
        hintWidth
        hintHeight
        title
        resourceType

    Examine the properties of one of the dialogs. From the title, determine the resource type and if the dialog is for creating or selecting resources.

    myDialog = dialogs(1);
    title = myDialog.title
    title =
    
        'Requirement Creation'

    Open the dialog in a browser.

    view(myDialog)

    Input Arguments

    collapse all

    OSLC client, specified as an oslc.Client object.

    Output Arguments

    collapse all

    OSLC user interface dialog, returned as an oslc.core.Dialog object.

    Version History

    Introduced in R2021a