[JS CS5.5] Sort order for the topic index messes up script
I'm stumped on this one. If anyone has a suggestion, I would appreciate it!
The following script iterates through my index and works very well if none of the index entries have "sort by" text that causes the entry down the list in alphabetical order. It works fine if the text ' sort by ' causes the index entry back into the list alphabetically.
= CODE
var myTopics = myDoc.indexes [0] .allTopics;
for (var i = myTopics.length - 1; I > - 1; i--) {/ / for each subject index...}
for (var j = myTopics [i].pageReferences.length - 1; j > - 1; j--) {/ / for each reference page in the topic...}
var myAttributeValue = topic_path (myTopics [i], myTopics [i] .name);
var myInsertionPoint is myTopics [i] [j] .pageReferences, .sourceText;. THIS LINE THROWS ERROR
Do something at the insertion point.
}
}
}
Create the subject string. Subheadings are separated by "#".
function topic_path (top, str) {}
If (top.parent.constructor.name == 'Index') {}
return str;
}
else {}
Return topic_path (top.parent, top.parent.name + ', ' + str);
}
}
= END OF CODE
So it seems to me that given that the script is an iteration through the bottom-up index entries and page references, happens to a topic that is displayed below the list in, but it is actually "" upward earlier in the list alphabetically, so the script can not get corresponds to the page in the source text reference.
Is it possible to iterate through index entries other than what I do? I don't see any alternative workaround.
No, you nothing is missing! Sorry, I had assumed just because you can add script tags to practically anything, you could add them to the topics as well. But now that I checked, it turns out that you can't. Two ways out that could be
(1) temporarily add sort by name of the item, separated by a single, empty string field to sort by. Subsequently restore the field sort by and the name of the topic.
(2) If for any reason, you can add the value of sorting by name, you will need to build a table with the topic names and sort by values, blank the sort by fields, then restore them later using the table.
Complicated, but nothing else I can think.
Peter
Tags: InDesign
Similar Questions
-
Sort order for the Album to the artist / year
How does Itunes sorting Option "Album of the artist / year"work? "
I expect year wise Albums are sorted. But some of the Albums are not sorted in the year.
If two or more albums were released in the same year by the same artist, they are sorted in alphabetical order. Note also that iTunes can produce unexpected results if you select a descending sort order.
TT2
-
Sort order of the desktop icon
I noticed that the sort order for the icons on my desktop is a little strange. When I sort by alphabetically by name, they go through the alphabet once, then again in alphabetical order. In other words, there are two sets of icons sorted in alphabetical order. I had this problem on my previous PC, which ran from Windows XP. Now that I have a new PC running Vista Home Premium, the problem persists. Can I have some kind of installation or configuration problem?
I searched the Knowledge Base Microsoft and the Internet, for this problem, but found nothing.
Thank you
El_Abuelo
What determines what type of folder is assigned a specific icon? (The shortcut properties seem to indicate that property may have something to do with it.)
It is normally determined by the installer that created the shortcut in the first place. Most software publishers are lazy and will place a single shortcut in % PUBLIC%\Desktop, which will appear on the desktop for everyone if you have multiple users. Unfortunately, if a user removes the shortcut it will disappear from all the world office too. The solution is to manually copy in all the individual desktop folder and then delete the original.
All of the shortcuts that you you do it manually (for example, by right - dragging a file to the desktop) will appear in your folder %USERPROFILE%\Desktop and therefore appear to you and not to other users.
Of course, if you are the only user on this computer, none of the foregoing is of no interest to you. In this case, if you want everything sorted alphabetically, choose one of the two locations and manually move everything else. Given that %PUBLIC%\Desktop is most software installation uses, it will probably be the best choice, by remembering that if you manually create the shortcuts, you must manually move them yourself or they will be out of use again.
Another thing to watch is installers of software that prompts you to install for 'all users' or 'me' (or words to that effect). The option all users will put the shortcut to the Public folder. the just me option will use your user profile folder.
-
I want to be able to change the sort order of the items, I already looked in the search box. I want to be able to hit the arrow key down and see my previous searches in order of last search showing the first. For the moment, I don't know how it is sorting and it is very annoying to have to re - enter a query that I typed 5 minutes earlier, but because I typed in another 10 since it's lost somewhere in the list. Is it possible, I Googled, but did not find the topic anywhere. Just to clarify, I DON'T mean of the order of the search engines (which is what appears in google), I mean that the text typed into which has been registered in the drop-down list.
Thank you
'Form filling' uses a "frecency" algorithm, frequency + recency, similar to the list of AutoComplete address bar.
I found an extension that seems relevant, but critics are old, so I'm not sure it's still working: Searchbar Autocomplete Order.
But... is the AutoComplete does not? I expect that typing a few characters of the previous query would be to filter the list so that you can easily select? Or is the problem that the list does not remember quite who looking for?
-
Change the sort order for symbol/button.
I have a line of buttons (which are near eachother). When you click them they step up big.
Problem is that the button clicked is not arranged / sorting forward and what lies behind
other buttons next to him.
How can I change the sort order (inside the button symbol /) when clicked?
Hi Claursen,
This is what I did to reproduce your scenario: -.
1. on stage, I create a symbol, I created another symbol inside, and inside the nested symbol, I created 3 symbols and names them "btn1", 'btn2', 'btn3.
2. now, I open the actions of the "btn1" symbol and for the click event, I wrote the following code
var El = sym.getSymbol("btn1").getSymbolElement ();
El.CSS ("Transform","Scale (4,4)");
El.CSS("z-index","1");
Similarly, I put the code for the click event handler for 'btn2' and 'btn3.
3.now when I published the file and clicked on one of the three symols, he scaled and was visible in the foreground the other symbols.
Correct me if this is not the scenario that you call.
Thank you
Sliman
-
Windows Mail seems to change the sort order of the mail every now and then.
Windows Mail seems to change the sort order of the mail every now and then. I want that it in the order received, desending and back to this sometimes.
Hi rondebmar,
You can check out the following link and try the suggestions posted by t-4-2 on Thursday, January 7, 2010 08:57 PMand check if this may help.
For more information, please visit the following links:
http://Windows.Microsoft.com/en-us/Windows-Vista/view-e-mail-messages-in-Windows-Mail
http://Windows.Microsoft.com/en-us/Windows-Vista/check-for-new-e-mail
Hope this information is useful.
Boumediene. K.
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
A good day!
Make an order for the iPhone to your site, the provision of the code ' reservation number is: B2 * Q0A "many skills information. It is impossible to confirm the order. What is the problem?
It is a support so nobody user forum here can help you. Maybe if you release with Apple itself.
There are links here to the online store.
-
How can I change the sort order in the Photos?
How can I change the sort order in the Photos? I would like to have more recent photos at the top of the screen instead of at the bottom.
The view of Photos with moments and collections will be sorted always growing by date, also the album «All the Photos»
But you can sort any other album descending by date. Create your own album custom as smart album 'My Pictures' and the descending sort.
File > new Smart Album
and use the rules:
CTRL-click the smart album in the sidebar and in this way it as you want:
These sorting options available in Photos on MacOS X 10.11. El Capitan, but not in Yosemite.
-
BlackBerry Smartphones AT &; T cancelled my order for the PRIV
AT & T just sent me to say that my order for the PRIV was cancelled "due to an unexpected problem in the system."
Bad luck. No telling how long I have to wait before AT & t won't support the PRIV. This week I'll call Customer Service, but I don't expect the rep to know anything.
Carol Byrd
I suggest you go to the AT & T website and go through the process of order, but on page two, bottom left, search for AT & T local who have the device. Then exit the screen, go to the local store and buy.
That's what I did
-
How to change the boot order for the applications to the taskbar?
When I moved to W7, software of my trackball wouldn't work and Kensington wouldn't fix, so I moved to a conventional mouse. I recently bought a better mouse and it has its own software. The software works very well, the problem is that it starts towards the end of the boot sequence. I would like to start earlier. The problem is that all the research I've done changing the order of departure come back with how to change the order of display in the taskbar.
How can I change the boot order for the applications to the taskbar for the software for the mouse, boots earlier in the list?
Windows does not have native to adjust the boot order, but there are third party solutions. See
http://www.howtogeek.com/52043/how-to-control-the-order-of-startup-programs-in-Windows/
-
I ordered for the photography of Cc plan but I can't seem to use Lr mobile app because would it every time when I logged in trial version
Hi warayutk,
Where have you bought the subscription type?
If you have an educational subscription of the CC, then Lightroom Mobile is not included. Please visit: mobile Lightroom not available for education memberships | Kivuto
I hope this helps.
~ UL
-
DB version 10.2
When I try to do more high I am hit with ORA-02242 after reconstitution with nologging parallel 4. But when I run manuallyBEGIN FOR vIdxList IN (select INDEX_NAME from user_indexes where table_name in('PORT') and index_type='NORMAL') LOOP EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || ' REBUILD nologging parallel 4 '; 5 dbms_output.put_line('-----------------'); --EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || 'NOPARALLEL'; END LOOP; begin FOR vIdxList IN (select INDEX_NAME from user_indexes where table_name in('PORT') and index_type='NORMAL') LOOP EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || 'NOPARALLEL'; end loop; end; END; /
then ok.ALTER INDEX' <index_name> NOPARALLEL
Some can help me please
ERROR on line 1:
ORA-02242: no option specified for the ALTER INDEX statement
ORA-06512: at line 11 levelBEGIN FOR vIdxList IN (select INDEX_NAME from user_indexes where table_name in('EMPLOYEES') and index_type='NORMAL') LOOP EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || ' REBUILD nologging parallel 4 '; EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || ' NOPARALLEL '; END LOOP; END; /
-
Sort discussions of the topic in reverse order
If this feature is available, I certainly missed it. Son of subject would be more effective for me to use if they have been sorted showing recent messages first, rather than last. Another improvement would be to show the thread from post above and then later, then latest posts in descending order.
Often I'll read all messages in a thread, but usually it is only the first and the last few that I check to see if the subject is an area of interest. Have a sort like this available option would be an improvement.
Thank youC & L, Hi
The feature you describe here is not in place, but you may want to try to go to profile > personal Options and change the topic of linear display settings thread. This will allow you to access directly at the end of a particular thread with minimal scrolling.
-
Photo library - sort order of the change for "organizing a month."
Is it possible to change the sort order when viewing the pictures library, arranged by month? When I put the menu "arrange by" to "month" in the library pane, files in my library of images are correctly grouped by month, but in reverse chronological order. The most recent month is displayed first. For example, September 2010, August 2010, July 2010,..., etc. I would like for this switch to chronological order: January 2010, February 2010, March 2010, etc. The option "sort by" is grayed out in the menu. I can value the sort order ascending or descending if the library is organized by day, but not when arranged by month. Thank you.
Hello
I searched all the documentation and it doesn't seem to be any way to reverse this order, when the month is checked?
Kind regards
Thank you for using Windows 7
Ronnie Vernon MVP -
How can I change the sort order in the finder / media / photos?
When I want to open a photo in an application I can access photos via the media / photos. The sort order is ascending. I want that the descending sort order. Where can I do this? Thanks for the reply! Christian
You can click right in the grid of thumbnails and choose to display it as a list. You can then sort the columns by clicking on them.
I don't know of a way to get to another level by default.
Maybe you are looking for
-
Gray network ID cannot join F10 to the domain
Well, I am a network support analyst for a living, so I know not how to attach and remove the PC and laptop computers of a domain. I have a Qosmio F10 that comes with having the BONE restored from the Original Recovery CD ROM product The network card
-
Is it possible to delete or change the user name information? The site with that I have a problem does not appear in my saved list of bookmarks even if it is bookmarked on my computer. It's a site that does not have a registered password. When I star
-
try to copy favorites from firefox on seamonkey
Man it's embarrassing. Why is it so difficult to copy favorites from Firefox on Seamonkey. I backed up my Firefox bookmarks. He recorded on a JSON? file. Choice only I had and don't have a clue what it is. Now I go to Seamonkey and try to import and
-
Re: Satellite C50-B-158 - COA Windows necessary
Hello We just bought an and its total nine, but there is no windows below sticker. Are there changes how to get windows cd - key, if we still need? Is it hidden in the battery? Or bios? Could you please provide information how to detect? Windows 8 ar
-
I can not turn on the windows firewall through firewall dialogue general tab; ideas?
The Firewall tab is grayed out and will not...