Community
Showing results for 
Search instead for 
Do you mean 
Reply

Select multiple entries on tab "Documents"

Tuned Listener
Posts: 16
Country: Belgium

Select multiple entries on tab "Documents"

Hi everyone,

 

Is it possible to select multiple records from the "Documents" tab (or histories) and get, thanks to the SDK and a plugin, their history ID's ?

One of our customers needs to launch an external program with several documents selected in ACT as parameters.

 

TIA !

 

Stephen

Tuned Listener
Posts: 16
Country: Belgium

Re: Select multiple entries on tab "Documents"

Anyone ?
Employee
Posts: 1,163
Country: USA

Re: Select multiple entries on tab "Documents"

I'm not sure if the control will allow it. I'm fairly certain there's no access to that controls properties so enabling it through the SDK wouldn't be a possibility. I think you'd have to create your own 'documents' tab to accomplish this.

Matthew Wood
Act! SDK Support
Community Moderator
Tuned Listener
Posts: 16
Country: Belgium

Re: Select multiple entries on tab "Documents"

Do you mean that I won't be able to get the highlighted items from a tab with the SDK ?
Employee
Posts: 1,163
Country: USA

Re: Select multiple entries on tab "Documents"

I don't think so, I haven't worked a lot with the control to know whether it has a member that returns tagged items. I know it doesn't work for the ContactList, so that's why I'm doubtful for the documents tab.

Matthew Wood
Act! SDK Support
Community Moderator
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Select multiple entries on tab "Documents"

You could walk the controls on the form but it would not be supporting in the SDK since the ACT UI is not in the SDK. You would need to verify this code with each revision of ACT!

 

This is sudo code and the control names are in ACT 2012 SP1

 

 Private Function GetSelectedDocuments() As Object
        '---------------------------------------------------------
        ' Get the ACT TabPage for the documentsTab Control 
        '---------------------------------------------------------
        Dim ACTTabPageDocuments As Control = Durkin.Common.Classes.ACTAPPFunctions.FindControl("libraryTab", Me.HostApplication.CurrentView)
        If Not (ACTTabPageDocuments Is Nothing) Then
            '---------------------------------------------------------
            ' Get the Toolstrip for the documentsTab Control 
            '---------------------------------------------------------
            Dim ACTDocumentsSplitter As Control = Durkin.Common.Classes.ACTAPPFunctions.FindControl("previewSplitContainer", ACTTabPageDocuments)
            If Not (ACTDocumentsSplitter Is Nothing) Then

                Dim theGrid As Control = Durkin.Common.Classes.ACTAPPFunctions.FindControl("theGrid", ACTDocumentsSplitter)
                If Not (theGrid Is Nothing) Then
                    '---------------------------------------------------
                    ' return the selected object
                    '---------------------------------------------------
                    Return DirectCast(DirectCast(theGrid, Object).Rows, Object).Selected

                End If
            End If
        End If
        Return Nothing
    End Function

 

 

Hope this helps

-- Jim Durkin

 

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Select multiple entries on tab "Documents"

[ Edited ]

Matt,

I never played with the TaggedEntities property on the current contact list since I recreate the Contact List View altogether in Impact Contact List Plus.

Would code like this work for selected / tagged contact on contact list?

 

Sudo Code...

 

        Dim cContactList As Act.Framework.Contacts.ContactList
        cContactList = Me.HostApplication.ApplicationState.CurrentContactList
        For Each TaggedObject As Object In cContactList.TaggedEntities()
            ' your CODE here
        Next

 

Hope this helps

-- Jim Durkin

Tuned Listener
Posts: 16
Country: Belgium

Re: Select multiple entries on tab "Documents"

Thanks guys ! Jim, I'll give a try and let you know.
Employee
Posts: 1,163
Country: USA

Re: Select multiple entries on tab "Documents"

Jim,

 

So far from what I've tested, tagged items doesn't work. I've already submitted a ticket for this issue if you'd like more information feel free to PM or email me.

Matthew Wood
Act! SDK Support
Community Moderator