aaapi function to open document set content window

Which aaapi function should be used in order to open a content window for flat document set?

Currently, I've figured out how to call dialog for simultaneous modification of multiple sets 

aaApi_ModifySetContentDlg ( hwnd, NULL, mProjId, setSetId ); - it also can be observed after clicking context menu => set => modify...

Does anyone know some special call to open content window for particular flatset (it pops up after clicking context menu => set => content)?

 

Parents
  • I'm not in a position to actually check this, but searching the help with *aaapi*set*dlg*, and then clicking on "Document Set Dialog Functions", my guess would be aaApi_SelectSetDlg(), but it might be one of the others in the search results.

  • Thanks for your response. Unfortunately, it isn't the required window. I've tried calling aaApi_ModifySetContentDlg, aaApi_SelectSetDlg, aaApi_SelectSetMembersDlgExt, aaApi_CheckOutDocumentSetDlg so far. But still no signs of flat set content window like this:

  • That is not a dialog, that is a Document List Frame.  I create one in the sample below to show the results of my search.  I don't see a function that returns a DocumentListFrame in the Set API calls. For what its worth, this is how I posted documents to a frame.  The code is in C/C++

    void CreateAndDisplayDocumentSearch(LONG lProjectId)
    {
    	//FILE *fp;
    	//_TCHAR line[256];
    	//CStringArray caFolderList;
    	WCHAR value[64] = L"";
    	CString line;
    	CString csSQueryName = _T("");
    	LONG lIndx = 0;
    	LONG lSearchCount = 0;
    	LONG lProjectCount = 0;
    	HAADMSBUFFER hCriteriaBuf = (VOID *)NULL;
    	HAADMSBUFFER hSavedSearches = (VOID *)NULL;
    	//HDSOURCE m_hDataSource;
    	const GUID pset_DOCUMENT_GENERIC = PSET_DOCUMENT_GENERIC;
    	LONG lSQueryId  = 0; //ID created 
    	AADSCTREEITEM dscItem;
    	HWND hWndFrame = (HWND)NULL;
    	HWND hWndList = (HWND)NULL;
        HTREEITEM hSearchTree = aaApi_DscTreeSelectSearchResultsItem (NULL, aaApi_GetActiveDatasource ());
    
    	//Creating Search Criteria Buffer Contents
    	_ltow_s(lProjectId, value, 64, 10);
    	hCriteriaBuf = aaApi_SQueryCriDataBufferAddCriterion(hCriteriaBuf,lIndx+1,VT_SINGLE_VALUE,&pset_DOCUMENT_GENERIC,	_T(""),
    													 QRY_DOC_PROP_PROJ_ID, DMS_RELATION_EQUAL,AADMS_ATTRFORM_DATATYPE_BIGINT,
    													 value);			
    	if ( hCriteriaBuf == NULL )
    	{
    		line.Format(_T("project criteria creation failed when trying to add project %d."),lProjectId);
    		WriteErrorToLog(line);
    	}
    
    
    	_itow_s(1, value, 64, 10); //Setting Include Subfolders to 1 or TRUE
    	//This is supposed to be like checking the include subfolders box
    	hCriteriaBuf = aaApi_SQueryCriDataBufferAddCriterion(hCriteriaBuf, lIndx+1, VT_SINGLE_VALUE, &pset_DOCUMENT_GENERIC,
    													 NULL, QRY_DOC_PROP_INCSUBVAULTS, DMS_RELATION_EQUAL,
    													 AADMS_ATTRFORM_DATATYPE_INT,value);
    	if ( hCriteriaBuf == NULL )
    	{
    		line.Format(_T("project criteria creation failed when trying to add subfolders for project %d."),lProjectId);
    		WriteErrorToLog(line);
    	}
        
    
    	memset (&dscItem, 0, sizeof (dscItem)); 	
    	dscItem.ulMask = AADSCTIM_TYPEID | AADSCTIM_DATASOURCE | AADSCTIM_ITEMID; // some flags are skipped for simplicity 
    	dscItem.hDataSource = aaApi_GetActiveDatasource();
    	dscItem.lTypeId = DSCITYPE_SEARCH_RESULTS;
    	dscItem.hItem = hSearchTree;
    
    
    	hWndFrame = aaApi_CreateDocumentListFrame(aaApi_GetMainFrameWindow(), 
    	0, 
    	0, 
    	512, 
    	512, 
    	&dscItem, 
    	&hWndList); 
    
    
    	aaApi_FindDocumentsToDocumentList(hWndList,hCriteriaBuf); 
    
    	aaApi_DmsDataBufferFree(hCriteriaBuf);
    	hCriteriaBuf = (VOID *)NULL;
    
    }

