A challenging problem

Hi Experts,
I have a package.procedure in which the procedure is as follows:-
CREATE OR REPLACE PACKAGE BODY xx_my_pkg as
PROCEDURE items_exist(P_Source_Organization varchar2 ,P_Dest_Organization  varchar2 ,P_assembly_item varchar2)
   AS
      l_item_table          ego_item_pub.item_tbl_type;
      x_item_table          ego_item_pub.item_tbl_type;
  CURSOR items_exist
      IS
         SELECT DISTINCT msi.*
                    FROM cux_bom_export_temp a, mtl_system_items_b msi
                   WHERE a.component_item_id = msi.inventory_item_id
                     AND msi.organization_id = a.organization_id
                     AND a.organization_id = p_source_org_id
                     AND a.component_item_id NOT IN (
                                                   SELECT inventory_item_id
                                                     FROM mtl_system_items_b
                                                    WHERE organization_id =
                                                                         p_dest_org_id);
   BEGIN
SELECT organization_id into p_source_org_id
           FROM mtl_parameters
          WHERE organization_code =P_source_Organization ;
              FOR i IN items_exist
      LOOP
         --FIRST Item definition
         l_item_table (1).transaction_type := 'CREATE';
                        -- Replace this with 'UPDATE' for update transaction.
         l_item_table (1).organization_code := P_Dest_Organization;
         l_item_table (1).long_description := 'Create test item';
         l_item_table (1).inventory_item_id := i.inventory_item_id;
         l_item_table (1).segment1 := i.segment1;
         l_item_table (1).segment2 := i.segment2;
         l_item_table (1).segment3 := i.segment3;
         l_item_table (1).segment4 := i.segment4;
         l_item_table (1).segment5 := i.segment5;
         l_item_table (1).segment6 := i.segment6;
         l_item_table (1).segment7 := i.segment7;
         l_item_table (1).segment8 := i.segment8;
         l_item_table (1).segment9 := i.segment9;
         l_item_table (1).segment10 := i.segment10;
