cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

"Update Working Revision" right click option needed

0 Kudos

"Update Working Revision" right click option needed

"Update Working Revision" right click option required

 

Please make a customizable menu possibility for: "Update Working Revision" from Member History view (instead of doing this with existing solution: "check out without lock" from source file window, which requires many clicks and operations).

 

Thanks, Péter

8 Comments
ssaul
15-Moonstone

We have solved this on windows with a custom command (simply a batch file "call si co --nolock -r%2 %3" with parameters %MKSSI_WINDOW% %MKSSI_REVISION% "%MKSSI_WORKINGFILE%", testing that %1==archive).

Then you can customize the menu to add the custom command.

pbartha
7-Bedrock

Hello Saul,

 

we have this Custom Command already configured indeed, but it still cannot be used from "Member History" view, etc...

This custom command works only within Sandbox view.

 

Can you confirm if this above command would work also in dynamic Member History view?

If I use the custom command, I receive this in a CMD window:

"No action is implemented in the current view "archive"
Press any key to continue . . ."

pbartha
7-Bedrock

This is in our corresponding batch file, maybe can you let me know, where should I change something? Thanks, Péter

 

@echo off
:: 
:: Check-out with no lock
:: 
IF %MKSSI_WINDOW% == sandbox GOTO sandbox
IF %MKSSI_WINDOW% == si.mysandboxes GOTO si.mysandboxes
GOTO E1

:sandbox
REM Sandbox View ====================== 
::set MKSSI & pause

IF %MKSSI_NMEMBER% EQU 0 GOTO SUBPROJS

:MEMBERS
:: Multiple Members selected
set /a count=1
:members_loop
::set MKSSI_MEMBER1 & pause
set "cmdstr=set MKSSI_MEMBER%count%_SANDBOX"
for /f "tokens=1,2 delims==" %%a in ('%cmdstr%') do (
set sbDir=%%b
goto members_break1
)
:members_break1
set sbDir=%sbDir:project.pj=%
set "cmdstr=set MKSSI_MEMBER%count%"
for /f "tokens=1,2 delims==" %%a in ('%cmdstr%') do (
set member=%%b
goto members_break2
)
:members_break2

set MEMBERS=%MEMBERS% "%sbDir%%member%"
set /a count+=1
if %count% LEQ %MKSSI_NMEMBER% goto members_loop

:SUBPROJS
IF %MKSSI_NSUBPROJECT% EQU 0 GOTO RUN
:: Subprojects selected
set /a count=1
:subprojs_loop
::set MKSSI_MEMBER1 & pause
set "cmdstr=set MKSSI_SUBPROJECT%count%"
for /f "tokens=1,2 delims==" %%a in ('%cmdstr%') do (
set subproj=%%b
goto subprojs_break1
)
:subprojs_break1

set SUBPROJS=%SUBPROJS% "%subproj%"
set /a count+=1
if %count% LEQ %MKSSI_NSUBPROJECT% goto subprojs_loop

:RUN

IF %MKSSI_NSUBPROJECT% GTR 0 (
IF %MKSSI_NMEMBER% GTR 0 (
set INPUT=%SUBPROJS%%MEMBERS%
) ELSE (
set INPUT=%SUBPROJS%
)
) ELSE (
IF %MKSSI_NMEMBER% GTR 0 (
set INPUT=%MEMBERS%
) ELSE (
goto ERR_NOSELEC
)
)
si co --gui --nolock --overwriteChanged%INPUT%
goto :eof


:ERR_NOSELEC
echo No Item selected! Nothing to check out.
pause
goto :eof





if %MKSSI_NMEMBER% == 0 GOTO s_subproj
set sbDir=%MKSSI_MEMBER1_SANDBOX:project.pj=%
set member=%sbDir%%MKSSI_MEMBER1%
goto :eof
:s_subproj
if %MKSSI_NSUBPROJECT% EQU 0 (
set sbDir=%MKSSI_FILE:project.pj=%
) else (
set sbDir=%MKSSI_SUBPROJECT1_SANDBOX:project.pj=%
)


:si.mysandboxes
if %MKSSI_NSUBPROJECT% EQU 0 (
set sb=%MKSSI_PROJECT1_SANDBOX%
) else (
set sb=%MKSSI_SUBPROJECT1_SANDBOX%
)

:co
si co --nolock --overwriteChanged %sb%
goto :eof

:E1
::set MKS & pause
echo No action is implemented in the current view "%MKSSI_WINDOW%"
pause
goto :eof
ssaul
15-Moonstone

Hi Péter,

we have configured the command so that it only works for the member history and only for single files - you can only select the proper revision there.

Our batch is really simple:

@echo off
::      Batchfile zum Auschecken einer bestimmten Revision ohne Lock ( "Get")
::      aus dem Member History Window.
::      Die gewaehlte Revision wird Working Revision.
::      Einbindbar in MKS als Custom Action (und damit auch ins Kontextmenü
::      des Member History Windows)
::      Parameter:
::      %1: %MKSSI_WINDOW%
::      %2: %MKSSI_REVISION%
::      %3: %MKSSI_WORKINGFILE%
:: ============================================================================

if %1==archive goto WEITER
echo Fehler: Aktives Fenster ist nicht Member History, keine gueltige Revision angegeben
pause
goto END

:WEITER

:: Bestimmte Revision ohne Lock auschecken
call si co --nolock -r%2 %3
pause
:END

Hope this helps,

 

Regards, Stephan

pbartha
7-Bedrock

Hello Stephan,

 

this is not working for me at all. So you mean, this above code should be just pasted as it is in a batch file and it can be called within Integrity as a custom command? It doesn't do anything for me. Please reconfirm. Thanks! Péter

ssaul
15-Moonstone

Hi Péter,

yes, this should work as batch file, called within Integrity as custom command.

The custom command parameters are

%MKSSI_WINDOW% %MKSSI_REVISION% "%MKSSI_WORKINGFILE%"

pbartha
7-Bedrock

Hello Stephan,

it works perfectly well now with the parameters (as suggested) defined at the custom actions in Integrity Client:Checkout_without_lock_in_MemberHistoryview_settings.JPGThanks a lot for sharing the code and for your help throught this topic. Bye, Péter

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.