How to re - activate page body after working on the reference page?

Dear friends,

Even now I can't reproduce the following situation in a short test script:

  1. A document is opened and the script finds the existence of a page reference 'FM-calc.
  2. If found, go to step 4
  3. If it is not found, such a reference page is copied from a template
  4. Work on the reference page: replace certain paragraphs.
  5. The user does not see that the script worked on the Ref page and call a dialoge
  6. This dialog box inserts a marker at the current location
  7. The marker is inserted in the reference page where the work has been left

How to get back to the current page of body (which is the first)?

Just put

var pgf = goCurrentDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;

before inserting the marker will not do.

Normally the user woud the cursor in the document at a specific location, and then call the dialog box: it works very well.

But this dialog box remains open when the user changes the document.

In the new document, there may be no page reference, and as a result, the script creates one.

The user clicks outside the text frame (illegal location for insertion of marker) - this can be managed with

  if (!goCurrentDoc.TextSelection.beg.obj.ObjectValid()) {
    alert ("Please place cursor in document text flow or select something!");
  return;
  }

But for switching back to work on the page Ref I have not found a solution.

Klaus,

I think that there are better ways to handle this. The user should not have to finish the work begun your script. Why not just save the original insertion / text selection before doing a job on the reference page? Then you can restore later. Something simple like:

var restoreTR = targetDoc.TextSelection;

As long as the variable remains valid (IE, stays in the scope), you can do anything you want anywhere in the file, then simply return the insertion point to this place when you are finished.  If you have actually changed the view to reference pages, you can use the CurrentPage property to switch back. So, in summary, I would do something like this:

var restoreTR = targetDoc.TextSelection;

//....  do all the wild Klaus stuff on the reference pages, then;

var bodyPage = targetDoc.FirstBodyPageInDoc;
targetDoc.CurrentPage = bodyPage;
targetDoc.TextSelection = restoreTR;
targetDoc.ScrollToText(restoreTR);

Hope this helps,

Russ

Tags: Adobe FrameMaker

