Error function defined as ownership of TestCase

I find this definition of a property test case as a data type of function causes problems.

Here, the test case.

package tests
{
Import flexunit.framework.Assert;

public class TestExample
{
public var exampleFn:Function;

[Test]
public function testExample (): void
{
Assert.Fail ("not yet implemented test method implementation');
}
}
}

Here is the error of the eclipse.

issue.jpg

It seems to stop working FlexUnit. Can add is no longer any other test cases.

I'm up against FB4 as a plugin Eclipse 3.5.2 OS X 10.6.3

Thanks for the information. I could you post this bug in Adobe Jira:

https://bugs.Adobe.com/Flex/

People who write the Flash Builder plugin don't look at these forums, only those of us now frame the FlexUnit and I want to assure you that this bug is attracting attention. If you provide me the bug number, I can follow on it as well.

Mike

Tags: Adobe Open Source

Similar Questions

  • Error "function «...»» ""... unknown "appears when it is used in: calculate event

    Hi guys,.

    I have a function defined by the user to FormCalc which is propagated to all the fields of the form.

    To do this, the calculation of the value of some price-field in my form, quite a simple task / code.

    As soon as this function is called, for example, an 'enter', 'exit' event 'change' of oder,

    works as expected.

    However, when I try to use the function in an event of 'calculate', it says ' function 'blabla' in '.

    row x column z is unknown. (Ignore the error in the English version. The

    Message has been translated from German).

    Someone at - it an idea about this problem?

    Best regards

    Daniel

    Thanks, it helped!

    Surprisingly, the function defined in other fields, subforms multiplication etc. using ref = "$form" = "refAndDescendents" look is not useful when necessary in a calculate event (as well as in some other deal with events, I guess).

    but instead...

    Simply set the function in the event calculate (see below) makes it accessible to all other fields:

    radzmar wrote:

    Ok

    Put this FormCalc script directly in calculate it: field 'papierkosten' event and delete the other script of the event: enter 'Page '.

    Func UpdatePaperPrice (sourceField)

    var result = 0

    If (sourceField.parent.paperRollWidth > 0 and sourceField.parent.paperRollLength > 0 and sourceField.parent.paperRollPrice > 0) then

    var squareMeters = sourceField.parent.paperRollWidth * sourceField.parent.paperRollLength

    result = sourceField.parent.paperRollPrice / squareMeters

    endif

    result

    ENDFUNC

    UpdatePaperPrice ($)

  • Error: Application-defined or object-defined error

    Hello

    My Finance users are trying to export to Excel, all of the entries in a period and a category for a location, but whenever they do it, they get this error:

    Error: Application-defined or object-defined error

    The process works for quiet some time, but she always ends up with this error. That's what I see on the newspaper:

    In addition, we use FDM 9.3.1

    * Start the journal entry for the Runtime Error FDM [2014-03-21-16: 05:56] *.
    -------------------------------------------------------------
    ERROR:
    Code......................................... 1004
    Description... Application-defined or object-defined error
    Process... clsUtility.mRecordsetToExcel
    The component... upsWDataWindowDM
    Version...................................... 931
    Thread....................................... 5892

    IDENTIFICATION:
    User......................................... ggreen
    Name of the computer... USNII1W3APPS29
    App Name..................................... NIIFDMAPP
    Client App................................... WebClient

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

    GLOBALS:
    Location..................................... MEXICO_GL
    Location ID... 37
    Location Seg... 24
    Category..................................... REAL
    ID of the category... 4
    Period....................................... Jan - 2014
    Period ID.................................... 31/01/2014
    POV Local.................................... True
    Language..................................... 1033
    User Level................................... 19
    All Partitions... Fake
    Is Auditor................................... Fake

    Hello

    This could be the problem such as Excel on the server is used to export the file.

    Can you try to install 2007?

    is the error generated when exporting 'imported data' or ' periods/categories?

    You said 73200... so I guess that data. You can try to import less than 65000 rows and try again. Then you can confirm the root cause.

    Concerning

  • function defined in compositionReady

    Hi all

    From AS3, there is clear evidence that I do not understand the scopes in Javascript.

    I wanted to factor out the code in a function defined in document.compositionReady :

    function labelSections (eMOver)

    {

    var elem = evt eMOver ? eMOver : event;

    If (evt.srcElement) elem = evt.srcElement;

    ElseIf (evt.target) elem = evt.target;

    return elem.getAttribute("ID").substr (18.4); / / full ID: Stage_sections__ 8_contact

    };

    The function is called in different mouseover of the event handlers attached to the elements inside the symbol sections. For example _8_contact.mouseover :

    Update the symbol sections

    SYM. Stop (labelSections (e));

    update of the scene

    sym.getParentSymbol () .stop ("contact");

    How to make accessible function inside the symbol? Thank you.

    Gil

    Hi, Gil.

    If you take a look at the complete code mode in the code pane, you can see what is happening.  The scene is a symbol in itself, meaning that it is parallel to the other symbols. The symbol definitions are not required within the scene.  There are a few things you can do:

    • Define the function as part of scene and then access it this way: sym.getParentSymbol () .functionName ()... in this case, you will want to go sym as the object you are working on
    • The function definition outside of a symbol of step but inside the closure of composition of edge.
    • Define the function in the stage frame and attach it to a variable at the scene, then you can just get the variable and have access to the service.

    We hope that helps to clarify things a little.

    -Elaine

  • Error "function not allowed for the license.

    Hi all

    I get error "Function not allowed for license" when I'm collecting details of a custom user interface card.
    The user interface card called a Business Service that calls a service program.
    I wrote a page for the service program service.
    This error indicates which license?

    I use the BCC 2.3.1 and Eclipse SDK 2.2.0.5.

    Check the Admin Menu-> Installation Options framework-> Modules available to see if any module is disabled.

    Then go to the Menu Admin-> Configuration-> Feature Type = Module of Configuration feature and delete an entry of a module where the power is off.

    Try again the user interface card

  • function defined by the user in the package

    Hi all

    is it possible to return a value greater than 1 when you use the function defined by the user in the package?

    You must declare variables US1 and US2 as well. I also modified your code a little more assing numbers directly rather than using select.

    First of all,

    Your package body and specifications should have the same input parameter names. Your spec is seen cid and your body with ccid. Has changed.

    CREATE OR REPLACE PACKAGE creator.marco_function_clienttype
      IS
    
      -- 0 - not found
      -- 1 - small business
      -- 2 - corporate
      -- 3 - individual
    
       FUNCTION f_clienttype
         (ccid number
         )
         RETURN NUMBER;
    END;
    / 
    
    CREATE OR REPLACE PACKAGE BODY creator.marco_function_clienttype
    IS
    
    FUNCTION f_clienttype (ccid NUMBER)
       RETURN NUMBER
    IS
       us    NUMBER;
       us1   NUMBER;
       us2   NUMBER;
    BEGIN
       --officialtype = 2 - corporate, officialtype = 3 - individual
       SELECT ct.officialtype
         INTO us1
         FROM contragenttype ct, contragent d
        WHERE d.ID = ccid
          AND ct.cid = d.contragenttypeid;
    
       ---
       IF us1 = 3
       THEN
          us    := 3;
       ELSE
          --ENTERPRISETYPE.id = 910 - small business
          SELECT dd.enterprisetypeid
            INTO us2
            FROM contragent dd
           WHERE dd.ID = ccid;
    
          IF us2 = 910
          THEN
             us    := 1;
          ELSE
             us    := 2;
          END IF;
       END IF;
    
       RETURN NVL (us, 0);
    END;
    END;
    / 
    

    G.

  • XQuery question fn:error function

    People,

    I want to use the integrated XQuery my custom XQuery function error function & propagate them to the OSB failure mechanism and was trying to do: -.

    MyCustomXQuery.xq


    declare function local: doesntContainDefaultValue ($siebelMessage1 as element(ns4:SiebelMessage), $processLineItem1 as element (ns1:processLineItem)) as XS: Boolean))
    {
    for $cmplxPrdtStructure in $siebelMessage1/ns4:ListOfVfProductOptions/ns4:InternalProduct/ns4:ListOfComplexProductStructureBuscomp/ns4:ComplexProductStructureBuscomp/ns4:ListOfComplexProductXaAttributeValueBuscomp/ns4:ComplexProductXaAttributeValueBuscomp
    for $pdtLineItem in $processLineItem1 / ns1:LineItem / ns1:Product
    where $cmplxPrdtStructure / ns4 = $pdtLineItem/ns1:lineItem/ns1:product/@ID:SAMProductId/text()
    and $pdtLineItem /:lineItem/ns1:product/ns1:attribute/ns1:name/text() = $cmplxPrdtStructure ns1 / ns4:DisplayName/text()
    and exists($pdtLineItem/ns1:lineItem/ns1:product/ns1:attribute/ns1:name)
    and empty($cmplxPrdtStructure/ns4:DefaultValue)
    and $cmplxPrdtStructure / ns4:Required/text() = 'Y '.
    return
    error ("'genericBusinessFault', ' consumer passed incomplete details to process the product")

    };

    Gives me a compilation error-

    Line 76, column 13: {err} XP0004, invalid static type: string {http://www.w3.org/XMLSchema}

    Any ideas what's not here? I use function error correctly?

    Thank you
    Buxant

    See w3c doc: http://www.w3.org/TR/xpath-functions/#func-error on a valid signature for error().

    The first argument must be a QName.

    FN:Error() because none
    FN: Error($Error As XS:QName) as none
    FN: Error($Error As XS:QName?, $description As XS:String) as none
    FN: Error ($error as XS: QName?,)
    $description as XS: String.
    ($error - object as item() *) as none

    Examples
    1 fn:error() returns http://www.w3.org/2005/xqt-errors#FOER0000 (or the corresponding XS: QName) to the external processing environment.

    2 fn:error (fn:QName('http://www.example.com/HR',_'myerr:toohighsal'), "Does not apply because salary is too high") returns http://www.example.com/HR#toohighsal and the XS: String "does not apply because salary is too high" (or the corresponding XS: QName) to the external processing environment.

    Concerning
    Carina

  • Define the ownership structure of the company

    Hello

    How to define the ownership structure of the company in HFM?
    Example:
    At owns 40% of B
    B holds 50% of A

    Thank you to

    Hello

    Property of the company is defined in HFM between an A parent and his child B using the account system [POWN].

    A data file will look like this:
    Scenario; Year; Period; FOR A YEAR; Entity A; [None]; [POWN]; Entity B; [None]; [None]; [None]; [None]; 40

    But, up to version 9.3 it don't think it is possible to declare cross-ownership structures. I think it's one of the improvements of version 11 of HFM, you should look at the documentation.

    Kind regards

    Lionel.

  • You can use functions defined by the user in orardf: statement?

    Hello, reading Chapter 5: refined for RDF data access control
    I found this example:

    OPTIONAL
    {
    ? control pred: hasContractValue? Val.
    ? control pred: hasManager * ' sys_context ("his $ appctx ', 'app_user_uri') ' ^^ orardf: instruction *.
    }

    See the orardf type: statement, I got the question if you can use functions defined by the user in the place where he has used the sys_context?

    Thank you.

    PD: The translation was made from Spanish to English by using Google Translator

    Hello Alberto,.

    Only the sys_context function is supported. The user-defined functions are not supported.

    Thank you
    Matt

  • I don't know why I get the error "function object is not defined" with this script.

    Hello

    I have a script which adds a unique model in the render queue and applying a Render parameter model and model output for adding module make element of queue.  For some reason, I am getting an error on the first line which reads:

    app.project.renderQueue.items (1), .applyTemplate ('MY SETTINGS');

    I have attached the image of here error dialog:

    Screen shot 2011-07-28 at 12.28.32 PM.png

    Here is a part of the script.

            var currentProjectItem;
            var globalCompItemID;
            var renderCompItemID;
    
            for (var i=1;  i <= app.project.numItems; i++)
            {
                currentProjectItem = app.project.item(i);
                if (currentProjectItem.name == "globals")
                {
                    globalCompItemID = i;
                } else if (currentProjectItem.name == "!_FINAL RENDER") {
                    renderCompItemID = i;
                }
            }
    
            //add the necessary preview render jobs
            app.project.renderQueue.items.add(app.project.item(renderCompItemID));
            app.project.renderQueue.items(1).applyTemplate("MY SETTINGS");               <---THIS IS WHERE AE ERRORS
            app.project.renderQueue.items(1).outputModules[1].applyTemplate("MY SETTINGS");
            app.project.renderQueue.items.add(app.project.item(renderCompItemID));
            app.project.renderQueue.items(2).applyTemplate("MY SETTINGS");
            app.project.renderQueue.items(2).outputModules[1].applyTemplate("MY SETTINGS");
            app.project.renderQueue.items.add(app.project.item(renderCompItemID));
            app.project.renderQueue.items(3).applyTemplate("MY SETTINGS");
            app.project.renderQueue.items(3).outputModules[1].applyTemplate("MY SETTINGS");
    
     
    

    The model I want to add is added to the render queue, it simply refuses to invoke the method applyTemplate() on the most recently added make queue item.

    Any ideas why I get this error?

    Thank you!

    I think that from the line where the error occurred, you must use renderQueue.item () instead of renderQueue.items () (except when you add something to the rendering queue).

    Dan

  • Can curve hold functions defined Isoquant handful of VI?

    I'm trying the curve Fit VI non linear (Constrained) to analyze a step response.  Is it possible to define a parameter to adapt to a change in the weather?  In this way, I won't so ensure to get the precise start of the analysis window.  For example y = f (x (t - t0), a = [a0, at1]) or y = f (x (t), a = [a0, a1, t0])?  It requires an IF (case report) inside the function.  You can do this in Excel, so I thought that LabVIEW could do it too.  See attached simplified example of a linear adjustment deferred in time.  It gives the error-20041 occurred at NI_Gmath.lvlib:Nonlinear Curve Fit LM.vi:1. Possible reasons: analysis: the system of equations can be solved because the input matrix is singular.

    Kind regards

    Try this instead. Seems to work very well.

  • -Error function of incompatible data types

    Hi all

    I created a function that will take 3 IN parameters and return the result in type. Here's the code.

    Created a table type:

    {code}

    CREATE OR REPLACE TYPE FEATURES_ROW_TYPE

    AS AN OBJECT

    (VARCHAR2 (100) OF THE ENVIRONMENT)

    MNR VARCHAR2 (100),

    GUID VARCHAR2 (100),

    USER_ID VARCHAR2 (1000).

    RGN VARCHAR2 (100),

    RGN_NM VARCHAR2 (5000).

    FEATURE_NAME VARCHAR2 (5000).

    DATE OF LAST_SIGON_DATE

    );

    CREATE OR REPLACE TYPE FEATURES_TABLE_TYPE

    AS THE FEATURES_ROW_TYPE TABLE;

    {code}

    Here's the function:

    {code}

    CREATE OR REPLACE FUNCTION FETCH_FEATURES_FN (P_ENVIRONMENT IN VARCHAR2,

    P_FEATURE_ID NUMBER,

    P_RGN IN VARCHAR2

    )

    RETURN FEATURES_TABLE_TYPE

    IS

    V_ROWS FEATURES_TABLE_TYPE: = FEATURES_TABLE_TYPE ();

    V_CUR_ENV VARCHAR2 (100);

    V_ENV VARCHAR2 (50);

    V_WHERE VARCHAR2 (1000);

    V_SQL VARCHAR2 (10000);

    BEGIN

    V_ENV: = '@DBL_ ' | P_ENVIRONMENT;

    V_CUR_ENV: = P_ENVIRONMENT;

    IF P_RGN = "ALL" THEN

    V_WHERE: = ' WHERE FD. WPP_FTR_IK = ' | P_FEATURE_ID;

    ON THE OTHER

    V_WHERE: = ' WHERE FD. WPP_FTR_IK = ' | P_FEATURE_ID | "AND FD. RGN = ' | '''' || P_RGN | '''';

    END IF;

    V_SQL: =.

    "WITH USER_DATA ' | ' ' ||

    "ACE" | ' ' ||

    ' (SELECT DISTINCT EB. GUID, AD. USER_ID_ACCT_AFFECTED AS USER_ID, MAX (TRANSACTION_TS) AS LAST_SIGNON_DATE ' | ' ' ||

    "TO WPP_EBIZ_ACCT" | V_ENV | '  EB'                                                                || ' ' ||

    "INNER JOIN WPP_SECURITY_AUDIT_LOG | V_ENV | ' AD'                                                   || ' ' ||

    ' ON EB. GUID = AD. USER_UNIQUE_ID_ACCT_AFFECTED ' | ' ' ||

    ' WHERE AD. APP_NAME = "consumer" AND AD. TRANSACTION_TYPE_CD = "SIGN_ON" AND AD. FEATURE_NAME = "sign" AND AD. TRANSACTION_RESULT_CD = "S" ' | ' ' ||

    ' GROUP BY EB. GUID, AD. USER_ID_ACCT_AFFECTED ' | ' ' ||

    '), ' || ' ' ||

    "FEATURE_DATA" | ' ' ||

    'AS '           || ' ' ||

    "(MY SEPARATE SELECT." MNR, EB. GUID, MY. RGN, RGN. RGN_NM, FTR. WPP_FTR_IK, FTR. NM AS FEATURES_SUPPORTED ' | ' ' ||

    "TO WPP_MBRSHP_ACCT" | V_ENV | "MY" | ' ' ||

    "INNER JOIN WPP_EBIZ_ACCT | V_ENV | ' EB WE MY. WPP_EBIZ_ACCT_IK = EB. WPP_EBIZ_ACCT_IK' | ' ' ||

    "INNER JOIN WPP_RGN | V_ENV | «RGN WE MY.» RGN = RGN. RGN_ID ' | ' ' ||

    "INNER JOIN WPP_RGN_APLCTN_STS | V_ENV | ' RGN_ST ON RGN_ST. RGN_ID = RGN. RGN_ID ' | ' ' ||

    "INNER JOIN WPP_FTR_APLCTN | V_ENV | ' FTR_APP ON FTR_APP. WPP_FTR_APLCTN_IK = FTR_APP. WPP_FTR_APLCTN_IK ' | ' '||

    "INNER JOIN WPP_FTR | V_ENV | "FTR ON FTR. WPP_FTR_IK = RDFS. WPP_FTR_IK' | ' ' ||

    ') ' || ' ' ||

    "SELECT DISTINCT"HINT1"LIKE ENVIRONMENT, | ' ' ||

    "FD. MNR, FD. GUID, UD. USER_ID, FD. RGN, FD. RGN_NM, FD. FEATURES_SUPPORTED ACE FEATURE_NAME, TO_DATE (TRUNC (UD. LAST_SIGNON_DATE)) AS LAST_SIGNON_DATE' | ' ' ||

    "FROM FEATURE_DATA INNER JOIN USER_DATA UD ON FD FD. GUID = UD. GUID ' | ' ' || V_WHERE;

    -DBMS_OUTPUT. PUT_LINE (V_SQL);

    RUN IMMEDIATELY V_SQL

    BULK COLLECT INTO V_ROWS;

    RETURN V_ROWS;

    END FETCH_FEATURES_FN;

    {code}

    When I tried to run as below.

    SELECT * FROM TABLE (FETCH_FEATURES_FN ('HINT1', 2, 'ALL'));

    but I get the error message

    ORA-00932: inconsistent data types: expected - was -.

    ORA-06512: at "KPGCPY. FETCH_FEATURES_FN', line 57

    00932 00000 - ' incompatible data types: wait %s %s got. "

    * Cause:

    * Action:

    Please guide to solve this problem.

    Thank you

    So after running actual query:

    -DBMS_OUTPUT. PUT_LINE (V_SQL);

    You said the line that will do.

    Firstly - I suggest replace this long, complex query with a VERY SIMPLE one until your code actually works.

    When you do this, you will see that the TYPE that you defined (FEATURES_ROW_TYPE) is NOT mentioned anywhere in your code.

    You need create instances of this TYPE, then a collection of these instances.

    Some EXAMPLES of code that shows what I mean by VERY SIMPLE and shows how interrogate instances of a TYPE in a collection

    -type to match record emp

    create or replace type emp_scalar_type as an object

    (EMPNO NUMBER 4,

    ENAME VARCHAR2 (10),

    USE VARCHAR2 (9).

    MGR NUMBER 4,

    HIREDATE DATE,

    NUMBER OF SAL (7, 2)

    NUMBER OF COMM (7, 2)

    DEPTNO NUMBER (2)

    )

    /

    -records of the emp table

    create or replace type emp_table_type to table of emp_scalar_type

    /

    declare

    TB emp_table_type;

    sys deptnoList. OdciNumberList;

    BEGIN

    Select emp_scalar_type (empno, ename, job, mgr, hiredate, sal, comm, deptno)

    bulk collect into tb emp;

    Collect SELECT deptno in bulk

    IN deptnoList

    DEPARTMENT where deptno not in (select deptno table (tb));

    I'm looping 1.deptnoList.count

    dbms_output.put_Line (deptnoList (i));

    end loop;

    END;

    40

    Try this code and work with it until you understand what makes each piece.

    Select emp_scalar_type (empno, ename, job, mgr, hiredate, sal, comm, deptno)

    bulk collect into tb emp;

    See how this SIMPLE query creates instances of the EMP_SCALAR_TYPE and then use COLLECT in BULK to put them in the collection?

    Modify your code to use a SIMPLE QUERY like in my example, until you get the code to work.

  • Get the error not defined for the current document in the script

    I get a "error number: 2" "error string: myDoc is not defined" in my script.

    I modified a few scripts so that they cross my entire book and open each section (document) in my book, and run the code for each section.ext

    The code runs great and opens and closes the sections where it does not add links to text, but once, it opens a document and view text that you CAN add links, it generates this error.  Here is my code:

    main();
    exit();
    
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle,
                myCount = 0;
    
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
    
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            }
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list"); 
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
    
                    //The first field in the line is the value to find 
                    myFindVal = myFindChangeArray[0];
    
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
    
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument);
    
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            }
            alert("Done! " + myCount + " hyperlinks have been added.");
    
            myDoc.close();
        }
    }
    
    function doSearchAndReplace(stringfind, urlstring, searchin) {
        app.findTextPreferences.findWhat = stringfind;
    
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
    
        var myFoundItems = searchin.findText();
    
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
            myCount++
        }
    }
    
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        }
        catch(myError){
        }
    }
    
    function myMakeURLHyperlinkDestination(myURL){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        }
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        }
        myHyperlinkDestination.name = myURL;
    
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    }
    

    Any help is greatly appreciated!

    That ends up being my fixed/final code:

    main();
    exit();
    
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle;
    
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
    
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            }
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list");
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
    
                    //The first field in the line is the value to find
                    myFindVal = myFindChangeArray[0];
    
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
    
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument, myDoc, myHyperlinkStyle);
    
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            }
            alert("Done! Hyperlinks have been added.");
    
            myDoc.close();
        }
    }
    
    function doSearchAndReplace(stringfind, urlstring, searchin, myDoc, myHyperlinkStyle) {
        app.findTextPreferences.findWhat = stringfind;
    
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
    
        var myFoundItems = searchin.findText();
    
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring, myDoc);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination, myDoc);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
        }
    }
    
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination, myDoc){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        }
        catch(myError){
        }
    }
    
    function myMakeURLHyperlinkDestination(myURL, myDoc){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        }
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        }
        myHyperlinkDestination.name = myURL;
    
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    }
    
  • Error function ValueList after migrating CF8 to CF10

    Hi all

    We are migrating our reports of CF8 to CF10. (uninstalled existing CF8 and installed CF10) in 32 bit OS.

    After upgradation of CF10, tried to open our report, we got the below error.

    ----------------------error --------------------------

    ValueList() function has a parameter that is not valid: 1 DS_ODBC_LIST.entry.Parameter of function ValueList which is now DS_ODBC_LIST.entry must point to a valid query name.

    ------------------error-----------------------

    -------------original code -----------------------------------

    < CFREGISTRY

    ACTION = COUNT WITH ALL

    NAME = "DS_ODBC_List".

    TYPE = "ANY"

    DIRECTION = "HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC. INI">

    < cfset DSNnames = valueList (DS_ODBC_LIST. Entrance) >

    -----------------------------original code--------------------------

    Then tried to dump / print DS_ODBC_List using CFoutput/cfdump, then we got error like:

    Variable DS_ODBC_LIST is not defined

    in CF administrator the CFREGISTRY tag is in the list of active tags.

    can anyone suggest me what the replacement tag / a patch, I can use to solve the problem?

    Thanks in advance!

    installilng mandate patch and fix-7 sold the question, thank you all

  • function defined by the user in where clause

    Hello

    Please let me know how to use user-defined in the where clause. I need to use the function that returns the date for dateid.
    It generates the error...
    SELECT To_char(fnc_get_date_for_dateid(a.postdateid),'DD-MON-YYYY') transaction_date,
           SUM(A.points) POINTS_OR_MILES_CREDITED,
           SUM(CASE WHEN a.points is null THEN a.transactionamount ELSE a.points END),              
    FROM   accrual a
    JOIN   datecal dc ON dc.dateid = a.postdateid  
    join   MemberALL m on m.memberid = a.memberid
    WHERE a.awardnumber IS NULL
      AND a.accrualtype = 'B'
    GROUP BY To_char(fnc_get_date_for_dateid(a.postdateid),'DD-MON-YYYY')
    ORDER BY a.postdateid;
    Error
    ORA-00979: not a GROUP BY expression
    00979. 00000 -  "not a GROUP BY expression"
    Thank you
    Sandy

    Hi Sandy,

    Have you tried like
    ===========================

    SELECT To_char (fnc_get_date_for_dateid (a.postdateid), 'DD-MON-YYYY') transaction_date,.
    Sum (A.points) POINTS_OR_MILES_CREDITED,
    SUM (CASE WHERE the a.points is null THEN a.transactionamount ELSE a.points END),
    The ACCRUAL one
    JOIN dc datecal ON dc.dateid = a.postdateid
    Join MemberALL m on m.memberid = a.memberid
    WHERE a.awardnumber IS NULL
    AND a.accrualtype = 'B '.
    GROUP BY a.postdateid - To_char (fnc_get_date_for_dateid (a.postdateid), 'DD-MON-YYYY')
    ORDER BY a.postdateid;
    ==========================

    Thank you
    Slokam

