How to tweak hyperlinkExternalPageDestinations

Hi there,
I don't know if this is an InDesign or Acrobat problem:
I am generating in INDD CS3 a table of contents with hundres of links to
external PDF files for distribution on a CD. The text contains hidden
markers which I convert via a script to hyperlinks using the following
code, where "myFile" is a realtive path.
myHyperlinkDestination = myDocument.hyperlinkExternalPageDestinations.add(myURL);
  myHyperlinkDestination.documentPath = "./"+myFile;
  myHyperlinkDestination.destinationPageIndex = eval(myFindPage);
  myHyperlinkDestination.viewSetting = HyperlinkDestinationPageSetting.fitWindow;
I must do it this way because I first generate a tagged text file and INDD
would stubbornly ignore file://  links.
The problem is this. The code works well and creates the links in PDF but on exprting
to Acrobat the latter reads it as "go to a page in another document" and not as "open
another document" (as when set manually in Acrobat itself).
The difference is that in the first instance the current or master PDF document
always closes itself (regardless of the corss document opening set in
preferences) before opening the linked document which is annoying.
In the old days (from PageMaker through INDD 2) I had built as separate PS
file with link annotations which I added when distilling the inDesign file
but that complicated matters and had to be re-generated each time a small
change was made in the layout.
Can you think of a way to tweak the script, to automatically embedd a PS file or of another trick to
prevent PDF from closing itself?
Your help will be gratly appreciated.
texan02

Thanks for your tip.
I had tried that some time ago but found it extremely difficult due to the fact that inDD only wants to link to existing *.indd files.
Is there, instead, a way to include annots via scripting or to generate a separate *.ps file that can be linked automatically during the distilling process?
Alternatively do you know of a way to make global changes via javascript in Acrobat?
rgs, texane02