Similar Questions

  • I have Win7/64. But I don't know, how I have my USB webcam to work. The cameras settle the program will not work. Please help me!

    I have Win7/64. But I don't know, how I have my USB webcam to work. The cameras settle the program will not work. Please help me!

    Thank you more:
    Steve Vidacs /Hungary

    On Monday, November 5, 2012 20:14:15 + 0000, istvanvidacs wrote:

    I have Win7/64. But I don't know, how I have my USB webcam to work. The cameras settle the program will not work. Please help me!

    You must have installed a Windows 7 64-bit driver (if it exists)
    for this. Do you have? Otherwise, navigate to the web site of the camera
    manufacturer, search, download and install it.

    Ken Blake, Microsoft MVP

  • How can I activate my biuld in cam on the top of acer desktop computer

    How can I activate my biuld in cam on the top of acer desktop computer

    The easiest way is to open a program that is able to use the webcam,

    This one has take a snapshot or a video with her.

    http://Picasa.Google.com/

    It accesses the webcam also, although it is more difficult to use,

    http://Windows.Microsoft.com/en-us/Windows-Live/Essentials-home

  • How install and run Acrobat Pro after having downloaded the trial without checking 'install '?

    How install and run Acrobat Pro after having downloaded the trial without checking 'install '?

    You can not.  You must check 'install' to install and run it.

  • How can I activate google as search engine when the homepage change option refuses to accept a change?

    I have a PC brand new. For some strange reason in the development of my machine, google home page is disabled. Instead, I get a MSN/Bing combo that the machine won't let me change. My antivirus is not a virus so I guess that some can be given? How can I activate the "current page" button?

    Go to the Options menu by clicking on the tab of Firefox (upper-left).

    Firefox > Options > Options > general
    When Firefox starts-set it to "show my Home Page".
    Then type in your desired home page.
    Click Ok and everything is done.
  • How to get a virtual camera to work? the host is Lenovo W550s running CentOS 7.1, guest is Windows 7 Professional

    With VMware Workstation Pro 11 and now 12 never got 'virtual camera' to work.  Do not find documentation, only advice, this should work, exist.

    Active host computer is Lenovo W550s running CentOS 7.1.  Camera works very well in host in CentOS in the cheese.  As a removable device, it appears as "Chicony Camera integrated".  But appears later in the guest PC Window 7 Professional.  VMware Tools in the comments are the latest version, now for VMware Workstation Pro 12.

    Any chance install USB driver for camera (not found), so not excited to get 'virtual camera' to work.

    Intended use is GoToMeeting.

    What happens when you connect the device to the prompt?

    I did a test with my laptop HP - Win7 host - player 12.0

    Guest - VMware Tools Win7 updated at the latest.

    Built-in laptop webcam shows as a "Webcam Chicony HP HD"

    First image - tooltip for the player as I hover.

    Right-click the menu actions.

    After selecting the connection (unplug the host)

    When the guest saw the unit it is passed to Windows Update to search for a driver... and he did take a few minutes... but he was installing finally successfully.

    Windows features in the comments.

    And finally a picture taken with the webcam works inside the guest.

    Rob

  • How can I activate CS6 again after changing my hard drive on a Mac (I do not uninstall beforehand)?

    Recently I change the hard drive on my mac but not to uninstall present CS6 thereon.

    How to activate it again? It was a download version of computer applications and I do not have access to my purchase on Adobe CC

    Thanks a lot for helping me

    First of all, you must have your activation published by Adobe

    Don't forget to request ONLY activation support set your number of activations

    Serial number and activation support (no-Cloud) https://forums.adobe.com/thread/2041990

    Then you install programs exactly in the same way you did the 1st time... Launch the installer and enter your serial number when asked

    .

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a way to go to a page to download the Adobe programs if you do not have a disk or drive

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2203126

  • How can I activate CS3 even after 30 days of installation?

    A few months ago, I bought Adobe PS CS3. For various reasons I couldn't install and activate this software online and there is no activation phone available for this product now. How to activate my software now?

    Learn how to enable or disable Adobe applications.

  • How can I activate Windows XP after a crash when I can't read the code of computer-based product

    Also I would upgrade but I can't get into Windows because I can't read the code of the product.  I took be cleaned as I believe somehow that I caught a virus... they made a temporary activationsl, I suppose, Windows XP because they could not read the product either code.

    I would like to contact Microsoft support. Explain your situation and they should be able to deliver a readable product key. You can get the number here

  • How can I activate Photoshop teacher after I lost my serial number?

    I'm also a graduate student as of July 2014 so no more having a student card valid?

    Check if you can get it by using this article, find your serial number fast

    ~ David

  • How can I activate my master password option in the options/securitypassword tab?

    I am opting to create a master password to protect my password used on the line. When you go to the tab options/security/words of past, I not give me the option (dimmed) check the box of the option 'remember passwords for site' and yet there are the passwords in my list. In addition, when I chose to create a master password, it allows me to check this box takes me to the creation of password screen and then offers me the 'OK' button (grayed out) when I'm done.

    I checked my anti-virus program and all other settings in Firefox and I am unable to discren why he let me not to complete this process and why I can not check the box "Remember passwords for sites", although there are passwords already in my list of "saved passwords".

    Any help appreciated.

    Dale spruce

    Make sure that you run not Firefox in private browsing mode (permanent) (don't forget the story never).

    • Tools > Options > privacy > Firefox will be: "use the custom settings for history".
    • Uncheck the box: [] "always use the navigation mode private.

    How the pref signon.rememberSignons does not appear on the topic: config page?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • How to create a git repo that works with the PG, build and PhoneGap

    PhoneGap requires a www folder, but PG build wants index.html and config.xml in the root.

    How can I create a single repo, who works for Phonegap (i.e phonegap serve cmd) but who also works with PhoneGap, built using a git source repo?

    I tried to copy the www index.html file in the root and add to my repo (and adjust active paths) but which does not work (I just get a white screen). I tried to add a blank index.html into my root with just < script > window.location.replace ('www/index.html') < /script > - which works, but cordova is not present and none of the plugins pg works.

    Is there a repo, example somewhere if I can see a layout, or it is not still possible?

    For the moment, we will have to compile with the PG, build using a zip file (which is time-consuming and error-prone) whenever we want to perform a build.

    Surely, there must be a better way?

    OK - I solved this. Apparently, the repo git don't require the config.xml and index.html file in the root, which is only a requirement of the zip upload.

    So my repo is just:

    README.md

    www (folder)

    And construction seems to work with this configuration (like phonegap running locally).

  • How to open a project, I was working in the version of the Pr Pro 2014 in the 2015 version?

    I just upgraded to the new version of Pro 2015. I went to open my previous project, I was working on and can't find it. How can I open it? Or how can I go back to the old version so I can access it? It must be bad. Been working on it forever.

    Hi Jeremy,.

    I went to open my previous project, I was working on and can't find it. How can I open it?

    You are looking for on the homescreen? Have you tried to open the project to its original location? By default, your first Pro CC 2014 project file will be in Documents > Adobe > Premiere Pro 8.0 >

    Or how can I go back to the old version so I can access it? It must be bad. Been working on it forever.

    Here's how you can install the CC 2014 version: download and install Adobe Creative Cloud applications

    Thank you

    Regalo

  • How can I get my links to work in the foot?

    It works very well in the footer in the preview function - until you click on another page and then it does not work. When I export to html files, it does not work either, when I publish it to catalyst quo does not. See my link below, what am I doing wrong?

    http://rayamajhi01.BusinessCatalyst.com/index.html

    It seems to work in IE 9.0, but not in Firefox and Chrome.

    Try to select information in the footer and "move to: Master plan" and see if it works.

    I think your Accordion widget might interfere with the footer text.

  • How can I know if private browsing works? The purple mask does not appear when I click on the mask icon. In my privacy settings "never remember" is selected.

    I'm trying to confirm private browsing works. At the moment, I have no way of knowing whether or not it is enabled. The purple mask, referred to in the help does not appear when selected. I should say in my privacy settings, I have never chosen "remember", for the story.

    Hi willpublx, when you have selected never "remember history" in the privacy options so you are actually in 'permanent private browsing mode' and that there will be an extra mask icon to indicate that.

Maybe you are looking for

  • The button "save the page under" does not

    Not much to say other than that worked yesterday and now it does not work. Thanks for any help y ' All are able to provide.

  • HP Pavilion DV6-3060SA: HP Pavilion Mouse button Pad delivers

    Hi, I got a HP Pavilion 15.6 & quot; DV6 3060sa laptop model and the mouse pad stopped working... Well it's works sometimes other times it does not work... I know it's a hardware failure that the keyboard has stopped working, I replaced it and it's p

  • Problem with safari loading

    Hello. I was searching on the web and I don't know how, but I could not load other pages. The problem is: my site camputer will complete but after that show noting loading. Only a blank page. so I opened firefox on mac, but still noting rest then my

  • Is it possible to call the Parent of a callback sequence?

    I would like to add additional logic to the my test sequence error handler. In particular, I would like to create a SequenceFilePostStepRuntimeError callback that sends the error message as an email addresses. The sending of an e-mail item is not a p

  • Communication serial port IRP_MJ_READ

    Hello, I would ask you serial port communication. I am currently apply for communication with my engine not to not (Microcon), but it does not work. If I try to connect with the original software, my serial port monitor gives me values IRP_MJ_WRITE w