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;
          }
      }
    }

Tags: Adobe FrameMaker

Similar Questions

  • XY-Graph / plot of legend: how to detect changes in the 2nd/3rd/4th... placement of the legend

    Hello

    I have an XY Chart with 4 slots. How can I detect, for example, the color of the second plot change in the legend. Active plot, using a property node, is always drawn 0. So I'm not able to detect changes in the 2nd/3rd... plot.

    Any ideas?

    Thank you very much.

    Best regards

    Michael

    You can do it with a structure of the event.

  • Detect changes in the Indesign document

    Hi all

    Is it possible to detect changes in the Indesign document? Any help will be appreciated.

    -Thanks in advance

    Learn about the architecture of the events.

    Substances

  • How to synchronize changes in the iMac to an external flash drive

    Without using a 3rd party application, is it possible to synchronize changes made to my iMac documents and data on an external drive such as a flash drive? I use Time Machine, but I want to connect via a usb cable flash drive in the iMac, such as changes I made one of my documents will automatically flash player to activate and make the same changes on the documents that are in the flash player.

    Not as part of the OS x Time Machine does not have a mirror copy of the backup computer. So what you have is just a backup that can be restored using the application Time Machine.

    There are many utilities of third parties who may perform scheduled backups, incremental reflecting the main hard drive.

    Recommended backup software

    1 Carbon Copy clone

    2. get backup

    3 already seen

    4 superDuper!

    Visit The FAQ XLab and read the FAQ on the backup and restore.  Also read How to back up and restore your files.

  • the hard drive of my computer is purchased full.i a drive.how external hard change outside the primary disk so I can download music easily?

    the hard drive of my computer is purchased full.i a drive.how external hard change outside the primary disk so I can download music easily.right now my external backup just my computer that isn't doing me good

    original title: external hard drives

    You don't want to change your external drive to your main drive.

    You can move your music files on the external drive - or you can move other data on the disk to make room for your music on the internal drive.

    What applications do you use to play music?

    As described in the first link below, you can move your full "My Documents" folder on the external drive.  Alternatively, you can simply move your music files.  If such an arrangement would give you a satisfactory performance, however, depends on how your external drive is connected (for example, USB 1.1, USB 2.0, USB 3.0, eSATA, Firewire, network) and other hardware features of your computer.

    Not all of the following conditions will be applied to you, but some of the tips can be useful.

    There are a number of things you can do to- temporarily - free up disk space.  The only real solution, however, is to get a bigger internal hard drive.   You can move the data to your external drive, but if it's the data that you use frequently, slower access times may annoy you.  Therefore, I do not recommend that you move your My Documents folder in its entirety on the external drive, but you can certainly do this by following the related instructions.

    • You can run Disk Cleanup (start > run > cleanmgr > OK)
    • You can reduce the size allocated for the restoration of the system to about 1 GB (right click on desktop > properties > system restore > settings)
    • You can disable hibernation (if you don't use it) (right click on an empty spot on the desktop > properties > screen saver > power > Hibernate)
    • You can disable the indexing of the drive, which will also speed up your computer a bit (http://lifehacker.com/031440/turn-off-indexing-and-speed-up-windows-xp)
    • You can reduce the size of your Internet browser cache (depending on the browser that you use)
    • You can remove most of the $NTUninstallKBxxxxxx files $ following the directions here: http://windowsxp.mvps.org/Hotfix_backup.htm (read the warnings in the gray box first)
    • See also:

    " How to recover disk space on Windows Server 2008 and Windows XP computers? ."

    " Forty ways to free disk space ."

    But none of these answers you will earn really large amounts of space for very long.  The term solution time is a bigger hard drive.

    In the meantime, download and run JDiskReport, that will show you graphically what files take up more space and seem to so indicate what files you must move it to your external drive.  If you want to move an application, you will need to uninstall and then reinstall it specifying your external drive as the installation location.  You can not simply move the files.

  • How can I change word pdf document in acrobat trial XI?

    How can I change word pdf document in acrobat trial XI?

    Hi joleenm54529481,

    If you have a Word document, you'll want to edit it in Word. If you have a PDF file that you want to change, then you can do it in the trial XI Acrobat you have installed. Here are a few good help articles that will will give the basics you need to know about editing PDF files in Acrobat: https://helpx.adobe.com/acrobat/topics/editing-pdfs.html

    Please let us know if you have any additional questions.

    Best,

    Sara

  • How to detect changes to stop Oracle

    Hello

    I have a question on how Oracle detects data committed themselves and stop this datafle...

    Scenario - 1
    -----------------
    session 1
    ------------
    Suppose that a Transaction_1 started at 08:30 that contains a select as "SELECT * FROM TABLE" (assuming this query will run for 15 minutes - time to end execution will be 08:45).
    session 2
    -------------
    Then another session, I changed some of the values of the same table (Transaction_1), and I watched the change at 8.35 AM and also comiitted those
    changes at 08:40.

    As we know each statement is view coherent reading, and each instruction is associated with the number of SNA. Select start of session 1, it will read the data block / who
    a number less than SNA number associated with the statement select Yvert.

    As the session 2, I modified some data block, so updated the block displays the highest number of SNA SNA number associated with SNA to select session 1
    In this case updated block with plu Yvert that select associate SNA session 1, will be read / reconsructed the tablespace undo to give a coherent picture of data to
    the selection running on the session 1.

    My question is "how coherent reading that happens in the case the other way around? (let me explain in scenario 2)

    Scenario 2
    --------------

    session 1
    -------------
    at 8:30 I have modified the contents of the table and do not put an end to the transaction (committed or cancelled neigther)


    session2
    -----------
    08:35, I play a select on the table changed on the session 1.

    In this session, only committed changes will be picked who did the select query to boot.

    My question is, in this case, how oracle detects changes contains who did before SNA of select statement.

    Thank you

    user9085814 wrote:
    Hello

    I have a question on how Oracle detects data committed themselves and stop this datafle...

    Scenario - 1
    -----------------
    session 1
    ------------
    Suppose that a Transaction_1 started at 08:30 that contains a select as "SELECT * FROM TABLE" (assuming this query will run for 15 minutes - time to end execution will be 08:45).
    session 2
    -------------
    Then another session, I changed some of the values of the same table (Transaction_1), and I watched the change at 8.35 AM and also comiitted those
    changes at 08:40.

    As we know each statement is view coherent reading, and each instruction is associated with the number of SNA. Select start of session 1, it will read the data block / who
    a number less than SNA number associated with the statement select Yvert.

    As the session 2, I modified some data block, so updated the block displays the highest number of SNA SNA number associated with SNA to select session 1
    In this case updated block with plu Yvert that select associate SNA session 1, will be read / reconsructed the tablespace undo to give a coherent picture of data to
    the selection running on the session 1.

    My question is "how coherent reading that happens in the case the other way around? (let me explain in scenario 2)

    Scenario 2
    --------------

    session 1
    -------------
    at 8:30 I have modified the contents of the table and do not put an end to the transaction (committed or cancelled neigther)

    session2
    -----------
    08:35, I play a select on the table changed on the session 1.

    In this session, only committed changes will be picked who did the select query to boot.

    My question is, in this case, how oracle detects changes contains who did before SNA of select statement.

    The block is checked in correlation with the table of transaction if there of what the status of the transaction. Mind that when you post, the information is the first recorded in the transactions table that the block can be there in the buffer cache or maybe not (checkpointed). If there is no Commit not recorded in the table for the block, it is called uncommitted.

    Aman...

  • How can I change/edit the ' available in the ' number on my apple phone id account information?

    How can I change/edit the ' available in the ' number on my apple phone id account information?

    Hello

    Go down from page apple ID itunes homepage

    Click on which go to your account to make changes.

    See you soon

    Brian

  • How do I password protect the document HTML library or individual files which are: IE: pictures etc?

    How do I password protect the document HTML library or individual files which are: IE: pictures etc?

    In Windows there is no password protection.

  • Detect changes in the user interface of the page

    I have a sheet with several fields on this subject.

    When the user presses the button close to the sheet, I want to check if the user has made changes in this case I will display a confirmation dialog box before you close the sheet and ignoring the changes.

    Is there a way to detect changes on the sheet or page of the world?

    On the old BBOS based on Java, there was a Screen.isDirty () method that could be used for this purpose:

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/UI/screen.html#IsDirty%28%29

    No, it isn't.

    What you can do is hang the onTextChanging of each signal and update a global variable to indicate that there has probably been a change.

    The way I did however was subclass controls and make control by slot of this signal if the text had in fact changed then my own signal indicating that there was a specific change.

  • How to get TableId in the Document by FDK?

    My Code getting Table, but it does not work.

    He can only get a cell contained = "Source of FrameMaker Item.

    This content does not exist in my table.


    tableId = F_ApiGetId (0, DocId, FP_FirstTblInDoc);

    While (tableId) {}

    firstrowId = F_ApiGetId (DocId, tableId, FP_FirstRowInTbl);

    so that {(firstrowId)

    Rad_error_nocontent = F_ApiGetId (DocId, firstrowId, FP_FirstCellInRow);

    so that {(Rad_error_nocontent)

    Rad_error_nocontent = F_ApiGetId (DocId, firstrowId, FP_NextCellInRow);

    }

    firstrowId = F_ApiGetId (DocId, tableId, FP_NextRowInTbl);

    }

    tableId = F_ApiGetId (FV_SessionId, DocId, FP_NextTblInDoc);

    }

    }


    How to get TableId in the Document by FDK?

    diatranthanhoa,

    I do not understand your question. But if you try to browse all the cells of each table, you have errors in your code. These are common mistakes. The errors are:

    -FP_NextTblInDoc is a property of a table object, not the document

    -FP_NextRowInTbl is a property of a line object, not the table

    -FP_NextCellInRow is a property of a cell, not the line object

    So, I have maturities adjust your code as follows, noting that I didn't test this:

    tableId = F_ApiGetId (0, DocId, FP_FirstTblInDoc);

    While (tableId) {}

    firstrowId = F_ApiGetId (DocId, tableId, FP_FirstRowInTbl);

    so that {(firstrowId)

    Rad_error_nocontent = F_ApiGetId (DocId, firstrowId, FP_FirstCellInRow);

    so that {(Rad_error_nocontent)

    Rad_error_nocontent = F_ApiGetId (DocId, Rad_error_nocontent, FP_NextCellInRow);

    }

    firstrowId = F_ApiGetId (DocId, firstrowId, FP_NextRowInTbl);

    }

    tableId = F_ApiGetId (DocId, tableId, FP_NextTblInDoc);

    }

    }

    Hope this helps,

    Russ

  • How to edit text in the document to PDF in Acrobat Pro 11 Mac?

    How to edit text in the document to PDF in Acrobat Pro 11 Mac? I know that I can do in the Windows version, but can not find the same tool on Mac.

    On a Mac, click the Customize (above the Tools menu button) button and select default tools.

  • How can I change/remove the adminRoles in my workflow

    Hello
    How can I change/remove the adminRoles for some users in my Windows Firewall? I think my code bellow is correct, but adminRoles do not change after that that it is executed. I am able to assign the first customer with this code, but not change/remove adminRoles next. Is necessary a specific view?
    <Activity id='2' name='action'>
            <Action id='0' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkoutView'/>
              <Argument name='type' value='User'/>
              <Argument name='id' value='user123'/>
              <Argument name='subject' value='Configurator'/>
              <Argument name='authorized' value='true'/>
              <Return from='view' to='user'/>
            </Action>
            <Action id='1'>
              <expression>
                <block>
                  <set name='user.waveset.adminRoles'>
                    <list>
                      <s>IT</s>
                    </list>
                  </set>             
                </block>
              </expression>
            </Action>
            <Action id='2' name='checkin User' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkinView'/>
              <Argument name='view' value='$(user)'/>
              <Argument name='subject' value='Configurator'/>
              <Argument name='authorized' value='true'/>
            </Action>
            <Transition to='end'/>
            <WorkflowEditor x='256' y='256'/>
          </Activity>
    Thanks for help


    Petr

    Hi Peter,

    Set rather * use .accounts [Lighthouse] .adminRoles *.

  • How to detect BIS support the change?

    Hello world

    I work and test network events manages the real device. I tried to detect the moment where we get actually BIS taken in charge and when we lose it really. Whenever you have granted with a new RIM service, a network event is launched and captured by your camera in the eventOccured() of the GlobalEventListener interface method.

    When I did not warn service RIM yet and I subscribe to a RIM service can I get BIS support channel at the same time. You can send an http request via the BIS mode then and it will pass through. Instead if you do not inform service RIM of your HTTP via BIS will fail and you will have to try again via another channel like WAP for example.

    My question is: How do I know if I just got with the support of channel BIS? There are some methods such as

    CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_BIS_B)
    

    But this always return the same answer: cover just enough even when you're not on granted with the support of BIS.

    So, if anyone knows how to detect this status change, I would be very grateful to meet with her

    Thanks in advance for your answers.

    ++

    Check this.

    This could help you.

    What is - Network Diagnostic tool

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

    Cheers!

  • How can I save information on a cd - rw and be able to make changes to the documents instead of read-only

    I'm trying to save the information from my laptop to a CDRW. But it wont let me make changes, says that this is a read-only.

    Hi GracieGritton,

    It is not possible to make changes on the data stored in the CD. You must copy the data to the laptop, and then make the necessary changes. You can also make the changes before saving the data to a CD.

Maybe you are looking for