Quantcast
Channel: Adobe Community : Popular Discussions - FrameMaker Structured
Viewing all articles
Browse latest Browse all 66580

How to get parent element name?

$
0
0

Snap1.png

In my FDK development, "startTime" &"endTime" is marker element.Using the following code,I can get the element name of  "txtContent".

 

markerText= F_ApiGetString(docId, markerId, FP_MarkerText);
              //F_ApiAlert(markerText, FF_ALERT_CONTINUE_WARN);

    textLoc = F_ApiGetTextLoc(docId, markerId,FP_TextLoc);
    if (textLoc.objId == 0) return;

 

  elemLoc = F_ApiTextLocToElementLoc(docId, &textLoc);
      /* get Id of the parent element’s element definition */
   elemId = F_ApiGetId(docId, elemLoc.parentId, FP_ElementDef);

   elemName = F_ApiGetString(docId, elemId, FP_Name);

 

But I want to get the element name of "radioFailuerProceduer". I can't get it now.

if you already get the element name of "txtContent",How to get parent element name?


Viewing all articles
Browse latest Browse all 66580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>