Main Content

slreq.dngSetCurrentProject

Set current project for IBM DOORS Next session

Since R2023b

    Description

    slreq.dngSetCurrentProject(projectName) sets the current project to the project specified by projectName for the IBM® DOORS® Next session.

    example

    Examples

    collapse all

    This example shows how to set the current project for the IBM DOORS Next session.

    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

    Return information about the current project.

    project = slreq.dngGetCurrentProject
    project = 
              name: 'My Project'
               uri: 'https://localhost:9443/rm/_tKwroIsyEeuFd_Hmf7aaKg'
        serviceUri: 'https://localhost:9443/rm/_tKwroIsyEeuFd_Hmf7aaKg/services.xml'
           context: 'My Project Initial Stream'
         queryBase: 'https://localhost:9443/rm/views?oslc.query=true&2F_tKwroIsyEeuFd_Hmf7aaKg

    Set the current project to a different project.

    slreq.dngSetCurrentProject("My Other Project")

    Input Arguments

    collapse all

    Project name, specified as a string scalar or a character vector.

    Version History

    Introduced in R2023b