Maybe you are looking for

  • HP Elite x 2 1011 G1 L5G47EA: HP Elite x 2 1011 G1 UEFI and virtualization

    Hi *. I have situation as follows. More then a week ago I had my HP Elite x 2 1011 G1 tablet with a keyboard of HP and Windows Pro 8.1 power on board.  I like more a Windows 10 Pro so I purchased a single license and installed. Looks like I had to fa

  • Deformation of voice

    When I call people through Skype to a telephione, I look like a Darlek (robot and cracked), but when I make Skype to Skype I look quite normal. Why is this?

  • HP 15z-af100: upgrading RAM for HP15z-af100

    When I bought the laptop he had options for upgrading the ram at 6 or 8 GB, but I thought that I have he would treat myself. The laptop in question is the: model # HP 15z-af100 , product #L9Q95AV    I found a few Web kingstons site but thought I woul

  • have tried to install sp 3 three times computer does not restart after installing heeeelp

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: problems with Windows xp You have problems with programs Error messages Recent changes to your computer What you have already tried to so

  • How can I upgrade the bios m5-581tg to 2.11?

    I would spend my M5 BIOS - 581TG Aspire to 1.12 to 2.11, so I can have UEFI full support of windows 10. Right now, I can't start in installing 10 default directly woindows UEFI. the only way to do is to activate the f12 boot menu and select the "unkn