RSL problem in Flex3..
Hi,
I am new to Flex and need help to use Runtime Shared Library in my project.
I am trying to create simple RSL Project, but it always gives me error when I try to run from my Tomcat Application Server :
VerifyError: Error #1014: Class mx.core::Application could not be found.
at flash.display::MovieClip/nextFrame()
at mx.managers::SystemManager/deferredNextFrame()
I am using simple ant-compc and ant-mxmlc to compile my library project and main project :
<target name="build" depends="clean" >
<compc output="${FLEX_CUSTOM}/bin/CustomLibrary.swc">
<include-sources dir="${FLEX_SRC}" includes="*"/>
</compc>
</target>
and..
<target name="compile">
<mxmlc file="${FLEX_SRC}/RSLExample.mxml" output="${FLEX_DEPLOY_DIR}/RSLExample.swf">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<compiler.external-library-path dir="${FLEX_CUSTOM}/bin" append="true">
<include name="CustomLibrary.swc" />
</compiler.external-library-path>
<runtime-shared-libraries url="CustomLibrary.swf" />
</mxmlc>
</target>
When I called from my Tomcat using 'localhost:8080/app', I always get this error. I also have copied 'framework_3.2.0.3958.swz' to my deployment folder, but this problem is still there.
Any ideas as to what I am doing wrong? I really need help about this..
I really appreciate any help and suggestion ..
Thx in advance,
Andre
Hi Natasha,
Thank You for your help.. The problem in my project is that I am using URL and some parameters to call my 'app.swf' file.
something like : /app/flex/app.swf?server=http://localhost:8080/app&flexroot=/flex&lang=en_US
I just now that I have to change '/' to '%2F' and ':' to '%3A' . I have changed that way and now it's working.
This is silly mistake and I think I need to read more..
Thx again for your reply..
Similar Messages
-
Very strange problem of flex3 RSL
I can access static public variable of a class in a swf which
is linked by Rutime Shared Library mode for a application,but when
i invoke the static public function of the same class, Flex throw a
Exception:"TypeError: Error #1006: showLoginRunDomain is not a
function", i'm sure that i spell the function name valid and the
code pass through the compiler ,is it a bug of flex3? any one have
the same problem?any one help?
-
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); -
RSL Problems with DataVisualization Components and Flex 3.4 SDK
After discovering that the 3.4.1 SDK included with Flash Builder Beta 2 seems to be incomplete (missing the data visualization components and some of the signed swz files).
I've attempted to install the latest official build SDK into Flash Builder 4 and I'm running into a problem with the RSLs for datavisualization.swz. I did have to locate the datavisualization components on adobe.com an coppied them into the apporpiate directories.
Error #2046: The loaded file did not have a valid signature.
Failed to load RSL http://...com/flex/rsls/datavisualization_3.4.0.9271.swz
Failing over to RSL http://...com/flex/rsls/datavisualization_3.4.0.9271.swf
The app run fine but it isn't caching the RSLs. Is this a known problem with attempting to use an older build of the SDK with Flash Builder or is there something else going on? I previously was building this project with Flex 3.2 but I figured while I was at it to upgraded to the latest official 3.4 SDK.So I've added the suggested lines to the flex-config.xml and it doesn't help. I had to alter the path to the swf and swz slightly to get it to match the pre-existing entry for the framework.swz so I have the following rsl entries in my config now:
<runtime-shared-library-path>
<path-element>libs/framework.swc</path-element>
<rsl-url>framework_3.4.0.9271.swz</rsl-url>
<policy-file-url></policy-file-url>
<rsl-url>framework_3.4.0.9271.swf</rsl-url>
<policy-file-url></policy-file-url>
</runtime-shared-library-path>
<runtime-shared-library-path>
<path-element>libs/datavisualization.swc</path-element>
<rsl-url>datavisualization_3.4.0.9271.swz</rsl-url>
<policy-file-url></policy-file-url>
<rsl-url>datavisualization_3.4.0.9271.swf</rsl-url>
<policy-file-url></policy-file-url>
</runtime-shared-library-path>
If I have everything set to be merged into code or have the "Use local debug runtime shared libraries when debugging" checked then the message doesn't appear. But the minute I attempt to load the swz from same directory as the app or crossdomain like previously I'm getting thie same basic message even with manually coping the swz to the output directory or having the checkbox for "Copy library to deployment path" box checked.
Error #2046: The loaded file did not have a valid signature.
Failed to load RSL datavisualization_3.4.0.9271.swz
Failing over to RSL datavisualization_3.4.0.9271.swf
I've verified that all the copies of the swz are exactly the same and that no corruption is taking place as all the copies of the swz have the same md5 of 8b3138326f85d4b5b1aae9866f3909c0. I figured that 3.4 has been out long enough it would be a known issue is there was a problem with how the swz is signed and I'm unable to locate any such beug reports. I can't be the 1st person to try loading 3.4's datavisualization components as an RSLs.
The corresponding section of of .actionscriptProperties file for the RSL is currently this
<libraryPathEntry index="4" kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/datavisualization.swc" useDefaultLinkType="true">
<crossDomainRsls>
<crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="datavisualization_3.4.0.9271.swz"/>
<crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="datavisualization_3.4.0.9271.swf"/>
</crossDomainRsls>
</libraryPathEntry> -
Hi everyone,
I have a large-ish project that I'm working on in which I'd
like to make use of RSLs. I faithfully followed the directions
given in the "RSL example" section of the help files. This is what
I did and the result with which I did it:
compc -sp com/foo/bar -debug=false -o bin/mylib1.swc OPBase
Result: "Error: A file found in a source-path must have the
same package structure '', as the definition's package,
'com.foo.bar'.
When I tried deleting the package declaration from the file
defining the OPBase class (that is, the "package com.foo.bar"
part), the compc compiler worked, but my project would no longer
compile, complaining that "A file found in a source-path must have
the same package structure 'com.foo.bar', as the definition's
package, ''.
Thinking that I must be doing something wrong, I replicated
exactly the structure used in the "RSL example" page in the help
files,
only to get the same errors.
So, is this a bug or working as intended? Am I doing
something obviously wrong?Hi everyone,
I have a large-ish project that I'm working on in which I'd
like to make use of RSLs. I faithfully followed the directions
given in the "RSL example" section of the help files. This is what
I did and the result with which I did it:
compc -sp com/foo/bar -debug=false -o bin/mylib1.swc OPBase
Result: "Error: A file found in a source-path must have the
same package structure '', as the definition's package,
'com.foo.bar'.
When I tried deleting the package declaration from the file
defining the OPBase class (that is, the "package com.foo.bar"
part), the compc compiler worked, but my project would no longer
compile, complaining that "A file found in a source-path must have
the same package structure 'com.foo.bar', as the definition's
package, ''.
Thinking that I must be doing something wrong, I replicated
exactly the structure used in the "RSL example" page in the help
files,
only to get the same errors.
So, is this a bug or working as intended? Am I doing
something obviously wrong? -
Problem with flex3/coldfusion8 running locally
Hello all:
i am a novice flex3 user, and i am having trouble running
flex with cf8 (am also a novice cf8 user).
i have teied to run several example cf3/cf8 apps (one from
adobe website, one from lynda,com) with code pre-written so i am
pretty sure the "core" code is not the issue (??) but i keep
getting error mesages that appear to be java-related. I am running
the develop (free) version of cf8 using the web-based administrator
to configure, etc ... i am running it from my local computer
(localhost:8100); i run windows xpsp3. i am running these examples
on two computers and getting the same error message, provided below
... any help or suggestions would be appreiated.
Thank you -- Bob
ERROR MESSAGE:
404
/myProject/myProject.html
java.io.FileNotFoundException: /myProject/myProject.html
at
jrun.servlet.file.FileServlet.service(FileServlet.java:349)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)i think error 404 means the file doesn't exist... assumably
the myProject.html file in this case... go to your webroot and
check if that file is where it says it should be.
not sure if this is any help... i am busy sucking at trying
to get flex and cf to speak via livecycle and find i can't run any
of the online examples i find... so, if i am wrong about this you
know why :) -
Hi,
I am trying to solve the following problem in Flex3:
I have layout with 4 quadrants ["Ch" for Child component
class]:
Ch1 Ch2
Ch3 Ch4
If I click a button in ch4 [i.e. state ch4a], it is supposed
to expand and cover Ch2, i.e.
Ch1
Ch4a
Ch3
Class Parent1 [inside Accordion]:
VBox
HBox1
<view:Ch1 width="60%" />
<view:Ch2 width="40%" />
/HBox1
HBox2
<view:Ch3 width="60%" />
<view:Ch4/>
/HBox2
/VBox
So in class Ch4 I created a view stateA which is based on
BaseState.
A) What makes more sense, fire event in class Ch4 on that
button click,
capture it in Parent1 and somehow [how?] change a layout so
that Ch2 is not there
but twice higher Ch4a is instead of it and no second part in
HBox2 ?
I would guess, ActionScript instead of MXML or is there a way
to express that in MXML?
Or how should that ActionScript look like ?
B) The other [easier] possibility is to get a handle to
Parent1 [parent container]
from the viewstateA of Ch4 and do something like:
<SetProperty target={this.parent} name="y" value="0">
Is it feasible? So far that didn't work for me. Any
suggestions?
Few other details:
1) it's all in Cairngorm AIR app;
2) that button in Ch4 is on one side a toggle button between
view states,
on the other side processing is completely different, but I
can handle that through calling
2 different private functions. I am saying only in one
state[BaseState] that event should be fired.
3) Background: Ch1 and Ch3 have lots of dropdowns, and what
user selected would be displayed
in Ch4A [that top portion], so user "Signs" that info, that's
a point of the whole screen.
Is there easy way to pass these selections to Ch4 ?
As of now, it's all buried deep inside some complex obscure
VOs .
Any help is very appreciated.
Thank you in advance,
Oleg.The robot method is quite slow, and it can only capture images that are actually on the screen in the foreground. In any case, I stumbled on this article: [Performance Improvement Techniques for JavaFX Applications|http://javafx.com/docs/articles/performance/] that mentions the 'cache' member variable of a Node/Group can be used to tell the system to convert the Node to a bitmap (internally) for performance improvement. I haven't done any testing of my own, but it's an easy addition if you have a performance sensitive app.
-
RSL Error 3 of 3 - Is this problem to do with Flash Player?
In trying to access sailing screens on www.sailonline.org I get the message "RSL Error 3 of 3", with the following at the foot of the page.
"Flex Error #1001: Digest mismatch with RSL http://www.sailonline.org/static/windy/framework_3.5.0.12683.swf. Redeploy the matching RSL or relink your application with the matching library."
There is discussion on this in the sailonline site, but the solutions suggested have not worked for me. I see also similar being discussed elsewhere on internet.
Does anyone know about this?"Flex Error" would indicate that the problem lies within the SWF.
A "workaround" that may work is listed here: https://success.salesforce.com/answers?id=90630000000gxC9AAI, but the posters also acknowledge that the problem is in the content and not the Player. -
Flex3/air calling functions in embedded swf problem
i'm a newbie to flex so i'm hoping there is going to be a
simple answer to this problem. it's caused a massive headache!
i have been using a swfLoader to load a swf, then triggering
function calls within the swf from flex by using the following in
the script tag of my mxml
var mc:MovieClip = MovieClip(myMP3player.content);
mc.loadMP3Player("file:///"+path, artist, title);
where loadMP3Player is the function in the linked swf and
myMP3player is the id of the swfLoader.
this works great, no problems... but when i change the code
so that the swf is embedded, rather than loaded at runtime the code
above gives a
"ReferenceError:Error #1069 Property loadMP3Player not found"
error
when i try to trigger the function.
i have tried many different ways of referencing and embedding
the swf, all have the same result. i.e. swf loads fine and the flex
project compiles without errors, but i am unable to call the
function. see the code snippet for my details.
any help will be really appreciated.
btw: i need to embed the swf as i am distributing the
finished article as an air app.
-------------------------------------------------code
excerpt--------------------------------------------------1. You must be using the Flex Component Kit for Flash
2. Select the clip in the library that you want to turn into
a component for Flex
3. Use the command (command menu in Flash) to convert the
clip to a Flex Component
4. Publish -> your swc is ready
If you don't have a document class, one is made automatically
and it has the same name as the name of the clip in the library
You can provide a document class. Look at the linkage
identifier for the clip in the library. There you will see what the
name of the class is. Create the class yourself and Publish. Now
add the swc to your library path in Flex. Now you can use the
component as any other component in Flex. So, put the clip on the
stage using mxml or in ActionScript using var myplayer = new
MyPlayer(); -
Suivre le livre Flex3 pearson avec le soft Flex4 -- probleme sdk
j'ai des problèmes en voulant suivre le livre flex3 de macromedia abobe training from the source avec le logiciel Flex 4
Il semble que ce soit un pobleme de SDK
Lors de la création d'un projet, on peut choisir le sdk 3.6 ou 4--> ce ne semble pas être suffisant !
Si l'on choisi l'option 3.6, est t-il nécessaire de télécharge le sdk 3.6 ?
Faut t'il charger un SDK particulier autre pour ce livre ?
j'ai trouver ou télécharger les SDK, mais le sais pas sur quel version me base.
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3
Merci pour votre aide ou retour d'expérience. -
Runtime problems after migrating from Flex3 to 4 in compatibility mode
We are migrating our Flex-3.2 application to Flex 4.1, mainly to take advantage of the new text flow/engine features. In a first step we decided to go with compiling for MX-only and in Flex-3-compatibility mode.
Thanks to some helpful resources (
http://www.adobe.com/devnet/flex/articles/flexbuilder3_to_flashbuilder4.html
http://stackoverflow.com/questions/1563482/any-flex-4-migration-experience
http://www.adobe.com/devnet/flex/articles/flex3and4_differences_02.html
) I am able to compile our application.
But I find myself surprised about the amount of runtime differences ranging from the problem that I cannot cast ResultEvent.currentTarget to HTTPService ( which apparently was introduced in 3.5 ) to many layout problems to differences in event dispatching ( e.g. one of our legacy components listens to the add event which it just doesn't seem to get anymore ).
It seems there is very little documentation on this. I'd like to find a list with detailed changes so that we don't have to rely on QA to stumble across hopefully all issues.
This documents lists some, but doesn't seem exhaustive.
Does someone have a better list of documented changes from SDK 3.2 to 4.1?
Thanks
Stefan
PS. Concrete example of one surprising change:
In Flex 4:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
private function notFired():void
trace("ADDED");
private function fired():void
trace("COMPLETE");
]]>
</fx:Script>
<mx:TextArea add="notFired();" creationComplete="fired();"/>
</mx:Application>
Now do the same in Flex 3 and you'll see both events fire.The add event is a bug.
-
Am I the only one who has a problem trying to complete the O'Reilly Gettining Started with Flex3 PDF
This is the first time i am trying to understand any and everyhign flex. So i am trying to go through the pdf which is recommended to get acquainted with the program. One issue i see is that the pdf leaves out details right from the star. The next issue is that when i try to run the initial example program, the compiler has an issue with a negative number given to the rotation (mind you, this number is what's in the example) and then the last issue is that the image that you are supposed to use sems to have two different filenames in the tutorial. At this point i just gave up and am wondering if it's me or the tutorial. I'm pretty sure its the pdf. But is it me? Let me know
I think to start your best resource is install Adobe media player and then follow the Flex in a Week videos and exercises for which this forum is set up. You can follow the video, read the PDFs or simply download the exercise files and follow the included instructions.
-
Problem processing xml in flex3
Hi All,
I am just starting to learn flex and got stuck on processing/parsing xml data in flex client.
I have a jsp page which returns xml. Returned xml contains this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <results type="success">
- <products>
- <product>
<id>6</id>
<cat>electronics</cat>
<name>Plasma Television</name>
<desc>65 inch screen with 1080p</desc>
<price>$3000.0</price>
</product>
- <product>
<id>7</id>
<cat>electronics</cat>
<name>Surround Sound Stereo</name>
<desc>7.1 surround sound receiver with wireless speakers</desc>
<price>$1000.0</price>
</product>
- <product>
<id>8</id>
<cat>appliances</cat>
<name>Refrigerator</name>
<desc>Bottom drawer freezer with water and ice on the door</desc>
<price>$1200.0</price>
</product>
- <product>
<id>9</id>
<cat>appliances</cat>
<name>Dishwasher</name>
<desc>Large capacity with water saver setting</desc>
<price>$500.0</price>
</product>
- <product>
<id>10</id>
<cat>furniture</cat>
<name>Leather Sectional</name>
<desc>Plush leather with room for 6 people</desc>
<price>$1500.0</price>
</product>
</products>
</results>
And I have flex code that tries to iterate over products like following:
private function productListHandler(e:JavaFlexStoreEvent):void
productData = new ArrayCollection();
trace(JavaServiceHandler(e.currentTarget).response);
for each (var item:XML in JavaServiceHandler(e.currentTarget).response..product )
productData.addItem( {
id:item.id,
item:item.name,
price:item.price,
description:item.desc
with trace, I can see the xml being returned from the server. However, I cannot get inside the loop as if the xml was empty. In other words, JavaServiceHandler(e.currentTarget).response..product must be returning nothing. Can someone please help/point out what I could be doing wrong.
Thanks
ajaI put together a simple example of looping through xml results for you:
<?xml version="1.0" encoding="utf-8"?><mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"creationComplete="myData.send()"
>
<mx:Script><![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
private var productData:ArrayCollection;
private function productListHandler(event:ResultEvent):void{productData =
new ArrayCollection();
for each (var item:XML in event.result..product ){productData.addItem( {
id:item.id.toString(),
item:item.name.toString(),
price:item.price.toString(),
description:item.desc.toString()
]]>
</mx:Script><mx:HTTPService
id="myData" url="data/data.xml" result="productListHandler(event)" resultFormat="e4x" />
</mx:Application>
But you must know that you can simply return the results as "object" (the default), and then you don't have to loop through the results at all. -
I try the flex 3 beta 2 today.Can you help me?
main.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white"
xmlns:views="ne_views.*">
<mx:XML id="imagesXML" source="../data/images.xml" />
<mx:HBox id="hBox">
<mx:Repeater id="rep"
dataProvider="{imagesXML.image}">
<views:THUMBNAIL
imageData="{rep.currentItem}"
/>
</mx:Repeater>
</mx:HBox>
</mx:Application>
THUMBNAIL.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
verticalScrollPolicy="off"
horizontalScrollPolicy="off">
<mx:Script>
<![CDATA[
[Bindable]
public var imageData:Object;
]]>
</mx:Script>
<mx:Image source="{imageData.currentItem.@src}"
toolTip="{imageData.currentIndex}:{imageData.currentItem.@alt}"
/>
</mx:Canvas>
images.xml
<?xml version="1.0" encoding="utf-8"?>
<images>
<image src="../images/Button.png" alt="Button" />
<image src="../images/ButtonBar.png" alt="ButtonBar"
/>
<image src="../images/CheckBox.png" alt="CheckBox" />
</images>A bridge cannot be a repeater to an Access point and furthermore:
Repeater access points running Cisco IOS software cannot associate to parent access points that that do not run Cisco IOS software and vise versa.
http://www.cisco.com/en/US/products/hw/wireless/ps4570/products_configuration_guide_chapter09186a0080417b41.html#wp1036125 -
Problem in trigger when inserting in mtl_transactions_interface there is an added row
hi,
i have a problem in the trigger when i have a command of 2 lines and do a reception and insertion in table mtl_transactions_interface i found 3 lines, i didn't know where come the 3 row
create or replace
TRIGGER TOP_RCV_TRANSACTION_ACC_T2 AFTER
INSERT ON PO.RCV_TRANSACTIONS FOR EACH ROW DECLARE
CURSOR org_item_cur
IS
SELECT distinct organization_id,
inventory_item_id
FROM mtl_system_items_b
WHERE inventory_item_id=
(SELECT distinct item_id
FROM rcv_shipment_lines
WHERE shipment_line_id=:new.shipment_line_id
CURSOR item_cur
IS
select distinct RSL.item_id
from
RCV_SHIPMENT_HEADERS RSH
,RCV_shipment_lines RSL
where :new.shipment_header_id=RSH.shipment_header_id
and RSH.shipment_header_id=RSL.shipment_header_id;
X_att_item VARCHAR2(10);
X__bc_ot VARCHAR2(10);
X_sum_qty NUMBER;
X_receipt_num VARCHAR2(30);
X_count_article NUMBER;
X_item_org NUMBER;
X_org_id NUMBER;
X_serial_number NUMBER;
X_dec_dou varchar2(100);
X_DAE varchar2(100);
X_LOCATOR_ID NUMBER;
X_ITEM_REVISION varchar2(3);
X_ITEM_ID NUMBER ;
X_PO_NUMBER VARCHAR2(20) ;
BEGIN
FOR item_rec IN item_cur
LOOP
IF (:new.transaction_type='DELIVER' and :new.organization_id=83 and (item_rec.item_id=61305 or item_rec.item_id=61306)) THEN
SELECT distinct receipt_num
INTO X_receipt_num
FROM RCV_SHIPMENT_HEADERS
WHERE shipment_header_id=:new.shipment_header_id;
SELECT COUNT(*)
INTO X_count_article
FROM mtl_system_items_b
WHERE inventory_item_id=
(SELECT distinct item_id
FROM rcv_shipment_lines
WHERE shipment_line_id=:new.shipment_line_id
--récupérer le numéro de commande à partir de la table PO_HEADERS_ALL
select distinct PHA.segment1
into X_PO_NUMBER
from PO_HEADERS_ALL PHA
where PHA.PO_HEADER_ID=:new.PO_HEADER_ID;
-- Récupérer la révision de l'article
select distinct ITEM_REVISION
into X_ITEM_REVISION
from rcv_shipment_lines
WHERE shipment_line_id=:new.shipment_line_id;
IF (X_count_article > 1) THEN
FOR org_item_rec IN org_item_cur
LOOP
IF (org_item_rec.organization_id=83 and(org_item_rec.inventory_item_id =61305 or org_item_rec.inventory_item_id =61306) ) THEN
INSERT into inv.mtl_transactions_interface
transaction_interface_id,
SOURCE_CODE,
SOURCE_LINE_ID,
SOURCE_header_ID,
PROCESS_FLAG,
TRANSACTION_MODE,
INVENTORY_ITEM_ID,
REVISION,
ORGANIZATION_ID,
SUBINVENTORY_CODE,
TRANSACTION_QUANTITY,
TRANSACTION_UOM,
TRANSACTION_DATE,
TRANSACTION_TYPE_ID,
TRANSACTION_REFERENCE,
TRANSACTION_COST,
LAST_UPDATE_DATE,
LAST_UPDATED_BY,
CREATION_DATE,
CREATED_BY,
lock_flag,
transaction_source_name,
transaction_source_type_id,
Flow_Schedule,
Scheduled_Flag,
distribution_account_id ,
LOCATOR_ID
VALUES
mtl_transactions_interface_s.nextval,
'INTERFACE',
0,
0,
1,
3,
org_item_rec.inventory_item_id,
X_ITEM_REVISION,
161,
'CENTRAL001',
:new.quantity,
:new.uom_code,
sysdate,
202,
X_PO_NUMBER,
:new.po_unit_price,
sysdate,
:new.LAST_UPDATED_BY,
sysdate,
:new.LAST_UPDATED_BY,
2,
X_receipt_num,
13,
'Y',
2,
347783,
:new.attribute1
END IF;
END LOOP;
if org_item_cur%ISOPEN then
close org_item_cur;
end if;
END IF;
END IF;
END LOOP;
END;
please help me and give me solutions to localisate the problem?This trigger will fire at the time of every PO receipt and receiving transactions such as Accept, Reject, Deliver, RTV etc.
May be you forgot to put a WHEN clause in Trigger.
Maybe you are looking for
-
How do you print an envelope in Pages?
I want ro print an envelope for my letter. How do I do this in Pages?
-
Longtime FF user. Still on 3.6.28 mostly, due to my need for my large collection of hierarchically organized bookmarks. I have 2000+. Trying FF 19 today. Successfully imported the json file from other system. Via the Bookmarks menu, Show All reaches
-
Delete spaces in internal table
Hi this question is to improve my performance... what is the performance oriented way of delete entires in internal table where any of the field is empty. 1 2 3 4 5 6 7 A B C D E F G "<< ok A B C E F G "<< dele
-
[svn] 3685: -Branch 3.0.x (@ rev.
Revision: 3685 Author: [email protected] Date: 2008-10-16 10:18:39 -0700 (Thu, 16 Oct 2008) Log Message: -Branch 3.0.x (@ rev. 3643) to 3.2.0 -3.0.x will be renamed to 3.x Added Paths: flex/sdk/branches/3.2.0/
-
Just wondered if you could help me please to download iso7 thankyou sue