Change a state in main.mxml from a script in another mxml

Hi,
i'm having some trouble with my application, let's say i have the main application file called MAIN.MXML
in wich i have set different States, and have different forms.
now i have a form called loginForm which contains the textInput item for Login and Password, i also have a link Need to Register
which onClick will change the state to show in the same panel a different form registerForm (with the relevant textInput items)
now the MAIN.MXML includes a custom component called <comp: NetworkManager /> which includes all the logic scripts and MXML
tags to create and manage an HTTPService request to a PHP Server.
when the user click on the Login button, this will call a function included in the main.as script (imported in MAIN.MXML) which
will call a function in the script within NetworkManager.MXML passing all the form data.
in NetworkManager.MXML the script will create an XML message, will send to the PHP Server and wait the response... if this comes
true the user is authenticated, otherwise is not.
so far so good, i get the message sent, the correct response back. Now i want to hide the form in MAIN.MXML and put something like
Welcome firstName lastName!! instead. But i don't know how to do it. If i try to access the states in MAIN.MXML from the NetworkManager.MXML
i'll get all sort of errors which i don't have it here with me.
I know this sounds like a newbie question, and it really is ... any taker?
your help is much appreciated.
thanks
T.

Hi,
i've tried RemoveChild but i get an error like:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()[C:\autobuild\3.2.0\frameworks\p rojects\framework\src\mx\core\UIComponent.as:5096]
at mx.core::Container/removeChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\ core\Container.as:2274]
at components::NetworkManager/sendUserAuthHandler()[C:\Documents and Settings\Tom\My Documents\flex_prj\Shoppy\src\components\NetworkManager.mxml:182]
at components::NetworkManager/serverHandler()[C:\Documents and Settings\Tom\My Documents\flex_prj\Shoppy\src\components\NetworkManager.mxml:98]
at components::NetworkManager/__serverRPC_result()[C:\Documents and Settings\Tom\My Documents\flex_prj\Shoppy\src\components\NetworkManager.mxml:290]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\framewor ks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:290]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.2.0\frameworks\ projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responde r.as:43]
at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\ AsyncRequest.as:74]
at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\s rc\mx\messaging\channels\DirectHTTPChannel.as:403]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
who is the caller of loginForm then? i've tried with Application.application.loginForm but i do get the same error though.
loginForm is contained in a Canvas item, is it the caller? or who else?
thanks
T.

