Replace with catalog in sourcing

Hi all,
In sourcing cockpit, I replace a free text shopping requirement to a catalog item and then process it to create a PO.
But when i check the shopping cart, the free text does not get replaced by the catalog product.
This information is available only in the PO
Where in the shopping cart can I see the replaced catalog item
Basically I'm trying to determine whether the shopping cart item is a catalog product or not
Rgds
Venkat

Hi Venkat
Question not clear?
1. Are buyer expected to change the free text product category ?
Answer: - NO
only Requester able to change before he ordered a cart . since now the cart is in Purchaser work list ,requester may not do this request. Admin can do it if he has access on behalf of REQUESTER.
Muthu

Similar Messages

  • Char '¦' gets replaced with '|' in sp source when restoring a data base.

    char '¦' gets replaced with '|' in sp source when restoring a data base. This makes the procedure put a character for separating a string different (|) from the espected one (¦). And this makes the application failed.
    Can anyone help me out?
    Thanks,
    Frank

    I'll follow the thread in Data Base - General from now on.
    In case u see this one first:
    To ALL:
    Thanks 355099, Joel, and Justin:
    Oracle9i Enterprise Edition Release 9.2.0.4.0
    Charset: ?? I'll will ask the data base guy. (we are preaty small). It is reported as a bug in my system, the thing is I usually do not program against this kind of bug. :)
    Anyways, the usage is as follows, this guy uses an empty restore to install the database for application installation purposes.
    instaed of running some scripts the test for the instalation is done as a restore.
    import/export is the action being done here.
    Again I use the ¦ char to separate a string array.
    Something to consider is that the chars are:
    124 | and 166 ¦
    They are both ascii aren't they?
    Why would the impor/export change the char ¦ for |?
    if is a charset problem why isn't the changed char a ? or a # or a 9 or a non printable char, instead it changes for a |.
    x_x
    Frank

  • SoCo - Replace with Catalog Item SC: CATALOGID field not updated

    Hi All:
    We are in SRM 7.0 and ECC 6 Classic Scenario
    In our PDP business scenario, PReq's from ECC goes to SoCo and we replace some requirements with Catalog Item. The issue for our compliance reporting the SC
    table:BBP_PDIGP
    field: CATALOGID
    is not getting updated.
    Do we need a BADI to this work or this is a bug?
    Any input is appreciated.
    Thanks,
    Mike

    Any changes you made to the SC in sourcing cockpit will not be saved to the SC tables. This is standard SRM behavior. You may have to write a code in custom programi to save the data back to SC table.
    Regards,
    Jagadish

  • Find and replace with multiple files and with a watch folder

    I am trying to create a watch folder that uses red_menace script to:
    1. Have a folder that receives multiple xml files that run the script one by one.
    2. then move the files to an output folder.
    I tried modifying the set TheFIle to choose file -- the original text file to:
    with multiple selections allowed
    But that doesn't seem to work. I know i'm missing a step. Any help is much appreciated!
    Thanks!
    The way i'd like to setup things is having an input folder on the desktop (or just have the application on the desktop and I can drag the files onto it), and let it do it's thing. Once it's done have it export the xml files into an output folder.
    Here's what i got so far:
    on open
    set TheFIle to choose file -- the original text file
    set TheFolder to ("Macintosh HD:Users:user1:Desktop:out") -- the folder for the output file
    set TheName to (GetUniqueName for TheFIle from TheFolder) -- the name for the output file
    set TheText to read TheFIle -- get the text to edit
    set Originals to {"KPCALDATE", "KPCALEVENT", "KPCALDAY", "KPCALBODY", "obituaries name", "" & return & "</cstyle></pstyle>" & return & "<pstyle name=\"obituaries text\"><cstyle>", "<pstyle name=\"obituaries text\"><cstyle name=\"Graphics Bold leadin\" font=\"ADV AGBook-Medium 2\">", "<pstyle name=\"Recipe Ingredients\"><cstyle>", " .com", " .net", " .org", " .edu", "www .", "www. ", "Ho- nolulu", "<pstyle name=\"kicker 12\"><cstyle allcaps=\"1\">fashion news</cstyle><cstyle allcaps=\"1\">" & return & "</cstyle></pstyle>" & return & "", "<component name=\"Headline 1\" type=\"Headline\">" & return & "<header>" & return & "<field name=\"Component name\" type=\"string\" value=\"Headline 1\"/>" & return & "<field name=\"Component type\" type=\"popup\" value=\"Headline\"/>" & return & "</header>" & return & "<body>" & return & "<pstyle name=\"hed STANDARD 36\"><cstyle>", "<pstyle name=\"obituaries text\"><cstyle allcaps=\"1\">", "<pstyle name=\"obituaries text\"><cstyle name=\"Graphics Bold leadin\">", "<pstyle name=\"tagline\"><cstyle>-", "-", "
    Per serving:", "<pstyle name=\"Titlebar - mini, red\"><cstyle allcaps=\"1\">NATION & World </cstyle><cstyle allcaps=\"1\">Report</cstyle><cstyle allcaps=\"1\">" & return & "</cstyle></pstyle>" & return & "", "</cstyle></pstyle>"} -- the terms that can be replaced
    set Replacements to {"subhed", "subhed", "subhed", "Normal", "obituaries text", ", ", "<pstyle name=\"obituaries text\"><cstyle name=\"Graphics Bold leadin\" font=\"ADV AGBook-Medium 2\">", "<pstyle name=\"Recipe Ingredients\"><cstyle>
    ", ".com", ".net", ".org", ".edu", "www.", "www.", "Honolulu", "", "<component name=\"Headline1\" type=\"Headline\">" & return & "<header>" & return & "<field name=\"Component name\" type=\"string\" value=\"Headline1\"/>" & return & "<field name=\"Component type\" type=\"popup\" value=\"Headline\"/>" & return & "</header>" & return & "<body>" & return & "<pstyle name=\"hed STANDARD 27\"><cstyle>", "<pstyle name=\"obituaries text\"><cstyle allcaps=\"1\">", "<pstyle name=\"obituaries text\"><cstyle name=\"Graphics Bold leadin\">", "<pstyle name=\"tagline\"><cstyle>—", " —", "
    Per serving:", "","" & return & "</cstyle></pstyle>"} -- the replacement terms
    repeat with AnItem from 1 to count Originals
    set TheText to (replaceText of TheText from (item AnItem of Originals) to (item AnItem of Replacements))
    end repeat
    try -- write a new output file
    tell application "Finder" to make new file at TheFolder with properties {name:TheName}
    set OpenFile to open for access (result as alias) with write permission
    write TheText to OpenFile starting at eof
    close access OpenFile
    on error errmess
    try
    log errmess
    close access OpenFile
    end try
    end try
    end open
    to GetUniqueName for SomeFile from SomeFolder
    check if SomeFile exists in SomeFolder, creating a new unique name if needed
    parameters - SomeFile [mixed]: a source file path
    SomeFolder [mixed]: a folder to check
    returns [text]: a unique file name and extension
    set {Counter, Divider} to {"00", "_"}
    -- get the name and extension
    set {name:TheName, name extension:TheExtension} to info for file (SomeFile as text)
    if TheExtension is missing value then set TheExtension to ""
    set TheName to text 1 thru -((count TheExtension) + 2) of TheName
    set NewName to TheName & "." & TheExtension
    tell application "System Events" to tell (get name of files of folder (SomeFolder as text))
    repeat while it contains NewName
    set Counter to text 2 thru -1 of ((100 + Counter + 1) as text) -- leading zero
    set NewName to TheName & Divider & Counter & "." & TheExtension
    end repeat
    end tell
    return NewName
    end GetUniqueName
    to EditItems of SomeItems given Title:TheTitle, Prompt:ThePrompt
    displays a dialog for multiple item edit (note that a return is used between each edit item)
    for each of the items in SomeItems, a line containing it's text is placed in the edit box
    the number of items returned are padded or truncated to match the number of items in SomeItems
    parameters - SomeItems [list]: a list of text items to edit
    TheTitle [boolean/text]: use a default or the given dialog title
    ThePrompt [boolean/text]: use a default or the given prompt text
    returns [list]: a list of the edited items, or {} if error
    set {TheItems, TheInput, TheCount} to {{}, {}, (count SomeItems)}
    if TheCount is less than 1 then return {} -- error
    if ThePrompt is in {true, false} then -- "with" or "without" Prompt
    if ThePrompt then
    set ThePrompt to "Edit the following items:" & return -- default
    else
    set ThePrompt to ""
    end if
    else -- fix up the given prompt a little
    set ThePrompt to ThePrompt & return
    end if
    if TheTitle is in {true, false} then if TheTitle then -- "with" or "without" Title
    set TheTitle to "Multiple Edit Dialog" -- default
    else
    set TheTitle to ""
    end if
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {SomeItems, AppleScript's text item delimiters} to {SomeItems as text, TempTID}
    set TheInput to paragraphs of text returned of (display dialog ThePrompt with title TheTitle default answer SomeItems)
    repeat with AnItem from 1 to TheCount -- pad/truncate entered items
    try
    set the end of TheItems to (item AnItem of TheInput)
    on error
    set the end of TheItems to ""
    end try
    end repeat
    return TheItems
    end EditItems
    to replaceText of SomeText from OldItem to NewItem
    replace all occurances of OldItem with NewItem
    parameters - SomeText [text]: the text containing the item(s) to change
    OldItem [text]: the item to be replaced
    NewItem [text]: the item to replace with
    returns [text]: the text with the item(s) replaced
    set SomeText to SomeText as Unicode text -- TID's are case insensitive with Unicode text
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, OldItem}
    set {ItemList, AppleScript's text item delimiters} to {text items of SomeText, NewItem}
    set {SomeText, AppleScript's text item delimiters} to {ItemList as text, TempTID}
    return SomeText
    end replaceText
    Message was edited by: gamebreakers

    When you use the open or adding folder items to handlers, you need to add the parameters for the file items passed to them.
    I'll go ahead and post the applet/droplet version of my original script from the previous topic for reference:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- search and replace multiple items applet/droplet/folder action
    -- the terms to replace - edit as needed
    property EditableItems : {¬
    "one", ¬
    "two", ¬
    "three", ¬
    "four", ¬
    "five", ¬
    "six", ¬
    "seven", ¬
    "eight", ¬
    "nine", ¬
    "ten", ¬
    "eleven", ¬
    "twelve", ¬
    "thirteen", ¬
    "fourteen", ¬
    "fifteen", ¬
    "sixteen", ¬
    "seventeen", ¬
    "eighteen", ¬
    "nineteen", ¬
    "twenty"}
    -- the folder for the output file(s) - change as needed
    property TheFolder : (path to desktop)
    property LastEditItems : EditableItems
    on run
    the applet/droplet was double-clicked
    open (choose file with multiple selections allowed)
    end run
    on open TheItems
    items were dropped onto the applet/droplet
    parameters - TheItems [list]: a list of the items (aliases) dropped
    returns nothing
    repeat with AnItem in TheItems
    ReplaceMultipleItems from AnItem
    end repeat
    end open
    on adding folder items to this_folder after receiving these_items
    folder action - items were added to a folder
    parameters - this_folder [alias]: the folder added to
    these_items [list]: a list if items (aliases) added
    returns nothing
    repeat with AnItem in these_items
    ReplaceMultipleItems from AnItem
    end repeat
    end adding folder items to
    to ReplaceMultipleItems from SomeFile
    replace multiple text items in SomeFile
    parameters - SomeFile [alias]: the file to replace items in
    returns nothing
    set TheName to (GetUniqueName for SomeFile from TheFolder) -- the name for the output file
    set TheText to read SomeFile -- get the text to edit
    set Originals to (choose from list EditableItems default items LastEditItems with prompt "Select the terms to replace:" with multiple selections allowed) -- the specific terms to replace
    set LastEditItems to Originals
    set Replacements to (EditItems of Originals with Title given Prompt:"Edit the following replacement terms:") -- the replacement terms
    repeat with AnItem from 1 to count Originals
    set TheText to (ReplaceText of TheText from (item AnItem of Originals) to (item AnItem of Replacements))
    end repeat
    try -- write a new output file
    tell application "Finder" to make new file at TheFolder with properties {name:TheName}
    set OpenFile to open for access (result as alias) with write permission
    write TheText to OpenFile starting at eof
    close access OpenFile
    on error errmess
    try
    log errmess
    close access OpenFile
    end try
    end try
    end ReplaceMultipleItems
    to GetUniqueName for SomeFile from SomeFolder
    check if SomeFile exists in SomeFolder, creating a new unique name if needed
    parameters - SomeFile [mixed]: a source file path
    SomeFolder [mixed]: a folder to check
    returns [text]: a unique file name and extension
    set {Counter, Divider} to {"00", "_"}
    -- get the name and extension
    set {name:TheName, name extension:TheExtension} to info for file (SomeFile as text)
    if TheExtension is in {missing value, ""} then
    set TheExtension to ""
    else
    set TheExtension to "." & TheExtension
    end if
    set {NewName, TheExtension} to {TheName, (ChangeCase of TheExtension to "upper")}
    set TheName to text 1 thru -((count TheExtension) + 1) of TheName
    tell application "System Events" to tell (get name of files of folder (SomeFolder as text))
    repeat while it contains NewName
    set Counter to text 2 thru -1 of ((100 + Counter + 1) as text) -- leading zero
    set NewName to TheName & Divider & Counter & TheExtension
    end repeat
    end tell
    return NewName
    end GetUniqueName
    to EditItems of SomeItems given Title:TheTitle, Prompt:ThePrompt
    displays a dialog for multiple item edit (note that a return is used between each edit item)
      for each of the items in SomeItems, a line containing it's text is placed in the edit box
        the number of items returned are padded or truncated to match the number of items in SomeItems
    parameters - SomeItems [list]: a list of text items to edit
    TheTitle [boolean/text]: use a default or the given dialog title
    ThePrompt [boolean/text]: use a default or the given prompt text
    returns [list]: a list of the edited items, or {} if error
    set {TheItems, TheInput, TheCount} to {{}, {}, (count SomeItems)}
    if TheCount is less than 1 then return {} -- error
    if ThePrompt is in {true, false} then -- "with" or "without" Prompt
    if ThePrompt then
    set ThePrompt to "Edit the following items:" & return -- default
    else
    set ThePrompt to ""
    end if
    else -- fix up the given prompt a little
    set ThePrompt to ThePrompt & return
    end if
    if TheTitle is in {true, false} then if TheTitle then -- "with" or "without" Title
    set TheTitle to "Multiple Edit Dialog" -- default
    else
    set TheTitle to ""
    end if
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {SomeItems, AppleScript's text item delimiters} to {SomeItems as text, TempTID}
    set TheInput to paragraphs of text returned of (display dialog ThePrompt with title TheTitle default answer SomeItems)
    repeat with AnItem from 1 to TheCount -- pad/truncate entered items
    try
    set the end of TheItems to (item AnItem of TheInput)
    on error
    set the end of TheItems to ""
    end try
    end repeat
    return TheItems
    end EditItems
    to ReplaceText of SomeText from OldItem to NewItem
    replace all occurances of OldItem with NewItem
    parameters - SomeText [text]: the text containing the item(s) to change
    OldItem [text]: the item to be replaced
    NewItem [text]: the item to replace with
    returns [text]: the text with the item(s) replaced
    set SomeText to SomeText as text
    if SomeText contains OldItem then
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, OldItem}
    try
    set {ItemList, AppleScript's text item delimiters} to {text items of SomeText, NewItem}
    set {SomeText, AppleScript's text item delimiters} to {ItemList as text, TempTID}
    on error ErrorMessage number ErrorNumber -- oops
    set AppleScript's text item delimiters to TempTID
    error ErrorMessage number ErrorNumber
    end try
    end if
    return SomeText
    end ReplaceText
    to ChangeCase of SomeText to CaseType
    changes the case or capitalization of SomeText to the specified CaseType using Python
    parameters - SomeText [text]: the text to change
    CaseType [text]: the type of case desired:
    "upper" = all uppercase text
    "lower" = all lowercase text
    "title" = uppercase character at start of each word, otherwise lowercase
    "capitalize" = capitalize the first character of the text, otherwise lowercase
    returns [text]: the changed text 
    set SomeText to SomeText as text
    if CaseType is not in {"upper", "lower", "title", "capitalize"} then return SomeText
    return (do shell script "/usr/bin/python -c \"import sys; print unicode(sys.argv[1], 'utf8')." & CaseType & "().encode('utf8')\" " & quoted form of SomeText)
    end ChangeCase
    </pre>
    Edit: how does the choose from list dialog handle those big strings? I'm guessing not very well - is that why you avoided using them?
    Message was edited by: red_menace

  • XSLT mapping not working b'coz " " & " " replaced with and

    Hello Experts,
      I have a RFC to JMS scenario. One of the parameter of RFC is a string field. This field will contain the XML data in it.
    I need to create a complete XML payload using this data in a string field. For this I am using XSLT map :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
         <xsl:output method="xml" omit-xml-declaration="no"/>
         <xsl:template match="/">
              <xsl:for-each select="//Nem">
                   <xsl:copy-of select="."/>
              </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>
    This XSLT mapping works fine when tested independently.
    But in actual scenario at runtime the "<" & ">" used to indicate a node are getting replaced with < and >. Then the XSLT mapping fails and produces no output.
    The output of XSL will be passed in to a java mapping which signs the payload digitally.
    What is the issue with these signs? How can I overcome this problem?
    Any inputs will be of great help.
    Kind Regards,
    Abhijeet.
    Edited by: Abhijeet Ambekar on May 4, 2010 2:01 PM

    Hi Stefan,
      Yes - I want to get rid of & # 60. But these (& # 60 and & # 62) are not added by XSLT mapping. Rather they are in the input available to XSLT map.
    In sxmb_moni, i can see the inbound payload correctly :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:HDK083_REFUS_SENDDOCU xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <P_SIGN_DOCUMENT />
      <P_XML_DOCUMENT><NemRefusionIndberetningSamling><NemRefusionIndberetningStruktur MessageID="1"><HeaderStruktur><SignOffIndikator>true</SignOffIndikator><TransaktionKode>Opret</TransaktionKode><IndberetningstypeKode>Anmeldelse</IndberetningstypeKode><FravaerTypeKode>Sygdom</FravaerTypeKode><FravaerendeStruktur><FravaerendeTypeKode>Loenmodtager</FravaerendeTypeKode><LoenUnderFravaerIndikator>false</LoenUnderFravaerIndikator></FravaerendeStruktur><IndberetningUUIDIdentifikator>bf9cc44e-af15-4e19-8457-5845d75385d2</IndberetningUUIDIdentifikator><ReferenceAttributTekst>ref. Nielsen-1503831372 (23. oktober 2009)</ReferenceAttributTekst>
    but when I try to download the payload or right click on payload to view source I get something like below:
    <?xml version="1.0" encoding="UTF-8"?><rfc:HDK083_REFUS_SENDDOCU xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><P_SIGN_DOCUMENT></P_SIGN_DOCUMENT><P_XML_DOCUMENT>& # 6 0;NemRefusionIndberetningSamling& # 62; & # 60;NemRefusionIndberetningStruktur MessageID="1"& #62;& #60;HeaderStruktur& #62;& #60;SignOffIndikator& #62;true& #60;/SignOffIndikator& #62;& #60;TransaktionKode& #62;Opret& #60;/TransaktionKode& #62;& #60;IndberetningstypeKode& #62;Anmeldelse& #60;/IndberetningstypeKode& #62;& #60;FravaerTypeKode& #62;Sygdom& #60;/FravaerTypeKode& #62;& #60;FravaerendeStruktur& #62;& #60;FravaerendeTypeKode& #62;Loenmodtager</FravaerendeTypeKode><LoenUnderFravaerIndikator& #62;false</LoenUnderFravaerIndikator></FravaerendeStruktur& #62;<IndberetningUUIDIdentifikator& #62;bf9cc44e-af15-4e19-8457-5845d75385d2& #60;/IndberetningUUIDIdentifikator& #62;& #60;ReferenceAttributTekst& #62;ref. Nielsen-1503831372 (23. oktober 2009)& #60;/ReferenceAttributTekst& #62;
    (extra spaces added to "& # 60" as browser was converting it to < ,>)
    If i take the source code for payload and test XSLT mapping, it fails. But if I manually replace all "& # 60" with < and "& # 6 2" with >, then the mapping works fine.
    So I think for XSLT map to work correctly, we need to replace all "& # 60 " . Please suggest.
    Kind Regards,
    Abhijeet.

  • Problem with creating JAVA Source. please help

    Dear all
    how are you.
    In fact I have made a simple java class that return a string which represents the screen size . for example 800/600 or 1024/768 or others
    but I face error ORA-29541 class string.string could not be resolved
    This what i made
    first i created my JAVA Source
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "ScreenProperty" AS
    import java.lang.Object;
    import java.awt.*;
    public class ScreenProperty
    int w;
    int h;
    public static String getScreenSize()
    w = Toolkit.getDefaultToolkit().getScreenSize().width;
    h = Toolkit.getDefaultToolkit().getScreenSize().height;
    return w+"/"+h;
    SQL>Operation 160 succeeded.
    this means the the java source created successfuly
    and I'm sure that my java code is correct
    then i created a fuction to call this java source as fellow
    SQL> create or replace function f_get_screen_size
    return varchar2
    as language java
    name 'ScreenProperty.getScreenSize() return java.lang.String';
    Function created.
    the I Issued this sql statement to return the result that should be varchar2 that represent the sceen size(1024/768)
    SQL> select f_get_screen_size from dual;
    ORA-29541 class string.string could not be resolved.
    I do not know what is the reason for this error
    and when i searched the documentation for this error i found
    ORA-29541 class string.string could not be resolved
    Cause: An attempt was made to execute a method in a Java class that had not been previously and cannot now be compiled or resolved successfully.
    Action: Adjust the call or make the class resolvable
    I need to know what is the problem.
    And is there another way to load this class other than making JAVA SOURCE
    please help

    before drawing hands of clock you could fill a circle/oval with certain color, then you'd have that kind of circle that has been filled as backgound.
    you may change those dots to be small lines for 12, 3, 6 and 6 o'clock and then have small dots represent 1, 2, 4, 5, 7, 8, 10 and 11 o'clock
    anyhow, you should study that code and see how you can modify it whitout breaking it but having it look different.
    better yet would be trying to understand how it works, what any line there means and then recreate your own... this way you would learn more....
    and if there are some methods or anything you don't understand, then look them up from API documentation
    good luck.

  • Catalog:setActiveSources( sources )

    The API doc says: "Do not mix collections with folders".
    It also says: "This is  the equivalent of selecting items on the leftmost panel in the Library  module"
    I regularly select both collections and folders in the leftmost panel... Hmmm... I wonder what's the rub?
    R
    Excerpt from API doc:
    catalog:setActiveSources( sources )
    Sets the sources from which the grid photos are currently drawn. This is  the equivalent of selecting items on the leftmost panel in the Library  module. The active sources can be a set of collections and collection  sets, or a set of folders.First supported in version 3.0 of the Lightroom SDK.
    Parameters
    1. sources
    (string or array) Can be an array of objects, or a string that identifies a predefined set of photos.
    If an array, it can contain any mix of LrCollection, LrCollectionSet, LrPublishedCollection and LrPublishedCollectionSet, or it can contain one or more LrFolder objects. Do not mix collections with folders.
    If a string, it must be one of the string constants defined in these LrCatalog properties:
    kAllPhotos
    kQuickCollectionIdentifier
    kPreviousImport
    kTemporaryImages
    kLastCatalogExport
    kTargetCollection
    Return valueTrue on success, false if the sources are not correctly specified.

    I read that a couple of months ago and wondered the same thing.  But I never got around to testing the actual semantics, because getActiveSources() is broken:
    http://forums.adobe.com/message/3302290#3302290
    Also, it's undocumented that you need to call setActiveSources() from within a task:
    http://forums.adobe.com/message/3302389#3302389

  • "Replace with Precomp" Script

    A new addition to AE CC is "Replace With Precomp" which you can access with the context menu in the project panel. Is there a method that was added to After Effects so that we can access this feature via scripting?

    Got it to work. Here is my solution if anyone is looking for something similar. Thanks again David.
    ======
    var proj = app.project;
    var selection = proj.selection;
    for (var i = 0; i < selection.length; i++)
                    // Get a list of comps that the footage is being used in
                    var compsUsedIn = selection[i].usedIn;
                    // Creates comp based on selected footage settings
                    var newComp = proj.items.addComp(selection[i].name, selection[i].width, selection[i].height, selection[i].pixelAspect, selection[i].duration, selection[i].frameRate);
                    // Add footage to the new comp
          newComp.layers.add(selection[i]);
                    // Loops through the used comps
                    for (var x = 0; x < compsUsedIn.length; x++)
                                   var layersInComp = compsUsedIn[x].numLayers;
                   // Loop through the layers in each used comp
                                  for (var y = 1; y <= layersInComp; y++)
                                                 // Replaces matching instances with the new comp
                                                 if (compsUsedIn[x].layer(y).source == selection[i]) {
                                                           compsUsedIn[x].layer(y).replaceSource(newComp, true);

  • DWCC2014.1 - When Inserting an Image, all code is wiped and replaced with HTML framework containing an iFrame

    I recently upgraded to DW CC 2014.1 on my Mac - which caused me a number of issues. But the one I'm facing right now is very strange.
    Whenever I try to insert an image - either via the shortcut, or through the top level dropdown dialogue - when the file browser comes up, all of my HTML code disappears, to be replaced with a starter template and an iframe. This happens about 90% of the time - but it sometimes works correctly, and I can't figure out why it does work that 10%.
    Usually, I can just cancel the file browser and Undo to get my code back. But occasionally that doesn't work (and neither does Revert), and I have to close the document and re-open to my last save.
    Here's what appears when my code vanishes:
    Anybody know what's happening here? I don't use any specially created shortcuts. I've run into several issues with 2014.1 that have impacted my productivity, and it's getting increasingly frustrating.

    I am experiencing the same issue.
    Environment: Mac Pro 6,1/OS X 10.9.5/DreamWeaver CC 2014.1 6947 Build
    Relevant software: DefaultFolder X 4.6.10 (16690)
    Steps:
    1) Position cursor on its own line in Code panel of Split View.
    2) Press Cmd+Option+I [OR] select Insert > Image > Image
    3) Navigate to image using file browser
    4) Click OK
    5) Repeat the above steps to insert a second image
    Result with DefaultFolder X active:
    1) The first insert completes as expected [OR] all HTML code between opening and closing body tags disappears, and a frame tag with a source attribute pointing to the file itself is inserted after the closing head tag
    2) For subsequent inserts:
    If the first insert completed as expected: If the cursor is indented from farthest-left,  all HTML code between opening and closing body tags disappears, and a frame tag with a source attribute pointing to the file selected in the first insert appears after the closing head tag. If the cursor is not indented, *most* subsequent attempts will reproduce the issue
    If the first insert produced the issue: all subsequent inserts will reproduce the issue, and the frame source will be the file itself
    Result with DefaultFolder X disabled:
    1) The first insert completes as expected [OR] all HTML code between opening and closing body tags disappears, and a frame tag with a source attribute pointing to the file itself is inserted after the closing head tag
    2) For subsequent inserts:
    If the first insert completed as expected: If the cursor is indented from farthest-left,  all HTML code between opening and closing body tags disappears, and a frame tag with a source attribute pointing to the file itself, no matter what file is selected in the file browser dialog, appears after the closing head tag. If the cursor is not indented, *most* subsequent attempts will reproduce the issue
    If the first insert produced the issue: all subsequent inserts will reproduce the issue, and the frame source will be the file itself

  • Replace With After Effects Composition... What's the Point...???

    Hi...
    So I have a timeline that I want to CC in AE....
    I select all the clips and choose "Replace with After Effects Compostion"
    PPRO correctly initiates an AE launch which then correctly makes a Composition with all my clips in it...
    Now, ALL the clips, while there in the AE Comp, DONT have the clip names I gave them in the Timeline in PPRO.
    They have the original clips names. Like MVI_9987.MOV which is totally misleading....
    Why on earth would PPRO NOT adopt the names of the clips in the timeline to the after effects compostion ??
    This is my major gripe with Adobe, you have so many GREAT and VERY Innovative but totally NON-Thought-Thru' features. It is killing me.
    This here among so manu other things is what makes your CS Suite (Aside from Photoshop) a Pro-Sumer Solution....
    A professional solution is NOT regarded professional because it has fancy features, it is regarded as such because the features it HAS have been WELL contemplated and integrated.
    I hope your CS6 version is going to take care of all those small problems...
    But then again, been having those hopes since CS4

    The bit I do not understand is why the need to rename the Clips and how that becomes of value in either PPRO or AEFX (or Resolve or elsewhere).
    Say YOU have to colorize my movie that I am currently cutting. The timeline consists of about 630 clips, derived from about 300 sources (Clips in Bin)
    The clips in the bin have the original rush name... Thus BLABLA.mov... This way you can alsways go back and in time. Adobe has integrated something called METADATA and THAT should be use to describe scenes, shots etc.
    That is why adobe made a BIG deal out of integrating Metadata..
    Now, in above scenario let us assume that you CC in AfterEffects. I'll send you the project via overnight on  a hard drive, and tomorrow you open it either via Importing the Project into AE or by opening it in PPRO and hitting replace with AE comp.
    You going to get 630 individual layers in the AE Com. The layer names are going to be derived from the source clips. So you are going to be looking at MAX 300 different names. YOU SHOULD be looking at 630 different names. But you are not.
    AE will ignore the PPRO clipsnames and just generically name the layers by the source clip name.... Again... even if I had renamed all the source clips in the bins ONE source clip could be contain 7 differen subclips in the whole timeline.. ALL THOSE clips would share the same name... Thus nothing to do with it label..
    So, now I have YOU on the phone, breathing down my neck, trying to communicate to me WHICH clip had THAT cool sunrise effect. I DID label it Sunrise... But PPRO and AE messed that up... So I go....
    Hoooold On, Shooter..... Let me just open the timeline and count from left to right.... 1,2,3,4,5,6.... 459,,,, Ohhhh there it is... Clip number 459 from the left... Have fun Counting clips.
    I hope you understand what I am saying, if not... OK...  at least then I can understand why you DONT understand -)   (No Disrespect Meant)
    You make the following over dramatic claim about how fast your workflow is ....but to me, that would be slow and imprecise.
    Based on your questions I can understand why you would feel that way.
    I bet you are one of those guys thinking FCPx's event library sucks ;-)
    Can you tell me how you name the clips in the workflow you describe here...?
    I select the clip, hit ctrl-r (rename clip), give it a name and move on to the next...

  • Find text and replace with image - Help needed

    Hi,<br /><br />We need to place the images as inline in the appropriate places.<br /><br />texttexttext<<test1.eps>>texttexttexttexttexttext<<test2.eps>>texttexttexttexttexttext< <test3.eps>>texttexttexttexttexttext<<test4.eps>>texttexttexttexttexttext<<test5.eps>>text texttext<br /><br />This code is helpful for placing a single image at a time, we are unable to place all the images in one shot, can anyone help me out.<br /><br />I am not a programmer.<br /><br />-----------<br />var myDoc = app.activeDocument; <br />app.findPreferences = app.changePreferences = null; <br />var math=document.search("test.eps"); <br />for (i=math.length-1; i >=0; i--)<br />{ myDir = Folder.selectDialog(); <br />AllGraphics = Folder(myDir).getFiles('test.eps') <br />for (i=0; i<math.length; i++) { app.select(anil1[i]); <br />     myDoc.place(AllGraphics[i],false); } }<br />-----------<br /><br />Note: I have taken this code from forum and we have made some changes on this.<br /><br />Kavya

    Jongware,<br /><br />I try running it but gives errors:<br /><br />Error Number: 55<br />Error String: Object does not support the property or method 'changePreferences'<br />Line: 24<br />Source: app.findPreferences = app.changePreferences = null;<br /><br />This is the code I used<br /><br />// Find text and replace with image for InDesign CS3 <br />// http://www.adobeforums.com/webx?128@@.3bbf275d.59b6f012<br />var heyItsAnArray = new Array ( <br /><br />   "it contains this line!", <br /><br />   "as well as this one", <br /><br />   "or even more!", <br /><br />   "test.eps" ); <br /><br />for (arrayCount=0; arrayCount<heyItsAnArray.length; arrayCount++) <br /><br />{ <br /><br />   replaceImg (heyItsAnArray[arrayCount]); <br /><br /> } <br /><br />function replaceImg (name) <br /><br />{ var myDoc = app.activeDocument;  <br />     app.findPreferences = app.changePreferences = null;  <br />     var math=document.search(name); <br />     for (i=math.length-1; i >=0; i--)  <br />     { myDir = Folder.selectDialog();  <br />          AllGraphics = Folder(myDir).getFiles(name)  <br />          for (i=0; i<math.length; i++) { app.select(anil1[i]); <br />               myDoc.place(AllGraphics[i],false); <br /><br />               } <br /><br />          } <br /><br />     }<br /><br />Michael

  • How to undo the "replace with after effects composition" command?

    Hi,
    I don't know if there is a better way, but i make my color corection in after effects with Color Finesse and i use this command: right click on clip and "replace with after effects composition" - that a good way but, the problem is when i wanna to undo this and to bring back my old clip from an AE Composition.
    this is how my clip looks beforee
    and after
    it works fi i use "undo" command, but after i save the project, and restart premiere, that command is gone.
    my question: what can I do to bring back my old video?
    thanks.

    You can try to go to one of the autosave versions and see if you can bring it back that way (if the history is cleared)...
    Seems a little extreme
    If you still have the original source audio in your sequence, as your example shows, park the CTI at the beginning of clip instance and target just the audio track (i.e. deselect the video track). Hit the M key to match frame the original master clip, hit I to mark an in point, and then hold down the Alt key and drag the Video Only button from the Source Monitor to the AE comp item. The AE comp will be replaced with the original video and linked to the audio.
    The upshot of all this is that, unless you make a duplicate before using the "Replace" command or undo immediately after doing so, there is no direct way to get back to the original footage.

  • Zombie artwork in iTunes 11 - cant replace with new

    I made up an album for a party and gave it a random piece of artwork.
    Now when I have disassembled the album iTunes insists on using that random artwork even though I have gone through the Get Info/Artwork process and deleted the old and replaced with new. I even deleted the tracks completely (both locally and cloud), rebooted iTunes and then replaced the tracks with different source material. Loe and behold next day the old art work is back and the new disappeared. Obviously lurking somewhere is the old artwork and it knows which tracks it used to "own" and iTunes "helpfully" corrects my attempts to change and puts the old back.
    Any suggestions?

    The exact same thing happened to me!
    installed 11.1 on my 10.6 Intel MacBook Pro (2006). No issues.  Then suddenly I couldn't keep the program open.
    After reading your description I was reminded that this started after I went through the settings & turned on the podcast sync. Now it keeps crashing & I can't keep it open long enough to check that option!
    I've restarted, ran DiskWarrior on my computer & my external drive that holds the iTunes library.  It was open for a while so I could update apps, but the second I opened the podcast tab... CRASH & can't keep it open longer than 30 seconds.  Guess I'm gonna have to trash preferences or something 'cause this is getting crazy.

  • Why does page-break-before get replaced with br class hcp10?

    why does <br style="page-break-before: always;"> get replaced with <br class="hcp10">
    This issue only occurs when generating an HTML Help CHM file.

    An alternative method can be found in Item 23 at http://www.grainge.org/pages/snippets/snippets.htm#content.
    Are you saying the code in the source file gets changed? I suspect you mean target files but how are you identifying the change in a CHM? Is the change causing a problem?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Moving LR5 catalog (Irdata & Ircat) to a new hard drive and photos. Lost all meta data - How do I move meta data along with catalog?

    I moved LR5 catalog (Irdata & Ircat) to a new hard drive and photos. Lost all meta data - How do I move meta data along with catalog?
    The meta data for each image is missing.
    I have over 2,000 images. I don't want to go back through each image and add meta data.
    Is there some way to move everything?

    No, do not re-import your images. I assume you can see the thumbnails in the library module, just cannot access the full images, right? If this is the case there should be an exclamation mark in the top right corner of every one of your pictures and you only have to tell LR where the images are now.
    Click the exclamation mark of one of the images and a dialog window should pop-up, telling you that LR cannot find the file, but with an option to locate it. Press "Locate" and navigate to the folder on your new HD where the file is. If in the new external HD you kept the same folder structure that you had on the internal disk, LR will be able to find all your images and re-link them to the database without further intervention.

Maybe you are looking for

  • How can I change the background color of a chart?

    How can I change the default black background color of a chart to white? Thanks John

  • How to make picture change????

    My question is that I have a place where I want to put a picture on my webpage. I know how to do that but what if I want the picture to change to a different picture periodically. I have seen this on some pages where when you come back to the webpage

  • Improved speaker volume on late 2007 MacBooks?

    I just bought a new 2.2 ghz black MacBook last week. The internal speaker volume sounds fine to me. Did the Santa Rosa chip set fix this problem?

  • Removing header node in xml file

    Hi Experts, Actually i want to remove the parentnode tag from the resultant output, do we have any java code to remove such xml nodes. mt_receiver HeaderNode --Field1 --Field2 ParentNode PurchaseOrder --Field1 --Field2 PurchaseHeader --Field1 --Field

  • InDesign CS5.5 to CS6 bug involving Tables

    Hello I am having issues when editing files that were created in InDesign CS5.5 with CS6, most specifically with Tables. When I open a file created in CS5.5 with CS6 some of the tables are corrupted. When I try to edit the content in the corrupt tabl