Hi!
Does anyone know how I can rename for instance a CROSSREF element in Framemaker by FDK?
I have tried this code:
(elemDefId is the id of the CROSSREF element)
The code changes the name of the element but the element turns red in the structure. If i try to change the element CROSSREF by using the element dialog box and choose Xref and choose "change" it works fine!
Is there a Function that can change an element to another element if it's allowed in the structure? -Or do I have to save the contents of an element in a tmp variable, unwrap the element and then insert a new element and put the tmp contents in the new element?
In advance thanks!
Pål Nesteby
PDC-Tangen
Norway
Does anyone know how I can rename for instance a CROSSREF element in Framemaker by FDK?
I have tried this code:
Code:
F_ApiSetString(docId, elemDefId,FP_Name, "Xref");
The code changes the name of the element but the element turns red in the structure. If i try to change the element CROSSREF by using the element dialog box and choose Xref and choose "change" it works fine!
Is there a Function that can change an element to another element if it's allowed in the structure? -Or do I have to save the contents of an element in a tmp variable, unwrap the element and then insert a new element and put the tmp contents in the new element?
In advance thanks!
Pål Nesteby
PDC-Tangen
Norway