ego_item_pub.process_items (p_api_version        => 1.0,
                                     p_init_msg_list      => fnd_api.g_true,
                                     p_commit             => fnd_api.g_true,
                                     p_item_tbl           => l_item_table,
                                     x_item_tbl           => x_item_table,
                                     x_return_status      => x_return_status,
                                     x_msg_count          => x_msg_count
end loop;
exception
end;Calling procedure
begin
                     xx_my_pkg.ITEMS_EXIST('M1','V1','38085-40368-20');
                      EXCEPTION
                      WHEN OTHERS THEN
                      DBMS_OUTPUT.PUT_LINE(SQLERRM||'   '||SQLCODE);
                      END;My requirement :
I want to have a fourth parameter which will pass some of the attributes of the l_item_table (not all ) .The user wants to execute this procedure in a way like this:
begin
                     xx_my_pkg.ITEMS_EXIST('M1','V1','38085-40368-20',v_tab);
                      EXCEPTION
                      WHEN OTHERS THEN
                      DBMS_OUTPUT.PUT_LINE(SQLERRM||'   '||SQLCODE);
                      END;
DECLARE
q_tab is record(l_item_tbl ego_item_pub.item_tbl_type,par_name varchar2(100),par_value number);
v_tab  is table of q_tab index by binary integer;
BEGIN
v_tab.EXTEND(3);
v_tab(1).PAR_NAME:=segment1;
v_tab(1).PAR_VAL:=4444;
v_tab(1).PAR_NAME:=inventory_item_id;
v_tab(1).PAR_VAL:=2345;
v_tab(1).PAR_NAME:=segment3;
V-tab(1).PAR_VAL:=2222;
xx_my_pkg.ITEMS_EXIST('M1','V1','38085-40368-20',v_tab);
                      EXCEPTION
                      WHEN OTHERS THEN
                      DBMS_OUTPUT.PUT_LINE(SQLERRM||'   '||SQLCODE);
                      END;
END;
-----The problem i am facing is how to assign this par_name to  l_item_table (1).segment1 inside the procedure?

You've posted a great deal of code specific to your system with an unclear question (i at least don't understand what you're asking).
Can you boil this down to a simple example that can run on any system (give us all the types and what not required for the example) and clarify your question?

Similar Messages

  • Challenge Problem

    Hi Experts and Gurus
    This is the Challenge Problem.
    I created 1 FORMULA variable with Repalcement characteristic which is data type is date name of the Characteristics YMDATE it cotnain manfacturing date for each material.
    date is in this format like DD/MM/YYYY here i want keep constant date for DD.
    ex in YMDATE characteristic
    data like this
          6/4/2005
          7/5/2005
          8/6/2005
          like this go ......   But i want like this 28/4/2005
                                  28/5/2005
                                                    28/6/2005
    finally i want keep day as constant that means DD .
    can anybody help me .
    great challenge issue
    Message was edited by: ANR

    Fist i want say Thanks for your spot responding.
    YMDATE is an attribute of YMATERL ok.
    YMDATE is contain date of the Manfacturing for particular Material ok.
    EX Data.
      YMATERL       YMDATE Dateformat is DD/MM/YYYY
       Item1        11/2/2005
       Item2        21/6/2005
       Item3        05/5/2005
         Here 11,21,05 or days and 2,6,5 are months and 2005 is year. ok.
    In My Reporting i created one FORMULA Variable with REPLACEMENT of YMDATE for some calculation purpose. ok
    Now I want Keep constant days to 28 for avery month
    like this
    Data available in this format.
    EX Data.
      YMATERL       YMDATE Dateformat is DD/MM/YYYY
       Item1        11/2/2005
       Item2        21/6/2005
       Item3        05/5/2005
    My Requirement is
    YMATERL       YMDATE Dateformat is DD/MM/YYYY
       Item1        28/2/2005
       Item2        28/6/2005
       Item3        28/5/2005
    28 for all items like ITEM1 Date and Item2 Date and Item3 Date. in Formula Variable.
    i think now u r understand my problem

  • *Very challenging problem with Firefox involving 'table-layout' attribute and cell padding

    I've been trying to figure this out for days and I just feel
    like my head is going to explode. I don't even think words could
    describe the relief if someone could solve this problem for me.
    I described the problem here to make things easier:
    http://morthian.googlepages.com/Untitled-2.html

    .oO(AngryCloud)
    >I came up with a solution. If I use a div inside of the
    cells instead of
    >assigning them a class, the problem goes away.
    This doesn't sound right. You should put the page up again,
    describe
    what you're trying to do and what the problem is in more
    detail.
    >This is going to take me hours
    >to monotonous work, but I will do what I have to do.
    Search & replace comes to mind, but this shouldn't be
    necessary at all.
    A 'div' inside a table cell just for the sake of "fixing"
    some obscure
    problem is not really a solution, as it doesn't really fix
    anything.
    Micha

  • Challenging problem--who can take this

    Hi All,
    I am facing problem while accesing data from nested table in stored procedure. please go through the QUERY what i pasted below.
    SELECT /*+CHOOSE*/ B.PRODUCT_TYPE CONSOLIDATION_TYPE,
    D.SUPER_PRODUCT_CODE CONSOLIDATION_PRODUCT_CODE, D.SUPER_PRODUCT_DESCRIPTION, D.SUPER_PRODUCT_ASSET_LIABILITY,
    D.SUPER_PRODUCT_TYPE, D.SUPER_PRODUCT_CATEGORY, NULL, NULL, 0, 0, 0, 0, 0, NULL,
    0, 0, 0, 0, 0, D.USER_ID, D.AUTHORIZATION_ID, B.PRODUCT_ORDER MAPPING_ORDER
    FROM NT_STATIC_PF_MASTER A, TABLE(OB_STATIC_PF_MASTER_INFO) B,
    TB_STATIC_PF_SPG_MAPPING C, NT_STATIC_SPG_MASTER D WHERE A.DOMAIN_ID =10101201
    AND A.PORTFOLIO_CODE = 'NPFSAP' AND B.PRODUCT_TYPE=1
    AND C.DOMAIN_ID = A.DOMAIN_ID AND C.PORTFOLIO_CODE = A.PORTFOLIO_CODE
    AND C.SUPER_PRODUCT_CODE = B.PRODUCT_CODE
    AND D.DOMAIN_ID = C.DOMAIN_ID AND D.SUPER_PRODUCT_CODE = C.SUPER_PRODUCT_CODE UNION ALL
    SELECT /*+CHOOSE*/ B.PRODUCT_TYPE CONSOLIDATION_TYPE,
    D.PRODUCT_GROUP_CODE CONSOLIDATION_PRODUCT_CODE, D.PRODUCT_GROUP_DESCRIPTION, D.PRODUCT_GROUP_ASSET_LIABILITY,
    D.PRODUCT_GROUP_TYPE, D.PRODUCT_GROUP_CATEGORY, D.PRODUCT_GROUP_FORMULA,
    NULL, 0, 0, 0, 0, 0, NULL, 0, 0, 0, D.PRODUCT_GROUP_RESERVED,
    D.PRODUCT_GROUP_RESERVED_TYPE, D.USER_ID, D.AUTHORIZATION_ID, B.PRODUCT_ORDER MAPPING_ORDER
    FROM NT_STATIC_PF_MASTER A, TABLE(OB_STATIC_PF_MASTER_INFO) B,
    TB_STATIC_PF_PG_MAPPING C, TB_STATIC_PRODUCT_GROUP_MASTER D WHERE A.DOMAIN_ID=10101201 AND A.PORTFOLIO_CODE = 'NPFSAP' AND B.PRODUCT_TYPE=2
    AND C.DOMAIN_ID = A.DOMAIN_ID AND C.PORTFOLIO_CODE = A.PORTFOLIO_CODE
    AND C.PRODUCT_GROUP_CODE = B.PRODUCT_CODE
    AND D.DOMAIN_ID = A.DOMAIN_ID AND D.PRODUCT_GROUP_CODE = C.PRODUCT_GROUP_CODE UNION ALL
    SELECT /*+CHOOSE*/ B.PRODUCT_TYPE CONSOLIDATION_TYPE,
    D.PRODUCT_CODE CONSOLIDATION_PRODUCT_CODE, D.PRODUCT_DESCRIPTION, D.PRODUCT_ASSET_LIABILITY, D.PRODUCT_TYPE,
    D.PRODUCT_CATEGORY, D.ACCOUNTING_METHOD_CODE, D.PRODUCT_DOWNLOAD_CODE,
    D.PRODUCT_INCLUDE, D.PRODUCT_DEPEND_PRODUCT, D.PRODUCT_CLASSIFICATION,
    D.PRODUCT_SFS, D.PRODUCT_HEDGE, D.YIELD_CURVE_CODE, D.USE_DEALSPREAD,
    D.METHODOLOGY, D.PRODUCT_INTEREST_FREQUENCY, 0, 0, D.USER_ID, D.AUTHORIZATION_ID,
    B.PRODUCT_ORDER MAPPING_ORDER FROM NT_STATIC_PF_MASTER A, TABLE(OB_STATIC_PF_MASTER_INFO) B,
    TB_STATIC_PF_PL_MAPPING C, TB_STATIC_PRODUCT_LINE D WHERE A.DOMAIN_ID=10101201
    AND A.PORTFOLIO_CODE='NPFSAP' AND B.PRODUCT_TYPE=3
    AND C.DOMAIN_ID = A.DOMAIN_ID AND C.PORTFOLIO_CODE = A.PORTFOLIO_CODE
    AND C.PRODUCT_CODE = B.PRODUCT_CODE AND D.DOMAIN_ID = C.DOMAIN_ID AND D.PRODUCT_CODE = C.PRODUCT_CODE ORDER BY MAPPING_ORDER ASC;
    While it is running the PL/SQL it is giving an error object should be declared...
    OB_STATIC_PF_MASTER_INFO(OB_STATIC_PF_MASTER_NT).
    when we REFERED in the oracle errors it they saying use CAST to..
    please solve this and help me out..
    Regards
    --Ravi

    Give me your
    object def.
    nested table name
    and the table that contains the nested table.
    One more thing, try queries without unions I mean each part individually.
    So you can reach to exact problem.
    I am keen to solve your prob. If you have solved write me the solution.

  • Scripting bridge challenge (problem)

    I need help!
    hi,
    i have a cocoa app that has been upgraded to support applescript. I can work with it just fine from the script editor. I intend it to be able to send commands so i am adding scripting bridge support, and I have hit a wall.
    the documentation is very thin, and it doesn't cover my problem, it doesn't mention it, it doesn't even hint that there might be any weird behavior from the Scripting bridge classes.
    one of the very first things I am trying to do is send my app Script commands, from within the app itself. it would be trivial to just call the proper method, but this is an important step in migrating my app to a position of being completely controllable from applescript.
    well, thats where the problem is. I can get a reference to an SBApplication object, using any of the initializers (bundle ID, URL, or PID) but when I send them a script command, it always times out, and returns an applescript error of -609... which is "Connection is invalid.", That leads me to believe that you can't use the scripting bridge to control your app from within your app through applescript.
    does Anybody out there know enough to shed some light on this?

    orangekay wrote:
    The only reason for sending an AppleEvent to oneself is to support recording, and that is accomplished thusly:
    http://developer.apple.com/documentation/AppleScript/Conceptual/AppleEvents/crea tesend_aepg/chapter_7_section_3.html#//appleref/doc/uid/TP40001449-CH209-BABEIJCA
    I would assume you have little to no control over the manner in which events are sent when using the bridge's convenience methods, so this design simply isn't likely to work. Might want to file a bug against the documentation for failing to specify this limitation explicitly, but it's not something I would have ever expected to fly given the limitations of AESend.
    No idea about Scripting Bridge, but objc-appscript [1] gives you extensive control over event creation and dispatch. e.g. To target the host process, create an application object as follows:
    FooApplication *foo = [[FooApplication alloc] init];
    HTH
    has
    [1] Unlike SB, appscript's design goal is to provide an easy-to-use ObjC API for creating and sending Apple events without restricting functionality or compromising real-world application compatibility. The documentation covers the commonly used features; see the framework headers for more arcane tasks such as supplying your own create and send procs.
    Control AppleScriptable applications from Python, Ruby and ObjC:
    http://appscript.sourceforge.net

  • Challenging Problem --  Weblogic Server 9.1 is getting down !!

    Hi All,
    In our QA Environment we are using Weblogic Server 9.1 on Unix Platform.
    Due to somehow its getting hang. The whole application slows down.
    When I looked into the log of that server, I found the following Exceptions:
    <Jun 18, 2007 3:56:49 PM PDT> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.136.101.115:7009, failure count: 1, failing for 0 seconds, java.net.SocketException: Invalid argument>
    Can anybody suggest any ideas to resolve this issue?
    Thanking you in anticipation.
    Regards,
    Jenis

    Hi,
    Contact BEA Support for a patch for this CR283953.
    Hope this will solve the issue.
    Regards
    V.C.Madhu

  • Keychain problem-definitely a challenge problem!

    I have 5 accounts in mail. 4 are yahoo accounts all tied to the same paid account. I use Road Runner. 3 of them are fine. One intermittantly needs the password. When I give it, it accepts it fine.
    I ran keychain access utility--Verify said all was fine, but I Repaired anyway.
    Login Keychain settings are all unchecked.
    I'm using 10.4.8 and I'm getting frustrated.
    Any ideas?

    Could it be the you are allowed to have 3 connections at the same time? The 4th connection asks for the password. Mail always asks for the password if no connection can be made for one or more accounts.

  • BLAST alignment and a challenge problem

    hi guys
    I need your help
    I have two files. each of them has many sequences in fasta format
    and I would like to compare each pair of sequence and get the identity score
    I would like to write a java programs which read the first sequence from the file and read the second sequence from the second file and do balst to get the identity score.
    how I can call blast algorithm or any global alignment tools . the sequences will be not in a file. they will be in a buffer.
    Could you please give a hand
    best regards

    any help will be appreciated

  • Challenging Problem!!

    hi ,
    I have intresting issue with SHDB.Let em explain.
    Open any transaction (ex qm03) issue an output to printer
    and see the print preview, we get to see the preview normally.
    But do the same with SHDB recording we see teh output as list display.
    1. Why does this happen?
    2. How do i get to see the normal way even with SHDB (BDC recording )as we are developing an User interface for quality notifications and we have to allow user to take print outs.
    Any advice is appreciated.
    Danke!!

    Hi ,
    I wish i got a better answer for my post.
    Anyway i could manage to get it workign altering couple of parameters in CTUPARAMS (RACOMMIT and NOBINPT).
    Have a good day!
    Regards,
    Manohar E

  • Challenging Lexical Reference and SQL Problem

    Hi,
    I am trying to build a product hierarchy master report but I have a challenging problem at hand. To generate the report I need an SQL statement with lexical references and before parameter form. Basically, my SQL statement looks something like this:
    Select &Columns
    From &Tables
    Where &Criteria
    Before Parameter:
    In If X='1',
    &Columns := A.NAME, B.NAME, C.NAME
    &Tables:=A,B,C
    &Criteria:= A.CODE=B.CODE, B.CODE=C.CODE
    In If X='2',
    &Columns := A.NAME, B.NAME, C.NAME, D.NAME
    &Tables:=A,B,C,D
    &Criteria:= A.CODE=B.CODE, B.CODE=C.CODE,C.CODE=D.CODE
    In If X='3',
    &Columns := A.NAME, B.NAME, C.NAME, D.NAME, E.NAME
    &Tables:=A,B,C,D,E
    &Criteria:= A.CODE=B.CODE, B.CODE=C.CODE,C.CODE=D.CODE, C.CODE=E.CODE
    I need to build a group left report and group by A,B and up to E if X='3'.
    Any idea how can I accomplish this? Any kind of help or advice is urgently needed. Thank you in advance.

    Siak,
    build a kind of maximum modell. Set the initial values of your Parameters to the maximum (like for columns:
    a.name as aname, b.name as bname, ...., e.name as ename)
    and build a layout for this. Then in a before report trigger set the paramters you want and fill the not needed with dummy values. For example if X=1 then
    :columns := 'a.name as aname, b.name as bname, c.name as cname, ''x'' as dname, ''x'' as ename'
    In the layout supress the output of non used fields with a format trigger or use dependent from your X three different layouts. I've not tested it, but it's a chance ...
    regards
    Rainer

  • JMS queue consumer challenge

    Hi there,
              I have met a pretty challenging problem in JMS queue consumer and
              would like to know if any JMS lovers in the group know about it.
              We have queue receiver listening on queue which contains a number of
              mugs.
              Once a msg is received (onMessage returns), the msg is handed over to
              a worker thread from a thread pool.
              Essentially there are two parts of the problem:
              1. We want kind of flow control - only x number of msg can be
              processed at a given time. This can be resolved by using semaphore.
              However, there might be better solution out there. Anyhow, this is
              less an issue than the second part -
              2. As we know client_acknowledge happens at the session level:
              Acknowledging a consumed message automatically acknowledges the
              receipt of all messages that have been consumed by its session. For
              example, if a message consumer consumes ten messages and then
              acknowledges the fifth message delivered, all ten messages are
              acknowledged. 
              -- this is the problem -- we want to acknowledge each msg
              individually so that only the processed msg is acknowledged although
              there are x number of msg being retrieved. By doing that we won't lost
              any msg in case the JMS client crashes.
              It is a challenge, isn't it? Might well not be one for you, if you
              know the trick. If you do, could you share with us? Thanks a lot.
              Mike
              

    Just to be clear, I favor (2), where each worker thread has its own session and
              consumer.
              This naturally throttles, as there are only as many outstanding messages as
              worker-threads.
              BTW, be aware that it is against spec, and dangerous, to call acknowledge()
              outside of
              onMessage() - as this multi-threads the Session and Session's are not thread
              safe.
              Tom
              Tom Barnes wrote:
              > Actually you both are correct. The ack behavior is configurable on the
              > connection factory via the "AcknowledgePolicy", where the default is
              > what the spec requires (ack-all). Prior to 6.1
              > the behavior was what one would expect (ack-before).
              >
              > As for how to solve the problem at hand. I can think of three approaches:
              >
              > (1) use the current async consumer but set the ack-policy
              > to ack-before, and defer acknowledging a msg until all msgs before
              > it have finished their processing
              >
              > (2) use multiple synchronous consumers, one consumer per defered msg
              >
              > (3) use a single synchronous consumer, but dequeue transactionally,
              > one transaction per msg. suspend the transaction, then have
              > the worker thread resume the transaction once it finishes processing
              > the message and call commit. (Take care that the default
              > tran timeout is 30 seconds.)
              >
              > Shean-Guang Chang wrote:
              >
              > > Just to correct one assumption. Ack the fifth message will not ack message
              > > received after that (e.g. message 6, 7, 8, etc...). At least not WLS JMS.
              > > If this is not true for you please give details of your client code and
              > > version of WLS JMS you have. Thanks!
              > >
              > > "Mike" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Hi there,
              > > >
              > > > I have met a pretty challenging problem in JMS queue consumer and
              > > > would like to know if any JMS lovers in the group know about it.
              > > >
              > > > We have queue receiver listening on queue which contains a number of
              > > > mugs.
              > > > Once a msg is received (onMessage returns), the msg is handed over to
              > > > a worker thread from a thread pool.
              > > >
              > > > Essentially there are two parts of the problem:
              > > >
              > > > 1. We want kind of flow control - only x number of msg can be
              > > > processed at a given time. This can be resolved by using semaphore.
              > > > However, there might be better solution out there. Anyhow, this is
              > > > less an issue than the second part -
              > > >
              > > > 2. As we know client_acknowledge happens at the session level:
              > > > Acknowledging a consumed message automatically acknowledges the
              > > > receipt of all messages that have been consumed by its session. For
              > > > example, if a message consumer consumes ten messages and then
              > > > acknowledges the fifth message delivered, all ten messages are
              > > > acknowledged.
              > > > -- this is the problem -- we want to acknowledge each msg
              > > > individually so that only the processed msg is acknowledged although
              > > > there are x number of msg being retrieved. By doing that we won't lost
              > > > any msg in case the JMS client crashes.
              > > >
              > > > It is a challenge, isn't it? Might well not be one for you, if you
              > > > know the trick. If you do, could you share with us? Thanks a lot.
              > > >
              > > > Mike
              

  • Problems with Video Codec

    Hey Guys!
    I have a very challenging problem that I can't seem to find a solution to. I was hoping a very smart individual out there could give me some advice.
    To make a very long story short, I have A LOT of individual clips(stoped counting at 2,000) that is programing for a television station that recently switched satellite companies. They took all the footage that was in the server and put it on several external drives and shiped it to the new company.
    However, when the files were originally captured, they had excessive black or sometimes bars and slate still on the file. It never showed up because they were able to put "play" ins & outs on the file. The new company is not able to do this, and as you can imagine, they are not happy with the programs having color Bars before they come on. So its up to me to fix it.
    Now heres the problem. The files are Muxed MPEG2 but Quicktime wont play them. The will play in Windows Media Player on Windows.
    What i need to do, if at all possible, is find a way to:
    1. Find a program to trim the excess at the beginnings and ends without recompressing the file
    or
    2. -Convert it to a format that Quicktime can undertand
    -Re-Edit in Final Cut
    -Recompress to Muxed Mpeg 2 with as little quality loss as possible.
    3. (This is where you put in your suggestion)
    I would prefer option 1 myself because Quality is very important on this.
    A few notes.
    -Quicktime will open the files and show me "Movie Info," but when I play them back all that shows up is a white screen and the audio doesn't play.
    -I downloaded MPEG Streamclip but it gives me the same results.
    Any help or suggestions you people could offer would be GREATLY appreciated.
    Thanks,
    James
    Quad 3.0 gHz Mac Pro   Mac OS X (10.4.6)   8 Gig Ram, Final Cut Studio 5.1

    Two things:
    First, there are MPEG editing programs that will allow you to trim the beginning and end of your mpeg clips. The apps are used for joining mpegs. You could look into one. I foujnd one a ways back, but didn't by it. So I can't remember what it was, but Google MPEG editing. Look deep into the search. There may be several and you'll want to read posts about them to make sure they don't suq.
    Second, what playout system are they using. I have not heard of any professioinal level playout system that won't let you time out your show and start at a time other than frame zero. Maybe they just don't know how to do it. Find out what they are using for playout. I am just curious.
    2,000 shows using Streamclip? Boy I wouldn't want that job for free. . .
    EDIT: http://www.videoredo.com/?src=VRD2004-09-08
    http://www.freedownloadscenter.com/Best/mpeg2-edit-fre.html

  • 3D PSD file import : how to change 3D anchor point in AE ? Challenge..!

    Hello everyone,
    I've successfully imported a 3D file from Photoshop Extended CS4 into AE CS4. In AE, I can sucessfully animate rotation of the 3D object.
    Here's the problem : I cannot change the 3D object's anchor point. I've tried changing the anchor point's coordinates on the controller layer of the 3D object layer, the numers change, but the anchor point remains at its initial position, as if it was locked.
    I also thought changing the anchor point in PS Extended before importing the file into AE, but PS Extended does not seem to have an anchor point changing tool.
    So I even reasoned back one step : changing the anchor point in my 3D software since the beginning. Well, not possible because PS Extended seems to create an average position for the anchor point when impoting a 3D file from a third party software. So useless changing the coordinates in the 3D software.
    Photoshop Extended 3D is the only possible workflow to import 3D objects into AE that I know of.
    So, is is possible to change the 3D anchor point directly in After Effects ? What blocks that point from being changed ?
    This is quite a challenging problem, good luck for finding a solution ! I'm very sure that this technique is commonly needed and used when working in 3D, and that it will be of great help for many designers that want 3D in After Effects !
    Thanks again !
    Note : please do not confuse simple After Effects standard 3D layer, with the 3D PSD file import layer, these are two totally different types

    Any further forward with this anyone?
    This is driving me insane as well...
    I'm trying to create a simple comp within AE and have my clients logo fly on behind their text while rotating in 3D space.
    The idea is for it to rotate on the X axis, but rotate within the logo itself (straight through the axis within the logo itself)
    But when I try to rotate it, the AP is about 2.5 "logo depths" away from the logo, so when the rotation of any axis starts it looks ridiculous.
    Are Adobe really trying to tell us that moving the AP is not possible within AE for imported Live Photoshop PSD files?
    Hopefully a solution comes along soon as I cannot for the life of me figure out a workaround to the problem......
    Cheers,
    Paul.

  • Cf8-cf9 and server upgrade problems

    I took over a system developed in coldfusion 8 and sql server
    2005 on a windows server 2003. I was new to all of this. I now need to upgrade to cf9 and sqlserver 2005 on a windows server 2008. someone has done the initial install of sql server cf and dreamweaver. I added java. All seems ok except I can't make the datechooser work. I activated the rds in but I still could not get to datechooser.png. I copied the directory from c.... to the same directory as my application and it showed the icon but did not do anything. I think I have 2 problems here
    1. how to I correctly map to the default CFIDE path
    2. is there something else I need to install to get the datechooser implemyed via cfinput datefield to produce a calender when I click on the icon
    Obviously I am a complete novice at this....
    Thanks in advance for any assistance

    @elizinn, someone may offer a single sentence proposal of how to fix things, but in my experience (helping solve such problems), this could be far more challenging problem to resolve than meets the eye, and all the more so if you're new to all this.
    I'll share my observations, for what they're worth. Sorry if ultimately your problem is totally unrelated, but perhaps then it will help someone else reading this later. Also, it's not clear, but I'm assuming that you DID proceed with the CF9 update. Even if you didn't, some of what I offer could still help you, if you can stick with me.
    First, you refer to not finding the DateChooser.png. Are you saying that it's somehow appearing as a broken link? Or are you getting a 404?
    As a test, it should be found at:
    http://[server]/CFIDE/scripts/ajax/resources/cf/images/DateChooser.png
    What happens when you do that? That could be useful, diagnostically.
    As for the question of mappings, and CF updates, that actually could be a real mess, from my experience, if people aren't careful about what they're doing. Things get all the more complicated when people support multiple web sites and start doing manual configurations. Let me explain.
    The problem could have to do with where the first install of CF8 put the CFIDE, and then where the update to CF9 expected to update those files. It wouldn't be hard for someone not understanding things to have told the update to put its files in a different place than the original install, which could cause IIS (and your sites and requests) to be finding the wrong files (even if not a 404, they may not be the updated version for CF9).
    At root, the problem is that during the install, one is asked whether they want to have CF use its built-in web server or an external one. If they choose the former, then the CFIDE (and related files) are put it in that web server's webroot (which is \wwwroot). If they choose the latter, then the files are put in a docroot defined for IIS. (Even there, someone may later configure things with the web server configuration tool to support several web sites, each of which could have its own web site. And for that, some will manually setup a an IIS "virtual directory" for the CFIDE, which points to whatever single one they think is the one that should be used.
    I appreciate that it may sound confusing. This is one of those things where it may be faster for you to have someone with experience look over your shoulder and help correct things. There are some of us who do that, if you're interested. I list myself and others at cf411.com/#cfassist.
    And things can get hairier still when someone then runs the CF update, where it again asks where to put the CFIDE files. They may not pay close attention to all this above (if they even understand it), and they may let the updater put the files in a different location than the IIS sites are currently configured to look at. That could then leave things not working, or not working well.
    If you want to try to sort this out yourself, look in IIS, view whatever site you're working with, and look for any reference to a CFIDE directory. If it's not there, that's a problem from the start. You will want to add a virtual directory that points to wherever it really exists (and again, you want to be careful that there may be two different ones, as only will likely have been updated by the installer.)
    If it is there, then if it's a "real" directory (within that site's docroot), then again you want to make sure it's the one that was updated in the upgrade to CF9. If not, then you may need to copy whatever files "were" updated into that directory (or delete that directory and create a virtual one to point to the right place).
    And if it's there and it's a virtual mapping, again, make sure it's whatever is the latest CFIDE (if you have multiples).
    I'll note as well that there is also a mapping in the CF Admin (on the mappings page) for CFIDE, and that's put there by the installer (and is not editable in the interface). That could help clarify where the installer put the latest files.
    Hope that's helpful.
    /charlie arehart
    [email protected]
    Providing CF and CFBuilder troubleshooting services
    at http://www.carehart.org/consulting

  • Problems loading Flex3 swf into AIR app

    This is a challenging problem that I have reduced down to the
    bare minimum and it is still reproduceable. I have built a minimal
    AIR application and added a SWFLoader to it which loads a SWF file
    named "Junk.swf" using an absolute path.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" title="Hello World">
    <mx:Style>
    WindowedApplication {
    background-color:"0x999999";
    background-alpha:"0.5";
    </mx:Style>
    <mx:SWFLoader
    source="C:/myProjectFolder/renderers/Junk.swf" width="100%"
    height="100%" />
    </mx:WindowedApplication>
    This works fine if I run the application from within Flex3,
    however when I build an installer, install the application to my
    windows vista system and execute it from the desktop the Junk.swf
    will not display. If I replace the Junk.swf with another SWF of the
    same name created in Flash CS3 then it will display properly when
    my test app is executed from either Flex or the desktop.
    The contents of the loaded SWF don't appear to be an issue
    since even the simplest of Flex3 SWFs fail to display.
    Interestingly when I add listeners to the SWFLoader to
    determine if any errors are happening no error events are sent, but
    I do receive both the INIT and COMPLETE events which tells me that
    the Junk.swf is found and loaded, just not displayed.
    Any assistance or even ideas that I could try would be
    appreciated.

    that's why i added those comments about the swf's domain.  for locally loaded swfs, use:
    SFMltd wrote:
    Hi Kglad, Thanks for the Example.
    if i run my class with securityDomain = SecurityDomain.currentDomain; then it throws this error: SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.
    The swf file im trying to load is stored locally so i guess this error makes sense. However if i comment out that line i get the same "cannot access Stage owned by app" error?
    See below for class:
    package  {
      import flash.display.MovieClip;
      import flash.filesystem.File;
      import flash.events.Event;
      import flash.net.FileReference;
      import flash.events.MouseEvent;
      import flash.display.Loader;
      import flash.net.URLRequest;
      import flash.system.LoaderContext;
      import flash.system.ApplicationDomain;
      import flash.system.SecurityDomain;
      public class assetPreview extends MovieClip {
      private var loader:Loader;
      private var mainSWF:MovieClip = new MovieClip();
      public function assetPreview() {
      addEventListener(Event.ADDED_TO_STAGE, initialise);
      public function initialise(e:Event):void
      removeEventListener(Event.ADDED_TO_STAGE, initialise);
      var allowSWF:LoaderContext = new LoaderContext(false,ApplicationDomain.currentDomain);
    // allowSWF.securityDomain = SecurityDomain.currentDomain;
      loader = new Loader();
      loader.load( new URLRequest(settingsXML.pathToSWF),allowSWF);
      loader.contentLoaderInfo.addEventListener(Event.COMPLETE, viewPreview);
      public function viewPreview(e:Event):void
      addChild(mainSWF);
      mainSWF.addChild(loader);

Maybe you are looking for