TFORMer SDK - DLL/Library
8
|
A Project is a logical container for related FormLayout, DataSource and DataField definitions. It divides a Repository into logical units.
Exactly one GlobalProject is available for both a Repository or a stand-alone FormLayout. In the case of a Repository additional Project objects can be created by the user.
In order to access the DataFields in a Project you may either use the method TFormer_GetFirstProjectVarIt or you may iterate through all available DataFields using TFormer_GetFirstProjectVarIt and TFormer_GetNextProjectVarIt. If you want to know, whether the returned DataField is actually used in a FormLayout you can use the method TFormer_ProjectVarItGetUsage.
To retrieve all Project objects within a Repository do the following:
ERRCODE eCode = ErrOk; HPROJECT_ITERATOR itProject = NULL; LPCSTR pszProjectName = NULL; BOOL bProjectValid = FALSE; // Retrieve the first Project itProject = TFormer_GetFirstProjectIt (hTForm, &eCode); bProjectValid = (itProject != NULL); // TYPE_E_ELEMENTNOTFOUND should not be treated as error if (eCode == TYPE_E_ELEMENTNOTFOUND) eCode = ErrOk; while (bProjectValid && eCode == ErrOk) { pszProjectName = TFormer_ProjectItGetName (itProject, &eCode); if (pszProjectName != NULL && eCode == ErrOk) printf ("project name: '%s'\n", pszProjectName); // Get the next Project bProjectValid = (TFormer_GetNextProjectIt (itProject) == ErrOk); } TFormer_FreeProjectIt (itProject);
© 2006-2024 - all rights reserved by TEC-IT Datenverarbeitung GmbH |
![]() |
Generated on Sat Oct 5 2024 05:08:16 for TFORMer SDK - DLL/Library with doxygen 1.7.6.1 |