Similar Messages

  • [alsa]how to get surround 5.1 on every apps? how to tweak asound.conf?

    Hello,
    I have a laptop dell studio xps 1647 with IDT 92HD73C1X5 chipset.  I have Alsa only (no pulseaudio with which I had problem running Spotify and Kde)
    I spent time reading and searching information but I do not understand everything about the way alsa and up/down mixing is running.
    I have some questions:
    1. On my laptop, I have 2 front and one subwoofer. So it means that I have 2.1 soundsystem right?  But on Windows (and Linux), I have the greatest sound quality putting 5.1 sound with IDT software.  Why ? How does it work ? Why don't I have better sound putting 2.1 option ??
    2. When I was running with Pulseaudio, I was stuck to 4.0 sound according with this issue: https://bbs.archlinux.org/viewtopic.php?id=111727   and no way to put 5.1 sound on smplayer (for example).  Now that I removed pulseaudio, I can run 5.1 sound on smplayer and enjoy pretty good quality sound with movies. BUT this is apparently the only apps with which I can do this.  Amarok doesn't seem to use 5.1, neither do Audacious or kde notifications or whatever apps I use. How can I change it ??  Because There is a real quality difference between sound on smplayer and on other apps.
    3. I tried to change my asound.conf with this one: http://dl.dropbox.com/u/18371907/asoundrc   but of course it is made for a specific laptop. So it does'nt work at all (no sound).  I do not really understand how it works. Is there some wiki about tweaking asound.conf with all these options ??
    4.  When I run
    speaker-test -c 6 -D surround51 -t wav
    I have every sound but LFE.
    What is exactly LFE ?  How can I enable it ??
    5. Pulseaudio or not Pulseaudio ??  If I do not wanna use network possibilities of pulseaudio, there is no other interest in it right ?  there is no better quality sound with it ??
    6. what is exactly S/PDIF ??  and how do I know if I have analog or digital system ??? what does it change ?
    thanks A LOT to pay attention to my questions  :-)
    And sorry for my bad English and my noob questions ^^
    some information:
    $ cat /etc/asound.conf
    defaults.pcm.rate_converter "samplerate_medium"
    pcm.!surround51 {
        type vdownmix
        slave.pcm "default"
    pcm.!surround40 {
        type vdownmix
        slave.pcm "default"
    references from alsa:
    STAC92HD73*
    ===========
      ref        Reference board
      no-jd        BIOS setup but without jack-detection
      intel        Intel DG45* mobos
      dell-m6-amic    Dell desktops/laptops with analog mics
      dell-m6-dmic    Dell desktops/laptops with digital mics
      dell-m6    Dell desktops/laptops with both type of mics
      dell-eq    Dell desktops/laptops
      alienware    Alienware M17x
      auto        BIOS setup (default)
    $ cat /etc/modprobe.d/alsa-base.conf
    options snd-pcsp index=-2
    alias snd-card-0 snd-hda-intel
    alias sound-slot-0 snd-hda-intel
    options snd-hda-intel model=dell-m6
    options snd-hda-intel enable_msi=1
    $ cat /etc/modprobe.d/sound_persistent.conf
    options snd slots=snd_hda_intel,snd_hda_intel
    $ aplay -l
    **** Liste des Périphériques Matériels PLAYBACK ****
    carte 0: Intel [HDA Intel], périphérique 0: STAC92xx Analog [STAC92xx Analog]
      Sous-périphériques: 1/1
      Sous-périphérique #0: subdevice #0
    carte 1: HDMI [HDA ATI HDMI], périphérique 3: HDMI 0 [HDMI 0]
      Sous-périphériques: 1/1
      Sous-périphérique #0: subdevice #0
    $ aplay -L
    null
        Discard all samples (playback) or generate zero samples (capture)
    default:CARD=Intel
        HDA Intel, STAC92xx Analog
        Default Audio Device
    front:CARD=Intel,DEV=0
        HDA Intel, STAC92xx Analog
        Front speakers
    surround41:CARD=Intel,DEV=0
        HDA Intel, STAC92xx Analog
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=Intel,DEV=0
        HDA Intel, STAC92xx Analog
        5.0 Surround output to Front, Center and Rear speakers
    surround71:CARD=Intel,DEV=0
        HDA Intel, STAC92xx Analog
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    hdmi:CARD=HDMI,DEV=0
        HDA ATI HDMI, HDMI 0
        HDMI Audio Output
    Last edited by Gillian00 (2012-01-08 17:40:39)

    I have the greatest sound quality putting 5.1 sound with IDT software.  Why ? How does it work ? Why don't I have better sound putting 2.1 option ??
    Is it "quality", or just loudness?
    You want to get the "LFE" (subwoofer) working - try this:
    options snd-hda-intel model=dell-m6-dmic

  • _dynSessConf - How to tweak logic to generate the random number.

    Hi,
    Can someone please let me know how we can tweak the logic when the random session confirmation number is generated and added as _dynSessConf.
    We have a requirement where this random number needs to be a bit longer than the currently generated default value.
    Regards,
    Saurav

    The session confirmation number used for _dynSessConf is already a randomly generated cryptographic number of long type which is hard to guess. Anyways, if you want to further modify it here is one of the approach that I can suggest.
    You can probably start with the component /atg/dynamo/servlet/sessiontracking/SessionIdGenerator in the component browser. In its details you will find it has a uniqueIdGenerator property which points to /atg/dynamo/servlet/sessiontracking/UniqueIdGenerator. Following on further it would eventually lead you to the components /atg/dynamo/service/random/SecureRandom and /atg/dynamo/service/random/SecureRandomConfiguration. Look at the service configurations of these components and see if you can get something which you can change or customize to meet your requirements.

  • Presentation Template javascript w/ adaptive tags, how to tweak this code?

    I have a snippet of code in one of my presentation templates, that I need to make a minor change to it, as the document.write javascript code causes my link to be explicitly coded into the page output. I found that on another template where I don't need to use javascript, the link is parsed by the portal, which causes the link to be created using gatewaying. I actually need the portal to create this link using gatewaying, as it won't work otherwise (the image won't display unless the gateway URL is produced). Here's the snippet of code I'm looking at:
    <pcs:if expr="ShowPrintButton">
         <script language=JavaScript>
         if (displaybuttons == true)
              document.write("<a href='JavaScript:window.print();' alt='Print Article' title='Print Article'><img src='http://pubcontent.state.pa.us/publishedcontent/preview/general_ops/sers/images/public/action_print.gif' align='absmiddle' border='0' alt='Print Article' title='Print Article' /></a>");
         </script>
    </pcs:if>
    In my other presentation template, I don't need to check for a condition as I do in the case above, so no javascript is needed. So in that case I just put the image tag in the PT code on its own, with no javascript tags around it. In that case, the URL of the image output by that code is:
    http://www.portal.state.pa.us/portal/server.pt/gateway/PTARGS_0_127743_785_14364_0_43/http%3B/pubcontent.state.pa.us/publishedcontent/preview/general_ops/sers/images/public/action_print.gif
    This image link above works, and the image displays as desired. However, the explicit link without gatewaying, as in the javascript above, it will output the URL as:
    http://pubcontent.state.pa.us/publishedcontent/preview/general_ops/sers/images/public/action_print.gif
    which does not work since it didn't gateway the link. Is there a way I can tweak the javascript above to still be checking the condition and yet have the URL be gatewayed?
    Thanks!

    Got it working, although there is still some issue with the edocs not being up to date. Issue was a cross between some security settings and cache.
    <!-- Links to my communities are stored in commenu -->
    <pt:ptdata.communityactionsdata     pt:id="commmenu" />
    <pt:ptdata.mycommunitiesdata        pt:id="commmenu" />
    <!-- Links to mandatory communites are stored in menutabs -->
    <pt:ptdata.mandtabcommsdata         pt:id="mandmenu2" /> <!-- this display the mandatory tabbed communities -->
    <!-- Links to my pages are stored in mypagemenu -->
    <pt:ptdata.mypageactionsdata        pt:id="mypagemenu" />
    <pt:ptdata.mypagesdata              pt:id="mypagemenu" />
    <pt:plugnav.ddmenurowcontainer pt:menuvar="midrowmenu" pt:hideemptymenus="true" >
    <pt:plugnav.ddmenutab pt:containervar="midrowmenu" pt:datavar="mypagemenu" pt:text="$#1840.ptmsgs_portalbrowsingmsgs" />
    <pt:plugnav.ddmenutab pt:containervar="midrowmenu" pt:datavar="commmenu" pt:text="$#1841.ptmsgs_portalbrowsingmsgs" />
    <pt:plugnav.ddmenutab pt:containervar="midrowmenu" pt:datavar="directorymenu" pt:text="$#1842.ptmsgs_portalbrowsingmsgs" />
    <pt:plugnav.ddmenusimpletabs pt:containervar="midrowmenu" pt:datavar="mandmenu2" />
    </pt:plugnav.ddmenurowcontainer>

  • Is there a list of the sound-generating System events for OS X? How to tweak?

    I work with a community with some minor physical and visual impairments. I have limited current OS X experience, and I am volunteering on their behalf. But this question is not directly about OS X assistive technologies. Right now, we would just like to add more+additional sound effects than seems to be the default for OS 10.8.
    In particular we would like:
    A loud sound when a USB device has become unplugged (when plugged in would be nice as well.)
    A clear sound when a password has been entered incorrectly.
    One of my users swears these sound events are already in there, and I am inclined to believe her. But confirming this is difficult on Mac OS 10.8.4 The “Sound Effects” dialog in the System Preferences only seems to be for alerts.
    So two questions:
    What are all the system sound events in OS 10.8.4
    How can we configure the sounds that are played for individual events?
    Thank you!

    Growl.info and HardwareGrowler can play sounds when hardware in attached/removed.
    Unplugged can tell you if your laptop power adaptor has been plugged in or unplugged.

  • How to tweak your settings FCS3

    OK, I did the upgrade a week ago and now I am trying to figure out what would be the best settings to get optimal performance.
    would anybody like to share some Ideas or tricks that have helped speed up your process.
    I know a basic install and no tweaking can't be the best. or is it?

    • Have a clear idea of what you are trying to accomplish when editing.
    • Test your workflow when talking about projects that take you into unknown technical and/or aesthetic territory
    • View and comment on all your material during log and capture so you are familiar with everything and can use keyword search to quickly find material
    • log and batch capture if using tape so you end up not having to deal with sub-clips
    • Have a logical bin organization so you can find material and backing up is a reasonable activity
    • Only open sequences when needed
    • Don't let projects bloat - copy then purge projects when necessary
    and so on ...
    x

  • Excess Parsing on PAVERSION table: How to tweak?

    Hi
    Following SQL on PSVERSION table is getting parsed around 14k times (around 15% of the total). Is there something I need to check and tweak to improve the overall performance?
    SELECT VERSION FROM PSVERSION WHERE OBJECTTYPENAME = 'SYS'
    Any clue about this is most welkom.
    Regards
    Vishal

    This query is running on every call of Peoplesoft object to define if the caching version is the good one or not.
    This query should not be a performance issue root cause, ensure you have the index and statistics up-to-date as well.
    Nicolas.

  • How to tweak Web-Auth Policy timeout on WLC?

    Hello,
    Is it possible to change Web-Auth Policy timeout? Currently I am talking about 5508, but it could be WiSM also.
    Thank you.

    You need to be clear on what thing though, the webauth policy timeout has nothing to do with authenticated users.
    This is time we will wait on a client to perform a Webauthentication and move to a RUN state.
    If a user is hitting webauth timeout, they are going to be removed because they aren't a working client anyhow.
    The only exception to this pre-auth ACL I suppose where you want users do webauthenticate if they go outside of a specific webpage, but have unlimited access to that one page.
    Either way, I agree the timer needs to modifiable, but you need to make sure you're fighting for the right timer.
    If your clients are going to sleep and they Dissasocciate, of course they will have to reauth, the disassociate removed them from the enterprise network entirely.
    If they are sleeping though, and timing out because of a normal IDLE timeout (not web policy timeout), that is modifed on the Controller TAB of the GUI for "User Idle Timeout".

  • Memory Tweaking in Neo - how? [Newbie]

    I have just got the new board and the following components installed:
    A64 3200
    MSI Neo FIS2R Mobo
    1Gb [2x512Mb] OCZ PC3500 Dual Channel Series EL-DDR
    2xSamsung 160Gb SATA HDD's in RAID0 Config.
    Sapphire 9800 Pro
    Antec TrueBlue 480W PSU
    I have set up the system by means of creating the RAID and then installing windows etc.
    I have now some to the stage where I wish to tweak the memory to utilise the better timings that OCZ memory is capable of. The system is quite stable atm.
    At the moment I have the BIOS set to the defaults for the memory handling. I have enabled 'Turbo' mode and this seems to run fine. I have also installed the Athlo64 driver [from AMD web site] and have the Core Centre running.
    I am quite new to the memory game since the last PC i was playing with was an old thing that had nothing like the memory settings that are now available. I would like to know how to tweak these memory timings for best performance since I know the memory I have is capable of a lot more.
    Can someone give me any tips on how to start going about this. I have the timings set to 'auto' in the BIOS so I will need to start there I guess.
    What about the FSB. At the moment it is set to 200 in the BIOS and the core centre changes this according to the load on the PC. If I start changing FSB in the BIOS should I stop using the core centre?

    Ok brain, i have this memory running stable now, at everything set to auto.
    you can tweak the memory in the bios in the "advanced chipset" and "voltage settings" menus. firstly, unlock the DDR limiter (memlock i think, set it to "limit"). then choose "ddr400" in the menu below it.
    set your timings to be 2-3-7-3 (ordered as they are in the bios list, read left to right as top-bottom). then set the voltage settings to 2.8, that should give you stock speeds. after that, just change one thing at a time (i wouldn't change the voltage from 2.8 though). you'll probably fall over if you try 2-2-5-2, but i had mine at 2-3-5-2 and it was OK. I never changed the FSB, and dynamic overclock caused it to fall over on auto settings.
    if anything goes wrong, just don't panic, clear your CMOS (check the neo manual for the jumper location, but it's just above the MB switch/light settings) and reboot, hitting delete when you see the core-cell screen. remember that if you've set up a raid you'll have to tweak the bios to recognise it again, but trust me everything will come back to life. if you need a hand, send me a private message and i'll help you out, having built from scratch (first PC build since 1998!) and finally having got mine stable, i've been through it all, and i've gone from unknowing n00b to all knowing nob in a month ;-)
    --Si
    PS. if you set windows without a pagefile (to run from memory) then Prime95 will never work, and you'll perceive it as instable  
    Memtest86+ is the floppy memory test you refer to, and you can get prime95 from a goole search. you'll be fine

  • How I did install Windows 7 64 bits on my IMac Core 2 Duo

    Hey,
    after wondering around, I'll just drop here how I finally found my way, so someone doesn't take days to find the proper tips and tricks and avoid the dead ends I went to.
    Problem :
    - Windows 64 DVD doesn't even start on my IMac Core2Duo 2,8Ghz (2007 model, I think) (something with the booting system) (the 'Choose DVD coot type' issue) ; Windows 7 RC1-32 bits used to
    - If you find how to make, it, then your DVD hardware seems to be no more recognized (the 'Please provide DVD-ROM drivers' issue)
    => faking Windows 7 DVD was a dead end
    So, after, I tried to install it on hard disk using a Virtual MAchine emulator :
    Starting with Snow Leopard :
    Setting up bootcamp partition and boot system :
    1) I restarted Bootcamp process from scratch (removed and recreated windows partition)
    2) I installed Windows 7 RC 1-32 bits with the image you may find somewhere on the web (could work with an older 32 bits windows) ; don't forget to reformat Bootcamp partition during install or you'll get stuck
    => now, the partition and Mac booting process are set up properly
    Installing Windows 7 64
    3) I reboot on MacOS, then launched the Parallel virtualisation stuff (I own it, but it may work with the trial version)
    4) I created a bootcamp Virtual Machine, so my 32 bits Windows 7-RC1 on the Bootcamp Partition ran in Parallel
    5) I started Windows 7 64 bits installation directly from Parallel :
    a) inserted the DVD, connect it to the virtual machine from the Configure panel the usual way,
    b) in the Configure panel, I made the DVD come first in the boot order (before hard drive)
    c) I reboot my virtual machine in Parallels and let it go
    6) when Windows 7 64 bits started, I didn't reformat Bootcamp Partition, it was already ok, I just followed the flow
    After everything went ok, I had Windows 7 64 bits up and virtually running from my Bootcamp partition.
    The real boot
    7) I shut down that Windows 7 64 bits from the Virtual machine (windows menu>Shut down)
    8) I reboot my IMac and... yeehaa ! Windows 64 was running.
    Installing Bootcamp 64 bits drivers for Windows 7 64
    I finally found a good french blog post on how to tweak Bootcamp64 launcher to tolerate Windows 7 and install 64bits drivers as it was Vista :
    http://www.cnetfrance.fr/blog/comment-installer-boot-camp-sur-windows-7-39703366 .htm
    In english, it means :
    In windows 7 :
    a) I found and downloaded Orca, an MSI file editor (easy to find on google)
    b) I copied Bootcamp folder from my Snow Leopard DVD to my desktop (or wherever I could edit them)
    c) I did edit the Bootcamp/Drivers/Apple/BootCamp.msi file with Orca
    d) I just dropped, removed in the "Table" list the entry called "LaunchCondition" (Table list is the left part of the Orca window)
    e) I started bootcamp and it runs the usual way
    And now, I'm ok, playing (my old games in 32 bits compatibility mode ), with Bootcamp up and running.
    Hope it'll help

    No easy fix for a few reasons:
    1) Bootcamp requires a hybrid MBR for the partition table. That is: both an MBR and a GPT partition table at the same time with the GPT one having all partitions and the MBR one having only the ones that are relevant, but at most 4 of them (including the protective partition and the Macintosh HD one). Which leads us to:
    2) The MBR part of the hybrid partition table cannot work with 3TB hard drives. MBR is limited to 2TB.
    I am working on a small EFI app that can boot Windows in EFI mode on a Mac and that would mean that you can go GPT only on your system. The progress of the app is slow due to the nature of EFI and for now requires that you do an unattended Windows install with slipstreamed graphics drivers, but we are adding VGA loading on top of EFI quite soon after the rest of the app stabilises. The status of the app is documented at:
    Win7 x64 booting natively via EFI (no bios emulation)
    Windows does actually successfully boot in EFI mode on most Macs (anything with a 64bit EFI should work), but does not have graphics support even if you load the driver due to the VGA pci registers not being set by the firmware. Furthermore, in Setup and Safe Mode, Windows uses VGA instead of GOP which is a failure by design since VGA is a BIOS standard and not really compatible without hacks with EFI. Other EFI implementations also add VGA compatibility at a high cost to the firmware complexity for the VGA cards available on the market that don't actually contain anything in their ROM except the VGA BIOS.
    My recomendations:
    1) Install on a second smaller hard-drive; or
    2) Wait for the EFI app to come out officially and use that to boot Windows Vista SP1 x64 and Windows 7 x64 (RTM and SP1) in the native EFI mode.
    3) Wait for Windows 8 which supports VGA-less booting acording to the AMD presentation at UEFI Plugfest.

  • I know how to make firefox 12's tabs go to the bottom, but even so they still dont look exactly as they did in 3.6, how do I make them look exactly the same?

    Considering a few websites stopped working for me seeing as I was still using 3.6.X, I reluctantly decided to finally upgrade today, and it automatically upgraded to version 12. Needless to say, I wanted it to look exactly as it did in 3.6.26, and I spent a good portion of the day tinkering with various add-ons and the like to get things back the way they were. One thing is still bugging me though, the tabs, which I managed to get to the bottom of the screen, still dont look exactly as they did. There used to be a small dividing line between the tabs and the actual page, and the + on the new tab button was smaller (and I know this all seems rather picky, but it does bother me). And while I'm at it, is there any add-on that will give me the same back/forward, X, refresh, and home icons as 3.6.26? Any help is greatly appreciated. Thank you.

    Try this extension for the button:
    *Classic (Small) Toolbar Buttons: https://addons.mozilla.org/firefox/addon/cstbb/
    It should be possible to get the needed modifications.
    You can check out this MozillaZine forum thread and ask there for advice about how to tweak the user interface.
    *http://forums.mozillazine.org/viewtopic.php?f=7&t=2057009

  • How can I maximize my wifi speed using the Time Capsule?

    I do not feel that my wifi speed is as fast as it should be.  I have a 2 TB Time Capsule and connect wirelessly with an Apple MacBook Air, an iPhone 5s, an iPad 4, and iPad mini.  The online manual just tells how to do the initial setup but not how to tweak the settings.  Any idea how I can check my settings?

    There's little if anything to tweak. Your wireless speed will depend upon how many devices are using it at the same time since it is shared bandwidth. Wireless is also affected by what's between the device and the router like walls, ceilings, and other obstructions. If you have two devices connected at the same time one of which only supports 802.11a/b connections and one that supports and another that uses 802.11a/b/n (faster), then your network speed will drop down to the speed of the slowest device connected.
    Just use it. There's little you can do unless you have defective hardware.

  • Ultrabeat - how to use it as a drum machine ... any ideas / help

    i want to use logic's ultrabeat as a drum machine/sequencer ... are there any manuals online or can anyone offer help?
    thanks

    I humbly recommend reading the fine manual that came with LE. I found there a vast supply of information regarding Ultrabeat.
    The most important thing of course ist the step sequencer and it's pattern library. you can find it to the lower left of the UB Interface. These preset patterns can be replaced by your own, so quick composing of an UB Drum Sequence is possible. Simply select and draw them to a MIDI region to insert them into your song.
    For this, UB works much the same than most step sequencer drum machines.
    You can also trigger certain patterns with a MIDI Event. Say, you use the lowermost octave of your MIDI Keyboard to trigger the patterns, you can use UB as a live performance drum machine. There are many ways to do this - just look into the manual (can't remember it all).
    The next thing ist: UB lets you synthesize your own drum sounds. It's a comlete Synth with different LFO / Filters and so on. Lots of technical stuff - one **** of a machine for those who know how to tweak. And you can also load your own drum samples into it.
    So much for the moment. Sorry for the RTFM, but i think UB with its complexity needs you to do this.
    Cheers + grooves,
    Fox

  • How to combine Submit value and item values in report condition?

    What I have is a report with some input parameters, one of which is a Select List with Submit that forces population of a second Select List. There is also a GO button. Depending on the combination of the two drop-downs, one of three report regions then gets displayed. This all works fine, but the users would like the report NOT to show UNTIL they click on the GO button. I'm trying to figure out how to tweak my conditions to include a Submit value along with item values. Can someone suggest a solution?
    (PS. I'm using dependent selects because I'm still using APEX 3.2)

    Hello
    When your page is submitted due to the the parent select list's value getting changed the APEX 'REQUEST' variable is set to the name of the select list item.
    You could perhaps use this to perhaps set a hidden item on the page whose value can then be checked in the conditions that control the display of your report regions.
    varad

  • Mapping tweak

    Hello all
    My mapping requirement is
    i need to use a if condition to check for the value of a field in source
    Source:
    <QUOTATION_HEADER_IN>
    <ORDCOMB_IN>X</ORDCOMB_IN>
    </QUOTATION_HEADER_IN>
    <QUOTATION_ITEMS_IN>
    <item> 0 to ..unbounded
    <REASON_REJ>R1</REASON_REJ>
    </item>
    <item>
    <REASON_REJ>R2</REASON_REJ>
    </item>
    <item>
    <REASON_REJ>R3</REASON_REJ>
    </item>
    </QUOTATION_ITEMS_IN>
    Target Exactly the same. one to one mapping but IF ORDCOMB_IN = X then all the REASON_REJ fileds must have the value R1 ( which is is the first occurance)
    I am trying to achieve this. what I have tried is
    Mapping:
                    ORDCOMB_IN -
    >
                                                              UDF --> SplitByValue --> REASON_REJ(Target Field).
       REASON_REJ --> RemoveContext -->
    UDF:
    Execution Type : Context.
    1st param : ORDCOMB_IN
    2nd param : REASON_REJ
    if(ORDCOMB_IN.length > 0)
      if(ORDCOMB_IN[0].equals("X"))
        for(int i = 0;i<REASON_REJ.length;i++)
          result.addValue(REASON_REJ[0]);
    I got this advice from rohit , It worked like charm , But now i need an else block with the If condition . If the the condition that ORDCOMB_IN is notequla to X then REASON_REJ must be mapped as it is to the target strucutre . How can tweak the code to achievbe this ?
    When i tried the same with IF with else function , it works only for one instance of ITEM structure , if there are more than one ITEM structure it doesn't work .
    Any ideas?
    Thanks a lot

    Check the latest reply... 
    result.addValue(REASON_REJ<i>);
    not
    result.addValue(REASON_REJ);
    It will work . I just tried it.
    Pooja

Maybe you are looking for

  • My movie rental did not download. I can't find it to try again.

    I rented two movies via my iPad. The first did not download because of insufficient space. I freed up space, but I don't know how much it needs. The second movie started to download, but did not finish. Now neither is downloaded and I can't find a wa

  • Mailto links are not working. How do I set mailto: links to open in Outlook?

    mailto: links used to open in Outlook. Then they began opening Gmail, so I uninstalled the Google Toolbar. Now mailto: links do nothing when I click on them. I've tried deleting the mimeTypes.rdf as recommended by [http://kb.mozillazine.org/File_type

  • Procedure takes long time to execute...

    Hi all i wrote the proxcedure but it takes long time to execute. The INterdata table contains 300 records. Here is the procedure: create or replace procedure inter_filter is      /*v_sessionid interdata.sessionid%type;      v_clientip interdata.clien

  • Cash journal printout

    Dear All, When i select the cash journal for  print Cash journal  option it is through following error. Standard text FI_CASH_BB_DE text ID ST does not exist in language EN Message no. FB868 pl guide me to solve the issue. Girija

  • My message changes to a text

    I have been messaging a friend, no problems.  But today it will not send and it switches to text messaging, which I have blocked on my phone.  Neither of us have changed any settings, and I can still message other people, and he is receiving messages