Problems beginner with scripts for a button

Hello

I feel embarrassed that such a simple problem.

I am doing my first Flash project and have a little problem of script.

I need to put in place so that only by clicking a button makes the film jumps to a frame number. Currently by clicking anywhere on the screen to do this.

Script is below:

replay.onMouseUp = function (replay)

(

gotoAndPlay (45)

);

I'm sure the solutiopn is obvious to anyone with some knowledge of Flash, but it's something that I'm sorely.

Thank you

Try:

replay.onRelease = function()

(

gotoAndPlay (45)

);

Tags: Adobe Animate

Similar Questions

  • How to use the same script for several buttons

    Hello

    I have just started using flash if any help would be great!

    I create a blockbuster game, I have a grid of 20 buttons and I need (individually) to turn blue on red and click double click. I managed to do it with the first using this code;

    --------------------------------------------

    var click: Boolean = false;

    BN1.addEventListener (MouseEvent.CLICK, bn1click);

    function bn1click(event:MouseEvent):void {}

    clicked = true;

    var newColorTransform:ColorTransform = bn1.transform.colorTransform;

    {if (clicked)}

    newColorTransform.color = 0 x 064258;

    }

    BN1. Transform.ColorTransform = newColorTransform;

    }

    /////////////

    BN1.doubleClickEnabled = true;

    var doubleclicked:Boolean = false;

    BN1.addEventListener (MouseEvent.DOUBLE_CLICK, bn1dclick);

    function bn1dclick(event:MouseEvent):void {}

    DoubleClicked = true;

    var newColorTransform:ColorTransform = bn1.transform.colorTransform;

    {if (clicked)}

    newColorTransform.color = 0xac1e23;

    }

    BN1. Transform.ColorTransform = newColorTransform;

    }

    --------------------------------------------

    Now, I'll have trouble doing the same thing to work for the rest of the buttons, they are each named bn2, bn3 etc. They need to work individually and stay blue/red when clicked. I tried to list them as addEventListener orders but not with not a lot of success!

    Any help would be greatly appreciated, thank you!

    Tomo

    To do this is to use arrays to follow the buttons and their properties.

    var buttonList:Array = new Array (bn1, bn2, bn3);

    var clickedList:Array = new Array();

    var doubleClickedList:Array = new Array();

    Then use a loop for to assign functions and properties for each button:

    var thisMany:int = buttonList.length; This will give you the number of items in the buttonList array

    for (var i: int = 0; i

    buttonList [i] .addEventListener (MouseEvent.CLICK, btnClick); assign the function click on each button

    buttonList [i] .addEventListener (MouseEvent.DOUBLE_CLICK, btnDClick); assign the double-click function

    clickedList.push (false);  Add a value of false for each key in this table

    doubleClickedList.push (false);

    buttonList [i] .doubleClickEnabled = true; Set the property of double-tap for each button

    }

    function btnClick(event:MouseEvent):void {}

    var thisButton:int = buttonList.indexOf (event.target);  know which button has been clicked as an element in the table

    clickedList [Ceboutonselectionnel] = true;  Change the value in the table

    var newColorTransform:ColorTransform is buttonList [Ceboutonselectionnel].transform.colorTransform;.

    {if (clickedList [thisButton])}

    newColorTransform.color = 0 x 064258;

    }

    buttonList [Ceboutonselectionnel].transform.colorTransform = newColorTransform;

    }

    function btnDClick(event:MouseEvent):void {}

    var thisButton:int = buttonList.indexOf (event.target);

    doubleClickedList [Ceboutonselectionnel] = true;

    var newColorTransform:ColorTransform is buttonList [Ceboutonselectionnel].transform.colorTransform;.

    {if (doubleClickedList [thisButton])}

    newColorTransform.color = 0xac1e23;

    }

    buttonList [Ceboutonselectionnel].transform.colorTransform = newColorTransform;

    }

    Now you can have any number of buttons, just add their instance names in the table above.

  • Help with Javascript for the button Delete

    Hi, Im new JavaScript and have my code works partially, but the trouble with a nested if-then-else statement.

    I have a page element, P4_COUNT, and if its value is 0, the button Delete will allow the user to delete the record. If the number is > 0, a message should appear stating that the record cannot be deleted. That's what I have so far and it works, but the first ELSE is misplaced. This code is the URL target for my button remove.

    JavaScript:var response; response = confirm ("are you sure you want to delete this POC?'");
    If {(response)
    If (document.getElementById('P4_COUNT').value == 0) {}
    doSubmit ('DELETE');
    }
    }
    else {-this other fires when the user hits cancel on the first question above not what I want, I want another one here who said only: "removal cancelled '"}
    -This one should only be fired if p4_count is not equal to 0
    var answer2;
    answer2 = confirm ('you cannot remove this POC, that this POC is associated with a RIF.');
    If {(answer2)
    Alert ('cancelled deletion');
    }
    else {}
    Alert ('cancelled deletion');
    }
    }


    The above should follow this logic:

    Are you sure you want to delete this POC?
    Yes - if p4_count = 0 then
    delete the record
    on the other
    second line: cannot delete this record
    OK - prompt removal cancelled
    Cancel - prompt removal cancelled
    end if;
    Cancel - prompt removal cancelled


    Help, please. Thank you, Laura

    Published by: user8936524 on May 10, 2010 14:14

    Hello

    Try if it works. I didn't test it

    javascript:if($v('P4_COUNT')*1==0){
    var answer=confirm('Are you certain you want to delete this POC?');
    if(answer){doSubmit('DELETE');}
    else{alert('Deletion Cancelled');}
    }else{alert('You may not delete this POC, as this POC is associated to an FRR.');}
    

    BR, Jari

  • Problem with script for the font change

    Hey guys,.

    You have a problem here and it has completely baffled me.

    I have two scripts;

    Change the list of fonts of Arial roasts in the entire document,
    And the other to do exactly the same thing in the paragraph styles.

    One that modifies the document works very well, one that runs through paragraph styles does not work. It simply changes all fonts that never entered last in the script.

    I downloaded a zip container file:

    1: arial fonts

    2: Rotis Fonts

    3 inDesign Document with paragraph Styles

    4: two JavaScript scripts to change fonts

    Zip file location: http://www.sbdigitalservices.com/transfers/ScriptProblem.zip

    Any help would be appreciated more that I tried to solve this problem for a few days with no joy!

    LittleMookie

    [Jongware] wrote:

    It should be

    If (app.activeDocument.paragraphStyles.appliedFont == app.fonts.item ("Rotis Semi Light Sans\t45")

    app.activeDocument.paragraphStyles [i] .appliedFont = app.fonts.item("Arial\tNarrow");

    In fact, the [i] has been replaced by the sign...

    It should be:

    app.activeDocument.paragraphStyles[i].appliedFont == app.fonts.item("Rotis Semi Sans\t45 Light")
    

    I would have written it totally differently (it interacts with InDesign much much less!):

    var doc = app.activeDocument;
    //var paraStyles = doc.paragraphStyles;// you don't want to do this if there's a chance of style groups...
    var paraStyles = doc.allParagraphStyles;// You want this instead!
    var fonts=app.fonts;
    
    for (var i=2; i		   
  • Problems beginner with blues on all imported pictures. LR 3.3

    I'm upgrading to LR 3.3.  The problem I have is that on all imported images the blues are irresistible, almost iridescent.  The camera is Lumix GF1, Raw + JPEG.  Windows XP.  Also, I installed on my iMAC to LR3 and do not have this problem, that is, everything seems OK.  In addition, the same images in the camera and other Windows photo software (Picassa, Paintshop pro) look quite normal without this problem with the blues.  LR 3.3 obviously unusable in this State.  Previously, had no problems with LR 2.2 import.    Any suggestions, other than coming back to LR2?  Thank you very much. »

    In addition, the same images in the camera and other Windows photo software (Picassa, Paintshop pro) look quite normal without this problem with the blues.

    Almost certainly a bad monitor on your XP machine profile. Picassa and PS pro are not color managed so that they do not use the monitor profile and show the color never appropriate. You need to calibrate your monitor on the XP machine. Macs come with patterns relatively good monitor built in and almost all applications color managed so you won't have this problem to the same extent. Corrupt the monitor profiles are extremely common on windows for some reason computers any and are a well known problem that you notice when using color managed apps. The calibration is performed using equipment such as the Spyder Pro, Huey Pro, or similar and is an essential part of digital photography. You are unable to achieve consistent and good results. If you are not critical and never print or share your images, the best thing to do is to go to your display properties panel and delete the profile associated with your monitor in the color management tab. This wil make windows assumes that your monitor is sRGB and effectively disables the management of color everywhere. As I said, if you care about the color, you need to calibrate.

  • HELP with animation for the buttons (I tried to search for days for solution)

    Hellooo

    I tried to watch the discussions here for a solution, but I can not find... can someone help me please?

    I design a website in flash8... now, I created a few buttons and I want that when I click the button stars will fly on their part and there will be a sound... I have already created the animation of the separately-star and it's in the library, I also sound file... I just don't remember how put everything together... can someone please remind me what to do step by step so When I press the button that the stars will fly directly from the button and the sound will play? pleaseeeeeeeee, it's very very important to me... I'd be grateful < 3

    in your library, double-click your button.  Select the image down, and in the properties panel, select your sound and assign its sync to the event.  then drag your animation to your library on the stage.

  • I'm built with script problems. I Yes Script and it doesn't help. Is there another suggestion... 20 for a website it madness.

    In addition to what I said. I even uninstalled and install a fresh Firefox. Always be flooded to the script. I spend more time trying to put an end to those that I can on a Web site.

    I left Chrome after 3 years because of the questions on the page does not have in the hope that by returning to Firefox, everything would be good.

    My cache is empty and I've done everything suggested that Firefox and still unable to go to a Web site with this question.

    Have you added any of these sites to the block list in YesScrpt?

    This extension is not a bitch at all until the user configures the blocking for each Web site where they get this message.

    I think that your problem is with a script that take too long to run, and that Firefox is you say that. You can try changing that 'time' a script is allowed to run before the message is triggered with this preference.

    http://KB.mozillazine.org/DOM.max_script_run_time

    Try 15 or 20 and see how it works.

  • the problems associated with writing script

    Hi all

    I use DIAdem 10.2

    (1) I write the Script for the declaration of my scada system. In my report model, there are some common text as user field, period reoprt, designation, report, etc. etc... I designed the dialog box to ask these details in starting, and now I wanted to transfer these details on each page of the report. Is it possible to connect these details with the report model?

    (2) I am facing problem in the allocation of train paths within the script... Is it possible to get rid of problems that arise due to movement of files from file *.sud or *.tdr. It will be great if diadem automatiocally search inside the folder in which the script is saved... so whenever we are going to move the complete file of any statement. It won't create any problem condition save us all files in a folder.

    (3) I crushed my script different system or sometimes need to distribute it. Is it possible to make my script running on another system where tiara is not installed... sort of it, even making available using any platform of programming such as LabVIEW, Measurement studio, CVI etc. etc.

    Thank you very much!

    HS

    HS Hello!

    (1) you can use global variables to solve this task. There are some predefined as "T1" or - I prefer - assign them in the Script with the command GlobalDim and fill them in your data. In the report, you can use the expression '@T1 @' or ' @@MyGlobalDimVar @ ' in the text fields to display the content.

    (2) you can use the AutoActPath variable to all access to the files compared to the running script. If you put all your files next to the script, you can move the package wherever you want in the file system. In all commands of loading like PicFileLoad you must use AutoActPath.

    (3) you can run Scripts DIAdem and dialogs only in DIAdem.

    Matthias

  • Printer problem install with VB Script

    Hi all

    I hope you guys can help me with a problem I have. For a customer, we are trying to install printers via a script run when connecting. We got it working on 32-bit workstations, but I won't work on 64-bit workstations.

    We know that the problem is by removing the printer before connecting. With the script we have now it works only in 32 bits, but we need a solution that works on both. Or a script that checks the architecture of the en PC runs the script for 32 or 64 bit.

    The script:

    Option Explicit
    Dim FSO, strUserName, WSHNetwork, strUserDomain, ObjGroupDict, varenv, strVarUserName
    Dim objNetwork, strComputer, objWMIService, colInstalledPrinters, objPrinter, strLocal
    Dim strUNCPrinter1, strUNCPrinter2, strUNCPrinter3, strUNCPrinter4
    Dim strUNCPrinter5
    Sun printers
    Dim counter

    Set WSHNetwork = WScript.CreateObject ("WScript.Network")
    Set varenv = WScript.CreateObject ("WScript.Shell")
    Set FSO = CreateObject ("Scripting.FileSystemObject")
    strVarUserName = EnvVar.ExpandEnvironmentStrings("%username%") "

    "Wait for the user to connect

    strUserName = «»
    While strUserName = «»
    WScript.Sleep 100
    strUserName = WSHNetwork.UserName
    Wend
    strUserDomain = WSHNetwork.UserDomain

    Set ObjGroupDict = CreateMemberOfObject (strUserDomain, strUserName)

    'Create printers '.

    strUNCPrinter1 = "\\s-exch\P50 - A4 Dubbel (Kleur)"
    strUNCPrinter2 = "\\s-exch\P50 - A4 Dubbel (Z - W)"
    strUNCPrinter3 = "\\s-exch\P50 - A4 Enkel (Kleur)"
    strUNCPrinter4 = "\\s-exch\P50 - A4 I (Z - W)"
    strUNCPrinter5 = "\\s-exch\P50 - TCE - Briefpapier (Z - W)" "

    'Delete printers '.

    Set objNetwork = CreateObject
    objNetwork.RemoveWindowsPrinterConnection "\\s-exch\P50 - A4 Dubbel (Kleur)"
    objNetwork.RemoveWindowsPrinterConnection "\\s-exch\P50 - A4 Dubbel (Z - W)"
    objNetwork.RemoveWindowsPrinterConnection "\\s-exch\P50 - A4 Enkel (Kleur)"
    objNetwork.RemoveWindowsPrinterConnection "\\s-exch\P50 - A4 I (Z - W)"
    objNetwork.RemoveWindowsPrinterConnection "\\s-exch\P50 - TCE - Briefpapier (Z - W)" "

    ' Create printermappings based on groupmembership

    If MemberOf (ObjGroupDict, "P50" ") then
    Set objNetwork = CreateObject
    objNetwork.AddWindowsPrinterConnection strUNCPrinter1
    End If

    If MemberOf (ObjGroupDict, "P50" ") then
    Set objNetwork = CreateObject
    objNetwork.AddWindowsPrinterConnection strUNCPrinter2
    End If

    If MemberOf (ObjGroupDict, "P50" ") then
    Set objNetwork = CreateObject
    objNetwork.AddWindowsPrinterConnection strUNCPrinter3
    End If

    If MemberOf (ObjGroupDict, "P50" ") then
    Set objNetwork = CreateObject
    objNetwork.AddWindowsPrinterConnection strUNCPrinter4
    End If

    If MemberOf (ObjGroupDict, "P50" ") then
    Set objNetwork = CreateObject
    objNetwork.AddWindowsPrinterConnection strUNCPrinter5
    End If

    Function MemberOf (ObjDict, strKey)
    MemberOf = CBool (ObjGroupDict.Exists (strKey))
    End Function

    Function CreateMemberOfObject (strDomain, strUserName)
    Dim objUser, objGroup
    Set CreateMemberOfObject = CreateObject ("Scripting.Dictionary")
    CreateMemberOfObject.CompareMode = vbTextCompare in
    Set objUser = GetObject ("WinNT: / /" & strDomain & "/" & strUserName & ", user")
    For each objGroup in objUser.Groups
    CreateMemberOfObject.Add objGroup.Name, «»
    Next
    Set objUser = Nothing
    End Function

    Hello Miesjel,

    Welcome to the Microsoft Community Forum.

    The question you posted would be better suited to the Technet community. Please visit the link below to find a community that will provide the support you want.

    Microsoft TechNet
    http://social.technet.Microsoft.com/forums/scriptcenter/en-us/home?category=scripting

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

    Happy new year!

    Thank you

  • Problem with the Access toolbar buttons

    Hi, I have a problem with the Access toolbar buttons. instead of icons, it shows just 2 boxes, as we get police unknown boxes. Help, please.

    Hi, I have a problem with the Access toolbar buttons. instead of icons, it shows just 2 boxes, as we get police unknown boxes. Help, please.

    Hello

    Those who are not traditional icons they are symbols that belong to the Segoe UI police.

    See the following Web site for an excellent tutorial to solve this problem.

    [SOLVED] Unknown character or vertical Rectangles are appearing in place of metro icons in the Windows 8 start screen and login screen - tweaking with Vishal:

    http://www.askvg.com/fix-unknown-characters-or-vertical-rectangles-are-showing-in-place-of-Metro-icons-in-Windows-8-start-screen-and-login-screen/

    Let us know if it works for you.

    Concerning

  • advice of script for a beginner please

    I am a beginner, trying to enter VMware (winding maze lost in corridors...)

    With vSphere Client I can manually create virtual machines on our 5 ESXi host, producing an OVA of our product for distribution file.
    I am obliged to describe the process.

    Can I set up and configure virtual machines using only the ESXi console?

    VCLI (free download) allows Windows to create virtual machines on an ESXi host?

    Outline of what needs of script:

    • create a VM (this is the only bit that I was able to do it, using the console for ESXi)
    • install CentOS Linux using anaconda with kickstart script
    • Configure the virtual machine and the export

    Advice, tips or pointers to get this done will be very appreciated!

    Thank you very much

    Alan

    A few answers to your questions

    1. you will need to get an ISO of the CD of CentOS and store it somewhere on a data store.

    Once this is done, you can use the cmdlet Set-CDDrive with the IsoPath parameter.

    2. use the cmdlet New-VM , something like that.

    You get the default value of the bu NIC, just specify what portgroup to connect to

    $vm = New - VM - name MyVM - ID centosGuest - NumCpu 1 - MemoryMB (1 GB / 1 MB)-DiskMb (60 GB / 1 MB)-NetworkName MyPG

    3 see forces a VM to access BIOS screen on the next reboot

    4. use the Start-VM cmdlet

    Start-VM - $vm VM - confirm: $false

    5 once again with the cmdlet Set-CDDrive , but the use of the HostDevice parameter

    6 see specify bootable for a virtual machine devices

    7. do not apply. You change the boot order before starting the virtual machine

    8. who could perhaps be done with the Invoke-VMScript cmdlet and the bash ScriptType parameter. But I have not tested with CentOS.

    9. it's a little tricky. The external vSphere unclear when a program inside a guest what OS is finished. There are ways to send some kind of semaphores, see, for example, waiting for the customization of the OS to complete

    10. There are a lot of the cmdlet Set-availabe, i.e. Whole-VM, Set-NetworkAdapter...

    As a guideine, you should always try to translate your literally to scripts for automation of manual procedures. Sometimes, you should first rethink your account automation procedure.

  • Problems with the images scroll buttons

    Hi Lilicuca

    I'm having exactly the problem you two above.

    If I use an older version of the content viewer, it will eliminate the delay? What older version works?

    Thank you

    Office Viewer is completely different code which works on iOS devices and we do not recommend using it for something beyond just basic design test. Looks like it's just a bug with the scroll images buttons.

    The version of spectator target that you define in the Folio Builder Panel has no effect on the generation of content.

    Neil

  • Script for the conversion of the hyperlinks to the buttons?

    Hello!

    Does anyone know if West a script for the conversion of the hyperlinks to buttons with the action of going to the URL with the same URL, which has been used with hyperlink?

    Here it is:

    /* Copyright 2012, Kasyan Servetsky
    November 29, 2012
    Written by Kasyan Servetsky
    http://www.kasyan.ho.com.ua
    e-mail: [email protected] */
    //======================================================================================
    var scriptName = "Convert hyperlinks to buttons - 1.0";
    
    Main();
    
    //===================================== FUNCTIONS  ======================================
    function Main() {
        var hyperlink, source, sourceText, destination, page, arr, outlinedText, gb, button, behavior,
        barodeCount = 0,
        hypCount = 0;
        if (app.documents.length == 0) ErrorExit("Please open a document and try again.", true);
        var startTime = new Date();
    
        var doc = app.activeDocument;
        var layer = doc.layers.item("Buttons");
        var swatch = doc.swatches.item("RGB Yellow");
        var hyperlinks = doc.hyperlinks;
    
        var progressWin = new Window ("window", scriptName);
        progressBar = progressWin.add ("progressbar", undefined, 0, undefined);
        progressBar.preferredSize.width = 450;
        progressTxt = progressWin.add("statictext", undefined,  "Starting processing hyperlinks");
        progressTxt.preferredSize.width = 400;
        progressTxt.preferredSize.height = 30;
        progressTxt.alignment = "left";
        progressBar.maxvalue = hyperlinks.length;
        progressWin.show();
    
        for (var i = hyperlinks.length-1; i >= 0; i--) {
            hyperlink = hyperlinks[i];
            source = hyperlink.source;
            sourceText = source.sourceText;
            destination = hyperlink.destination;
            page = sourceText.parentTextFrames[0].parentPage;
    
            barodeCount++;
            progressBar.value = barodeCount;
            progressTxt.text = "Processing hyperlink " + hyperlink.name + " (Page - " + page.name + ")";
    
            arr = sourceText.createOutlines(false);
            outlinedText = arr[0];
            gb = outlinedText.geometricBounds;
            outlinedText.remove();
    
            button = page.buttons.add(layer, {geometricBounds: gb, name: hyperlink.name});
            button.fillColor = swatch;
            button.fillTint = 50;
            button.groups[0].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;
            behavior = button.gotoURLBehaviors.add();
            behavior.url = destination.destinationURL;
    
            hyperlink.remove();
            source.remove();
    
            hypCount++;
        }
    
        var endTime = new Date();
        var duration = GetDuration(startTime, endTime);
        progressWin.close();
    
        alert("Finished. " + hypCount + " hyperlinks were convertted to buttons.\n(time elapsed: " + duration + ")", scriptName);
    
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    function GetDuration(startTime, endTime) {
        var str;
        var duration = (endTime - startTime)/1000;
        duration = Math.round(duration);
        if (duration >= 60) {
            var minutes = Math.floor(duration/60);
            var seconds = duration - (minutes * 60);
            str = minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second");
            if (minutes >= 60) {
                var hours = Math.floor(minutes/60);
                minutes = minutes - (hours * 60);
                str = hours + ((hours != 1) ? " hours, " : " hour, ") + minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second");
            }
        }
        else {
            str = duration + ((duration != 1) ? " seconds" : " second");
        }
    
        return str;
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    function ErrorExit(error, icon) {
        alert(error, scriptName, icon);
        exit();
    }
    
  • With INSERT for FDM memory problem

    All-

    We have configured FDM to run a script of integration in our instance EBS at the import stage. It worked fine for awhile, then we started to run out of memory on the server FDM. At the suggestion of the Oracle, we stopped through a record set for add and update the values of strWorkTableName and instead, he began to use INSERT INTO. I admit, I never needed to use the INSERT INTO how to do, so I can miss something bery base.

    Our integration script:
    Function SQLIntegration2(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    '------------------------------------------------------------------
    'Oracle Hyperion FDM IMPORT Integration Script:
    '
    'Created By:       karks
    'Date Created:       2011-10-26 13:05:18
    '
    'Purpose:
    '
    '------------------------------------------------------------------
    
    Dim strSQL     'SQL string
    Dim lngPartitionKey
    Dim strConn 'Connection string to the source data
    Set cnSS = CreateObject("ADODB.Connection")
    
    lngPartitionKey = RES.PlngLocKey
    
    strConn= "File Name=C:\Users\karksadm\Desktop\NewConnection.udl;"
    cnSS.open strConn
    
    strSQL = "Insert Into " & strWorkTableName & " (PartitionKey, CatKey, PeriodKey, DataView, Amount , Account, Entity, ICP, UD1, UD2, UD3, UD4) "
    strSQL = strSQL & "SELECT " & lngPartitionKey & ", " & lngCatKey & ", TO_DATE (TO_DATE ('30/12/1899','dd/mm/yyyy')+" & dblPerKey & "), 'YTD', EBS.YTD_BALANCE, EBS.ACCOUNT, EBS.SEGMENT1, EBS.SEGMENT5, EBS.SEGMENT4, EBS.SEGMENT5, '[None]', EBS.CURRENCY_CODE FROM "
    strSQL = strSQL & "(Select D.NAME, A.CODE_COMBINATION_ID, D.NAME LEDGER_NAME, A.ACTUAL_FLAG, C.PERIOD_YEAR, TO_CHAR (C.START_DATE, 'MON-YY') AS PERIOD, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3) As ACCOUNT, B.SEGMENT4, B.SEGMENT5, A.CURRENCY_CODE, "
    strSQL = strSQL & "(SUM (A.BEGIN_BALANCE_DR) + SUM (A.PERIOD_NET_DR) - SUM (A.BEGIN_BALANCE_CR) - SUM (A.PERIOD_NET_CR)) As YTD_BALANCE "
    strSQL = strSQL & "FROM GL.GL_BALANCES A, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D "
    strSQL = strSQL & "WHERE 1 = 1 And A.LEDGER_ID = D.LEDGER_ID And A.PERIOD_NUM = C.PERIOD_NUM And C.PERIOD_YEAR = A.PERIOD_YEAR "
    strSQL = strSQL & "And A.CODE_COMBINATION_ID = B.CODE_COMBINATION_ID And B.SUMMARY_FLAG = 'N' AND C.PERIOD_SET_NAME = D.PERIOD_SET_NAME "
    strSQL = strSQL & "And (B.SEGMENT1 = 001 And A.CURRENCY_CODE = 'USD' And D.LEDGER_ID = 2022) "
    strSQL = strSQL & "And C.END_DATE = TO_DATE (TO_DATE ('30/12/1899','dd/mm/yyyy')+" & dblPerKey & ") " 
    strSQL = strSQL & "And B.CHART_OF_ACCOUNTS_ID = D.CHART_OF_ACCOUNTS_ID And A.ACTUAL_FLAG = 'A' "
    strSQL = strSQL & "And ((A.BEGIN_BALANCE_DR) + (A.PERIOD_NET_DR) - ((A.BEGIN_BALANCE_CR) + (A.PERIOD_NET_CR))) <> 0 "
    strSQL = strSQL & "GROUP BY A.CODE_COMBINATION_ID, D.NAME, A.CURRENCY_CODE, TO_CHAR (C.START_DATE,'MON-YY'), C.PERIOD_YEAR, A.ACTUAL_FLAG, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3), B.SEGMENT4, B.SEGMENT5 "
    strSQL = strSQL & "ORDER BY B.SEGMENT4) EBS" 
    
    DW.DataManipulation.fExecuteDML(strSQL) 
    
    'Give success message
    RES.PlngActionType = 2
    RES.PstrActionValue = "SQL Import successful!"
    
    'Assign Return value
    SQLIntegration2 = True
    cnSS.close
    Set cnSS = Nothing
    
    End Function
    I can run the SQL less line insertion in my SQL Developer and it works fine. When I run the script in its entirety in the FDM, we get the following:

    * Start the journal entry for the Runtime Error FDM [2012-01-23 11:37:30] *.
    -------------------------------------------------------------
    ERROR:
    Code...-2147217865
    Description... ORA-00942: table or view does not exist
    Insert Into tWibison72564424799 (PartitionKey, CatKey, PeriodKey, DataView, amount, account, entity, PKI, UD1, UD2, UD3, UD4) 772 SELECT, 28, TO_DATE (TO_DATE (' N December 30, 1899 ', not dd/mm/yyyy ') + 40724), YTD', EBS. YTD_BALANCE, EBS. ACCOUNT, EBS. SEGMENT1, EBS. SEGMENT5, EBS. SEGMENT4, EBS. SEGMENT5, N "[None]", EBS. Currency_code OF (Select D.NAME, A.CODE_COMBINATION_ID, LEDGER_NAME, A.ACTUAL_FLAG, C.PERIOD_YEAR, TO_CHAR D.NAME (C.START_DATE, no MON-YY') AS the PERIOD, B.SEGMENT1, (B.SEGMENT2 |)) B.SEGMENT3) as ACCOUNT, B.SEGMENT4, B.SEGMENT5, A.CURRENCY_CODE, (SUM (A.BEGIN_BALANCE_DR) + SUM (A.PERIOD_NET_DR) - SUM (A.BEGIN_BALANCE_CR) - SUM (A.PERIOD_NET_CR)) as GL.GL_BALANCES YTD_BALANCE, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D, WHERE 1 = 1 and A.LEDGER_ID = D.LEDGER_ID And A.PERIOD_NUM = C.PERIOD_NUM And C.PERIOD_YEAR = A.PERIOD_YEAR And A.CODE_COMBINATION_ ID = B.CODE_COMBINATION_ID and B.SUMMARY_FLAG = do no AND C.PERIOD_SET_NAME = D.PERIOD_SET_NAME and (B.SEGMENT1 = 001 and A.CURRENCY_CODE 'n' USD =' and D.LEDGER_ID = 2022) and C.END_DATE = TO_DATE (TO_DATE (' N December 30, 1899 ', not dd/mm/yyyy ') + 40724) and B.CHART_OF_ACCOUNTS_ID = D.CHART_OF_ACCOUNTS_ID and A.ACTUAL_FLAG = ' and ((A.BEGIN_BALANCE_DR) + (A.PERIOD_NET_DR) - ((A.BEGIN_BALANCE_CR) + (A.PERIOD_)) NET_ CR))) <>0 GROUP BY D.NAME, A.CURRENCY_CODE, A.CODE_COMBINATION_ID, TO_CHAR (C.START_DATE, no MON-YY'), C.PERIOD_YEAR, A.ACTUAL_FLAG, B.SEGMENT1, (B.SEGMENT2 |) B.SEGMENT3), B.SEGMENT4, B.SEGMENT5 ORDER BY B.SEGMENT4) EBS
    Process... clsDataManipulation.fExecuteDML
    The component... upsWDataWindowDM
    Version.......................................... 1112
    Thread........................................... 4424

    IDENTIFICATION:
    User............................................. ibisons
    Name of the computer... HOU-HYSDEV02
    App Name......................................... SWNFDMRC
    Client App....................................... WebClient

    CONNECTION:
    Provider......................................... ORAOLEDB. ORACLE
    Database server...
    Name of the database... FDMDEV
    Trust connect... Fake
    Connect status... Open connection

    GLOBALS:
    Location......................................... EBSINTEGRATION
    Location ID... 772
    Location Seg... 25
    Category......................................... EBS2
    ID of the category... 28
    Period... - June - 2011
    Period ID........................................ 30/06/2011
    POV Local........................................ Fake
    Language......................................... 1033
    User Level....................................... 1
    All Partitions... True
    Is Auditor....................................... Fake


    * Start the journal entry for the Runtime Error FDM [2012-01-23 11:37:31] *.
    -------------------------------------------------------------
    ERROR:
    Code...-2147217865
    Description... Data access error.
    Online: 33
    Process... clsImpProcessMgr.fExecuteImpScript
    The component... upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 4424

    IDENTIFICATION:
    User............................................. ibisons
    Name of the computer... HOU-HYSDEV02
    App Name......................................... SWNFDMRC
    Client App....................................... WebClient

    CONNECTION:
    Provider......................................... ORAOLEDB. ORACLE
    Database server...
    Name of the database... FDMDEV
    Trust connect... Fake
    Connect status... Open connection

    GLOBALS:
    Location......................................... EBSINTEGRATION
    Location ID... 772
    Location Seg... 25
    Category......................................... EBS2
    ID of the category... 28
    Period... - June - 2011
    Period ID........................................ 30/06/2011
    POV Local........................................ Fake
    Language......................................... 1033
    User Level....................................... 1
    All Partitions... True
    Is Auditor....................................... Fake


    * Start the journal entry for the Runtime Error FDM [2012-01-23 11:37:31] *.
    -------------------------------------------------------------
    ERROR:
    Code...-2147217865
    Description... Data access error.
    Online: 33
    Process... clsImpProcessMgr.fLoadAndProcessFile
    The component... upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 4424

    IDENTIFICATION:
    User............................................. ibisons
    Name of the computer... HOU-HYSDEV02
    App Name......................................... SWNFDMRC
    Client App....................................... WebClient

    CONNECTION:
    Provider......................................... ORAOLEDB. ORACLE
    Database server...
    Name of the database... FDMDEV
    Trust connect... Fake
    Connect status... Open connection

    GLOBALS:
    Location......................................... EBSINTEGRATION
    Location ID... 772
    Location Seg... 25
    Category......................................... EBS2
    ID of the category... 28
    Period... - June - 2011
    Period ID........................................ 30/06/2011
    POV Local........................................ Fake
    Language......................................... 1033
    User Level....................................... 1
    All Partitions... True
    Is Auditor....................................... Fake

    I really think that the problem is that I am not tell the script where to find the Oracle tables to. I left the code wherever we use the UDL to call for the opening of the Recordset, but since we do away with the Recordset how let FDM knows where to find the Oracle tables?

    Thanks in advance - I've been struggling with this for several days.

    Thank you,
    Sarah

    Did you build a database for the GL data link? These paintings GL.GL_BALANCES A, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D are not part of the FDM and I do not see how treat you your education cnSS.open strConn sSQL binder.

  • Problem with script of presence visible/hidden

    This is my first post on this forum. I tried to figure this out on my own, but no solution.

    I created a PDF with LiveCycle Designer ES 8.2 v. and trying to drop-down list and a list of drop-down list display state if U.S. is selected province if the Canada is selected using an 'if, ElseIf' statement.

    My screen opens with the two drop-down lists, hidden and I want to show a list of selection only if the United States or the Canada is chosen.

    Here is my script for when the country is selected in the drop-down list. Can someone understand what is happening?  Drop-down list field names:

    cboCo_Name_Country

    cboCo_Name_State

    cboCo_Name_ProvinceI

    PROBLEM: any country I choose, it always go to the final else statement, where the two are hidden. I know because in troubleshooting, I did initially visible drop-down and any country, I chose, both fields have become hidden.

     form1.sf_Page_1.sf_CompInfo.sf_CustAddress.cboCo_Name_Country::change - (JavaScript, client)
    // Change the presence attribute of the state and province fields. 
    if (this.rawValue == "United States") {                    // If country selected is US,  
        cboCo_Name_State.presence = "visible";          // show US States field,    
        cboCo_Name_Province.presence = "hidden";     // and hide Provinces field.  
        
    }
    else if (this.rawValue == "Canada") {                        // If country selected is Canada,
        cboCo_Name_Province.presence = "visible";        // show Provinces field,
        cboCo_Name_State.presence = "hidden";            // and hide US States field.
        
    }
    else {                                                                      // Otherwise, if any other country is selected   
        cboCo_Name_State.presence = "hidden";              // hide US States field,
        cboCo_Name_Province.presence = "hidden";          // and hide Provinces field.  
        
    }
    
    

    Any help is appreciated.

    I found the problem. The rawValues had to be USA and CA and not 'United States' and 'Canada '. I found it on the connection tab.

Maybe you are looking for