slreq.dngSetCurrentProject
说明
slreq.dngSetCurrentProject(
将当前工程设置为 projectName
)projectName
为 IBM® DOORS® Next 会话指定的工程。
示例
设置当前工程
此示例显示如何为 IBM DOORS Next 会话设置当前工程。
指定服务器地址、需求管理服务根和用户名。
rmipref(OslcServerAddress="https://localhost:9443"); rmipref(OslcServerRMRoot="rm"); rmipref(OslcServerUser="jdoe");
通过指定工程、配置上下文、是否测试从系统浏览器到 MATLAB® 的连接以及自定义身份验证回调函数 myPasswordHelperCallback
来建立连接。函数myPasswordHelperCallback
获取密码。有关更多信息,请参阅 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
返回有关当前工程的信息。
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
将当前工程设置为不同的工程。
slreq.dngSetCurrentProject("My Other Project")
输入参数
projectName
— 工程名称
字符串标量 | 字符向量
工程名称,指定为字符串标量或字符向量。
版本历史记录
在 R2023b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)