Skip to main content
1-Visitor
October 1, 2014
Solved

Location where a member is shared using CLI commands

  • October 1, 2014
  • 1 reply
  • 2495 views

Hello,

Is there any possibility to locate where a member is shared using CLI commands?

For example, we have member1 located in project1 archive.

But member1 is also shared in project2 with variant DEV_Path_1.

Somehow, when using CLI commands for CP's the only information I get is that member e:/project1/member1 was changed on DEV_Path_1, but my need is to have the information member1 is located on e:/project2/member1 (if for example I want to use si co CLI command in parallel with CP info manipulation).

Is there any possibility to get the location where a member is shared? for example, using a command such as si locate member1 that returns not only e:/project1/member1, but also e:/project2/member1( location where the member is shared)?

    Best answer by wspadola

    Hello Bogdan,

    In a change package context, if you use the field named "configpath" (similar to "location" in my previous reply), it will display the project path in which the shared member points to.

    si viewcp --fields=id,member,location,configpath,variant 6080:1

    6080:1 sharing into variant

    admin Oct 14, 2014 1:30:40 PM Open Development

    Propagated:

    Propagated By:

    6080:1 WebApplication3.csproj /WebApplication3/WebApplication3/WebApplication3.csproj #/TestProj#d=dp1 dp1

    Please clarify if this doesn't return the data you're looking for.

    1 reply

    12-Amethyst
    October 3, 2014

    Hi Caslaru,

    I believe what you are looking for is the Location field column in a CP context. You can add this to to your GUI by right-clicking the column headers and selecting "Configure Columns", or, you can add it to your CLI viewcp output by adding "location" to the --fields= CLI parameter.

    Wesley

    1-Visitor
    October 6, 2014

    Hello Wesley,

    Thank you for your response.

    It doesn't provide the information needed, but I think I had a quite ambiguous explanation in what is my need.

    Let's imagine the below member belonging to project 1. The checkpoint 1.2.1.1 is Variant 1, and this variant is configured for project2( which is a share of project1).

    When performing actions with a CP on project2, the only information I get is project: project1/project.pj, member:member, location: project1/member, variant: Variant 1, and so on...

    My need is to get the info project2/member.

    Untitled.png

    The above example is probably the easiest possible, but imagine a share from

    project1/1/2/3/4/5/6/7/8/member to project2/9/10/11/12/13/14/member

    Thanks againg,

    Bogdan

    wspadola12-AmethystAnswer
    12-Amethyst
    October 16, 2014

    Hello Bogdan,

    In a change package context, if you use the field named "configpath" (similar to "location" in my previous reply), it will display the project path in which the shared member points to.

    si viewcp --fields=id,member,location,configpath,variant 6080:1

    6080:1 sharing into variant

    admin Oct 14, 2014 1:30:40 PM Open Development

    Propagated:

    Propagated By:

    6080:1 WebApplication3.csproj /WebApplication3/WebApplication3/WebApplication3.csproj #/TestProj#d=dp1 dp1

    Please clarify if this doesn't return the data you're looking for.