2021-08-24 05:00 PM - last edited on 2021-09-14 09:18 AM by Noemi Balogh
//---->>> API_LayoutInfo layoutInfo; BNZeroMemory (&layoutInfo, sizeof (API_LayoutInfo)); if (ACAPI_Environment (APIEnv_GetLayoutSetsID, &layoutInfo, &api_dbPars.databaseUnId) == NoError) { ... for (auto it = layoutInfo.customData->EnumeratePairs (); it != nullptr; ++it) { *it->value += " - Modified via API"; } ACAPI_Environment (APIEnv_ChangeLayoutSetsID, &layoutInfo, &api_dbPars.databaseUnId); } //<<<---- My code is: //->> API_LayoutInfo layoutInfo; err = ACAPI_Environment(APIEnv_GetLayoutSetsID, &layoutInfo, &databaseUnId, &actualPageIndex); if (layoutInfo.customData != nullptr) { if (layoutInfo.customData->GetSize() > 0) { Guid keyguid; keyguid.ConvertFromString("7151E155-1B9B-4F17-9D4F-35F8036DE4A2"); API_Guid key = GSGuid2APIGuid(keyguid);//layoutInfo.customData->GetAKey(0); UniString us; if(layoutInfo.customData->ContainsKey(key)) us = layoutInfo.customData->Get(key); } }
Solved! Go to Solution.
2021-08-25 04:06 PM
2021-08-25 04:06 PM
2021-08-25 04:54 PM