[AS] How to make cross reference at insertion point
Hi,
I have a book ("indb") including several documents with several "anchors"
(german translation: "Textanker") where cross references from different documents are linked to.
What I already got is to reference all anchors and collect them in a list.
Now I would like to make a new cross reference at the insertion point
in a text frame of the active document - can't get it to run :-(
Is anybody out there who can post a AS-sample doing this?
Thanks in advance!
Here is the reference to an already existing anchor:
{hyperlink text destination id 44155 of document "kapitel 2.indd" of application "Adobe InDesign CS4"}
The code I tried to make a new cross reference looks like this - but of course doesn't work:
tell application "Adobe InDesign CS4"
tell active document
make new hyperlink with properties {name:"new hyperlink", destination:hyperlink text destination id 44155 of document "kapitel 2.indd"}
end tell
end tell
Thanks a lot - got it now!
Maybe it could be helpful for others to look at your answer
with the placeholders replaced by "real" strings as it was hard for me
to figure out the right form:
tell document 1
set theDest to make hyperlink text destination with properties {name:"Some name", destination text:<a reference to the relevant text>}
this line for example looks like this =>
set theDest to make hyperlink text destination with properties {name:"Some name", destination text:insertion point 902 of story id 44083 of document "kapitel 3.indd" of application "Adobe InDesign CS4"}
set theSource to make cross reference source with properties {name:"Some name",source text:< reference to the relevant text>}
this line for example looks like this =>
set theSource to make cross reference source with properties {name:"Some name", source text:cursorPosition, applied format:cross reference format id 44305 of document "kapitel 1.indd" of application "Adobe InDesign CS4"}
where "cursorPosition" was defined before by
set cursorPosition to object reference of selection
(the cross reference source needs the applied format reference too)
make hyperlink with properties {source:theSource, destination:theDest, visible:true, highlight:invert, width:thick, border color:dark green, border style:dashed, name:"Whatever" }
this line for example looks like this =>
make hyperlink with properties {source:theSource, destination:hyperlink text destination id 44184 of document "kapitel 3.indd" of application "Adobe InDesign CS4", border color:black, highlight:none, border style:solid, hidden:false, visible:true, width:thin}
end tell
Similar Messages
-
How to make External Reference number and Ref Date Mandatory in Complaints
Dear Experts,
Greetings!!!.
How to make External Reference number (EXT_REF_NUMBER ) and Ref Date ( EXT_REF_DATE ) Mandatory in Complaints.
Regards,
SanyHI,
You can use Incompleteness Procedure to make those fields mandatory in complaint transaction.
Regards,
PP -
ODI : how to raise cross reference error before loading into Essbase?
Hi John .. if you read my post, I want to say that you impress me! really, thank for your blog.
Today, my problem is :
- I received a bad quality data file from ERP extract
- I have cross reference table (Source ==> Target)
- >> How to raise the error before loading into Essbase !
My Idea is the following, (first of all, I'm not sure if it is a good one, and also I meet issue to do it in ODI !)
- Step 1 : make JOIN between data.txt and cross-reference Table ==> Create a table DATA_STEP1 in the ODISTAGING schema (the columns of DATA_STEP1 are the addition of columns of data.txt those of cross-references Tables (... there is more than 20 columns in my case)
- Step 2 : Control if there is no NULL value in the Target Column (NULL means that the data.txt file contains value that are not defined in my cross reference Table) by using Filter ( Filter = Target_Account IS NULL or Target_Entity IS NULL or ...)
The result of this interface is send to reject.txt file - if reject.txt file is not empty then a mail is sent to the administrator
- Step 3 : make the opposite : Filter NOT (Target_Account IS NULL or Target_Entity IS NULL ... ) ==> the result is sent in DATA_STEP3 Table
- Step 4 : run properly the mapping : source : DATA_STEP3 (the clean and verified data !) with cross reference Tables and send data into Essbase - NORMALY, there is not rejected record !
My main problem is : what is the right IKM to send data into the DATA_STEP1, or DATA_STEP3 Table, which are Oracle Table in my ODISTAGING Schema ! I thy with IKM Oracle Incremental Update but I get error, and actually I don't need an update (which is time consumming), I just need an INSERT !
I'm just lookiing for an 'IKM SQL to Oracle" ....
regards
xavierThanks john : very speed !
I understood better now which IKM is useful.
I found other information about the error followup with ODI : http://blogs.oracle.com/dataintegration/2009/10/did_you_know_that_odi_generate.html
and I decided to activate Integrity Constorl in ODI :
I load :
- data.txt in ODITEMP.T_DATA
- transco_account.csv in ODITEMP.T_TRANSCO_ACCOUNT
- transco_entity.csv in ODITEMP.T_TRANSCO_ENTITY
- and so on ...
- Moreover I create integrity constraints between T_DATA and T_TRANSCO_ACCOUNT and T_TRANSCO_ENTITY ... so I expected that ODI will raise for me in E$_DATA (the error table) the bad records !
However I have one issue when loading data.txt into T_DATA because I have no ID or Primary Key ... I read in a training book that I could use a SEQUENCE ... I try but unsuccessful ... :-(
Is there another simple way to create a Primary Key automaticaly (T_DATA is in an oracle Schema of course) ?thanks in advance -
How do I cross-reference photo folders?
My photos are organized in folders according to the week they were taken, and I want to keep it that way. But if I want to pull up just the photos that have my friend Brian in them, how can I do that?
First off iPhoto is NOT an option. I have used several versions of the iLife suite starting with Tiger, then moving on to Leopard and (currently) Snow Leopard. And the whole iLife suite is riddled with bugs to the point where I do not want to touch them as they are completely unreliable. DVD player crashes and freezes randomly, and falsely claims DVDs are damaged when they are brand new. Now I just use VLC, and my DVD movies play perfectly every time. Something I could almost never get DVD Player to do. I have tried using iWeb, but after a few "undos" and some editing, my links no longer work, and files get dropped for no reason.
I have tried tagging photos in iPhoto, and using one Smart Folder for each tagged category. It all works great for a while, but before long, newly tagged photos stop being added into the Smart Folders, and it defeats the whole purpose.
Not to mention that iPhoto creates a huge file, and wastes time identifying faces, which is an undesirable feature I can't seem to turn off.
I am guessing the whole problem with the iLife suit is that the library coding gets super easily corrupted if you make changes (and I am not even touching any of the files outside of iPhoto, iWeb, etc.)
I can't even make aliases to the folders and organize them that way for viewing in screensaver, because Snow Leopard's screen saver can't open the photos in an alias folder.
I'm NOT going to duplicate all my folders with different names and arrange them by category. That isn't organizing, that is duplicating, and completely wasting tons of file space.
Is there any program available I can get to replace iPhoto so I can cross-reference my photos into multiple categories? And is there a screen saver program I can use to make my own screen savers that can pull files from aliases, or some other referencing system?
Is there a patch I can get so that the default screensaver will open photos from an alias in Snow Leopard, the way it always used to? Why is it so difficult to deal with what should be simple, basic programs and file organization?
I love my MacBook Pro with Snow Leopard, and I love the professional programs I run on it such as Adobe and Maya, but why is the first party software complete garbage?
I know I don't sound like it at the moment, but I'm normally a polite person, I am just really frustrated right now. Just tired of banging my head trying to find ways to get around and outsmart the default programs on this OS, which has been futile, I might add.I am so terribly glad you haven't come across the bugs I have because let me tell you they are terribly frustrating. I only wish I had made them up. There is nothing I like better than ranting without any justification whatsoever.
Okay enough of that. I really have come across these problems, and even though I may not have been too polite I don't need to be accused of falsification and stupidity thankyouverymuch.
If you had read my post you would have understood that choosing a folder is one of the many things I have tried to do that didn't work. The only folders that work have the actual files in them. And since I am trying to organize my photos into groups it does not make sense to duplicate folders of photos simply to make them work. That takes up too much space.
Instead what I am trying to do is to not duplicate anything, but find a way to have my photos organized into groups.
Further if iLife has not presented any problems for you, you must be a very casual user indeed. These programs do not provide the depth of use that advanced users like myself require. You can go back to selling shoddy products for Apple now.
Is it possible for people to respond with HELP instead of criticism? -
How to create cross references in pages?
Hello,
I need to create cross references in pages, for example create a title with the name of a chart and the create a reference on the document. If I create more content and the number of the chart changes the references need to be up to date. This is supported by word... don't know on pages.
Thanks!I suspect your tag is wrong, but in Pages '09 you just Insert a Bookmark.
Not possible however in Pages 5.
Peter -
Hi,
I try to delete an old project in ODI, but I get the following error message:
ObjectVariable : CTL_MAX_SESSION is referenced by: Txt CrossRef : 31612011, Txt CrossRef : 31636011, Txt CrossRef : 31643011, Txt CrossRef : 31645011, Txt CrossRef : 31649011, Txt CrossRef : 31651011, Txt CrossRef : 32852011, Txt CrossRef : 32876011, Txt CrossRef : 32883011, Txt CrossRef : 32885011, Txt CrossRef : 32889011, Txt CrossRef : 32891011
Cannot remove
For me it looks like that am accidentially using the ODI variable CTL_MAX_SESSION of this project in other ODI projects.
But I don't know where and the CrossRefs in the error message are not very helpful...
Does anybody know how to find the corresponding objects to such cross references in error messages?
Thanks in advance!
Cheers,
HelmutDid you try to expand "Used in" beneath the variable name?
If it's empty, you'll have to dig in the work repository tables. Start with SNP_TXT_CROSSR, SNP_STEP. -
How to make cross Tab report for SAP B1
Hello and Hi
i trying to make cross tab report for SAP B1 but test column not appera in
File >>New >>Cross Tab Report start cross tab report creation wizard select database name and table
but only numeric columns appear in available column fields , how will appearall fields including test fields..i got solution
thanks google
memo type field will not apper in list .use bellow statment to convert in interger or char type
convert(int,U_Dist_Sr_No) AS Dist_Sr, CAST(U_Dist_Name AS varchar(250)) AS Dist_Name, -
How do I cross reference to text (as in a reference citation)
I am using Frame 7.0. I want to create a cross reference to text (not a heading). For example, I have a citation such as (Smith, 1980) and I want to link that to the following:
H. Smith, 1980 "Have a good day" Martin Press, pgs. 46
I only want Smith, 1980 to appear as the link, not the entire description.
Thanks.Another option is storing the custom text version in a paragraph autonumber that is entirely hidden, and use a cross-reference format that retrieves that autonumber only. The custom "autonumber" will be paragraph override (or otherwise you will have to define a unique paragraph tag for each source citation).
Shlomo Perets
MicroType, http://www.microtype.com
FrameMaker/TCS training & consulting * FM-to-Acrobat TimeSavers/Assistants
"Improve your FrameMaker Skills" web-based training sessions -
How to make the Reference field in the in Accounting Tab a required field.
Hi,
Can i make the REference field in the Accounting tab required. I want to enter contract number from RE in that field.
Thank you.
RachelleHi,
Goto t.code OVA2 select A-sales header and then click on procedures in the left--> select the procedure in which you want to incolude this field and new entries the table name is VBAK and field is XBLNR for the reference field in the accouting tab and accordingly assign the status 01 or 02 as per your requirement.
Then you need to assign the incompletion procedure to the sales document type in VOV8.
Regards,
Gopal. -
How to make a straight line of points in a curve in CS6
In PSCS5 and earlier, I used to be able to make a straight line of points in a curve by placing 9 points on the straight line curve. I did this by drawing a small straight line at the bottom of the curve using the pencil tool and then clicking the curve point icon.
I can't seem to do this with CS6. Any thoughts?
Thanks,
Matthew KrausDid you not ask a similar question a while ago?
http://forums.adobe.com/message/4524084#4524084 -
How to make a field with inserted field's values editable?
Experts, please help!!
I have a form with 2 views.
View 1 has a field named "Name". View 2 has a field named "Notice"
On view 2, I set up the default value for "Notice" as Concat ( Name, " has enrolled this year")
The form data will be submitted to sharepoint library.
I tried to edit "Notice" field on view 2 and submitted it to the library, but when I opened it I didn't see the changes I made.
Is there any way to make the field "notice" Editable and being able to save the chaanges on View 2?
I know if I set up the value for notice just by text string without inserted value, it will capture my changes but that is not what I want.
Please help, thanks.
yuhong xiaoHi,
According to your description, you might want that "Notice" field has a default value when form is created and users can be able to change the value of that
field.
As a workaround, you can add an action rule in “Name” field via InfoPath to fill the default value in “Notice” field only when “Name” field is not blank and “Notice”
field is blank.
Settings of the rule are as below, you can modify it based on your need:
Here is a link about how to add an action rule in InfoPath form, you can use it as a reference:
https://support.office.microsoft.com/en-us/article/Add-rules-for-performing-other-actions-5322d726-b787-4e5f-8d37-ba6db68b451d?CorrelationId=8a64c12f-aa60-4d90-b1f9-a44fcc4e74b5&ui=en-US&rs=en-US&ad=US
Best regards
Patrick Liang
TechNet Community Support -
How to make item references dynamic in my trigger [SOLVED]
Hi. I have a Key-List-Item trigger on my form for a date item named bundle_exceptions.actual_dt. This trigger code is displaying a calendar when the user performs a key-list-item action on this date item. Throughout this code there are hardcoded references to my item in two different ways:
1) :bundle_exceptions.actual_dt
2) 'bundle_exceptions.actual_dt'
Since I have multiple date items on my application I would like to know if I can make this code more dynamic. Since the cursor is sitting on the item at the time, I thought I could reference :system.current_block and :system.current_item. But I can't seem to get the syntax correct. And to complicate things, I'm even more confused as to how I could get these system variables to match the two difference ways the item is referenced in the code (see above).
I would love some help or advice on solving this issue. I really don't like the idea of copying and pasting this code to every date item I have on my form. Thanks in advance.
========= CODE =============
date_lov.get_date (nvl(:bundle_exceptions.actual_dt,sysdate),
'bundle_exceptions.actual_dt',
(get_item_property('bundle_exceptions.actual_dt',x_pos) - x_adjust),
(get_item_property('bundle_exceptions.actual_dt',y_pos) - y_adjust),
'Calendar',
'OK',
'Cancel',
TRUE,
FALSE,
FALSE);Here's what I ended up with. I never could get the Name_In and Copy built-ins to compile because of syntax errors. I'm sure this was my own doing...but I just couldn't do it.
Anyhow, this code is working for me know. Thanks so much for all the input.
========= CODE =========
PROCEDURE Call_Calendar_Popup (for_this_item in varchar2) IS
y_adjust number := 1.6; -- this is the height of the popup box
x_adjust number := 1.8; -- this is the width of the popup box
begin
-- Depending on whether this proc is called from the item itself (say a key-list-item trigger) or
-- from another item (say a when-button-pressed trigger) the cursor may first need to be moved to the
-- item we want to populate from the calendar
if upper(:system.current_block||'.'||:system.current_item) <> upper(for_this_item) then
go_item(for_this_item);
end if;
-- if the items xpos (horizontal) is closer to the edge than the pop ups width push it over to the right.
if get_item_property(:system.current_block||'.'||:system.current_item,x_pos) < x_adjust then
x_adjust := to_number(get_item_property(:system.current_block||'.'||:system.current_item,x_pos));
end if;
-- if the items ypos (vertical) is closer to the edge than the pop ups height push it down.
if get_item_property(:system.current_block||'.'||:system.current_item,y_pos) < y_adjust then
y_adjust := to_number(get_item_property(:system.current_block||'.'||:system.current_item,y_pos));
end if ;
-- popup the calendar so the user can populate the date text-item
date_lov.get_date (nvl(Name_In(':'||:system.current_block||'.'||:system.current_item),sysdate),
'bundle_exceptions.actual_dt',
(get_item_property(:system.current_block||'.'||:system.current_item,x_pos) - x_adjust),
(get_item_property(:system.current_block||'.'||:system.current_item,y_pos) - y_adjust),
'Calendar',
'OK',
'Cancel',
TRUE,
FALSE,
FALSE);
end; -
How to make preceding reference mandatory
Hi gurus,
could you please help in the following question.
It's necessary to make impossible creation of operation (for example Sales order) without reference to a preceding document (another Sales order).
There are fields in Definition of Item Categories:
Preceding Ref. Object
Preceding Ref. Mandatory.
F1 says that these fields control whether an item must be created with or can be created without a certain preceding reference item.
Seems like that must help me. But unfortunately these settings change nothing - it's still possible to create SO without any reference.
Could you please advise something? May be there are any other settings or is it program bug?
Thanks in advance, Sunny.Sussie
The config to maintain the preceding reference mandatory can only be maintained on the item category.
Maintain the following setting for all the item categories used in the Sales order:
Preceding Ref. Mandatory = Check
Preceding Ref. Object Type = BUS2000131 (e.g. for Sales item this should match the Object Type of the item category)
With the above config the user might still be able to create the following sales order document but without any items.
Points to consider:
1. Follow-up Sales order (ZTA2) should have different transaction type and item categories
2. No copy control should be maintained for original sales order (ZTA1) to itself. This means in config "Define Copying Control for Transaction Types" there should not be entry ZTA1 -> ZTA1. So that you cannot create a follow-up to sales order with the same order type.
I hope this helps.
Regards
Rupesh Patil -
How to make cross platform screensavers
I work on an Imac on os X. I need to make screensavers for
cross platform (win/mac) distribution. I have flash 8 pro. Is there
any viable solution cheaper than the $200 for "Iscreensaver" or
$300 for "screentime" softwares? Failing that, does anyone have a
preference between the two? do you know if they allow flash
interactivity or just animation?
thanks in advance
Bobchakradude wrote:
> I work on an Imac on os X. I need to make screensavers
for cross platform
> (win/mac) distribution. I have flash 8 pro. Is there any
viable solution
> cheaper than the $200 for "Iscreensaver" or $300 for
"screentime" softwares?
> Failing that, does anyone have a preference between the
two? do you know if
> they allow flash interactivity or just animation?
Unfortunately there is no choices for you when comes to MAC.
Windows has over
30 really good screensaver tools, some of which very capable
and totally free.
Myself do not use Mac but friends who do, use the
"screentime" as preferred tool.
Check the features, see what you need and which tools deliver
what you looking
for than pick the winner :)
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
How to make a reference no. series
Hello guys!
I need some suggestions or ideas that you may provide with something that I need to do.
<b>SITUATION</b>
What I need to do is this: Create a reference no. series for all documents that I will post.
For example, I will post a doc. with SAP doc num of 1900000001, it will have a ref. no. of RC-0001. If I will post another doc. and for example the SAP doc. num is 1800000275, it will have a ref. no. of RC-0002.
But I do not want to edit standard program and tables, so what I will do is create a table named ZRCDOCS with fields REFNO and BELNR column (that is my ref. no. and SAP doc. no., respectively. I know I should put other data but this is the critical fields).
Then, create a program where I can enter the SAP doc. no. then when I execute, the program will automatically create a ref. no. by incrementing the last ref. no. created (if last no. is RC-0003, next no. is RC-0004).
<b>PROBLEM</b>
I have no problem with creating tables. My problem is the logic in creating the ref. no. series...
As much as possible, I want to give a specific question, but all I can think of asking is: How do I do this? Haha.
Thanks a lot guys! _in your program read the last record updated to database table (ZRCDOCS) and then increment the no. for RC-XXXX
How to read the last record?
option 1. store updated date time in the table and read the latest record based on that
option 2 store a simple serial number (may be int4 type ) and read the max of that (select max)
Raja
Maybe you are looking for
-
Laserjet 1320 on win 7 (64bit) - cannot access from a networked XP Pro machine?
I have a Laserjet 1320 and a Officejet 6450 attached to a win 7 (64bit) machine - both work fine. Have a home workgroup network established with an XP pro machine. Both printers are "shared" etc.. I can access the Offiejet from the XP machine, but c
-
Hi friends, [please forgive me if i am posting this in the wrong forum, all seems same to a fresher] Now, to my problem..i need a suggestion, a way or a method to implement the following! I am supposed to create a servlet that reads data from oracle
-
Document not seen in the SOLAR02
Hi All, I am not able to find the document in the Test cases tab of a particular Business process, but when I tried to find it using FIND DOCUMNET option I am able to see the document and open the same in Read only mode and when I click on the where
-
I have purchased a song that never completed the download. Song now says purchased but can't get it and isn't in library. How can I access the song?
-
How can an artist show as a search result yet not exist in the artist list?
I'm trying to import music from the My Music folder on my computer. I followed the steps outlined in the iTunes tutorial. When I search for the song, the artist and album show as search results, but the song does not. When I follow the link from the