Commands - selecting document body/region

DW CS3 - Background is that I have a bunch of .htm files for
which I want to add a template. I did the following:
1) Commands > Start Recording.
2) Modify > Templates > Add Template to Page.
3) I selected the template from the list and clicked Select.
4) In the Inconsistant Region Names, I selected Document
Body, then in the dropdown for where to move the content, I chose
the correct I selected the correct region and clicked OK.
5) File > Save.
6) Commands > Stop Recording.
The problem comes when I play it back on the next .htm file.
The recording goes ok until #4 where it stops. And I have to do the
rest, from selecting the Document Body on to the end.
Question - What makes it stop and how do I get it to select
the Document Body etc? I found the way to save the recording
permanently, ie name it, so that I can edit it by hand if needed as
I suspect.
Here is the pertinent part of the code that is there at
present (where it stops and won't go on to select the Document
Body):
<TITLE>AddChandlerTemplate</TITLE>
<!--
// This command was recorded by Dreamweaver MX
function runCommand()
// Apply Template: /Templates/bookchandler.dwt
dw.getDocumentDOM().applyTemplate('/Templates/bookchandler.dwt');
// -->
So, since I don't know javascript, what would the missing
commands be and where do I put it? The part where it stops has a
window title bar called Inconsistent Region Names. Under Editable
Regions, it "outlines" down to Document Body and says it's
unresolved and in the "Move content to new region" dropdown, I
choose StartHere which is the main editable region in the template
(StartHere being what I called the editable region). I've tried
clicking the User for All button but that doesn't seem to have an
affect.
Would some kind soul take pity and tell me what code should
get edited into the Command, and exactly where to put it?
I've got about 500 of these to do and don't relish doing the
balance of the macro by hand.
Thanks.

