is there a way to activate the file when saving it in HANA studio? - hana-studio

When working in HANA studio I have to right click and activate my files after I save them in order for them to take effect. Is there a way to set it up so the file is activated when I save?

You can find the value under the preferences. It's a check box to auto activate upon save. It's in the preference section for the HANA plugin.

Related

TFS check as default - overwrite writeable files and overwrite all files for get specific version

How can TFS be configured to select by default the two checkboxes "Overwrite writeable files that are not checked out" and "Overwrite all files even if the local version matches the specified version" when doing a Get Specific Version?
I am using TFS 2013. My real goal is to automate the process of right clicking a folder, selecting Advanced, and then clicking the two checkboxes. I have created a keyboard shortcut to pull up the window for Get Specific version, but I also want to have the two checkboxes selected by default. I do not want this scripted through the command line as I still want to have the window popped up and manually perform the final step to hit the Get button. Ideally the whole process would work something like Alt-G to pull up the Get Specific Version window, and then manually hit the Get button to complete the action.
There is not option to change this default setting. Even though you don't want to use command, it seems using command line is the only way to automate the process.
tf get-overwrite
tf get-force
https://msdn.microsoft.com/en-us/library/fx7sdeyf(v=vs.120).aspx

Why are all files write protected and how can I check-in?

I currently work with a Team Foundation Server and Visual Studio. Since two days, I keep getting error messages that I can't write to files (it seems not to matter which file I try to access). I am the only one in my team who has those problems.
So when I try to check-in, I get:
When I click on Overwrite, I can overwrite it. But when I try to check-in pending changes, I don't see any changes. If I modify a source file, I can compare it to the latest version and see that there are changes.
How can I fix this? I simply would like to work ...
Work-around: If I "Check Out for Edit..." the file (so I get the lock) I can edit it. But this doesn't work for the solution file, because somebody else checked it out.
Go to Solution Explorer
Right click on your solution
Click Go online
It seems that your solution is not connected to the Team Foundation Server.
I would recommened that you remove the mapping of your workspace, delete all local files of the workspace and then get a fresh version (Get latest version) from the Team Foundation Server.
To remove mapping you need to open the Source Control Explorer in Visual Studio. Navigate to the Branch you are working on and open the Context Menu (right click on branch). In the menu you select Advanced->Remove mappings....
In the dialog you can edit or remove the mapping of your workspace. (Note: When you select Remove mapping then will all files in the Local Folder be removed that are controlled by TFS)
What you also can do is to check the state of your workspace/solution if it is connected to TFS. To do that you need to open the solution in Visual Studio and then open File->SourceControl->Advanced->Change Source Control... in the File Menu of Visual Studio.
In the Dialog you will see if your Solution and projects are connected to TFS and the server they are connected to
You should have the correspondings local files like in the source control.
Go to the local file, right click on it and choose Properties,
in the opened dialog uncheck the read-only checkbox, click Yes to the question if you want to apply changes to all subfolders and files.
Hope this is helpful.
You will face the same problem when setting your Workspace location to server (which in my case happened somehow magically).
To change the location to local again open the source control explorer and in the upper part you find a drop down labeled "Workspace". From this drop down choose "Workspaces...". This opens the "Manage Workspaces" dialog where you can select your workspace and click the "Edit" button. In the Edit dialog click the "Advanced" button and you'll see a drop down for Location where you can change it to Local again.
MSDN provides detailed information on the pros and cons of local and server workspaces.

Is it possible to specify per-file lock types?

We have e.g. an excel sheet in the repository that is used for code generation. When any developer has checked out the excel sheet it should not be checked out by anyone else. This can be done by specifying the "Check Out lock type" via the check out dialog. But this has to be done manually by the developer. Is there a way to force this lock type on several files so that it is used automatically?
You can specify which file types are mergeable. You can change the setting in Team -> Team Project Collection Settings -> Source Control File Types.

TFS: issues batch update

How can I change state for dozen issues in "few clicks" in TFS? I know it is possible to export them all into Excel, do batch operation and "import" them back... (or something like this, didn't try actually).
But I am wondering if there is any quicker way to do that? For example, I would like to:
- launch some query;
- select few issues (for example, that have same 'State'='Active');
Here I would like to see some kind of dialog that display only those issue properties, that are the same. After that:
- change some field value (for example, state from 'Active' to 'Resolved');
- click 'Save'
And have each selected issue updated.
Is this possible with usual Team Explorer? I know such operation is in Telerik TFS client, but I don't like it: it doesn't allow to query issues from different projects in one time. Probably there is a simple add-on for Visual Studio that do that?
Thanks a lot!
You can use web access (the web-based front end for TFS). It supports batch updating of work items from its query results view.
Exporting to Excel is actually reasonably quick and easy. Here are the general steps (reciting from memory so may not be 100% complete):
Right click on your query in Team Explorer and select the open in Excel command (you can also do this from the query results tool window).
Update the work items in Excel as appropriate.
In Excel, select the "Team" tab on the ribbon and click Publish.
That's it!
You could use the command line: See here for an example:
http://blogs.msdn.com/b/buckh/archive/2006/09/07/tfs-power-toys-tfpt.aspx

Attach labels to items in TFS from the PowerBuilder IDE?

We do this using the Advanced button on the checkin dialog now (with Merant, nee PVCS) but the Advanced button is disabled when I set TFS as my SCC provider. Is there a switch we can flip on either side to enable this?
Or do we need to write some custom extension?
Or can I get the TFS changeset number to associate with the change in PB?
Or am I coming at doing selective builds entirely the wrong way?
We can achieve what we want by creating a Note field in TFS and making it required on check in. The SCC interface will make the TFS check-in dialog appear & force the developer to enter a value in the field. We can then use the Note to find the associated changeset & do extracts based on the changeset. Thanks to all who looked at this.

Resources