URGENT- Need advice on executing scripts from Forms 6i

Hi all,
Quick background info:
I'm working on a conversion project from Forms 4.5 client/server applications to a three tier, web based Forms 6i environment.
We're running Oracle 8i DB on HP-UX machines, Oracle 9ias on HP-UX machines, and users access forms through Netscape
on Win2000 platform.
The problem:
I have a SQL execution interface form from which users have been able to run dynamic SQL scripts w/o having direct access to
a SQL Plus prompt (uses the 'HOST' command in 4.5). How can this functionality be implemented in the three tier environment?
Unless other options are available, my plan is to use a Java servlet to access the 8i database on the UNIX box and display
output on an html page. Is there a better/easier way?!
Any advice is appreciated...
FLM
Paychex, Inc.

Thanks for the response,
I may be able to invoke the script from Forms using the HOST command, but how is the script output
displayed back to the browser?
FLM
[email protected]
You can probably still use the host to sqlplus, but this time it will run on the Forms Server.
You just need to make sure that the dynamic SQL files are uniquly identified for each customer.

Similar Messages

  • Run SQLPlus script from Forms 10g

    Hellou.
    In Forms 10g I am generating sql script which need to be run under sqlplus. It contains some selects and thay are spooled into file (It need to be like this) But generating this script is in the form and I need althoug call this script from form.
    So my question is> How can I call sqlplus commands uder forms 10g?? For exmaple like this:
    sqlplus: @ Report.sql or other??
    Thanks Zoffob

    Hello,
    If you know the syntax used on the DOS command line, put it "as is" in a Webutil Client_Host() built-in (see the documentation)
    Francois

  • Getting windows error during running the sql scripts from form 6i

    I made a little form application. The purpose of this application is to generate explain plan for a particular SQL. Some sql scripts run internally in order to populate the result on form’s screen after pressing the form’s button but I am getting windows error during running the sql scripts from form 6i.
    I am using forms 6i with patch 17 with Oracle 10G database on windows 2000 professional on same computer.
    This application runs fine with 8i.
    Please inform me where the problem is and how to overcome it.
    Zafri.

    I am using Text_IO in my form's when button press trigger , inorder to create the
    text file, then in the same when button press triger
    I am calling RMAN via host command in order to run the script which was created by text_IO.
    Below you find some of the code. I will appreciate if you solve the problem.
    when button press trigger:
    Declare
    in_file3 Text_IO.File_Type;
    linebuf3 VARCHAR2(1800);
    output11 varchar2(1000);
    BEGIN
         output11:='C:\EXPLAIN_PLUS\misc\rm_file.bat ';
    Host(output11,no_screen);
    :sql.execution_plan:= 'Working........................';
    synchronize;
    in_file3 := Text_IO.Fopen('c:\explain_plus\misc\create_table.txt', 'w');
    Text_IO.Put_Line(in_file3, linebuf3);
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' run { sql "create table PLAN_TABLE (statement_id,...object_name varchar2(30),object_instance numeric,object_type varchar2(30),optimizer varchar2(255),search_columns number,id .....partition_start varchar2(255),partition_stop  varchar2(255),partition_id numeric,other long,distribution varchar2(30)) "; } ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.FCLOSE(in_file3)
              Declare
    un VARCHAR2(80);
    pw VARCHAR2(80);
    cn VARCHAR2(80);
    output VARCHAR2(1000);
    output2 VARCHAR2(1000);
    dummy varchar2(40);
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(1800);
    BEGIN
         Get_Connect_Info(un,pw,cn);
         /* for Plan_table Begg. Second INNER BLOCK */
         declare
              dummy2 varchar2(40);
         begin
         select table_name into dummy2 from all_tables where table_name='PLAN_TABLE';
         if dummy2 = 'PLAN_TABLE' then
         output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\MISC\TRUNC2.txt ' ;
    Host(output2,no_screen);
         end if;
         exception
         when no_data_found     then
    output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\misc\create_table.txt ';
    Host(output2,no_screen);
         end; --

  • Execute script from AfterFX command line

    Hello all
    I'm trying to run a script from the AfterFX.exe command line and I get a message: "Unable to execute script at line 1. Syntax error"
    If I run the same script file from the AE Script Editor, it works perfectly
    Here is the command line I'm using:
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "D:\Product\Watermark\Rendering\WatermarkedSecuritySample.jsx"
    Anyone have an idea of what can cause this error? I've tried running the script directly in the command line like
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "alert('1')"
    and it works fine for short script but mine is way to big to do that
    As you can probably guess with the "Watermark" and "Security" in the filename, I cannot post the script file here, all I can say is that the line 1 is:
    var projectName = "D:\\Product\\WatermarkTemplate.aep";
    I've tried to replace the entire script with "alert('1');" and it cause the same error when running it from the command line
    Also, if anyone know where I can find the AfterFX.exe command line arguments description, I would be very happy.. everybody talks about aerender.exe but I need thoses options for AfterFX.exe
    Thanks for your help

    Have you tried to use "-r" instead of "-s"?
    (argument for "-s" is a script; and argument for "-r" is a path to script)

  • Execute script from Flash Widget

    Hello everyone,
    I'm on a panel, and I just wanna know:
    is it possible to execute a script from a flash widget, and how?
    I was thinking of Flash' "getURL()" function, without any success.
    The idea is that I want to make some sort of form in flash (since it's the only way to give the user custom input, according to me) and execute a script using the user's input...
    Any ideas??
    TIA, Robin

    Please refer this article
    http://scriptplayground.com/tutorials/as/Creating-Flash-Panels-for-Photoshop-using-Flash-C S4/
    You also can create a Flash Panel which can call extendscript with FlexBuilder/FlexSDK + Adobe Flash Panel SDK.

  • Execute procedure from forms

    Dear all,
    i want to execute a procedure from forms. my code is below for calling procedure, this code is working fine from the SQLPLUS, but not working from forms.
    forms_ddl('execute audit_sessions('||''''||'et20'||''''||',sysdate,'||''''||'HELP'||''''||')');my procedure is below
    CREATE OR REPLACE PROCEDURE audit_sessions(uname varchar2,logon_date date,APP_USER VARCHAR2) is
    begin
    insert into admin.session_audit values(uname,logon_date,APP_USER);
    commit;
    end;my table is below
    SQL> desc session_audit
    Name                    Null?    Type
    ACTIVE_DIRECTORY_USER            VARCHAR2(30)
    LOGON_TIME              NOT NULL DATE
    APPLICATION_USER        NOT NULL VARCHAR2(30)kindly help. i am using oracle 10g database and forms version 9.0.4.0.19
    Regards.
    Edited by: Maahjoor on 09-Feb-2013 19:34
    Edited by: Maahjoor on 09-Feb-2013 19:35
    Edited by: Maahjoor on 09-Feb-2013 20:18

    Wa Alaikum Salam,
    Dear Ahmad Rafiq,
    it is compiled without error, so i think it should work, but now currently the forms is opened by some user,
    as soon as i am able to delete the old one and paste the current one, i will update you and will mark the answer correct accordingly.
    thank you so much dear.

  • Cannot Execute Scripts from UNC Despite GPOs Allowing Me To Do So

    Hello! 
    I'm having an issue getting scripts to execute from a UNC share.
    I have followed in instructions in the below two blog postings:
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/29/how-to-run-powershell-scripts-from-a-shared-directory.aspx
    http://blogs.technet.com/b/heyscriptingguy/archive/2013/08/10/weekend-scripter-run-powershell-scripts-from-remote-file-share-part-2.aspx
    I have also used Group Policy to set the execution policy to Unrestricted for the MachinePolicy and UserPolicy scopes:
    PS C:\> Get-ExecutionPolicy -List | Ft -AutoSize
            Scope ExecutionPolicy
    MachinePolicy    Unrestricted
       UserPolicy    Unrestricted
          Process       Undefined
      CurrentUser       Undefined
     LocalMachine    RemoteSigned
    Unfortunately, I am still getting the following prompt when executing a script from a remote share:
    \\Server1\Share\Install-Something.ps1 -Parameter1 Value1 -Parameter2 Value2
    Security warning
    Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
    computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
    message. Do you want to run
    \\tlehmann.vcs.coaxis.net\Source\QA_Automation\QA_Repository\Scripts\Installation\AutoBuildv2\Install-AutoBuild.ps1?
    [D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is "D"): r
    I have executed GPRESULT and it states the GPOs are being applied successfully.
    Why am I still getting this prompt? Please help before I go crazy.

    AS IS ALWAYS THE CASE, ONCE I ASK FOR HELP I FIND AN ANSWER ON MY OWN.
    <FrustratedSquabbling>fhj19387ruasd;lkfj rlkghkushdvas907faihsc</FrustratedSquabbling>
    When I entered the UNC path, I was entering an FQDN and not a NETBios name (e.g. \\Server1.domain.com\Share\Script1.ps1 vs \\Server\Share\Script1.ps1)
    Can someone help me understand WHY the FQDN did this to me?
    PowerShell Extraordinaire - The Toddle

  • Agent showing error while executing script from OTM

    Hi Team,
    OTM is installed in a separate server(Windows 2008 R2).
    When I am executing scripts in my client machine from OTM in server , I got the following error in agent....
    17:22:17,192 INFO [Messenger] Try server=t3://10.50.48.29:8088 destination=oracle/oats/queue/AgentManagerStatusQueue
    17:23:04,083 ERROR [Messenger] JNDI Error:
    javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://10.50.48.29:8088: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection timed out: connect; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:366)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at oracle.oats.server.jndi.JndiLookup.createInitialContextInternal(Unknown Source)
         at oracle.oats.server.jndi.JndiLookup.createInitialContext(Unknown Source)
         at oracle.oats.empstart.Messenger.startConnection(Messenger.java:115)
         at oracle.oats.empstart.EmpStartMain.<init>(EmpStartMain.java:500)
         at oracle.oats.empstart.EmpStartMain.main(EmpStartMain.java:392)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:105)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: java.net.ConnectException: t3://10.50.48.29:8088: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection timed out: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
         ... 18 more
    Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection timed out: connect; No available router to destination
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:470)
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:321)
         at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:254)
         at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:197)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238)
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:200)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:198)
         at oracle.oats.server.jndi.JndiLookup.createInitialContextInternal(Unknown Source)
         at oracle.oats.server.jndi.JndiLookup.createInitialContext(Unknown Source)
         at oracle.oats.empstart.Messenger.startConnection(Messenger.java:115)
         at oracle.oats.empstart.EmpStartMain.<init>(EmpStartMain.java:500)
         at oracle.oats.empstart.EmpStartMain.main(EmpStartMain.java:392)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:106)
         ... 1 more
    Actually my server IP is *10.50.6.38*, then why agent is trying to connect *10.50.48.29* with port 8088. If I restart my machine it works for 4 - 5 scripts again shows the same error in agentmanager.
    Please help me to resolve this issue........
    Regards,
    Deepu M

    anybody have comments on this????????????

  • Execute Script from URL

    I think there's probably a security implication, but is it possible to execute a script from a URL - ideally in Safari? I want to be able to store a local file reference ( file://... ) as a bookmark and have this call a script.

    Take a look at http://www.apple.com/applescript/linktrigger/index.html

  • Need Help Launching Network Documents from Forms 6i

    Hello,
    I am trying to launch a network document from Forms 6i running in Oracle Applications 11.5.10.
    I have a column in on a form that shows document locations and I am having the user double click on the column in order to lauch the document. I am using the FND_UTILITIES.OPEN_URL package. This works great for web sites but not for internal network documents.
    Examples.
    Works Fine:
    FND_UTILITIES.OPEN_URL ('HTTP://WWW.ORACLE.COM',_blank)
    Does Not Work
    FND_UTILITIES.OPEN_URL ('\\netwin\ERP\Documents\Setups.doc',_blank)
    Now if I open an Internet Explorer window and paste the not working address into it it does pull up the document so I know the address is valid.
    Mike

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Arvind Balaraman():
    Hi
    open your form in the form builder. select file compile all and run yor form. see if it works.
    HTH
    Arvind Balaraman<HR></BLOCKQUOTE>
    Thank You.
    I allready did that and it doesn't work!!!
    null

  • Execute Perl Script from Forms

    Ji all, is there a way to execute a Perl Script out of Forms beside WEB.SHOW_DOCUMENT ?

    Depends on where the script should be executed. If its on the application-server and you can wrap it into a shell-script, then you can also use HOST.

  • Urgently  needs advice from DBA friend's here

    Buddies, I have posted similar type of thread before but it is a moment of total despair and huge challenge for me to survive, so looking for more & more ideas.. Well as per my background regarding Oracle I have very limited knowledge in SQL, almost nil knowledge in UNIX platforms. Recently I am assigned to a project where I need to perform Oracle DBA related tasks. The project is going to live Next Week on Monday and they all have Solaris 10 in their boxes. I have just one senior DBA sitting in onsite during US timing, so a good amount of responsibility lies on my shoulder. In the last post, I got to know that Oracle Documentation is an excellent way to start off as beginner but for grasping it is taking lot of time for me and I am getting lesser time to focus on both UNIX and Oracle at the same time. I love Oracle and getting rolled off from this project is not a solution for me. This forum have many veteran DBA's , so it will be great if anyone can give me any workaround or share any plan suitable for my scenario for me to survive here in this assignment.
    Any advices/input in this emergency time will be great for me.

    This is how I tend to approach a technical subject that I want to know more about, whether I am experienced or just a beginner.
    1. For the project at hand (immediate knowledge needs) use Google, OTN forums, blogs, expert websites like Ask Tom, online documentation, and personal contacts (coworkers, friends, etc). You need the information now, and someone probably has been there and has the answer you need.
    2. Never let anything go without understanding it. Too often I see people give up after the problem goes away and write it off as, "Well that was weird, oh well, moving on." Get to the root cause, dig deeper, do not stop studying that issue until you grok the topic.
    3. Read the best books cover to cover. This is not to solve your immediate problems. This is ongoing training. Pick up current, highly rated books and read. Get one on Oracle or Linux or whatever, and start at page 1 and just read. Just do 10-20 pages a day. Do not try to digest the whole thing at once. Even experienced people benefit from doing this. You can read 2 books at once if you want. One in the morning and one later in the day. I always have a book by my workstation that I read when I am waiting (for a reboot, for a process to finish, etc.). You would be amazed at how quickly you can get through 800 pages by just reading a little each day.
    4. Have a practice environment. You need to have a play area to try stuff out. It should be something other than the official Development environment. You need something you can completely trash and put back without affecting other people.
    5. Frequently challenge your assumptions and test your knowledge. Good ways to do this include trying to teach others / answer other people's questions. Also interact with people who know more than you do (in person, at conferences, at their websites).

  • Invoking a VB executable /DLL from Forms 6i

    Hi Everyone,
    We have a complete application (in the form of a product) in
    Forms 6i. We need to integrate a licensing software with this
    Forms product. This licensing software is built in VB. We
    basically need to execute an executable and a DLL - ( I presume
    that i can execute any external application/exectuable using the
    HOST function ) - Please confirm if this can be done. And more
    importantly how do I invoke a DLL which is supposed to return a
    value to the Forms application.
    All inputs are welcome - This is really really Urgent.
    Ipsa.

    I think you can use the ORA_FFI (Foreign Functions Interface) to
    invoke functions in a DLL. I recently put together a small
    package for calling HTML Help files using ORA_FFI. I can send it
    to you if it would be of any help.
    Regards,
    Rajesh Jayaprakash
    [email protected]

  • Need Advice on improving script processing and ensuring completion

    Hi,
    I have a program in which I am running a number of for loops which are doing a number of different things.  I pull in data from an xml file and then step through that data to dynamically create arrays, populate the arrays, and create and modify movie clips.
    The program I'm building is similar in scope to one I developed in Director many years ago, and in that environment we had to actually put breaks in using timers to ensure that the data would be processed and that the system wouldn't choke.
    What I'm seeing with this flash version of the application is similar and I suspect the same.  Basically, when navigating from the frame where the scripts are processed to the frame where the movie clips are displayed, there are times when it works perfectly and times when things are out of whack.  I put in a 5 second delay (arbitrarily) to see if this would resolve the issue and on my system at least it does.  But I need some advice on coming up with a real solution.
    Any inofrmation you can give me about processing particularly as it relates to for loops and dynamic creation of elements (whether arrays or MCs) as well as making sure that everything is done woudl be greatly appreciated.
    Best regards,
    Chris McLaughlin

    Hi Andrei,
    First . . . thank you so much for your message.
    I'm sure that there is something in the code architecture that's amiss.  If you'd be kind enough to take a look and see if anything blatant jumps out at you I would be very grateful.  I'm just not seeing it.
    Here it is:
    stop();
    import flash.utils.*;
    import flash.events.MouseEvent;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.net.URLLoaderDataFormat;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    pageBlock_mc.mandatoryWarning_mc.visible = false;
    sp1Mask_mc.height = 10;
    scrollPane1_mc.mask = sp1Mask_mc;
    //************************************************VARIABLES****************************************************
    var tl:MovieClip = this;
    var prd:int;
    var seg:int;
    var sld:int;
    var ICPcontent:XML;
    var productCount:Number;
    var productName:String;
    var segmentTitle:String;
    var slideURL:String;
    var productsArray:Array;
    var AssuritySegmentsArray:Array;
    var ComfortisSegmentsArray:Array;
    var ComfortisMandatoryArray:Array;
    var SWFsArray:Array;
    var videosArray:Array;
    var ReconcileSegmentsArray:Array;
    var TrifexisSegmentsArray:Array;
    var showArray:Array = new Array;
    var tempArray:Array;
    var subNum:Number = 1;
    var textHeight:Number;
    var xmlLoader:URLLoader = new URLLoader();
    var whichMajorBucket:String;
    var whichDeck:String;
    var fct:String;
    var segSlide:String
    var breakTimer:Timer;
    breakTimer = new Timer(500, 1);
    breakTimer.addEventListener("timer", doNext);
    function doNext(event:TimerEvent):void {
         trace("DO NEXT TRIGGERED and fct = " + fct);
         switch(fct) {
              case "assurity":
              trace("buildAssuritySlides()");
              buildAssuritySlides();
              break;
              case "comfortis":
              buildComfortisSlides();
              break;
              case "reconcile":
              buildReconcileSlides();
              break;
              case "addListeners":
              Object(this).startAssurity_btn.addEventListener(MouseEvent.MOUSE_DOWN, goToBuild);
              Object(this).startComfortis_btn.addEventListener(MouseEvent.MOUSE_DOWN, goToBuild);
              Object(this).startReconcile_btn.addEventListener(MouseEvent.MOUSE_DOWN, goToBuild);
              Object(this).pickAssurityDeck_mc.core_btn.addEventListener(MouseEvent.MOUSE_DOWN , goToBuild)
              Object(this).pickAssurityDeck_mc.quickStart_btn.addEventListener(MouseEvent.MOUS E_DOWN, goToBuild)
              trace("last timer triggered");
              fct = "ready?";
              breakTimer = new Timer(5000, 1);
              breakTimer.addEventListener("timer", doNext);
              breakTimer.start();
              break;
              case "ready?":
              Object(this).pageBlock_mc.visible = false;
              break;
    xmlLoader.addEventListener(Event.COMPLETE, loadContent);
    xmlLoader.load(new URLRequest("data/elancoICP.xml")); // + "?" + Math.random())
    //xmlLoader.load(new URLRequest("data/elancoICP.xml" + "?" + Math.random()));
    function loadContent(e:Event):void {
    XML.ignoreWhitespace = true;
    ICPcontent = new XML(e.target.data);
    productCount = ICPcontent.product.length()
    trace("the product count = " + productCount);
    productsArray = new Array;
    for (var i:int = 0; i<productCount; i++){
         productName = ICPcontent.product[i].productName.text();
         productsArray.push(productName);
         trace("productsArray = " + productsArray);
         buildAssurity();
    function buildAssurity(): void {
         tempArray = new Array();
         AssuritySegmentsArray = new Array();
         for( var a:int = 0; a < ICPcontent.product[0].segmentName.length(); a++) {
                   segmentTitle = ICPcontent.product[0].segmentName[a].text();
                   scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.text = segmentTitle;
                   scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.autoSize = TextFieldAutoSize.CENTER
                   textHeight = scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.height
                   scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.selectable = false;
                        if(textHeight < 35) {
                             scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 26;
                        } else {
                             if((textHeight > 22) && (textHeight < 50)) {
                                  scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 17;
                                  } else {
                                       if(textHeight > 50){
                                            scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 10;
                   subNum++;
                   AssuritySegmentsArray.push(segmentTitle);
                   tl["Assurity_" + segmentTitle + "_Array"] = new Array();
                   tl["Assurity_" + segmentTitle + "_Array"].name = "Assurity_" + segmentTitle + "_Array"
              if(a == ICPcontent.product[0].segmentName.length()) {
                   buildComfortis();
    function buildComfortis(): void {
         ComfortisSegmentsArray = new Array();
         for( var c:int = 0; c < ICPcontent.product[1].segmentName.length(); c++) {
                   segmentTitle = ICPcontent.product[1].segmentName[c].text();
                   scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.text = segmentTitle;
                   scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.autoSize = TextFieldAutoSize.CENTER
                   textHeight = scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.height
                   scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.selectable = false;
                        if(textHeight < 35) {
                             scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 26;
                        } else {
                             if((textHeight > 22) && (textHeight < 50)) {
                                  scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 17;
                                  } else {
                                       if(textHeight > 50){
                                            scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 10;
                                   subNum++;
                   ComfortisSegmentsArray.push(segmentTitle);
                   tl["Comfortis_" + segmentTitle + "_Array"] = new Array();
                   tl["Comfortis_" + segmentTitle + "_Array"].name = "Comfortis_" + segmentTitle + "_Array"
         ComfortisMandatoryArray = new Array();
         var mandatory:String;
         for(var cm:int = 0; cm < ICPcontent.product[1].mandatorySlides.slide.length(); cm++) {
              mandatory = ICPcontent.product[1].mandatorySlides.slide[cm].text();
              ComfortisMandatoryArray.push(mandatory);          
         SWFsArray = new Array();
         var SWF:String;
         for(var s:int = 0; s < ICPcontent.product[1].SWFs.slide.length(); s++) {
              SWF = ICPcontent.product[1].SWFs.slide[s].text();
              SWFsArray.push(SWF);          
         videosArray = new Array();
         var video:String;
         for(var v:int = 0; v < ICPcontent.product[1].Videos.slide.length(); v++) {
              video = ICPcontent.product[1].Videos.slide[v].text();
              videosArray.push(video);          
         if(c == ICPcontent.product[1].segmentName.length()) {
              buildReconcile();
    function buildReconcile():void {
         ReconcileSegmentsArray = new Array();
         for( var r:int = 0; r < ICPcontent.product[2].segmentName.length(); r++) {
                   segmentTitle = ICPcontent.product[2].segmentName[r].text();
                   scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.text = segmentTitle;
                   scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.autoSize = TextFieldAutoSize.CENTER
                   textHeight = scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.height
                   scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.selectable = false;
                        if(textHeight < 35) {
                             scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 26;
                        } else {
                             if((textHeight > 22) && (textHeight < 50)) {
                                  scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 17;
                                  } else {
                                       if(textHeight > 50){
                                            scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 10;
                                   subNum++;
                   ReconcileSegmentsArray.push(segmentTitle);
                   tl["Reconcile_" + segmentTitle + "_Array"] = new Array();
                   tl["Reconcile_" + segmentTitle + "_Array"].name = "Reconcile_" + segmentTitle + "_Array"
         trace("assurity segments = " + AssuritySegmentsArray);
         trace("comfortis segments = " + ComfortisSegmentsArray);
         trace("reconcile segments = " + ReconcileSegmentsArray);
         var sp1level:Number = scrollPane1_mc.numChildren - 1;
         trace("sp1level = " + sp1level);
              if(r == ICPcontent.product[2].segmentName.length()) {
                   fct = "assurity"
                   breakTimer.start();
    function buildAssuritySlides(): void {
         trace("buildAssuritySlides() triggered");
         var aSegLength:Number = AssuritySegmentsArray.length-1;
         var aSldLength:Number = ICPcontent.product[0].segmentSlides[aSegLength].slide.length()-1
         trace("aSegLength = " + aSegLength + " & aSldLength = " + aSldLength);
         for (seg = 0; seg < AssuritySegmentsArray.length; seg++) {
              for (sld = 0; sld < ICPcontent.product[0].segmentSlides[seg].slide.length(); sld++) {
                   segSlide = String(ICPcontent.product[0].segmentSlides[seg].slide[sld].text());
                   tl["Assurity_" + String(AssuritySegmentsArray[seg]) + "_Array"].push(segSlide)
                   if(seg == aSegLength) {
                        trace("sld = " + String(sld))
                        if(sld == aSldLength) {
                             trace("IT DOES sld = 8");
                             fct = "comfortis";
                             breakTimer = new Timer(500, 1);
                             breakTimer.addEventListener("timer", doNext);
                             breakTimer.start();
    function buildComfortisSlides(): void {
         var cSegLength:Number = ComfortisSegmentsArray.length-1;
         var cSldLength:Number = ICPcontent.product[1].segmentSlides[cSegLength].slide.length()-1
         for (seg = 0; seg < ComfortisSegmentsArray.length; seg++) {
              for (sld = 0; sld < ICPcontent.product[1].segmentSlides[seg].slide.length(); sld++) {
                   segSlide = String(ICPcontent.product[1].segmentSlides[seg].slide[sld].text());
                   tl["Comfortis_" + String(ComfortisSegmentsArray[seg]) + "_Array"].push(segSlide)
                   if(seg == cSegLength) {
                        if(sld == cSldLength) {
                             trace("IT DOES");
                             fct = "reconcile";
                             breakTimer = new Timer(500, 1);
                             breakTimer.addEventListener("timer", doNext);
                             breakTimer.start();
    function buildReconcileSlides(): void {
         var rSegLength:Number = ReconcileSegmentsArray.length-1;
         var rSldLength:Number = ICPcontent.product[2].segmentSlides[rSegLength].slide.length()-1
         for (seg = 0; seg < ReconcileSegmentsArray.length; seg++) {
              for (sld = 0; sld < ICPcontent.product[2].segmentSlides[seg].slide.length(); sld++) {
                   segSlide = String(ICPcontent.product[2].segmentSlides[seg].slide[sld].text());
                   tl["Reconcile_" + String(ReconcileSegmentsArray[seg]) + "_Array"].push(segSlide)
                   if(seg == rSegLength) {
                        if(sld == rSldLength) {
                             trace("IT DOES");
                             fct = "addListeners";
                             breakTimer = new Timer(500, 1);
                             breakTimer.addEventListener("timer", doNext);
                             breakTimer.start();
    function checkAslide(): void {
         trace("checking the Comfortis Mode of Action slides")
         trace ("array = " + tl["Comfortis_" + String(ComfortisSegmentsArray[0]) + "_Array"][0]);
    function goToBuild(event:MouseEvent):void {
         switch(event.target.name) {
              case "startAssurity_btn":
    //          whichMajorBucket = "Assurity";
    //          if(pickAssurityDeck_mc.y == 275) {
    //               trace("it's hidden");
    //               var showTween:Tween = new Tween(pickAssurityDeck_mc, "y", Strong.easeOut, 275, 392, 1, true);
    //          } else {
    //               var hideTween:Tween = new Tween(pickAssurityDeck_mc, "y", Strong.easeOut, 392, 275, 1, true);
              break;
              case "quickStart_btn":
              //whichMajorBucket = "Assurity";
    //          whichDeck = String(AssuritySegmentsArray[0])
    //          gotoAndPlay("builder");
              break;
              case "core_btn":
              //whichMajorBucket = "Assurity";
    //          whichDeck = String(AssuritySegmentsArray[1])
    //          gotoAndPlay("builder");
              break;
              case "startComfortis_btn":
              whichMajorBucket = "Comfortis";
              whichDeck = "Core";
              gotoAndPlay("builder");
              break;
              case "startReconcile_btn":
              //whichMajorBucket = "Reconcile";
    //          whichDeck = "Core";
    //          gotoAndPlay("builder");
              break;

  • Execute script from ODI

    Hi ODI Gurus,
    I need to execute unix scripts which will internally call java programs from ODI.
    I am trying using the packagae - OS Command option but it is saying "Wrong process return code"
    Appreciate your inputs ?
    Best Regards
    Arc

    Hi Arc,
    Like to contribute some points,
    Wrong Process Return Code will be returned due to,
    1. ODI cant able to access your script file ie, access permission issues, script reside in some machine where your ODI agent cant find it.
    2. Your script itself failed ie, there is some problem in your script and if its failed ODI will retrun the error. So its always a best practice to redirect the output of script to a log file.
    Hopes this helps you.
    Thanks,
    Guru

Maybe you are looking for