Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

use APIDb_ModifyHotlinkNodeID to modify hotlinknode name not work?

Anonymous
Not applicable
Hi.
I use APIDb_ModifyHotlinkNodeID to modify hotlinknode name,but it does not work.

In the HotLink Module Manager ,the hotlink name is also the old name.

the code e.g:
GS::snuprintf(hotlinkNode.name, API_UniLongNameLen - 1, L("Hotlink updated by test add-on"));
			
			
			err = ACAPI_Database (APIDb_ModifyHotlinkNodeID, &hotlinkNode);		// rename hotlink node
			if (err == NoError && hotlinkNode.guid != APINULLGuid)				// update cache content
				err = ACAPI_Database (APIDb_UpdateHotlinkCacheID, const_cast<API_Guid*> (&hotlinkNode.guid));

			if (err == NoError) {
				char guidStr[64];
				APIGuid2GSGuid (hotlinkNode.guid).ConvertToString (guidStr);
				WriteReport ("Hotlink node is updated successfully: {%s}", guidStr);
			}
2 REPLIES 2

akomporday
Graphisoft
Graphisoft
Hey DevJeer,
What ErrCode do you get from the function call?

Anonymous
Not applicable
akomporday wrote:
Hey DevJeer,
What ErrCode do you get from the function call?
Hi.

I get NoError from the function call.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!