Reply
  • That is not a dialog, that is a Document List Frame.  I create one in the sample below to show the results of my search.  I don't see a function that returns a DocumentListFrame in the Set API calls. For what its worth, this is how I posted documents to a frame.  The code is in C/C++

    void CreateAndDisplayDocumentSearch(LONG lProjectId)
    {
    	//FILE *fp;
    	//_TCHAR line[256];
    	//CStringArray caFolderList;
    	WCHAR value[64] = L"";
    	CString line;
    	CString csSQueryName = _T("");
    	LONG lIndx = 0;
    	LONG lSearchCount = 0;
    	LONG lProjectCount = 0;
    	HAADMSBUFFER hCriteriaBuf = (VOID *)NULL;
    	HAADMSBUFFER hSavedSearches = (VOID *)NULL;
    	//HDSOURCE m_hDataSource;
    	const GUID pset_DOCUMENT_GENERIC = PSET_DOCUMENT_GENERIC;
    	LONG lSQueryId  = 0; //ID created 
    	AADSCTREEITEM dscItem;
    	HWND hWndFrame = (HWND)NULL;
    	HWND hWndList = (HWND)NULL;
        HTREEITEM hSearchTree = aaApi_DscTreeSelectSearchResultsItem (NULL, aaApi_GetActiveDatasource ());
    
    	//Creating Search Criteria Buffer Contents
    	_ltow_s(lProjectId, value, 64, 10);
    	hCriteriaBuf = aaApi_SQueryCriDataBufferAddCriterion(hCriteriaBuf,lIndx+1,VT_SINGLE_VALUE,&pset_DOCUMENT_GENERIC,	_T(""),
    													 QRY_DOC_PROP_PROJ_ID, DMS_RELATION_EQUAL,AADMS_ATTRFORM_DATATYPE_BIGINT,
    													 value);			
    	if ( hCriteriaBuf == NULL )
    	{
    		line.Format(_T("project criteria creation failed when trying to add project %d."),lProjectId);
    		WriteErrorToLog(line);
    	}
    
    
    	_itow_s(1, value, 64, 10); //Setting Include Subfolders to 1 or TRUE
    	//This is supposed to be like checking the include subfolders box
    	hCriteriaBuf = aaApi_SQueryCriDataBufferAddCriterion(hCriteriaBuf, lIndx+1, VT_SINGLE_VALUE, &pset_DOCUMENT_GENERIC,
    													 NULL, QRY_DOC_PROP_INCSUBVAULTS, DMS_RELATION_EQUAL,
    													 AADMS_ATTRFORM_DATATYPE_INT,value);
    	if ( hCriteriaBuf == NULL )
    	{
    		line.Format(_T("project criteria creation failed when trying to add subfolders for project %d."),lProjectId);
    		WriteErrorToLog(line);
    	}
        
    
    	memset (&dscItem, 0, sizeof (dscItem)); 	
    	dscItem.ulMask = AADSCTIM_TYPEID | AADSCTIM_DATASOURCE | AADSCTIM_ITEMID; // some flags are skipped for simplicity 
    	dscItem.hDataSource = aaApi_GetActiveDatasource();
    	dscItem.lTypeId = DSCITYPE_SEARCH_RESULTS;
    	dscItem.hItem = hSearchTree;
    
    
    	hWndFrame = aaApi_CreateDocumentListFrame(aaApi_GetMainFrameWindow(), 
    	0, 
    	0, 
    	512, 
    	512, 
    	&dscItem, 
    	&hWndList); 
    
    
    	aaApi_FindDocumentsToDocumentList(hWndList,hCriteriaBuf); 
    
    	aaApi_DmsDataBufferFree(hCriteriaBuf);
    	hCriteriaBuf = (VOID *)NULL;
    
    }

Children
No Data