How to detect a book/Document structured in structured FrameMaker FDK

Hello world

I watched the pillar to post on this one.

Basically when you open a document in FrameMaker structured a warning stating exactly what you are doing.

I use FDK and have tried this both formal and informal.

The test for the structure of a document is to read the FP_HighestLevelElement property,

This returns true in structured but false for a structured unstructured FrameMaker document.

Lost with this one, but if FrameMaker can detect a document structured in informal, then I'd do it too.

If any entry at all could be provided it would be highly appreciated.

Yes, that's correct. F_ApiOpen() requires a list of input properties (F_PropValsT) and fills a second list after the operation that provides details on what was going on. You must configure the list of properties of entry to prohibit opening the file (FP_FileIsStructured = FV_DoCancel), then if the file does not open, ask the list of properties to return for the reason. I think the flag so that you look at is FV_CancelFileHasStructure, but I don't know about you. In any case, Rick is right... you can't find after you force, because the file is structured is no longer at that time here.

Russ

Tags: Adobe FrameMaker

Similar Questions

  • How to use the ESD document with structured templates

    Hello

    I started to learn working with SEDD. I have an existing ESD, now I'm suppose to use it to create documents. I created a new book and imported this ESD file to it. I can see all the items in the catalog of the element. But when I start to add items to the book and add a new document, the elements are turning to red. Referring to the User Guide, it is said EDD cannot be used directly and must be used with structured patterns. But I do not have these models structured with me. Can someone please tell me how to create these structured templates and how to use the ESD file with these models, and out of this problem.

    Thanks in advance.

    Although ESD exist in the form of a separate document, the only way that it can be used is when it is part of the model. As a model of structured FrameMaker, a structured model contains master pages, pages reference, character formats, paragraph formats, etc. IN ADDITION, a structured model contains a DSP. To add the EDD to your template file, or any document FrameMaker who will use it, open the template file and the file of ESD. Click anywhere in the template file, and then select file > import > element definitions. In the dialog box, select the EDD file as source and click Import. Then save the template file.

    To use the template file, open it and save it as a FrameMaker document, giving it the name you want. You can now create your structure.

    If you use a book, all documents in the book must use the same ESD. Open the template file. In the book file, select all the documents in the book. Then select file > import > element definitions. In the dialog box, select the template file and click Import. Once completed, all documents in the book have the same ESD. In addition, ESD is copied into the file of the book itself.

    You say:

    But when I start to add items to the book and add a new document, the elements are turning to red.

    It is is not clear to me what you do. While it is true that SOME elements of a book are in the book file, you cannot add a book of items in the folder (at least not as far as I know). In general, the book file, it encapsulates elements around the documents root elements in the book. You may need to update the book to get a part of the Red disappear lines. You may need to rearrange items in the structure of the book to remove the red lines.

    Hope this helps,

    Van

  • How to detect changes in the document?

    Dear friends and experts,

    It seems obvious that, with my new project , I opened Pandora's box...

    Pallets to remain open, even when you set a new location of cursor, so I use this to my dialogue.

    But the user can also switch to another document when the palette is open.

    Currently I have a Refresh button, and the user is prompted to use after the passage of another document. The function behind is to analyse the newly entered document and define global variables to update the dialog.

    How I detect the switch of the document? I did find something like onDocumentChange.

    (In the current script a check for the name of the modified document is in the function btnRefresh.onClick to avoid irrelevant work).

    Thank you for all the ideas.

    Klaus

    Hi Klaus,

    This version of your script works fine:

    Just remove some "var" in winPal - dialogue.

    Delete "winPal.show ()" in the Notify function

    give a little more space to st1.

       #target framemaker
        Notification (Constants.FA_Note_PostActiveDocChange, true);
        var globalValue = app.ActiveDoc.Name;
        var winPal = new Window ("palette", "Simple Palette", undefined);  
    
        SimplePalette (globalValue);  
    
        function SimplePalette (outerParm) {
           innerParm = "none";
           buttonOuter = winPal.add ("button", undefined, "Outer");
           buttonInner = winPal.add ("button", undefined, "Inner");
           st0 = winPal.add ("statictext", undefined, "st= " + innerParm);
           st0.preferredSize.width = 300;
           st1 = winPal.add ("statictext", undefined, "Button clicked: " + innerParm);
          st1.preferredSize.width = 300;
          buttonOuter.onClick = function () {
            st1.text = "Button clicked: Outer";
          }  
    
          buttonInner.onClick = function () {
            st1.text = "Button clicked: Inner";
            st0.text = outerParm;                                // this changes the display
          }  
    
          winPal.show ();
        }  
    
        function Notify (note, object, sparam, iparam) {
        // Handle the event triggered after the active document changes.
        $.bp(true);  // here was a type : $.br(true)
          switch (note) {
            case Constants.FA_Note_PostActiveDocChange:
                {
              // Update your dialog box here.
              st1.text = "Current document is " + object.Name ;
              break;
              }
          }
        }
    
  • How to detect the window closing event and to do some tasks before leaving

    Hello

    Someone knows how to detect the window closing event and to do some tasks before leaving?

    Sridhar

    Structure of the event allows to detect the window closing event. In the structure of the event,.

    Select this VI-> close round table for this task. See attached picture.

  • What are the issues and how can I put the documents in the files?

    As usual; Oracle is absolutely horrible in providing any kind of basic instructions on the use of the products.

    I need to upload files to a structure (don't care if it's collections, folders, or in mason jars as long as it works) and be able version them and seize those I want.

    I managed to get a variety of things to work with the genericSoapService (cannot use the API in accordance with local policy), but everything I check in goes in (don't know where)

    I don't think I'm even asking the right questions because my web researchers increase irrelevant results.

    What are the issues and how can I put the documents in the files?

    I created a few files like this:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM">
       <soapenv:Header/>
       <soapenv:Body>
    <GenericRequest xmlns="http://www.oracle.com/UCM" webKey="cs">
    <Service IdcService="FLD_CREATE_FOLDER">
    <Document>
    <Field name="fParentGUID">C976021E28DD8B26FB2D437B5BF56B7F</Field>
    <Field name="fPath">/RAFT/Appraisals/</Field>
    <Field name="fFolderName">0111234567</Field>
    <Field name="fSecurityGroup">RAFT_ADMINGrp</Field>
    </Document>
    </Service>
    </GenericRequest>
       </soapenv:Body>
    </soapenv:Envelope>
    

    Here's a sample call:

    The virtual path is/Appraisals/0111234567 /.

    The GUID for this folder is CBF8EF9C59F8A6C84EB31C68F0903399

    I see the reference to xCollectionID when I look for answers, but the data is not available for me (see the output below)

    When I run this it stores the file but the file does not appear in the folder.

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM">
         <soapenv:Header/>
    <soapenv:Body>
    <GenericRequest xmlns="http://www.oracle.com/UCM" webKey="cs">
    <Service IdcService="CHECKIN_UNIVERSAL">
    <Document>
    <Field name="fFolderGUID">CBF8EF9C59F8A6C84EB31C68F0903399</Field>
    <Field name="dDocType">Document</Field>
    <Field name="dSecurityGroup">Public</Field>
    <Field name="dDocAccount"/>
    <Field name="dSecurityGroup">RAFT_ADMINGrp</Field>
    <Field name="xFHACaseNumber">0111234567</Field>
    <Field name="xFHADocumentType">Appraisal</Field>
    <Field name="dDocTitle">tuesday2document.txt</Field>
    <File name="primaryFile" href="whereami.txt">
    <Contents>dGhpcyBpcyBteSBkb2N1bWVudA==</Contents>
    </File>
    </Document>
    </Service>
    </GenericRequest>
    </soapenv:Body>
    </soapenv:Envelope>
    

    Returns:

    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Header/>
       <env:Body>
          <ns2:GenericResponse xmlns:ns2="http://www.oracle.com/UCM">
             <ns2:Service IdcService="CHECKIN_UNIVERSAL">
                <ns2:Document>
                   <ns2:Field name="reserveLocation">false</ns2:Field>
                   <ns2:Field name="IdcService">CHECKIN_UNIVERSAL</ns2:Field>
                   <ns2:Field name="dSecurityGroup">RAFT_ADMINGrp</ns2:Field>
                   <ns2:Field name="dpTriggerField">xIdcProfile</ns2:Field>
                   <ns2:Field name="dDocType">Document</ns2:Field>
                   <ns2:Field name="scriptableActionErr"/>
                   <ns2:Field name="xPartitionId:isSetDefault">1</ns2:Field>
                   <ns2:Field name="xWebFlag"/>
                   <ns2:Field name="dDocCreator">C03999</ns2:Field>
                   <ns2:Field name="dDocAccount"/>
                   <ns2:Field name="xClbraUserList"/>
                   <ns2:Field name="dLocation"/>
                   <ns2:Field name="xWCPageId:isSetDefault">1</ns2:Field>
                   <ns2:Field name="dWebExtension">txt</ns2:Field>
                   <ns2:Field name="isNew">1</ns2:Field>
                   <ns2:Field name="IsQueryObjectPersistent"/>
                   <ns2:Field name="xWCTags"/>
                   <ns2:Field name="LockedContents1">dDocName:WCC_Cluster-001208</ns2:Field>
                   <ns2:Field name="dClbraName"/>
                   <ns2:Field name="dCreateDate">10/7/14 8:58 AM</ns2:Field>
                   <ns2:Field name="xClbraAliasList"/>
                   <ns2:Field name="dActionMillis">72487502</ns2:Field>
                   <ns2:Field name="StatusMessage">Successfully checked in content item 'WCC_CLUSTER-001208'.</ns2:Field>
                   <ns2:Field name="dIsPrimary">1</ns2:Field>
                   <ns2:Field name="isInfoOnly"/>
                   <ns2:Field name="dActionDate">10/7/14 8:58 AM</ns2:Field>
                   <ns2:Field name="xWCPageId"/>
                   <ns2:Field name="xLibraryGUID:isSetDefault">1</ns2:Field>
                   <ns2:Field name="dDocID">1216</ns2:Field>
                   <ns2:Field name="dPublishState"/>
                   <ns2:Field name="xFHACaseNumber">0111234567</ns2:Field>
                   <ns2:Field name="doSorting">0</ns2:Field>
                   <ns2:Field name="primaryFile">whereami.txt</ns2:Field>
                   <ns2:Field name="dRevisionID">1</ns2:Field>
                   <ns2:Field name="xExternalDataSet"/>
                   <ns2:Field name="scriptableActionFunction">determineCheckin</ns2:Field>
                   <ns2:Field name="UseForwardOnlyCursor"/>
                   <ns2:Field name="noDocLock">1</ns2:Field>
                   <ns2:Field name="dID">1208</ns2:Field>
                   <ns2:Field name="xWCTags:isSetDefault">1</ns2:Field>
                   <ns2:Field name="xPartitionId"/>
                   <ns2:Field name="xComments:isSetDefault">1</ns2:Field>
                   <ns2:Field name="dInDate">10/7/14 8:58 AM</ns2:Field>
                   <ns2:Field name="dDocOwner">C03999</ns2:Field>
                   <ns2:Field name="dUser">C03999</ns2:Field>
                   <ns2:Field name="isDocProfileUsed">true</ns2:Field>
                   <ns2:Field name="scriptableActionParams"/>
                   <ns2:Field name="dpEvent">OnImport</ns2:Field>
                   <ns2:Field name="xExternalDataSet:isSetDefault">1</ns2:Field>
                   <ns2:Field name="dDocLastModifier">C03999</ns2:Field>
                   <ns2:Field name="DocExists"/>
                   <ns2:Field name="dConversion">PassThru</ns2:Field>
                   <ns2:Field name="StatusCode">0</ns2:Field>
                   <ns2:Field name="xStorageRule:isSetDefault">1</ns2:Field>
                   <ns2:Field name="dStatus">DONE</ns2:Field>
                   <ns2:Field name="dOriginalName">whereami.txt</ns2:Field>
                   <ns2:Field name="dRevClassID">1208</ns2:Field>
                   <ns2:Field name="idcToken"/>
                   <ns2:Field name="dRevLabel">1</ns2:Field>
                   <ns2:Field name="dDocName">WCC_CLUSTER-001208</ns2:Field>
                   <ns2:Field name="xWCWorkflowApproverUserList:isSetDefault">1</ns2:Field>
                   <ns2:Field name="xStorageRule">webasset</ns2:Field>
                   <ns2:Field name="localizedForResponse">1</ns2:Field>
                   <ns2:Field name="dPublishType"/>
                   <ns2:Field name="fFolderGUID">CBF8EF9C59F8A6C84EB31C68F0903399</ns2:Field>
                   <ns2:Field name="dFormat">text/plain</ns2:Field>
                   <ns2:Field name="scriptableActionType">3</ns2:Field>
                   <ns2:Field name="dDocTitle">tuesday2document.txt</ns2:Field>
                   <ns2:Field name="dpAction">CheckinNew</ns2:Field>
                   <ns2:Field name="primaryFile:path">/opt/oracle/work/wcc_cluster/ucm/cs/vault/~temp/1963032402.txt</ns2:Field>
                   <ns2:Field name="refreshMonikers"/>
                   <ns2:Field name="xWCWorkflowAssignment"/>
                   <ns2:Field name="isEditMode">1</ns2:Field>
                   <ns2:Field name="refreshSubMonikers"/>
                   <ns2:Field name="xFHADocumentType">Appraisal</ns2:Field>
                   <ns2:Field name="changedMonikers"/>
                   <ns2:Field name="dRevRank">0</ns2:Field>
                   <ns2:Field name="StorageRule">webasset</ns2:Field>
                   <ns2:Field name="xWCWorkflowApproverUserList"/>
                   <ns2:Field name="xComments"/>
                   <ns2:Field name="dAction">Checkin</ns2:Field>
                   <ns2:Field name="isDocProfileDone">1</ns2:Field>
                   <ns2:Field name="xWebFlag:isSetDefault">1</ns2:Field>
                   <ns2:Field name="dRawDocID">1215</ns2:Field>
                   <ns2:Field name="xLibraryGUID"/>
                   <ns2:Field name="StatusMessageKey">!csServiceStatusMessage_checkin,WCC_CLUSTER-001208</ns2:Field>
                   <ns2:Field name="xIdcProfile:isSetDefault">1</ns2:Field>
                   <ns2:Field name="dWorkflowState"/>
                   <ns2:Field name="dProcessingState">Y</ns2:Field>
                   <ns2:Field name="dDocCreatedDate">{ts '2014-10-07 08:58:07.482'}</ns2:Field>
                   <ns2:Field name="dDocAuthor">C03999</ns2:Field>
                   <ns2:Field name="dOutDate"/>
                   <ns2:Field name="dIsWebFormat">0</ns2:Field>
                   <ns2:Field name="scriptableActionFlags">12</ns2:Field>
                   <ns2:Field name="isCheckin">1</ns2:Field>
                   <ns2:Field name="RenditionId">webViewableFile</ns2:Field>
                   <ns2:Field name="dExtension">txt</ns2:Field>
                   <ns2:Field name="VaultfilePath">/opt/oracle/work/wcc_cluster/ucm/cs/vault/~temp/1963032402.txt</ns2:Field>
                   <ns2:Field name="prevReleaseState"/>
                   <ns2:Field name="isStatusChanged">1</ns2:Field>
                   <ns2:Field name="dReleaseState">N</ns2:Field>
                   <ns2:Field name="dWebOriginalName">WCC_CLUSTER-001208~1.txt</ns2:Field>
                   <ns2:Field name="xWCWorkflowAssignment:isSetDefault">1</ns2:Field>
                   <ns2:Field name="dDocLastModifiedDate">{ts '2014-10-07 08:58:07.482'}</ns2:Field>
                   <ns2:Field name="dFileSize">19</ns2:Field>
                   <ns2:Field name="xIdcProfile"/>
                </ns2:Document>
             </ns2:Service>
          </ns2:GenericResponse>
       </env:Body>
    </env:Envelope>
    

    CBF8EF9C59F8A6C84EB31C68F0903399

    Replace fFolderGUID by fParentGUID

  • How can I add a Document template to my library of templates with forms already implemented?

    How can I add a Document template to my library of templates with forms already implemented?

    I use the same contract repeatedly to different customers and need to set up the custom fields every time which is a total pain.  Also, there is no option 'Add a Document Template' in my account anywhere, where the tutorials do not say that it should be or anywhere else.

    How can I fix it?


    Ben

    Hello Ben,

    You can go to the dashboard-> additional functions and click on "Add document to the library", and then can download the form inside. If your document already contains form fields, they would automatically get detected. Otherwise, you can also add form fields in EchoSign too.

    Kind regards

    -Usman

  • Remove entry for specific XML (document structured FM) nodes

    Hello

    y at - there a way to remove entries or changes specific nodes (document structured FM)?

    Thank you for any pointer.

    Concerning

    Apollo102

    Hi Apollo102,

    First of all, I must apologize that I didn't I was in the section of the forum script. I threw the idea of the script by chance as if it were a low possibility for you, but of course, that's what you came here for. So my initial answer was a ridiculous context to it.

    I am impressed that you moved up so quickly. This case of notifications and constants can become difficult. Here are some answers to your questions...

    Is this an acceptable way? My answer is Yes. This is how I would do it. Note that however... most probably, once you run the script and enable notifications, you need a restart of FrameMaker to turn them off. Maybe you can turn them off with a call from Notification() somehow in the same script afterwards, but I'm not sure. No more sense, though, it's just the nature of the ESTK environment and just something to know.

    Where you will find a complete list of the constants? A question more excellent and without a good answer, I know. These values are based on what we called "fcodes' of the original implementation of FDK and are defined in a fcodes.h file in the FDK. Here is an excerpt of this file which shows the definition of what you call "KBD of entry" (3750):

    #define KBD_API 0xDF0 / * dynamic (API clients/config) * /.

    #define KBD_API_SHORTCUT 0xDF1 / * API used only from shortcut * /.

    #define TYPEIN 0xDF2 / * OUTPUT ONLY: type text * /.

    #define INLINE_TYPEIN 0xDF3 / * entry line for Asian language text * /.

    #define KBD_VIEW_API 0xDF4 / * dynamic (View API clients/config) * /.

    #define KBD_VIEW_API_SHORTCUT 0xDF5 / * View APIs used only from shortcut * /.

    #define KBD_VIEW_SWITCH 0xDF6

    All values in this file are defined in hexadecimal, so the value of 3750 is equivalent to 0xDF2 in this folder, i.e. the constant TYPEIN.

    You could go get this file and navigate, but constant names are sometimes cryptic and there are many, many hundreds of them. If my suggestion is this... just put an alert box in your code that displays the code event, then manually do some action you think should be limited and see what code is. I can already see a line of code in your sample that will do exactly that... I think you could just uncomment that. Maybe move it under the conditional tag of the element. In this case, it's probably how I would determine the correct codes.

    I hope this helps.

    Russ

  • How to unlock my book mac pro with my watch i

    How to unlock my book mac pro with my watch i

    The watch must be update shows OS 3, and MacBook to macOS Sierra.  Then go on the MacBook in settings-> Security & privacy-> and select "Allow Apple Watch unlock your mac".

  • How can I remove the documents in my storage iCloud on my Mac with IOS Sierra?

    How can I remove my documents on storage iCloud, and how I can cancel with documents stored in iCloud?

    Select them and press Delete on your keyboard.

  • How can I put my documents folder in the bar of icons at the bottom of the desktop computer

    I have a Macbook Air.  I was wondering how I can transfer my documents folder on my desktop at the bottom of the screen where the other icons are placed?  Thank you!

    Open Finder and go to users > [your user name], and then drag the Documents folder to the right end of the Pier (to the right of the light vertical line).

  • I would like to know how to transfer a book bought in the shop of apple for my kobo ereader

    I would like to know how to transfer a book bought in the shop of apple for my kobo ereader

    It is not possible.  It says on each purchase page in the ibookstore what to read a book, and you will not find here of Kobo.   You must purchase your Kobo tips this ereader.   Is there an app to read stuff from Kobo on your Mac (but no application to read stuff from apple on other types of machines).

  • How to download iBook books in iCloud?

    How to download iBook books in iCloud?

    You do not have. That is what you are wanting to do, exactly?

    See you soon,.

    GB

  • How can I remove books from iCloud.

    How can I remove books from iCloud.  I sharing an apple with my children ID and they have all my books on their phones!

    You can hide from the cloud (you can't permanently remove any purchase) through iTunes on your computer (if iBooks app you are using a Mac with her on this subject): mask and unmask purchases iTunes or iBooks on your Mac or PC - Apple Support

  • How to remove a book from Mac or iPhone?

    How to remove a book from Mac or iPhone?

    Are what version of iBooks you on Mac?

    I read a bunch of discussions on trying to delete apps and books from iTunes (where books used to be), and the responses dealing with the last iTunes and iBooks basically say the same thing: can't delete anything. At least, you can't delete the old sense of deleting the file completely. Now when you 'delete' something, you're really just hide the view.

    I just tried to remove a book from the last iBooks (in El Capitan on my iMac) and the fine print in the dialog box has said very clearly that I take away the book of view, but it would still be redownloadable of the cloud. (I hope that cloud of it's Apple, not mine.) I want to manage what is in my cloud, and I don't want that it is cluttered with things that I "deleted".)

    In theory, I don't see Apple. You can just save space on a device, but be able to find the book later. But this isn't the case with me. When I delete something, I want to TAKE forever. Case in point, the book that I just deleted was one in iOS 8.3. Why I ever would want to get that now that I am using iOS 9?

    Apple seriously needs to rethink its approach to this issue. Maybe needing a second choice to confirm if you're trying to hide something or remove the cloud, or really, really want you permanently gone. But Apple is not choice. Never ever going to be I guess.

    Rob

  • How can I keep my documents private on a shared Mac?

    My partner sometimes use my Mac to print from Safari (because its Windows system is too difficult to use - hahahahaha).  How can I keep my documents safe from prying eyes?

    Buy him his own Mac.

    C.

Maybe you are looking for

  • Captain El

    I've heard good and bad things about the latest OS, El captain. Don't know if I want to take a chance or not from what I've heard about my research, so I ask. And since I'm on MacX DVD ripper, I want to assure you that I will have questions. When we

  • How do you get 3g on my iphone 4

    How to access 3g on an iphone4 IOS7.1.2 running

  • No printer available for the new Macbook Pro

    I got a new Macbook Pro 13 inch OS X El Capitan.  I used my Time Machine backup of my previous Macbook pro to get running. Everything works except printer / scan options.  When I go to system preferences / printers it says "there is no printer availa

  • Hard drive DST short test failed

    My HP Pavilion dv6-6c35dx laptop computer fails to load Windows. I ran diagnostics and got a quick access error (303). HP UEFI Diagnostics for hard drive failed the DST short test with failure code MBX47F 0006QU PXGK01 QT 60 03. Does this mean I need

  • I can not get the voltage measured by the voltmeter.

    Hello When I use the VI "Cont Acq & voltage graph - write data to the file (PDM) .vi" to view the NI PCI6251 voltage, the voltage is of approximately - 5V. However, the voltage I measured by the voltmeter of the channels on PCI 6251 is about 0. 3. al