This whole plan is a bad one. Applying a template to a page
with existing
content is going to be trouble. The best way to do it is to
spawn a new
child page, copy/paste from the existing one, and save the
new one over the
old one.
> Question - What makes it stop and how do I get it to
select the Document
> Body
> etc? I found the way to save the recording permanently,
ie name it, so
> that I
> can edit it by hand if needed as I suspect.
A mouse action stops the recording. It cannot record mouse
stuff.
> I've got about 500 of these to do
Using templates on 500 files is madness, you know? But
alternatives are
going to require manual intervention as well....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"kd6kfa" <[email protected]> wrote in
message
news:[email protected]...
> DW CS3 - Background is that I have a bunch of .htm files
for which I want
> to
> add a template. I did the following:
> 1) Commands > Start Recording.
> 2) Modify > Templates > Add Template to Page.
> 3) I selected the template from the list and clicked
Select.
> 4) In the Inconsistant Region Names, I selected Document
Body, then in the
> dropdown for where to move the content, I chose the
correct I selected the
> correct region and clicked OK.
> 5) File > Save.
> 6) Commands > Stop Recording.
>
> The problem comes when I play it back on the next .htm
file. The recording
> goes ok until #4 where it stops. And I have to do the
rest, from selecting
> the
> Document Body on to the end.
>
> Question - What makes it stop and how do I get it to
select the Document
> Body
> etc? I found the way to save the recording permanently,
ie name it, so
> that I
> can edit it by hand if needed as I suspect.
>
> Here is the pertinent part of the code that is there at
present (where it
> stops and won't go on to select the Document Body):
>
> <TITLE>AddChandlerTemplate</TITLE>
> <!--
> // This command was recorded by Dreamweaver MX
> function runCommand()
> {
> // Apply Template: /Templates/bookchandler.dwt
>
>
dw.getDocumentDOM().applyTemplate('/Templates/bookchandler.dwt');
> }
> // -->
>
> So, since I don't know javascript, what would the
missing commands be and
> where do I put it? The part where it stops has a window
title bar called
> Inconsistent Region Names. Under Editable Regions, it
"outlines" down to
> Document Body and says it's unresolved and in the "Move
content to new
> region"
> dropdown, I choose StartHere which is the main editable
region in the
> template
> (StartHere being what I called the editable region).
I've tried clicking
> the
> User for All button but that doesn't seem to have an
affect.
>
> Would some kind soul take pity and tell me what code
should get edited
> into
> the Command, and exactly where to put it?
>
>
> I've got about 500 of these to do and don't relish doing
the balance of
> the
> macro by hand.
>
> Thanks.
>

Similar Messages

  • Change the class and type in javascript or select statement of region

    Application Express 3.2.0.00.27
    I have a manually created tabular form where I need pk to be updatable or not not updateable depending on whether its a new record or not.
    I am attempting this thru 2 different ways.
    1st:
    using decode in select statement of region:
    SELECT decode(c001,NULL,APEX_ITEM.POPUP_FROM_LOV(15,c001,'AUTH_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f15_' || '#ROWNUM#'),
    apex_item.display_and_save(15,c001,'f15_'|| '#ROWNUM#')) authid,
    apex_item.hidden(16, c002, NULL,'f16_'|| '#ROWNUM#') empid,
    -- apex_item.display_and_save(16,c002,'f16_'|| '#ROWNUM#') empid,
    apex_item.date_popup(17, rownum, c003, 'DD-MON-YYYY',20,2000,NULL,'f17_' || '#ROWNUM#')deldate,
    apex_item.textarea(18,c004,5,40,NULL,'f18_'|| '#ROWNUM#') "Delegation scope",
    apex_item.textarea(19,c005,5,40,NULL,'f19_'|| '#ROWNUM#')"Delegation limits",
    apex_item.select_list_from_lov(20,c006,'YESNO_LOV',NULL,'NO','N','%','f20_'|| '#ROWNUM#')"ORA Signed",
    apex_item.date_popup(21, rownum, c007, 'DD-MON-YYYY', 20,2000,NULL,'f21_' || '#ROWNUM#') "Del expiry",
    apex_item.date_popup(22, rownum, c008, 'DD-MON-YYYY', 20,2000,NULL,'f22_' || '#ROWNUM#') "Date removed",
    apex_item.textarea(23,c009,5,40,NULL,'f23_'|| '#ROWNUM#') "Delegation comments",
    apex_item.POPUP_FROM_LOV(24,c010,'DELEGATION_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f24_' || '#ROWNUM#') "Delegator",
    apex_item.display_and_save(25,c011,'f25_'|| '#ROWNUM#') status,
    -- apex_item.display_and_save(26,seq_id,'f26_'|| '#ROWNUM#') seq_id,
    apex_item.hidden(26, seq_id,NULL,'f26_'|| '#ROWNUM#') ||
    apex_item.checkbox(27, seq_id,NULL,NULL,':','f27_'|| '#ROWNUM#') chkbx
    FROM apex_collections
    WHERE collection_name = 'DELEG_COLL'
    AND c011 IN ('O','N','U','D')
    --order by c001However this approach yields this error when I try to pick a value from the lov:
    Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
    My other approach is to attempt to change the type and class in javascript. I am trying this but I get an error when I attempt to change the class and type like this:
    <script type="text/javascript">
    <!--
    /* Client side validation on the Salary column */
    function changeProp(pCol) {
       var elms = document.getElementsByName(pCol);
       for (i=0; i< elms.length; i++) {
    /*       elms.style.backgroundColor = 'yellow'; */
    if (elms[i].value == null || elms[i].value == '%null%'
    || elms[i].value == '') {
    elms[i].class = 't20data';
    elms[i].type = 'hidden';
    alert('The value is' + elms[i].value);
    //-->
    </script>

    not completely duplicate...here in this thread I am stressing what I am trying to accomplish and asking for help on the javascript side.

  • How can I edit imported audio track? After selecting and deleting region and joining remaining parts, it keeps playing the track with the deleted part! What am I doing wrong?

    How can I edit imported audio track? After selecting and deleting region, and joining remaining parts, it keeps playing the track with the deleted region!
    What am I doing wrong?

    After selecting and deleting region, and joining remaining parts, it keeps playing the track with the deleted region!
    What am I doing wrong?
    How exactly are you doing this?
    When I cut out a part of an audio region, then drag the remaining parts together, so they are touching, the track will skip the cut out section when playing the file.  Also, if I select the remaining parts of the region and use the command "Edit > join regions". This will create a new audio file with the cut out part deleted.
    You should see this prompt, when you are joining the regions:

  • Replacement for document viewer region

    Hello,
    i used document viewer region to display PDF document in oaf page. It works fine but I don't want to see the drop down to select the format type and export button. Is there any way to embed PDF in oaf without using document viewer region? what is the logic behind it?
    Thank You!
    k-k

    Hello,
    i used document viewer region to display PDF document in oaf page. It works fine but I don't want to see the drop down to select the format type and export button. Is there any way to embed PDF in oaf without using document viewer region? what is the logic behind it?
    Thank You!
    k-k

  • CAN USE COPY COMMAND INSIDE PROCEDURE BODY

    Hi all
    can we use COPY command inside procedure body like this
    CREATE OR REPLACE procedure USER2.PRO1
    Begin
    execute immediate'copy from hr/hr@ERP to USER21/PASS@DB1 append user2.per_images using select * from hr.per_images';
    commit;
    end;
    YOU ADVICE PLEASE

    My advice is to check the manual.
    SQL*Plus COPY command
    http://download.oracle.com/docs/cd/B28359_01/server.111/b31189/ch12016.htm#i2675035
    SQL manual index
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/index.htm
    PL/SQL manual index
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/index.htm
    CTRL-F on the last two for COPY and it appears not.

  • How to adjust the size of the document body in Pages

    Hello all,
    I would like to find out how to change the size of the document body within Pages.
    I encountered this problem when selecting Business Resume from the templates section and after removing the left text box I could not move the main text body to the left, although document margins where set to 0.
    As you can see in the photo the section that says Profile can not be moved to left more than it already is.
    I would appreciate your help
    Thank you

    Several of the Pages 5.5.2 templates are buggy, you have found one of them.
    Create a template from scratch using the Blank tempalte.
    Peter

  • I creating firefox extension when add this into firefox all works right but when i open a new link show a dialog box with message "Error: document body is null"

    I am creating firefox extension (No error in extension because it work fine in chrome). But it show box with error "Error: document.body is null" why

    Thanks for reply cor-el &jscher2000
    i am not using "window.content.document.body".
    we send some screenshots for understanding problem
    i created this extension for firefox, chorme
    It Works fine in chrome but in firefox show error(Which have no effect on my extension or other browsing).

  • Incorrect doc.no.: select document number between 82139259 and 000000000

    Hi Expert,
    When i try to to Release to Accounting t for a Billing Document (VF02)-->Change Billing Document --> Release to Accounting, It is not creating accounting Document instead it Says the Below Error.Pls Help to resolve this.
    Incorrect doc.no.: select document number between 82139259 and 00000
        Message no. F5151
    Diagnosis
        The document number you specified, "&v1", is not in the ap
        number range. The number range is dependent on the documen
        The exception to this rule is formed by recurring entry do
        must use number range 'X1' and sample documents, which mus
        range 'X2'.
        Possible reasons for this error message are:
        o  You have entered an incorrect document number.
        o  An incorrect document number was transferred to this ap
           during an update from another application (e.g. CO).
    System response
        The document cannot be processed any further.
    System response
        The document cannot be processed any further.
    What to do
        o  Enter a document number that is within the specified number interval.
        o  If this error was caused by an update from another application, check
           the type of number assignment in that application (external or
           internal?) as well as the document number transferred.
    Example
        In the CO settlement profile, a document type with external number
        assignment was entered, whereas an internal document number was
        transferred.
    PLs Help
    Zubair
    Edited by: MhdZubair on Mar 22, 2011 10:42 AM

    Hi,
    Please refer the link :
    Incorrect doc.no.: 2. Select document number between 6300000000 and 6399999
    Regards,
    Pramitha.

  • Incorrect doc.no.: 24. Select document number between 0090000000 and 009999

    Hi All,
    I created billing doc, it save and gave the number but with error on account determination, i checked the no range corrected it and got the error: Incorrect doc.no.: 24. Select document number between 0090000000 and 0099999999.
    Please Help.
    Maureen.

    I very much hope you've done it in a test system.
    It seems that your document was given number 24, according to the number range that existed at that time. Then you went and changed the number range to 900000... and, naturally, number 24 is not within the valid range anymore. So what else did you expect?
    If it was (fingers crossed) a test system, just forget about that document and create a new one. Otherwise you'll have to change the range back, then cancel the document 24 (make sure the cancellation does not post to accounting either), then change the range again.

  • BD87 - IDOC Inbound - Incorrect doc.no.: &. Select document number between

    Hi to All,
    I have a problem with my IDOC, Incorrect doc.no.: 1137325122. Select document number between 4061000000 and 4061999999
    I checked FBN1 for company code '750' object 2Z  has number range
    No           Year          From                         to
    2Z     9999     4061000000     4061999999
    but in IDOC wrong document number is being generated eventhough in debugging mode 2Z is being used.
    Hoping for your Help
    Thanks,
    Raizen

    Hi,
    Please refer the link :
    Incorrect doc.no.: 2. Select document number between 6300000000 and 6399999
    Regards,
    Pramitha.

  • Document Viewer region not rendered

    Hi,
    Document Viewer region not rendered in one of the OA page. Following is the code added add the Document Viewer region in the parent page:
    <oa:header id="XDOCommonRN" extends="/oracle/apps/xdo/oa/common/webui/DocumentViewerRn.MainRegion" securityMode="selfSecured"/>
    This works fine in one environment and does not work in other. Please suggest what could be the reason? Is there a profile option which controls the visibility of Document Viewer region?
    Thanks
    Sanjeeva

    Hi,
    Document Viewer region not rendered in one of the OA page. Following is the code added add the Document Viewer region in the parent page:
    <oa:header id="XDOCommonRN" extends="/oracle/apps/xdo/oa/common/webui/DocumentViewerRn.MainRegion" securityMode="selfSecured"/>
    This works fine in one environment and does not work in other. Please suggest what could be the reason? Is there a profile option which controls the visibility of Document Viewer region?
    Thanks
    Sanjeeva

  • HT2500 upgraded to maverick and "mail selected document" is missing

    how do i email a selected document as after upgrading to maverick, the option to allow an open document to be emailed is now not available

    Look on the toolbar for the Share icon.
    If it's not there add it (Customize Toolbar)

  • Selective Document Printing

    Hello All!
    I wonder if there are any plans on adding a feature to the new SAP upgrade which would allow selective document printing.
    What I mean is it would be great, when printing a batch of AR Invoices for example, to be able to select not only a date range and/or a document range but also some other fields like a sales employee or a particular customer, etc.
    Thank you,
    Michael

    This date has not relation to your posting date.
    The 03/13 is the check date.  Your transactions are still from your February date range.
    You created the checks today and a check needs to have a date on it and this 03/13 is the date that will be printed on the check
    By default the date you process the checks will be the date check date.
    Posting Date is nothing but the date the transaction / JE is posted on.
    Suda

  • Design view screen does not display body region

    I was working in Dreamweaver 5 using the split screen.  I was updating a page in the code view and during the work the design view screen stopped showing the editable body region.  I only see the template fields which I cannot change of course.  I may have clicked something by accident on my laptop, but not sure.  Other pages show the body region in design view fine.  The page displays fine in browsers.  How do I get the design view to show the whole page?

    I tried your suggestion.  I had to create a blank page to do it, but no luck.  It is the only page that does not display the the body region.  I can't help but think I "set" something to change the view properties but cannot find what is different.  FYI - Here is the page as it currently exists on the web.
    http://riedmannfamily.com/adamriedmannfamily.html
    Here is a screenshot - no EditRegionBody shows

  • "select your country/region" in PE9?

    Why does the  "select your country/region" window come up every time I open my PE 9?
    It is quite annoying, you would think once I tell it that upon installation it should accept that and not ask it again and again  and again!

    Hello Sue,
    Thanks for the information.  I had found the .ini file and added the country
    information but it didn't solve the problem.  Yes, I have tried reinstalling
    the program.  I used Revo Uninstaller at its highest level to remove all
    remnants of the program.  I then went into the Registry and removed every
    reference to Adobe Photoshop Elements.  I did computer-wide searches and
    removed anything associated with Adobe Elements.  I then downloaded a fresh
    copy of the program and installed it.  Still no success!  It helped with
    other problems (Organizer being very sluggish, especially in Folders view)
    but did not affect the Country/Region problem.  So, I don't recommend
    reinstalling as a solution to our problem.
    I learned something yesterday which may(?) have a bearing on this issue.  I
    was unable to sign into my Adobe Account due to an ID/Password issue and
    learned that when I opened my account I left the "T" off my email address
    (.ne instead of .net).  They had to move the problem to the next level to
    get it resolved and I'm supposed to hear something next week.  I am
    wondering (perhaps in ignorance) if this could be causing the Country/Region
    problem?  Perhaps my computer needs to communicate with Adobe to select the
    correct Country/Region.  Who knows? I guess I will see when they resolve the
    ID issue.
    Best Regards,
    Perry

Maybe you are looking for

  • HP officejet Pro L7580 ink cartridge problem

    I have read some other posts from people that seem to be having this same problem, but have not seen any answers on how to fix it.  I have recently bought a new ink cartridge that contains both the black and yellow ink.  When I put the new cartridge

  • I get an error message when trying to transfer iMovie folders

    in FCE i go file > import > folder then Movies > iMovie Events > Select Folder then i get the error message so far i'm getting rather irritated. not only was i ripped off on my camcorder purchase by a Big-Name NYC store i'm finding out that my camcor

  • I lost audio on my imac

    I lost audio thru imac speakers and mic, what should i check?

  • Estimated time for a query execution -- URGENT PLEASE

    Hi, I am interested in knowing the time of execution of a query before actually running it. Is there any stored procedures/methods that gives us this feature. Thanks.

  • Ebcdic to ascii file translation woes

    I am trying to convert an ebcdic file into an ascii file but i am running into some difficulties. The translation works fine, but it outputs everything onto one line when opened up in notepad on NT, with a symbol "ٱ" where a new line should be. When