I have an excel macro, which is supposed to do the following:
Import a PBI from TFS.
Add tasks to the PBI.
Upload the tasks back to TFS.
The macro works fine except I am having trouble adding the PBI as a parent for the tasks. I am trying to use the Links and Attachments option of the menu to add the link because Microsoft doesn't have an API for the TFS Excel Add-In.
After searching, I have found the Microsoft documentation about the Links and Attachments button is minimal at best. Here is what I am trying.
Dim publishControl As CommandBarControl
Dim wiStore
Set publishControl = FindTeamControl("IDC_LINKS_ATTACHMENTS")
Set wiStore = FindTeamControl("IDC_IMPORT")
publishControl.Parent = wiStore.GetWorkItem(207895)
I'm essentially looking for documentation on
FindTeamControl("IDC_LINKS_ATTACHMENTS") and FindTeamControl("IDC_IMPORT").
You can also use queries to find links between work items. A condition in the Where clause may apply to the links or to any work item that is the source or the target of a link.
[Source].[FieldName] = Value
[Target].[FieldName] = Value
[System.Links.LinkType] = 'LinkName'
https://msdn.microsoft.com/en-us/library/bb130306.aspx
Related
I want to select a range with the binding from a prompt. To implement this I follow the spec: Add a binding from a prompt
The behavior is ok on Excel desktop but on Excel online I can't select a range with the mouse.
I reproduce this in the Script Lab tool and I have export a gist. The gist is available on: Get data binding from a prompt.EXCEL.yaml
For testing,
Open a document on Office online
Launch ScriptLab and open the project
Click on "Set binding on data" button to open the prompt (to create a binding on the cells to get their values)
Try to select a range with the mouse
Is this behavior on Excel online normal ?
Thanks in advance for your help.
Yes, for now, that is the current behavior. We don't have great 'range picker' support for Excel for web, which just defaults to asking users to manually type in the address. It is something we're considering on improving on with new controls and APIs in the future.
To stay up to date, I'd suggest logging this on UserVoice and we can update it when we start: https://officespdev.uservoice.com.
thanks!
I am currently developing a database to monitor my employees' work. Yet, MS Access is new to me and I encounter a fundamental problem when creating reports.
I wish the system can generate reports based on the values of an input form. Say, I would like to check Peter's work in January, I could simply enter:
Name: Peter
Month: January
Then the Access would be able to generate a corresponding report. But I am not sure how it works. And I am thinking of three possible approaches.
(1) Input form -> Query -> Report
I look up youtube and learn how to build an Access form that passes a parameter value to a query. And then I can click the Create Report button.
(2) Input form -> Report
Not sure it works or not. But I learned a bit VBA which may be helpful in this case.
(3) Export to Excel
Export to Excel might be a good option. I can use various functions and filters to select the information I want.
Sorry that my question is being abstract. Any help is appreciated.
there are many ways you could achieve this.
One way (it may be the most efficient or not depending on your query / data you need to output in the report).
Build the query.
Build a report with its record source based on the query.
Build a form with input controls and a button.
With the button you are going to open the report. In the open statement of the report you are going to specify the controls as filters to some of the fields retrieved by the query.
Example:
Private Sub POrdine_Click()
On Error GoTo Err_POrdine_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "EmployeeWork"
stLinkCriteria="EmployeeCode=" & Forms![frmNameOfForm]![cboEmployeeCode] & " AND WorkMonth=" & Forms![frmNameOfForm]![cboWorkMonth]
DoCmd.OpenReport stDocName, , , stLinkCriteria
Exit_POrdine_Click:
Exit Sub
Am assuming the two comboboxes are going to pass a numerical value, the employee code (which would be a primary key) and the value of the month. Build the queries that feed these controls so that you may see the employee name and the month name. If in doubt just ask.
Notice how this approach may not work well for reports based on large amounts of data.
I have a workflow that copies a string version of a People Picker column to another column
Name = People Picker Column
NameString = copy of people picker column as a string
Workflow:
Set NameString to Current Item:Name
It worked fine for a couple of months but all of the sudden it started setting some NamesStrings to i:0#domain\username. I can't find any pattern for why it does some and not others and why it is doing it in the first place. Has anyone else had this issue?
As a workaround, we can use the Extract Substring from Index of String action to remove the i:0#.w| from the user name.
The workflow settings as below:
It turns out that I was having issues with SharePoint Designer. When I opened designer the next day I was unable to edit any of the workflows. I had to uninstall and then reinstall designer. When I did that I saw that workflow was set up to return the NameString as a string instead of as display name. When I updated that everything worked fine.
I am using a lotus notes database, where our whole company adds its customer data to it. The search function should give me the customer and when I click it I get more detailed information, which I need for my daily work.
However, I have to search this database and it is quite unreliable in terms of displaying the data and also often because of data insertion errors I do not find what I am desiring.
Therefore, I was wondering if I could export this database to excel and search it through with the filters.
Any recommendations how to do that?
I appreciate your replies!
You could also utilize the native full-text search of Domino : in the [View] menu, click "Search this view".
Select all the rows you want to export.
Do Edit/Copy AS>Table (could be long)
Past in EXCEL you will also get a link to the document in Excel.
This solution is relevant only if you research in few data. You may also build a "clever" view in Notes (exploding spaces for example) and search "start with" which is alway up to date.
I have pulled Notes view information into Excel from the Excel side via VBA - you'd need (to create) a view with all the relevant fields in columns first. Here's some code that worked for me: Accessing Lotus Notes database from Excel VBA - how do I pick up COLUMNVALUES?
I was picking up category subtotals..presumably you want the document contents instead so change the
Set Entry = nav.getNextCategory(Entry)
to
Set Entry = nav.getNextDocument(Entry)
and tweak the VBA code to suit which columns you want... good luck !
Is there a way to have SharePoint automatically save a copy of its list (spreadsheet) to a file at the end of the day?
My understanding is that versions are just for backup and are triggered by a single item changing.
Right now we have an excel spreadsheet that we work on each day adding new items and working on them and updating them - then the next day we copy the previous days document and rename it to todays date. Apparently this is for auditing purposes to view activity between different days.
I would like to move to SharePoint since we have a SharePoint 3.0 site on our intranet already setup and I have created a custom list that does everything else but do not see how to have these automatically exported without someone manually saving them.
On a side note, at some point we are moving to SharePoint 2010 so I dont know if that will give us what we need.
EDIT: I think I should be more specific that I want to save the entire contents of the list, not just version a single item. SharePoint seems to only version item by item and not the entire list. Not sure if there is some automated export of list data option available.
Well, SharePoint you can enable document versioning in SharePoint - you can check all versions and see who an when has modified them.
In case you really need to copy some files, maybe some workflow could help