Layout name returned with layout number?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-12-21
03:07 AM
- last edited on
2023-08-03
10:33 AM
by
Doreena Deng
2010-12-21
03:07 AM
Hi
I am trying to retrieve a list of all the layout names, but I get the layout number included with the name. My code looks something like this
for (GSIndex i = 0; i < nDbases; i++) {
API_DatabaseInfo dbPars;
BNZeroMemory (&dbPars, sizeof (API_DatabaseInfo));
dbPars.databaseUnId = dbases;
if (ACAPI_Database (APIDb_GetDatabaseInfoID, &dbPars, NULL) == NoError) {
API_LayoutInfo layoutSets;
if (ACAPI_Environment (APIEnv_GetLayoutSetsID, &layoutSets, &dbPars.databaseUnId, NULL) == NoError) {
DBPrintf ("Layout Name-------------------------------------: %s\n", layoutSets.layoutName);
}
}
}
Any ideas on what I need to change? TIA.
I am trying to retrieve a list of all the layout names, but I get the layout number included with the name. My code looks something like this
for (GSIndex i = 0; i < nDbases; i++) {
API_DatabaseInfo dbPars;
BNZeroMemory (&dbPars, sizeof (API_DatabaseInfo));
dbPars.databaseUnId = dbases
if (ACAPI_Database (APIDb_GetDatabaseInfoID, &dbPars, NULL) == NoError) {
API_LayoutInfo layoutSets;
if (ACAPI_Environment (APIEnv_GetLayoutSetsID, &layoutSets, &dbPars.databaseUnId, NULL) == NoError) {
DBPrintf ("Layout Name-------------------------------------: %s\n", layoutSets.layoutName);
}
}
}
Any ideas on what I need to change? TIA.
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-12-22 02:09 AM
2010-12-22
02:09 AM
Hi,
API_LayoutInfo has the Boolean member ‘doNotIncludeInNumbering’.
If ‘doNotIncludeInNumbering’ is true layoutName include the number, if false layoutName is only the Name.
Manipulate your string using ‘doNotIncludeInNumbering’ value, ‘customLayoutNumber’ and ‘customLayoutNumbering” or go to layout book select the checkbox “Do not include this Layout in ID sequence”.
API_LayoutInfo has the Boolean member ‘doNotIncludeInNumbering’.
If ‘doNotIncludeInNumbering’ is true layoutName include the number, if false layoutName is only the Name.
Manipulate your string using ‘doNotIncludeInNumbering’ value, ‘customLayoutNumber’ and ‘customLayoutNumbering” or go to layout book select the checkbox “Do not include this Layout in ID sequence”.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-12-23 08:54 AM
2010-12-23
08:54 AM
Thanks Ranga
I should of clicked to that!. You've helped me heaps. Thanks for the reply and have a good Xmas
I should of clicked to that!. You've helped me heaps. Thanks for the reply and have a good Xmas
