Main Content

slreq.dngGetSessionConfig

Configuration context for selected item in IBM DOORS Next

    Description

    config = slreq.dngGetSessionConfig returns the configuration context for the selected item in IBM® DOORS® Next.

    example

    [config,projName] = slreq.dngGetSessionConfig returns the configuration context and the name of the project.

    example

    Examples

    collapse all

    This example shows how to get the configuration context for the selected item in IBM DOORS Next.

    Specify the server address, requirements management service root, and the username.

    rmipref(OslcServerAddress="https://localhost:9443");
    rmipref(OslcServerRMRoot="rm");
    rmipref(OslcServerUser="jdoe");

    Establish the connection by specifying the project, configuration context, whether to test the connection from the system browser to MATLAB®, and the custom authentication callback function myPasswordHelperCallback. The function myPasswordHelperCallback gets the password. For more information, see setCustomLoginProvider.

    slreq.dngConfigure("My Project","My Project Initial Stream", ...
        true,"myPasswordHelperCallback")
    Performing default system browser message test.
    	If browser warns about a missing certificate for 127.0.0.1,
    	please allow the connection or add exemption for 127.0.0.1.
    	https://127.0.0.1:31515/matlab/oslc/inboundTest

    In your web browser, in IBM DOORS Next, select a requirement. Get the configuration context for the selected requirement.

    config = slreq.dngGetSessionConfig
    config = 
    
      struct with fields:
    
          id: '_tP_J5osyEeuFd_Hmf7aaKg'
        name: 'My Project'
        type: 'stream'
         url: 'https://localhost:9443/rm/cm/stream/_tP_J5osyEeuFd_Hmf7aaKg'

    Get the configuration context and project for the selected requirement.

    [config,projName] = slreq.dngGetSessionConfig
    config = 
    
      struct with fields:
    
          id: '_tP_J5osyEeuFd_Hmf7aaKg'
        name: 'My Project'
        type: 'My Project Initial Stream'
         url: 'https://localhost:9443/rm/cm/stream/_tP_J5osyEeuFd_Hmf7aaKg'
    
    
    projName =
    
        'My Project'

    Output Arguments

    collapse all

    Configuration context, returned as a structure with these fields:

    Configuration context ID, returned as a character vector.

    Configuration context name, returned as a character vector.

    Configuration context type, returned as 'stream' or 'changeset'.

    Configuration context URL, returned as a character vector.

    Project name, returned as a character vector.

    Version History

    Introduced in R2018b