Similar Messages

  • My MacBook Pro (OSX 10.9.4) reboots automatically when opening images or websites with images that change rapidly or when switching rapidly from an image to another or sometimes on slides on Diaporama.

    My MacBook Pro (OSX 10.9.4) reboots automatically when opening images or websites with images that change rapidly or when switching rapidly from an image to another or sometimes on slides on Diaporama.

    Sun Sep  7 10:31:09 2014
    panic(cpu 2 caller 0xffffff7fa0fa4f7c): "GPU Panic: [<None>] 5 3 7f 0 0 0 0 3 : NVRM[0/1:0:0]: Read Error 0x00610210: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff813ad12000 0x0a5480a2, D0, P3/4\n"@/SourceCache/AppleGraphicsControl/AppleGraphicsControl-3.6.22/src/Apple MuxControl/kext/GPUPanic.cpp:127
    Backtrace (CPU 2), Frame : Return Address
    0xffffff8128feb0b0 : 0xffffff801ec22f79
    0xffffff8128feb130 : 0xffffff7fa0fa4f7c
    0xffffff8128feb200 : 0xffffff7f9f625f1b
    0xffffff8128feb2c0 : 0xffffff7f9f6ef50a
    0xffffff8128feb300 : 0xffffff7f9f8a70e5
    0xffffff8128feb330 : 0xffffff7f9f8a7e10
    0xffffff8128feb370 : 0xffffff7f9f602b10
    0xffffff8128feb490 : 0xffffff7f9f6034ec
    0xffffff8128feb520 : 0xffffff7f9f6008ab
    0xffffff8128feb560 : 0xffffff7f9f60081b
    0xffffff8128feb600 : 0xffffff7f9f62a576
    0xffffff8128feb800 : 0xffffff7f9f62b3f6
    0xffffff8128feb8e0 : 0xffffff7fa05af9c2
    0xffffff8128feb920 : 0xffffff7fa05bf37f
    0xffffff8128feb940 : 0xffffff7fa05ed33b
    0xffffff8128feb980 : 0xffffff7fa05ed39b
    0xffffff8128feb9c0 : 0xffffff7fa05c4e15
    0xffffff8128feba10 : 0xffffff7fa0590b5e
    0xffffff8128febaa0 : 0xffffff7fa058cae7
    0xffffff8128febad0 : 0xffffff7fa058a636
    0xffffff8128febb00 : 0xffffff801f0ce563
    0xffffff8128febb90 : 0xffffff801f0d045f
    0xffffff8128febbf0 : 0xffffff801f0cdf7f
    0xffffff8128febd40 : 0xffffff801ecb6998
    0xffffff8128febe50 : 0xffffff801ec26bc1
    0xffffff8128febe80 : 0xffffff801ec139c5
    0xffffff8128febef0 : 0xffffff801ec1e013
    0xffffff8128febf70 : 0xffffff801ecc9b8d
    0xffffff8128febfb0 : 0xffffff801ecf3f66
          Kernel Extensions in backtrace:
             com.apple.nvidia.classic.NVDAResmanTesla(8.2.4)[D61B2BB9-4289-318D-9197-5E1E13B 1FF32]@0xffffff7f9f5d6000->0xffffff7f9f83efff
                dependency: com.apple.iokit.IOPCIFamily(2.9)[4662B11D-2ECA-315D-875C-618C97CDAB2A]@0xffffff 7f9f2be000
                dependency: com.apple.iokit.IONDRVSupport(2.4.1)[D41125CE-69BD-32E7-9B1D-4E83431662DD]@0xff ffff7f9f5c6000
                dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[75D81741-64C1-3941-ADFA-9D6B6C434EE4]@0 xffffff7f9f583000
             com.apple.driver.AppleMuxControl(3.6.22)[32862231-50BC-3AF6-87A2-703321AE4F90]@ 0xffffff7fa0f96000->0xffffff7fa0fa9fff
                dependency: com.apple.driver.AppleGraphicsControl(3.6.22)[AA46D551-BE0F-33DA-93A3-8F46197BB 36F]@0xffffff7fa0f8e000
                dependency: com.apple.iokit.IOACPIFamily(1.4)[045D5D6F-AD1E-36DB-A249-A346E2B48E54]@0xfffff f7f9f52b000
                dependency: com.apple.iokit.IOPCIFamily(2.9)[4662B11D-2ECA-315D-875C-618C97CDAB2A]@0xffffff 7f9f2be000
                dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[75D81741-64C1-3941-ADFA-9D6B6C434EE4]@0 xffffff7f9f583000
                dependency: com.apple.driver.AppleBacklightExpert(1.0.4)[E04639C5-D734-3AB3-A682-FE66694C66 53]@0xffffff7fa0f91000
             com.apple.nvidia.classic.NVDANV50HalTesla(8.2.4)[B0E6AAA7-E970-3D81-8B43-145D56 A3A4AC]@0xffffff7f9f849000->0xffffff7f9faf2fff
                dependency: com.apple.nvidia.classic.NVDAResmanTesla(8.2.4)[D61B2BB9-4289-318D-9197-5E1E13B 1FF32]@0xffffff7f9f5d6000
                dependency: com.apple.iokit.IOPCIFamily(2.9)[4662B11D-2ECA-315D-875C-618C97CDAB2A]@0xffffff 7f9f2be000
             com.apple.GeForceTesla(8.2.4)[E0EBC5ED-DC61-3C57-BCCE-0478C0566F4F]@0xffffff7fa 056f000->0xffffff7fa0639fff
                dependency: com.apple.iokit.IOPCIFamily(2.9)[4662B11D-2ECA-315D-875C-618C97CDAB2A]@0xffffff 7f9f2be000
                dependency: com.apple.iokit.IONDRVSupport(2.4.1)[D41125CE-69BD-32E7-9B1D-4E83431662DD]@0xff ffff7f9f5c6000
                dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[75D81741-64C1-3941-ADFA-9D6B6C434EE4]@0 xffffff7f9f583000
                dependency: com.apple.nvidia.classic.NVDAResmanTesla(8.2.4)[D61B2BB9-4289-318D-9197-5E1E13B 1FF32]@0xffffff7f9f5d6000
    BSD process name corresponding to current thread: WindowServer
    Mac OS version:
    13E28
    Kernel version:
    Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
    Kernel UUID: BBFADD17-672B-35A2-9B7F-E4B12213E4B8
    Kernel slide:     0x000000001ea00000
    Kernel text base: 0xffffff801ec00000
    System model name: MacBookPro6,2 (Mac-F22586C8)
    System uptime in nanoseconds: 510740864359
    last loaded kext at 323988531917: com.apple.filesystems.msdosfs 1.9 (addr 0xffffff7fa10c2000, size 65536)
    last unloaded kext at 409214035879: com.apple.filesystems.msdosfs 1.9 (addr 0xffffff7fa10c2000, size 57344)
    loaded kexts:
    com.apple.driver.AudioAUUC 1.60
    com.apple.driver.AppleHWSensor 1.9.5d0
    com.apple.driver.AppleUSBCDCECMData 4.2.1b5
    com.apple.driver.AGPM 100.14.28
    com.apple.driver.AppleUSBCDC 4.2.1b5
    com.apple.filesystems.autofs 3.0
    com.apple.iokit.IOBluetoothSerialManager 4.2.6f1
    com.apple.driver.AppleMikeyHIDDriver 124
    com.apple.driver.AppleHDA 2.6.3f4
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.6f1
    com.apple.driver.AppleSMCPDRC 1.0.0
    com.apple.GeForceTesla 8.2.4
    com.apple.driver.AppleMikeyDriver 2.6.3f4
    com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
    com.apple.driver.AppleLPC 1.7.0
    com.apple.driver.AppleSMCLMU 2.0.4d1
    com.apple.driver.AppleMuxControl 3.6.22
    com.apple.driver.AppleIntelHDGraphics 8.2.4
    com.apple.driver.AppleIntelHDGraphicsFB 8.2.4
    com.apple.driver.AppleUpstreamUserClient 3.5.13
    com.apple.driver.AppleMCCSControl 1.2.5
    com.apple.iokit.IOUserEthernet 1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X 7.0.0
    com.apple.driver.AppleHWAccess 1
    com.apple.driver.SMCMotionSensor 3.0.4d1
    com.apple.driver.AppleUSBTCButtons 240.2
    com.apple.driver.AppleUSBTCKeyboard 240.2
    com.apple.driver.AppleIRController 325.7
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeLZVN 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.BootCache 35
    com.apple.driver.AppleUSBCardReader 3.4.1
    com.apple.iokit.SCSITaskUserClient 3.6.6
    com.apple.driver.XsanFilter 404
    com.apple.iokit.IOAHCIBlockStorage 2.6.0
    com.apple.driver.AppleUSBHub 683.4.0
    com.apple.driver.AppleFWOHCI 5.0.2
    com.apple.driver.AirPort.Brcm4331 700.20.22
    com.apple.iokit.AppleBCM5701Ethernet 3.8.1b2
    com.apple.driver.AppleUSBEHCI 660.4.0
    com.apple.driver.AppleAHCIPort 3.0.5
    com.apple.driver.AppleSmartBatteryManager 161.0.0
    com.apple.driver.AppleACPIButtons 2.0
    com.apple.driver.AppleRTC 2.0
    com.apple.driver.AppleHPET 1.8
    com.apple.driver.AppleSMBIOS 2.1
    com.apple.driver.AppleACPIEC 2.0
    com.apple.driver.AppleAPIC 1.7
    com.apple.driver.AppleIntelCPUPowerManagementClient 217.92.1
    com.apple.nke.applicationfirewall 153
    com.apple.security.quarantine 3
    com.apple.driver.AppleIntelCPUPowerManagement 217.92.1
    com.apple.driver.AppleUSBCDCECMControl 4.2.1b5
    com.apple.AppleGraphicsDeviceControl 3.6.22
    com.apple.kext.triggers 1.0
    com.apple.iokit.IOSerialFamily 10.0.7
    com.apple.driver.DspFuncLib 2.6.3f4
    com.apple.vecLib.kext 1.0.0
    com.apple.iokit.IOAudioFamily 1.9.7fc2
    com.apple.kext.OSvKernDSPLib 1.14
    com.apple.iokit.IOFireWireIP 2.2.6
    com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.6f1
    com.apple.nvidia.classic.NVDANV50HalTesla 8.2.4
    com.apple.driver.AppleSMBusPCI 1.0.12d1
    com.apple.driver.IOPlatformPluginLegacy 1.0.0
    com.apple.driver.IOPlatformPluginFamily 5.7.1d6
    com.apple.driver.AppleHDAController 2.6.3f4
    com.apple.iokit.IOHDAFamily 2.6.3f4
    com.apple.driver.AppleGraphicsControl 3.6.22
    com.apple.driver.AppleBacklightExpert 1.0.4
    com.apple.driver.AppleSMBusController 1.0.12d1
    com.apple.nvidia.classic.NVDAResmanTesla 8.2.4
    com.apple.iokit.IONDRVSupport 2.4.1
    com.apple.iokit.IOSurface 91.1
    com.apple.iokit.IOGraphicsFamily 2.4.1
    com.apple.iokit.IOBluetoothFamily 4.2.6f1
    com.apple.driver.AppleSMC 3.1.8
    com.apple.driver.AppleUSBMultitouch 240.9
    com.apple.iokit.IOUSBHIDDriver 660.4.0
    com.apple.iokit.IOSCSIBlockCommandsDevice 3.6.6
    com.apple.iokit.IOUSBMassStorageClass 3.6.0
    com.apple.driver.AppleUSBMergeNub 650.4.0
    com.apple.driver.AppleUSBComposite 656.4.1
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.6.6
    com.apple.iokit.IOBDStorageFamily 1.7
    com.apple.iokit.IODVDStorageFamily 1.7.1
    com.apple.iokit.IOCDStorageFamily 1.7.1
    com.apple.iokit.IOAHCISerialATAPI 2.6.1
    com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.6
    com.apple.iokit.IOUSBUserClient 660.4.2
    com.apple.iokit.IOFireWireFamily 4.5.5
    com.apple.iokit.IO80211Family 640.36
    com.apple.iokit.IOEthernetAVBController 1.0.3b4
    com.apple.driver.mDNSOffloadUserClient 1.0.1b5
    com.apple.iokit.IONetworkingFamily 3.2
    com.apple.iokit.IOUSBFamily 683.4.0
    com.apple.iokit.IOAHCIFamily 2.6.5
    com.apple.driver.AppleEFINVRAM 2.0
    com.apple.driver.AppleEFIRuntime 2.0
    com.apple.iokit.IOHIDFamily 2.0.0
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.security.sandbox 278.11.1
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 7
    com.apple.driver.AppleKeyStore 2
    com.apple.driver.DiskImages 371.1
    com.apple.iokit.IOStorageFamily 1.9
    com.apple.iokit.IOReportFamily 23
    com.apple.driver.AppleFDEKeyStore 28.30
    com.apple.driver.AppleACPIPlatform 2.0
    com.apple.iokit.IOPCIFamily 2.9
    com.apple.iokit.IOACPIFamily 1.4
    com.apple.kec.corecrypto 1.0
    com.apple.kec.pthread 1
    System Profile:
    Model: MacBookPro6,2, BootROM MBP61.0057.B0F, 2 processors, Intel Core i7, 2.66 GHz, 8 GB, SMC 1.58f17
    Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
    Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 512 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353237334348302D4346382020
    Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353237334348302D4346382020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.6f1 14216, 3 services, 15 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Network Service: TomTom, Ethernet, en3
    Serial ATA Device: Hitachi HTS725050A9A362, 500.11 GB
    Serial ATA Device: MATSHITADVD-R   UJ-898
    USB Device: Hub
    USB Device: TomTom
    USB Device: Built-in iSight
    USB Device: IR Receiver
    USB Device: Hub
    USB Device: Apple Internal Keyboard / Trackpad
    USB Device: Internal Memory Card Reader
    USB Device: BRCM2070 Hub
    USB Device: Bluetooth USB Host Controller
    Thunderbolt Bus:

  • How can I change the color of all folders from light blue to another color?

    My computer was just upgraded from Tiger to Leopard, and now all the file folder icons are pale blue on the desktop and elsewhere. My desktop is green and those light blue folders do not look good on a green background.
    How can I change the color of the folder icons to another color?

    Hi ys,
    You appear to have taken a wrong turn on the information highway and would up in the backwater known as the AppleWorks forum. This is a place for discussion of issues and techniques connected with the now discontinued Apple productivity application AppleWorks.
    Yours is a System question, concerned with how to accomplish something in the Finder, part of the Mac OS X software you recently upgraded. The question will be better served in the Mac OS X v10.5 Leopard section of discussions. The link will take you to that section, where I'd suggest using the Finder and Dock forum.
    Regards,
    Barry

  • Using SELECT INTO statement to transfer data from one DB to another?

    Hello,
    I need to move data from an SAP table to another downstream SQL server box without flat file in between. I have set up the DBCON interface, so that my ABAP code on SAP can connect to the remote SQL Server, then I can run INSERT command as Native SQL inside the ABAP.
    However, INSERT has performance problem. The best performer as I can find is SELECT INTO statement. But then I am stuck at how to use SELECT INTO to query my local SAP table and send (via INTO) to remote database. I am not even sure whether I should use Open SQL or Native SQL.
    Any suggestion? BTW, I understand the limitation of Native SQL, but we are OK to use it.
    Thanks!

    It appears that this is some kind of migration project due to the scope of the data contained in the single file? If so whatever you do is like ly to be trow away once the migration of data is completed.
    You have a couple of options:
    1) Get the data extracted from HFM in multiple files instead of one bulk file, broken down by scanario,year & period
    2) Take the single data dump file produced by FDM and manipulate it yourself to get the data in a more usuable format for processing through FDM.
    Option 2 could be achieved via any ETL tool or a custom file parsing script. What may be more attractive to you and allow you to fully leverage your investment in FDM is that you could use the PULL adapter that ships as part of the FDM adapter suite to perform this transformation exercise. The PULL adapter takes a flat file input and allows you to use all the in built functionality of FDM to transform it and output a modified flat file (or series of flat files). You could use it to produce multioload files or a series of files broken down by scenario,year,period.
    Whatever you do I would suggest that break the single data file down into smaller chunks as this will help with the iterative debugging process you will inevitably have to undetake whislt migrating the data to the new application.

  • Does anyone know how to transfer files (mainly photos) from my ipad2 to another computer .

    I have tried to simply email the photos to an email address, and then download and dace them on the main home computer, but this is taking an age to do. Is there a quicker way please?

    You can use 3rd party apps like Photo Transfer App.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%205/79b3173fda7b6a6e148 5b463198f6acf.jpg

  • How can you change all of the control codes from one  number to another?

    I'm trying to use CC11 for Dynamic Expression Control, rather than just runing the volume CC7 all the time. My problem is that I would like to do a large select of say all CC codes that are 7 and move them to be 11 rather than do it one event at a time. Is there a technique for this?

    Paul Kirk wrote:
    My problem is that I would like to do a large select of say all CC codes that are 7 and move them to be 11 rather than do it one event at a time.
    The Samplecontruct's recommendation is right and probably conformable if you want to process one or a few midi region(s) containing CC7.
    In addition, if have multiple midi regions on a track and want to process in one step then the Transform window is recommended. I.e you select that track (which will select all regions), open the Transform and create the custom template I show in the pic below). Hit the "Select and Operate" (4) button which will select the matching contend (CC7) internally of the track selected regions and operate in one step. This saves time if you must select 50-60 regions and change their CC# using the Event list technique for instance.
    !http://img695.imageshack.us/img695/3350/cc711.gif!
    !http://img59.imageshack.us/img59/4967/aglogo45.gif!

  • Cannot Change LAN Settings to automatically detect from automatic script

    my computer wont allow me to uncheck the automatic script option which is causing be bother. whenever i unched the box as soon as i close the tab it enables it again. this is causing the error message "error 130". if anyone could help it would
    be great

    Hi,
    I consider if the uncheck behavior encounter the access denied error.
    I suggest you use Process monitor to capture the events during repro'ing the issue:
    Process Monitor v3.05
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    Solving Access Denied Errors Using Process Monitor
    http://improve.dk/solving-access-denied-errors-using-process-monitor/
    How to use, please refer to this article:
    Using Process Monitor to capture system events
    http://www.sophos.com/en-us/support/knowledgebase/119038.aspx
    You can also upload the PML log saved from process monitor here for our research.
    Kate Li
    TechNet Community Support

  • How can I change my primary account on iTunes from one computer to another computer?

    I opened an iTunes account years ago when I had a Dell, and after the Dell crashed, I got a new Macbook and authorized the mac to play all my iTunes music and whatnot that I had bought on the Dell.  I don't want this computer to just be "authorized", however.  I would like to know how to set this mac as the primary computer so that I can then authorize 5 additional computers to play my music.  Does anyone know how to do this or have a phone number for Apple to get in touch with someone who can do it for me?  Thanks very much!

    Open iTunes on your Mac, click "iTunes Store" on the upper right, then click "Account" on the middle right.  Sign in there.  That will make the signed in account the "primary".

  • Passing parameter value from one script to another in job chain steps

    Hi all,
    We have a scenario where in we have a job chain with two steps
    1-Step 1 contains a script which fetches value from database to the script parameter(in/out) - PAR_DB_VALUE
    2-Step 2 contains another script which uses the value of the parameter PAR_DB_VALUE and has to assign to another parameter in the script 2 called PAR_FETCHED_VALUE(in)
    How to pass the value of PAR_DB_VALUE to PAR_FETCHED_VALUE which are parameters in two different steps
    Please help
    Thanks and Regards
    Raj

    Hi,
    You can achieve this as follows (CPS version 6 & 7):
    - Edit the chain
    - Go to the second step, to the parameters of the script call in that step
    - Go to the parameter (PAR_FETCHED_VALUE) that you want to be filled by the parameter of the first step
    - choose "Chain value" in the detail screen for the parameter, and select the desired out parameter from the drop down
    Note that both parameters need to be of the same type for this to work.
    Regards,
    Anton.

  • Changing container State from a component

    Hi, I try to change the state of an application from a button
    inside a mxml component. I found a way for this by handling click
    event inside the component and dispatch event to the container (see
    the code below). But my problem is that any click is dispatched ! I
    would like that only one button dispatch this event, or better :
    calling a container's function from the button inside my component
    ! Is this possible ?
    Thanks for your help
    Here is a part of the container code :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="570" height="360" xmlns:local="*">
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    public function handleCloseEvent(eventObj:Event):void {
    currentState='carte';
    ]]>
    </mx:Script>
    <mx:states>
    <mx:State name="liste">
    <mx:AddChild position="lastChild">
    <local:liste_vin_region click="handleCloseEvent(event);"
    id="fenetre">
    </mx:AddChild>
    </mx:State>
    <mx:State name="carte"/>
    </mx:states>
    </mx:Canvas>
    And the component code :
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="514" height="300" xmlns:local="*">
    <mx:Metadata>
    [Event(name="click", type="flash.events.Event")]
    </mx:Metadata>
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    // Redispatch event.
    private function
    handleCloseEventInternally(eventObj:Event):void {
    dispatchEvent(eventObj);
    ]]>
    </mx:Script>
    <mx:states>
    <mx:State name="liste"/>
    </mx:states>
    <mx:TitleWindow layout="absolute" left="10" top="10"
    bottom="10" right="10" id="titlewindow1"/>
    <mx:Button y="14" label="X" right="19" width="29"
    click="handleCloseEventInternally(event);" id="button1"/>
    </mx:Canvas>

    Yes ! That's exactly what I need !
    I've tried to do : this._parent like in Flash, but no
    result...
    Thanks for your help, parentApplication is right for me
    !

  • Changing the state of Iterator?

    Hi!
    I'm using ADF Faces, and I want to change the state of an Iterator from a backing_bean? Is it possible?
    If it isn't: anybody knows how to manipulate manually the state of an iterator?
    Thanks in advance,
    Jaime.

    Hi Frank.
    The iterator actually is in the state "Create". I want to show the data of one record. The state may be something as "Show".
    Also, could you give me information about the avalaible states of an iterator?
    Best regards,
    Jaime

  • Send parameter from one script logic to another. SAP BPC 7.5 NW.

    Hello!
    Before i start, want to apologize for my English.
    We work on SAP BPC 7.5 for NetWeaver.
    In general,  we want to send parameter from one Script logic file to another script logic file.
    I will explain why :
    1. We have parametr like %C_CATEGORY_SET% (and another four parameter, like groups, currency and etc.) that work on one script(next, i will named it A_Script). 
           We will send this parametr from BPC EXCEL (we will create button, then use command MNU_eData_SelectPackage(we also set parameters) and run package that we need, also before we set script for this package by the SAP Guide. We send some data, and this A_Script work good. Everything that we want from this script work correctly. )
    2. Next we create another script(B_Script) , and we want use %C_CATEGORY_SET%, but we don't know how use this parametr, if we will just write this parametr on Script Logic,  apears error ("C_CATEGORYDATAVALUE" is not assigned to the Data Administrator). We try to solve this problem by using System_Constants.lgf, but we get error.
    Code:
    *DIM C_CATEGORY          WHAT=%C_CATEGORY_SET%;             WHERE=<<<;                   USING=<<<;    TOTAL=<<<
    *DIM C_ENTITY                 WHAT=%ENTITYSET%;                         WHERE=<<<;                  USING=<<<;      TOTAL=<<<
    *DIM GROUPS                   WHAT=%GROUPS_SET%;                    WHERE=<<<;                  USING=<<<;     TOTAL=<<<
    *DIM RPTCURRENCY         WHAT=%RPTCURRENCY_SET%;         WHERE=<<<;                  USING=<<<;      TOTAL=<<<
    *DIM TIME                          WHAT=%TIME_SET%;                          WHERE=<<<;                  USING=<<<;     TOTAL=<<<
    If we will change %C_CATEGORY_SET% for  ACTUAL, and also change another parameters, script will work, package will run correctly. But we need using parameters, because we didn't exactly what will choose our client.
    Our question have BPC Script Logic some kind of Globar Parameter(Variable), that we will set in A_Script, and then use them on B_Script?
    How can we define parameter from another script logic, maybe we should send it?
    Should we use System_Constants for solving this problem, if yes, how?
    Any help will be appreciated
    Best Regards,
    Erlan Kadraliev
    Edited by: Erlan Kadraliev on Feb 8, 2011 4:50 PM
    Edited by: Erlan Kadraliev on Feb 8, 2011 4:58 PM
    Edited by: Erlan Kadraliev on Feb 8, 2011 4:59 PM

    Hi Ethan Jewett 
    1. About %ENTITYSET% it is normal. Before this line  i write :
    *SELECT(%ENTITYSET%, "ENTITY", GROUPS, "[ID]=%GROUPS_SET%")
    So it is not this problem. %ENTITYSET% just parameter, that i used.
    2. Are you running the scripts using the same data manager package? I am running two different package for 2 different Script.
    For example aPackage for aScript, and bPackage for bScript.
    My questions was how can i send parametr from one script to another, for example i can run another script by using BADi command Runlogic, but how can send parameter that i need to used on another script. I have for example parameter %GROUPS_SET% (CG001) on aScript, but i can't get this parameter on another script, if i write %GROUPS_SET% i will get error  ("GROUPSDATAVALUE" is not assigned to the Data Administrator)
    OR
    Maybe if you will answer for next question, i will be able solve problem , How can i send parameter CG001 (this is %GROUPS_SET%, for example it stay in EXCEL in cell A5) from excel to script logic by running package. Maybe i can get cell value on Dynamic Script Data Management?  
    My Dynamic Script on bPackage
    PROMPT(RADIOBUTTON,%CHECKLCK%,"u0412u044Bu0431u043Eu0440 u0431u0430u0437u043Eu0432u043Eu0433u043E u043Fu043Eu043Au0430u0437u0430u0442u0435u043Bu044F.",1,{"u0412u0441u0435u0433u043E u0410u043Au0442u0438u0432u044B","u0421u043Eu0431u0441u0442u0432u0435u043Du043Du044Bu0439 u043Au0430u043Fu0438u0442u0430u043B","u0412u044Bu0440u0443u0447u043Au0430 u043Eu0442 u0440u0435u0430u043Bu0438u0437u0430u0446u0438u0438","u0414u043Eu0445u043Eu0434 u0434u043E u043Du0430u043Bu043Eu0433u043Eu0431u043Bu0430u0436u0435u043Du0438u044F u043Eu0442 u043Fu0440u043Eu0434u043Eu043Bu0436u0430u044Eu0449u0435u0439 u0434u0435u044Fu0442u0435u043Bu044Cu043Du043Eu0441u0442u0438"},{"BPAST_ALL","BPEQ","BPPROCE","BPOPIN_GO"})
    INFO
    (%EQU%,=)
    INFO
    (%TAB%,;)
    TASK
    (/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
    TASK
    (/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
    TASK
    (/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
    TASK
    (/CPMB/DEFAULT_FORMULAS_LOGIC,REPLACEPARAM,CHECKLCK%EQU%%CHECKLCK%%TAB%)
    TASK
    (/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,MYTEST_145.LGF)
    Best Regards,
    Kadraliev Erlan

  • How to change state of a constraint from DEFERABLE to IMMEDIATE?

    Hi,
    I am runnig 10gR2 and would like to change state of a constraint from
    DEFERABLE to IMMEDIATE without recreating it.
    The change is working at the session level with
    SET CONSTRAINT <constraint name> IMMEDIATE;
    But this is not visible for other users.
    So my question is, if there is any other way to do it, so the change would be visible for every user.
    Here is what I have done:
    CREATE TABLE TEST_TBL
    ID NUMBER
    ALTER TABLE TEST_TBL ADD CONSTRAINT pk_test_tbl PRIMARY KEY(ID)
    INITIALLY DEFERRED DEFERRABLE;
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> COMMIT;
    COMMIT
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-00001: unique constraint (TEST_SCHEMA.PK_TEST_TBL) violated
    The constraint is checked only at commit,
    To change this:
    SQL> SET CONSTRAINT pk_test_tbl IMMEDIATE;
    Constraint set.
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> INSERT INTO test_tbl VALUES(1);
    INSERT INTO test_tbl VALUES(1)
    ERROR at line 1:
    ORA-00001: unique constraint (TEST_SCHEMA.PK_TEST_TBL) violated
    But if I would connect with user B, I would be able to do multiple inserts with value 1.
    Thanks

    I am runnig 10gR2 and would like to change state of a constraint from
    DEFERABLE to IMMEDIATE without recreating it.From Oracle Constraints:
    Note: A non-deferrable constraint is generally policed by a unique index (a unique index is created
    unless a suitable index already exists). A deferrable constraint must be policed by a non-unique index
    (as it's possible for a point of time during a transaction for duplicate values to exist). This is why
    it is not possible to alter a constraint from non-deferrable to deferrable. Doing so would require
    Oracle to drop and recreate the index.
    A PK enforces uniqueness procedurally without relying on a unique index. The main advantage
    of a non-unique index is the constraint can be disabled and re-enabled without the index being dropped and recreated.

  • Is it possible to change application state from a component?

    I was wondering if it is possible to change application state from within a custom component and if so, what would the syntax be if I had an application named "zzz" and I wanted to change the app state from "state1" to "state2" from my component?
    Thanks!

    Hi,
    you always have a static class Application.
    Application.application will be the root component. After that you can change it state.
    Application.application.currentState = "state2";
    But it's not the best way to change states. It's better to dispatch events from components and change states in listeners.

  • Access a main function from a child MXML

    Hi im just a beginner in flex.Someone please giude me.
    I have a main MXML which holds another MXML.Is there any
    possiblity to access the main MXML component from the child MXML.If
    there is no possiblity i just want to know how to access the main
    MXML function from the child MXML script.
    thanks in advance
    karan

    Thankyou man..its working...i might require ur help in the
    coming days...
    hei do u have any experience in drawing API

Maybe you are looking for