SCRIPT : width identical on all pages
I am working on a SAP Script .
I made the changes in the Script editor and saved, However when i try to activate the SCRIPT FORM it is giving a message "Page PAGE1 window MAIN: width is not identical on all pages".So the Script form is not getting activated..with out which my changes will not b reflected in the out put.Please tell me how can i make the width identical on all the pages.
No, you can't select all items on all pages at one time. You could select all items on 1 page, and then do an operation; you can repeat with all items on each page.
But really, it sounds like you need to change how you do a data merge. You can use data merge to put multiple items on 1 page, it will repeat and create a new set of frames for each record. Check out some tutorials on that. Here's an old one using CS3: http://www.youtube.com/watch?v=YD_O8751Cc8
Similar Messages
-
How can I get my Indesign script to apply to all pages in the document?
My script (java) shown below will only apply to the first page of the document. How can i get it to apply to all pages of my document? What am I missing? Thanks.
scirpt:
myDocument = app.activeDocument
with (myDocument.pages.item(0).marginPreferences){
columnCount = 1;
//columnGutter can be a number or a measurement string.
columnGutter = "0";
bottom = "0"
//When document.documentPreferences.facingPages == true,
//"left" means inside; "right" means outside.
left = "0"
right = "0"
top = "0"
inside = "0"Hi,
You have to iterate through all pages.marginPreferences:
var
myDocument = app.activeDocument,
allPagesMaPref = myDocument.pages.everyItem().marginPreferences,
curPageMaPref;
while ( curPageMaPref = allPagesMaPref.pop() )
with (curPageMaPref) {
columnCount = 1;
//columnGutter can be a number or a measurement string.
columnGutter = "0";
bottom = "0"
//When document.documentPreferences.facingPages == true,
//"left" means inside; "right" means outside.
left = "40"
right = "0"
top = "0"
inside = "0"
Jarek -
Hello all,
The below code creates the custom action script link. however this is executing for all the pages.
I want to execute only to list not on all the pages. How i can acheive this. Please help
var context =
new SP.ClientContext.get_current;
this.oWebsite = context.get_web();
var collUserCustomAction =
this.oWebsite.get_userCustomActions();
var scriptLink = collUserCustomAction.add();
scriptLink.set_name('Welcome');
scriptLink.set_title('Welcome');
scriptLink.set_description('Welcome to new custom script Link');
scriptLink.set_location('ScriptLink');
scriptLink.set_scriptSrc('~Site/Scripts/test.js');
scriptLink.set_group('');
scriptLink.update();
NavaneethThen Edit the list page add the script editor web part on the page . Copy the paste the script. Now it will affect the list only. Or else in your script just validate the list id.
Ravin Singh D -
Open all pages in a PDF and save them as sequential files
I'm trying to make a script that will open all pages in a multi-page PDF and save them as sequential files, but I have had no luck with the simple script in the "Adobe Ilustrator CS5 Reference: JavaScript".
there example to open a PDF to a designated page does not work for me in Illustrator CS 5.
// Opens a PDF file with specified options
var pdfOptions = app.preferences.PDFFileOptions;
pdfOptions.pDFCropToBox = PDFBoxType.PDFBOUNDINGBOX;
pdfOptions.pageToOpen = 2;
// Open a file using these preferences
var fileRef = filePath;
if (fileRef != null) {
var docRef = open(fileRef, DocumentColorSpace.RGB);
if anyone can get me on the right path it would be appreciated.Hi DuanesSFK,
you can open a PDF page on this way (tested with CS3 and 5):
//OpenPDFpage2.jsx
var uILevel = userInteractionLevel;
app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
// Opens a PDF file with specified options
var pdfOptions = app.preferences.PDFFileOptions;
pdfOptions.pDFCropToBox = PDFBoxType.PDFBOUNDINGBOX;
pdfOptions.pageToOpen = 2;
// Open a file using these preferences
//var fileRef = filePath;
var fileRef = File("~/Desktop/YourOwn.pdf");
if (fileRef != null) {
var docRef = open(fileRef, DocumentColorSpace.RGB);
app.userInteractionLevel = uILevel;
To open all pages you have to loop through all pages etc.
Easier for you:
Search here in forum for the "open pdf" script (I don't know the exactly name, it was written by CarlosCanto, ) This should always work for you.
Have fun -
Best way to make a menu that shows up on all pages and that's easy to add links to later?
Hi everyone, first post on the forums. I am very new to using Dreamweaver and making web pages in general, so bear with me
Here's what I want to do:
1. Make a web site with a menu bar on the left with about 30 links.
2. All 30 links go to different pages on the same website, and each page has the exact same layout, only the body text is different (same placement of advertising, menu, etc.)
3. I want to be able to add links to that menu quickly and easily.
In other words, I basically want to just make one static menu that shows up the same way on each page of my site.
Now, how I am thinking is best to do this is to make one menu its own page (in its own frame??) and just have each page on my site link to that menu, so that whenever I want to update the menu, I don't have to update the static menu on each page of my website, only the one menu.html or whatever.
This is probably the easiest thing in the world to do and I'm probably not using the proper terminology or anything, but I hope that I have explained myself clearly.
Please respond if you have any ideas about how to accomplish this. Thank you!While Breqent is right that server side includes are the best way of doing this if you aren't up on
server side coding then you can use Dreamweaver to manage you menu.
You do this by simply ensuring you never edit the menu area on any individual page.
It should therefore be identical on all page and as such you can just use find and replace across the entire site or folder to edit all occurances of your menu.
I hope this helps.
Andy
Best Reception -
HTML website, SWF do a load animation only once. Same file used on all pages?
Hey all,
Just going through some thinking here. My HTML website is
going to using a flash header and navigation. Now I will be using
the same swf's on all of the pages across the site. I would like to
play a loading animation only on the first time the swfs are
loaded. Is there a way to do this? Or because I am using the same
swf's will it be okay to just tell my mc to go sit on a specific
frame and because it is in the cache each page will be using the
same file so the mc will still be at that frame or???
And help would be nice...While Breqent is right that server side includes are the best way of doing this if you aren't up on
server side coding then you can use Dreamweaver to manage you menu.
You do this by simply ensuring you never edit the menu area on any individual page.
It should therefore be identical on all page and as such you can just use find and replace across the entire site or folder to edit all occurances of your menu.
I hope this helps.
Andy
Best Reception -
How to change the address to new address for all pages in a script
i created a script for my website against an IP address
now i have to run the same script of web site against new IP address
can i change programmitically the old ip address of all script pages to new ip address?
or should i go manually by opening each and every page address properties and changing it to new ip address.
any suggestions
my visual script is having around 75 pages.
having a visual script with that many pages is best practice?
thanks in advanceHello Pasumarthi,
If I understand your question correctly, the address contains an IP address that you need to change for the 75 pages..
If you change the first address in the page, save the script and re-run the test this should fix the remaining 74 pages.
ex: http://192.168.2.1/index.html (Old)
http://202.116.25.1/index.html(New)
If the url example above is this task you are going to resolve, this will take care of your issue.
If you have 75 scripts that need the URL changed, and you have upgraded to 8.20, you can use the script updater utility to do this.
Please let me know if this resolves your issue.
Best Regards,
Jim -
How to include a common java script in all pages to prevent browser closure
We have already implemented a script to prevent accidentally browser closure. The script has been included in a js static file and loaded in APEX 4.01.
There is a way to make the script available to all pages without including it in all pages ?
Ad example to make an item available to all pages is sufficient to include it in page 0 there is somethings similar for java script
Txs
Giuseppe.Reference the script via a <tt>script</tt> element in the Header section of utilised page templates.
-
Listing (for further action) all page items that have a certain script label
hello from France,
Well the question is essentially in the subject line: how to find and work on all page items of a document (or a page/spread) that have the same script label (or better: whose script label contain the same word)?
I tried some variations around something like that, with no results:
set list_pageitems to every page item of page i whose label is "product"
Any clues?
Thanks for your help
VincentI found the answer (for those who might be interested), but still have a question (for those who know).
The solution:
set list_pageitems to page item "product" of page i
If you want to do it for a whose document (in may case, deleting some page items):
delete page item "product" of document 1
Strange syntax but it works :-)
The remaining question:
How to find page items whose label contains a certain string: it would be like selecting page items by tags (every word of the script label would be considered as a tag)?
Thanks -
Edit JS Script CS4 (Add XML Tags All pages automatically)
Hi, all Scripter
I have a javascript for add xml tags (ETMV2 Pearson, InDesign CS4). We have select my powermath equation data then run script. Script automatically insert xml tags both side (open/close). But we select one by one then run script its time taking.
var d=app.activeDocument,
root=d.xmlElements[0],
ie = root.xmlElements.add("inlineequation", app.selection[0]),
im = root.xmlElements.add("inlinemediaobject", ie.texts[0]),
to = root.xmlElements.add("textobject", im.texts[0]);
to.xmlAttributes.add("role", "xpressmath");
Example 1: My powermath equation data (InDesign CS4)
[&x^{2}+y *frac*{1}{2x}&]
Select powermath equation data then run javascript below mention. Script insert xml tags.
<inlineequation><inlinemediaobject><textobject>[&x^{2}+y *frac*{1}{2x}&]</inlineequation></inlinemediaobject></textobject>
Its time taking and select one by one
Result:
My main concern is that is this possible script find open [& and close &] all poermath equation data automatically then insert (add) xml tags all pages.
Thank/Regard
snegigHi,
John Hawkinson thank you so much your suggestion.
I am new this type of discusion (on this page). So i think anybody could not replay my answer. So i repost my question.
I want insert tags in my Indesign CS4 files. Is this posible when i select my powermath equaiton then run script. Script add tags automatically before/after my equation. Please ignore IDML word.
Yes i an comfortable with XSLT presently i working with Pearson ETMV2.
I have one more question when i past my snapshot its appear properly but when i agin see my commant then my snapshot disappear (see small blue rectangle).
Thank you John again i am new in this industry please guide.
snegig -
A script to make all page references into hyperlinks
Hi,
I have a customer request to make all pages references into hyperlinks.
For example: when you see in the text of the PDF "page 4", you can click on it and move to page 4. This of course can be done manually with InDesign. The problem starts when you have whole load of them. In addition to that, I have this project as a book, with several different documents...
I used the script "Automatic hyperlink of each word in a file" from http://www.nobrainer.dk/automatic-hyperlink-of-each-word-in-a-file/ as a base, and modified it for my porpuse. Currently it still produces errors. Any idea what's the bug?
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var myHyperlinkStyle = myDocument.characterStyles.item("hyperlink"); // replace hyperlink with name of your char style for links
//alert(myHyperlinkStyle);
main();
} else {
alert("Please open a document");
function main() {
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
//the value to find
myFindVal = "page (\\d+)";
doSearchAndReplace(myFindVal, app.activeDocument);
// reset search
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
function doSearchAndReplace(stringfind, searchin) {
app.findGrepPreferences.findWhat = stringfind;
//Set the find options.
app.findChangeGrepOptions.includeFootnotes = true;
app.findChangeGrepOptions.includeHiddenLayers = false;
app.findChangeGrepOptions.includeLockedLayersForFind = false;
app.findChangeGrepOptions.includeLockedStoriesForFind = false;
app.findChangeGrepOptions.includeMasterPages = false;
var myFoundItems = searchin.findGrep();
for (i = 0; i < myFoundItems.length; i++) {
var item = myFoundItems[i].contents;
//the destination page
var destPage = item.slice(5);
var myHyperlinkDestination = myMakeHyperlinkDestination(destPage);
myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
try {
var myHyperlinkTextSource = myDocument.hyperlinkTextSources.add(myFoundItem);
var myHyperlink = myDocument.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
myHyperlink.visible = false;
catch(myError){
function myMakeHyperlinkDestination(myDestPage){
//If the hyperlink destination already exists, use it;
//if it doesn't, then create it.
try{
var myHyperlinkDestination = myDocument.hyperlinkDestinations.item(myDestPage);
myHyperlinkDestination.name;
catch(myError){
myHyperlinkDestination = myDocument.hyperlinkPageDestinations.add(myDestPage);
myHyperlinkDestination.destinationPage = myDestPage;
myHyperlinkDestination.name = myDestPage;
//Set other hyperlink properties here, if necessary.
return myHyperlinkDestination;well, after some more digging into it, I found the bugs and corrected, here is the corrected version (now I only need to figure out how to do it on an entire book...):
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var myHyperlinkStyle = myDocument.characterStyles.item("hyperlink"); // replace hyperlink with name of your char style for links
//alert(myHyperlinkStyle);
main();
} else {
alert("Please open a document");
function main() {
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
//the value to find
myFindVal = "page (\\d+)";
doSearchAndReplace(myFindVal, app.activeDocument);
// reset search
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
function doSearchAndReplace(stringfind, searchin) {
app.findGrepPreferences.findWhat = stringfind;
//Set the find options.
app.findChangeGrepOptions.includeFootnotes = true;
app.findChangeGrepOptions.includeHiddenLayers = false;
app.findChangeGrepOptions.includeLockedLayersForFind = false;
app.findChangeGrepOptions.includeLockedStoriesForFind = false;
app.findChangeGrepOptions.includeMasterPages = false;
var myFoundItems = searchin.findGrep();
for (i = 0; i < myFoundItems.length; i++) {
var item = myFoundItems[i].contents;
//the destination page
var destPageNumber = item.slice(5);
var destPage = searchin.pages.itemByName(destPageNumber);
var myHyperlinkDestination = myMakeHyperlinkDestination(destPage);
myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
try {
var myHyperlinkTextSource = myDocument.hyperlinkTextSources.add(myFoundItem);
var myHyperlink = myDocument.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
myHyperlink.visible = false;
catch(myError){
function myMakeHyperlinkDestination(myDestPage){
//If the hyperlink destination already exists, use it;
//if it doesn't, then create it.
try{
var myHyperlinkDestination = myDocument.hyperlinkDestinations.item(myDestPage);
myHyperlinkDestination.name;
catch(myError){
myHyperlinkDestination = myDocument.hyperlinkPageDestinations.add(myDestPage);
myHyperlinkDestination.destinationPage = myDestPage;
//myHyperlinkDestination.name = myDestPage.name;
//Set other hyperlink properties here, if necessary.
return myHyperlinkDestination; -
Identical Related Link for all pages
We're trying to put a set of identical Related Link pages for all pages.
I tried the following.
Modify the DefaultFramework Page.
Drill into Desktop Innerpage
It consists of :
Detailed Navigation
Dynamic Navigation
Drag&Relate
Related links
Portal Favorites
Content Area
Made of a Copy of the Content Area iview, and added 2 Relate Links into this iview (save it as Content_Area_2)
Removed the Original Content Area under Desktop Innerpage and added Content_Area_2)
What I essentially did was assigned related links to the content area of the Desktop Innerpage. That should bring up the Related Links for all iViews.
Is that how it can be done ?
Does not seem to work.
Is there another way of doing it.boerli wrote:
> In GoLive there was a wonderful feature which allowed
you to click any image in
> the bin and it would display instantly all the links to
pages on which that
> picture was used. It allowed you to find content and
other pics on other pages
> related to that image instantly. It prevented
duplication. Wonderful feature I
> used constantly on running our huge websites.
>
> I can't find anything like that in DW. Now I have to try
to remember on which
> other pages I used that image. It's a nightmare...
>
> Can anyone help?
>
> boerli
>
> Am I missing something? Can anyone help me find this
feature?
You want to find all pages that have a particular image on
it?
From the Edit menu select Find and Replace.
In the Find In drop down select Entire Current Local Site
In the Search drop down select Source Code
Then in the Find field type in the filename
Now click Find All
The search results will show you all pages, you can double
click on each
file and the page will open with the filename highlighted in
the code.
Its not perfect, but Dreamweaver isn't GoLive. If its a
feature you
would like to see ask Adobe:
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
Dooza -
Trying to have a script work on all pages
Hello,
I am having a problem with my script in livecycle. I am trying to create random generated numbers, but the code i have only works on one page. I have 128 pages i need it to cover. The code is as follows. Please let me know if you have a solution. Oh and the boxes i have created are named the same throughout all of the pages. I tried setting everything to global, but that just produces the same numbers on each page. I would like to avoid having to write script for each page.
Thanks
topmostSubform.Page1.ButtonCreateCards::click - (JavaScript, client)
var varN1 = Math.round(1 + (15-1)*Math.random());
var varN2 = Math.round(1 + (15-1)*Math.random());
while (varN2 == varN1)
varN2 = Math.round(1 + (15-1)*Math.random());
var varN3 = Math.round(1 + (15-1)*Math.random());
while (varN3 == varN1 || varN3 == varN2)
varN3 = Math.round(1 + (15-1)*Math.random());
var varN4 = Math.round(1 + (15-1)*Math.random());
while (varN4 == varN1 || varN4 == varN2 || varN4 == varN3)
varN4 = Math.round(1 + (15-1)*Math.random());
var varN5 = Math.round(1 + (15-1)*Math.random());
while (varN5 == varN1 || varN5 == varN2 || varN5 == varN3 || varN5 == varN4)
varN5 = Math.round(1 + (15-1)*Math.random());
B1.rawValue = varN1;
B2.rawValue = varN2;
B3.rawValue = varN3;
B4.rawValue = varN4;
B5.rawValue = varN5;
var varN1 = Math.round(16 + (30-16)*Math.random());
var varN2 = Math.round(16 + (30-16)*Math.random());
while (varN2 == varN1)
varN2 = Math.round(16 + (30-16)*Math.random());
var varN3 = Math.round(16 + (30-16)*Math.random());
while (varN3 == varN1 || varN3 == varN2)
varN3 = Math.round(16 + (30-16)*Math.random());
var varN4 = Math.round(16 + (30-16)*Math.random());
while (varN4 == varN1 || varN4 == varN2 || varN4 == varN3)
varN4 = Math.round(16 + (30-16)*Math.random());
var varN5 = Math.round(16 + (30-16)*Math.random());
while (varN5 == varN1 || varN5 == varN2 || varN5 == varN3 || varN5 == varN4)
varN5 = Math.round(16 + (30-16)*Math.random());
I1.rawValue = varN1;
I2.rawValue = varN2;
I3.rawValue = varN3;
I4.rawValue = varN4;I5.rawValue = varN5;I may not understand your problem completely. If you want all pages to have access to the same set of 5 random numbers, then use "variables" (that are global in scope--don't confuse this with setting field binding to global). You create "variables" (lets name them: var1,var2, var3, var4, var5) in the form File>Form Properties>Variables tab. Then you reference them (say, from the calculation event of a numeric field) like this:
this.rawValue = var1.value; //rawValue for fields .value for variables (important)
If you wanted just to be able to produce random numbers (a different set for each page/button) then a script object would be helpful
This link explains in detail:
http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000818.html#15866 93
Briefly, you create a reusable function and store it in a Script Object (a place that all fields have access to). Then you reference that object, say on a button click. Lets say you have a script object named myScriptObject and you define a function on it called randomNumber()
on the button click you can use that function by referencing it like this
myScriptObject.randomNumber();
So, with every click you run the script from any button on your form that has the reference above. Don't set the fields to Global and you'll get different results on the different pages
You can pass defined parameters to the function inside the (), like if you needed to seed the random number generator function, you could pass a parameter like this:
myScriptObject.randomNumber(someParameter);
or multiple parameters
myScriptObject.randomNumber(someParameter, [anotherOne],[YetAnotherOne],[etc.]);
Your function can also set the values of variables, too. Seeing how I don't understand your objective completey, I don't know what parts of the above you'll find useful (if any).
something like:
function randomNumber() {
do some stuff;
var1.value = something;
var2.value = somethingelse;
var3.value = etc;
then
myScriptObject.randomNumber(); //this reference placed on a button click, would update the variables
and since the variables are global in scope, any script anywhere could access it.
Is any of this helpful?
Stephen -
Make all pages the same width?
I've seen several answers to this question but they all seem to involve using an external app such as PDF Creator, Distiller, or something like that.
I have a pdf with three pages with different widths. From within Acrobat X, what is the easiest way to make all three pages the same width, or is that even possible without using an external app? If it is possible, please describe how to do this step by step.
By the way, I know there are steps that can be taken to avoid ending up with pdf's that have pages of varying lengths, but this question is not about that. It is about existing pdf's. Thanks a lot
I am using Adobe Acrobat X version 10.0.0.396 on Windows XP Pro SP3Good question - I would say make all the page be the same width as the widest one. In general, these pdf's will contain 8.5" x 11" pages, sometimes in combination with legal size pages. The actual size of each page will differ depending on such things as who they came from and how they produced the pdf's, what software was used, which scanner was used, etc.
Here would be an example pdf:
The first 3 pages approximately 8.5" x 11" format. The last 2 pages are legal size. As you page throgh the document, the widths change. My usual setting as I page through a pdf is Fit Width. But in this pdf, the first two pages look right, the third page is too narrow, the fourth page looks right, and the fifth page looks too narrow. So given that, How would I make all 5 pages the same width so that as I page through the pdf, the widths are all exactly the same, and not just appear the same? If I have to choose which width they should all be, I'd say go with the widest one.
If I need to run some javascript to accomplish this, that's ok - I'll strip it out before distributing the pdf. Thanks -
Displaying Page number in all pages of sap script output
Hi All,
I have a issues in displaying page number in all pages of sap script output.
I have created a seperate window just above main window to display page number.
I have given &PAGE& in the layout editor.
Now in the sap script output i am getting page number as 1 in all the pages page number is not changing for pages-2,3, etc..
Can anybody tell me the reason for the same!
In some other objects same syntax is working fine. For this object it is not working!
Is there any setting changes!
Thanks i
Thanks,
Deep.Hi,
Just check the Page Counter of the Next or Second Page which you defined.
First page
Mode START
Numbering Type ARABIC
Second Page
Mode INC
Numbering Type ARABIC
Regards
Bala Krishna
Edited by: Bala Krishna on Oct 17, 2008 11:23 AM
Maybe you are looking for
-
Could someone please help with the onvalidate in the cfgrid. I can't seem to get my validation to work. Does anyone have any examples???
-
HFM reports giving "Access Denied" error
Hi All, I am in a really critical situation. I am getting "Access Denied" error on accessing any of HFM reports through web or FR studio...all planning reports are working fine... I think the DCOM settings have some problem... FR is not able to commu
-
I have been using Adobe Photoshop since 1998. I recently replaced my computer and placed the Adobe Photoshop 5.0 CD in to install, and found that could not load the software, and referred me to Adobe. What should I do?
-
Where do I find "finder.plist"
where do I find "finder.plist" I have a line in the favorite bar that is not removable. Deleting the finder.plist should resolve this issue I understand. But how deep I go into my system in the library under preferences there is no finder.plist.
-
Unfortunately in the beautiful world of taskflow-call running as a Dialog (with inline-popup) I do not have luxury to use <af:dialog closeIconVisible="false"/> since, ADF puts the jspx in a dialog at runtime Now, I want to hide the "x" icon thru css,