Problem with the variable moveIntoFolder_Task

Hello

I spend a lot of time already trying to find how I can put VM I found in moveIntoFolder_Task.

What I'm doing:

1 create a folder

2. find a virtual machine provided in the text field

3. move this virtual machine in the target folder.

try {newFolder = parentFolder.createFolder ("test1") ;}

{catch (Err)}

findVM (vmname);

function findVM (vmname) {}

allVms = System.getModule("com.vmware.library.vc.folder").getAllVirtualMachinesByFolder (parentFolder);

RET = null;  for (var i in allVms) {}

If (allVms [i] .name == vmname) {ret = allVms [i];  break;  }} return ret;

}



var vms1 = new Array();

vms1 = [];

vms1 = vms1.push (ret);

task = newFolder.moveIntoFolder_Task (vms1);

var actionResult is System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd (task, progress, pollRate);.


vms1 is VC:VirtualMachine type - but when I select this variable manually as an attribute - it works fine, I can't cmove VM in the target folder.

When I find this virtual machine by using the function {} findVM I get following error:

State: 'impossible', State of the business: "null" exception: ' cannot convert 1.0 [com.vmware.vmo.plugin.vi4.model.VimManagedEntity]


Do you know how I can convert VM to data type VimManagedEntity?

Hello

You have no need to convert the VM VimManagedEntity.

The problem is the next part of your code:

vms1 = vms1.push(ret);
task = newFolder.moveIntoFolder_Task(vms1);

It seems that you expect the first line to push the object ret at vms1 table and return the array object, which then you pass as an argument to the method moveIntoFolder_Task().

The problem is that the push() method will not return the table object, but the length of the array. So in fact you call moveIntoFolder_Task() method with the type argument number instead of argument array of virtual machines, and that's why you get this exception "cannot convert...". »

So the solution is to replace:

vms1 = vms1.push(ret);

with a little (no assignment)

vms1.push(ret);

Tags: VMware

Similar Questions

  • Big problem with the variable PATH approx. need help!

    Hello
    I had a problem with the PATH environment variable. Instead of updating client Informatica & server paths PATH env variable, I created new PATH env variable and to establish client & server paths and saved. When I revisited this PATH Env variable, I was shocked to see the content of the PATH variable. I have to set back the old values like windows OS, DB etc paths paths. Could someone tell me how to make or do I have to reinstall the OS, DB, etc. Am on WIndows server 2003.

    I saved my PATH before configuring Informatica. Here's what I had:

    Path = C:\oracle\10gclient\bin; C:\OracleBI\server\Bin; C:\OracleBI\web\bin; C:\OracleBI\web\catalogmanager; C:\OracleBI\SQLAnywhere; C:\OracleBAM\ClientForBAM\bin;%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\OracleBAM\BAM; C:\Informatica\PowerCenter8.1.1\client\bin

    The critical components of the OS dependent PATH is % SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem.

  • Spacing problems with the variable in the text captions and smartshapes

    Hello

    I am using Captivate 7.0.1.237 on Windows 7.

    I created a questionnaire that is customized with the last screen showing a message of congratulations and the total score. The total score is variable. The legend appears on the "Edit" mode. But when I publish it as a SWF, spacing stops to the variable.

    Here's what it looks like in edit mode:

    VariableIssue.jpg

    Here's how it looks in the browser (F12 and published modes):

    VariableIssue_Browser.jpg

    I inserted the variable using the accordion Format. What I tried:

    • The simultaneous use of smartshapes and text captions
    • Different browsers (FireFox 24, IE 11, Google Chrome 32)
    • Typed content in Notepad and copy it to the legend smartshape and text.
    • Typed content directly in the legend smartshape and text.

    I get the same result in each scenario.

    Please notify.

    Anthony

    Try to remove the Red extra formatting.

  • Graphic problem with the variable

    I have an icon of screen with a graphic that is bound to an expression, specifically = imagefilepath.

    Imagefilepath variable is generated by the code attached with a few other variables that already exist in the Authorware piece. I also have a test screen that shows what the imagefilepath value is at the moment.

    Note that fileQuiz is the name of the file individual quizzes based on XML that is used (for example, quiz.xml) and all the image files are stored in a subfolder named after it more than image files (for example, quizImageFiles).

    When I test locally or run this with access to the files, it works fine. It test it via web access, the imagefilepath points to the correct URL, the graphic is at this URL, but no image to appear.

    Any ideas as to what I do wrong or how fix?

    "JPKinstle" wrote in message
    News:eio1u9$q6t$1@forums. Macromedia.com...
    > I appreciate your help, Amy, and I'm sorry that I disappeared on you. I had a few
    > allergy tests spoil... wasn't pretty.
    >
    > In any case, I could probably use NetDownload if I would always run forward.
    > Authorware still has a lot of things that I've never touched.
    >
    > Let me see if I have notions of right, here.
    >
    >

    1. In computing, I currently have, I could use the location
      > generator I have now to specify the netlocation of my chart.
      >
    2. Then, I use NetDownload with this site generated to stuff the file
      > on the local disk of the user.
      >
    3. Then I could use the string: = NetDownload ("URL") to get the new local
      > location of the chart.

      The above two steps would be combined in a single step.

      >

    4. Can I use the new channel for the local graphic location to update the
      > image.

    You might actually which combine with the above two steps as well.

    > I basically have that, or have I missed something?

    You can also watch the NetDownloadBackGround, because it does not stop
    all for download. You can also consider renaming the
    downloaded the files to prevent them from being deleted when your piece of AW
    farm.

    HTH;

    Amy

  • problem with bind variables in the SQL query view object

    Hi all

    I use JDev 11.1.2.4.0.

    I have a problem with bind variables in the SQL query view object.

    This is my original SQL

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE t.nctuser_id = '20022' 
          AND to_char(t.insertdate,'YYYYMMDD') in ('20130930','20130929')
    group by t.legertype_id
    

    In my view .xml object query tab, I am writing this

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE   t.nctuser_id = '20022'
        AND to_char(t.insertdate,'YYYYMMDD') in :dddd
    group by t.legertype_id
    

    Davis here is a variable of Type liaison: String, updatable and necessary.

    I try to deal with Davis as ('20130930 ', ' 20130929') hoping the view object, run as my original SQL.

    But failed. The view object retrieves 0 line after that I run.

    Why?

    Thank you! ('2original SQL0130930', '20130929') ('20130930 ', ' 20130929')

    A variable binding cannot be used as this is why you must use years table. Check decompilation binary ADF: using oracle.jbo.domain.Array with ViewCriteria to see a solution.

    Timo

  • Problems with led variable removed from the database

    Hello

    I have problems with the following code, it draws on a database to add to a list later, player names, however outside of the statement where the name of the player are assigned they are not recognized i.e. the bits where I wrote [CODE] trace ("1these is the name of the player 1 is + player1Name"); [/ Code] etc. There are also 4 variables to do with a number of keys and as far as I can see that I am dealing with the same, declaring them upstairs, assigning them values and when I print them out later that they are beautiful, the only difference I see is the type of variable are about these things.

    I initialized the variables at the top, I tried to make it global, making [CODE] var player1Name: String; [/ Code], it seems a simple problem, but I can't understand it...

    Here's the relevant part of the code:

    [CODE]
    var stage3player1keyCount = 0;
    var stage3player2keyCount = 0;
    var stage3player3keyCount = 0;
    var stage3player4keyCount = 0;

    var player1Name ="";
    var player2Name ="";
    var player3Name ="";
    var player4Name ="";

    It reads in the current state keys players
    myDataP = new LoadVars();
    myDataP.load (" http://www.elementalive.net/keyDown.php");
    myDataP.onLoad = function() {}
    stage3player1keyCount = myDataP.info;
    trace (stage3player1keyCount + "is the number of player one keys");
    }

    myDataQ = new LoadVars();
    myDataQ.load (" http://www.elementalive.net/keyDown1.php");
    myDataQ.onLoad = function() {}
    stage3player2keyCount = myDataQ.info;

    trace (stage3player2keyCount + 'is the number of keys of Player 2');
    }
    myDataR = new LoadVars();
    myDataR.load (" http://www.elementalive.net/keyDown2.php");
    myDataR.onLoad = function() {}
    stage3player3keyCount = myDataR.info;
    trace (stage3player3keyCount + 'is the number of keys of player 3');
    }
    myDataS = new LoadVars();
    myDataS.load (" http://www.elementalive.net/keyDown3.php");
    myDataS.onLoad = function() {}
    stage3player4keyCount = myDataS.info;
    trace (stage3player4keyCount + 'is the number of keys of player 4');
    }
    This.stage3transferKeyList.SetStyle ("fontSize", "20");

    myDataT = new LoadVars();
    myDataT.load (" http://www.elementalive.net/wait1a.php");
    myDataT.onLoad = function() {}
    player1Name = myDataT.info;
    trace ("is the name of the player 1 s" + player1Name);
    printName (player1Name1, 1);
    }
    myDataU = new LoadVars();
    myDataU.load (" http://www.elementalive.net/wait1b.php");
    myDataU.onLoad = function() {}
    player2Name = myDataU.info;
    trace ("is the name of the Player 2 s" + player2Name);
    printName (player2Name, 2);
    }
    myDataV = new LoadVars();
    myDataV.load (" http://www.elementalive.net/wait1c.php");
    myDataV.onLoad = function() {}
    player3Name = myDataV.info;
    trace ("this is the name of the player 3 s" + player3Name);
    printName (player3Name, 3);
    }
    myDataW = new LoadVars();
    myDataW.load (" http://www.elementalive.net/wait1d.php");
    myDataW.onLoad = function() {}
    player4Name = myDataW.info;
    printName (player4Name, 4);
    trace ("is the name of the player 4 s" + player4Name);
    }

    trace ("1these is the name of the player 1 is + player1Name");
    trace ("1these is the name of Player 2's + player2Name");
    trace ("1these is the name of the player 3 is + player3Name");
    trace ("1these is the name of the player 4 is + player4Name");
    [/ CODE]

    Thanks for any help in advance, it is much needed and appreciated.

    Louise.

    I got it working! Thank you very much! You saved his life. It will take that I remember this problem... because I think he could source a few other hiccups throughout our game. You made my day!

    Thank you
    Louise

  • Problem with the creation of variable names

    Hi, I have a problem with the following function:

    private function whichLevelToLoad (): void {}

    If (levelToLoad == "no") {}

    currentLevel = null;

    }

    var thisObj:Object = new Object();

    {if(levelBtnArray!=null)}

    for (var j: int = levelBtnArray.length - 1; j > = 0; j-) {}

    If (levelToLoad == String ("level" + (j + 1))) {}

    thisObj ["level" +(j+1)] = new ["Level" +(j+1)] (); - > The Problem

    thisObj ['level' + (j + 1)] .x = 0;

    thisObj ['level' + (j + 1)] there = 0;

    addChildAt (thisObj ["level" + (j + 1)], 0);

    currentLevel = thisObj ['level' + (j + 1)];

    }

    }

    }

    }

    I am trying to instatiate 75 objects by using a loop. The line should look like this "thisObj.level1 = new Level1(); with the numbers from 1 to 75. Is this possible? How

    can I do it?

    Thank you...

    getDefinitionByName solves this problem.

    Example of

  • Problem with the report and the system of axis 2d

    Hi, I'm trying to write a script with tiara, who wrote a 2d axis system in the report but I'm having a lot of problems with it.

    What I'm trying to do, is make 3 or more system axis 2d in the report, each displaying a part of the data of 2 channels (x = ch0, ch1 = y).

    With only 1 graphic I get what I want, but when I try to add the 2nd or the 3rd, they show without my defined x-scale and with the offset x different from the first chart.

    I tried everything, but I could not remedy

    I added as attachments the .csv file that I use to ch0 and ch1 and 2 screen shoots "what I get" (about the problem with the script) and "what I hope to get" (done manually, is what I'm trying to get the report)

    Any help will be appreciated, thanks in advance

    Ierman

    I'll post my code here:

    Dim Xscale, Yscale
    XScale = Array (0,25,0,5,49)
    Yscale = Array(-0.2,0.2,-0.2,10,4)
     
    Call PicDelete()
    Call GraphObjNew ("2D-Axis", "2DAxis1")
    Call GRAPHObjOpen ("2DAxis1")
    D2AxisTop = 1

    D2AxisBottom = 70
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_1")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale (0)
    D2AXISYEND = Yscale (1)
    D2AXISYORIGIN = Yscale (2)
    D2AXISYTICK = Yscale (3)
    D2AXISYMINITICK = Yscale (4)
    Call GRAPHObjClose ("2DYAxis1_1")
    Call GRAPHObjOpen ("2DXAxis1_1")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale (0)
    D2AXISXEND = Xscale (1)
    D2AXISXORIGIN = Xscale (2)
    D2AXISXTICK = Xscale (3)
    D2AXISXMINITICK = Xscale (4)
    D2AxisXTxt = ""

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_1")
    Call GraphObjNew("2D-Curve","New_Curve")

    Call GraphObjOpen ("New_Curve")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve")
    Call GRAPHObjClose ("2DAxis1")

    Dim Xscale1, Yscale1
    Xscale1 = Array (25,50,0,5,49)
    Yscale1 = Array(-0.2,0.2,-0.2,10,4)
    Call GraphObjNew ("2D-Axis", "grafic")
    Call GRAPHObjOpen ("grafic")
    D2AxisTop = 40

    D2AxisBottom = 37
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_2")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale1 (0)
    D2AXISYEND = Yscale1 (1)
    D2AXISYORIGIN = Yscale1 (2)
    D2AXISYTICK = Yscale1 (3)
    D2AXISYMINITICK = Yscale1 (4)
    D2AxisYTxt = "" ' testo asse label y
    Call GRAPHObjClose ("2DYAxis1_2")
    Call GRAPHObjOpen ("2DXAxis1_2")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale1 (0)
    D2AXISXEND = Xscale1 (1)
    D2AXISXORIGIN = Xscale1 (2)
    D2AXISXTICK = Xscale1 (3)
    D2AXISXMINITICK = Xscale1 (4)
    D2AxisXTxt = «»

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_2")
    Call GraphObjNew("2D-Curve","New_Curve1")

    Call GraphObjOpen ("New_Curve1")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve1")
    Call GRAPHObjClose ("grafic")

    Hi lerman,.

    Here is an edited version of your code that works on my computer.  A problem that I know that I fixed it was that your presentation of the STATE was in the name-oriented mode but you use the variables based on the number to assign it X and Y channels.  The execution of these commands in a loop FOR makes it much easier to debug the code and to avoid any annoyance at first.

    Brad Turpin
    Tiara Product Support Engineer

    National Instruments

  • Hi, I have a problem with the import of the 4000 SJCAM MOV files. MOV files are in formats supported for Adobe Premiere elements 11. But if I am importing of MOV file, only audio part is imported, part video is not imported. How can I solve this problem?

    Hi, I have a problem with the import of the 4000 SJCAM MOV files. MOV files are in formats supported for Adobe Premiere elements 11. But if I am importing of MOV file, only audio part is imported, part video is not imported. How can I solve this problem?

    haben

    Looking at the specs of your camera (SJCam 4000), we already know what video compression your camera uses. It is H.264.

    A H.264.mov file should be accompanied by a first elements 11. On what computer operating system is your first items 11 running?

    You have the latest version of QuickTime installed on your computer? And, you use QuickTime and first of 11 elements of a

    Account user with administrative privileges? Please go to Premiere elements 11 publish + share/computer/QuickTime to confirm that you will find

    presets it to the choice of QuickTime, it.

    What are the properties of these files H.264.mov - is it 1080 p (1920 x 1080 p 30) 30 or something else? Do you know if this device is registering with a variable or

    a constant rate?

    Please check and review and then we'll decide what next.

    Thank you.

    RTA

  • java.sql.SQLException: problems with the native/lack of loading methods library

    Hi all

    Please let me know how to fix the exception "java.sql.SQLException: problems with the native/lack of loading methods library: no ttJdbc in java.library.path".

    Thank you
    Prabhu

    Published by: Nina Prabhu on November 20, 2012 02:12

    Hi Prabhu,

    Probably, you must specify the LD_LIBRARY_PATH variable. Like the following:

    export LD_LIBRARY_PATH=$TIMESTEN_HOME/ttoracle_home/instantclient_11_1
    

    Best regards
    Gennady

  • Problems with the installation of the bridge and the company

    Hello world!
    I have problems with the installation of the bridge and the company. Although I have install both of them successfully, when I try to connect to the gateway through the console I have error message saying there is no company installed. In fact, I get an error as well through the wizard saying "failed to run. Please see details below:

    Unable to launch: "C:\DOCUME~1\SIEBEL~1\LOCALS~1\Temp\2\LRE19.tmp\bin\java.exe-Dtemp.dir=C:\DOCUME~1\SIEBEL~1\LOCALS~1\Temp\2\ - cp C:\siebelent\siebsrvr\bin\setup.jar run - args LANG = ENU VISIBILITY = REPEAT BUSINESS = FALSE MODE = MODEL_FILE=C:\siebelent\siebsrvr\admin\siebel_server_sia.scm LIVE" error code: ""(SBL-STJ-00152)-1 "»

    Also, when I try ot run the following in the console: C:\siebelent\gtwysrvr\BIN\srvrmgr.exe - u - p SADMIN SADMIN - g siebelwin2k32-e SIEBELENT, I get this error: fatal error (3015667): the program variable 1% is not defined, existing...


    Thank you in advance for your help!

    MARIANA

    Mariana,

    Please confirm if you try to configure the siebel server in the same machine as the gateway server. If so try to use localhost instead of the hostname of the machine setting up Siebel server.

    I assume you are using windows 2003 as the operating system.

    Thank you

    Wilson

  • Problem with the help of oraext: query-database in the transformation (XSLT 2.0)

    Hello!
    I m facing a problem with the help of oraext: query-database.

    In my transformation im try the following (Simplified):
    <xsl:template match="*">
      <xsl:variable sqlQuery="select ....."/>
      <xsl:variable name="storeSec" select="oraext:query-database($sqlQuery,true(),true(),'jdbc/xref')/>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    {code}
    
    This always results in +some+ +other+ +val+ !!
    I´v checked the output from oraext:query-database by using getcontentAsString and if I instead test putting the expected output from oraext:queryDatabase in my variable it gives me A100 which is what i expected.
    
    {code}
    <xsl:template match="*">
      <xsl:variable sqlQuery=select ....."/>
      <xsl:variable name="storeSec">
        <ROWSET>
         <ROW num="1">
           <STORE_PART_SECTION>A100</STORE_PART_SECTION>
         </ROW>
         <ROW num="2">
           <STORE_PART_SECTION>XXm</STORE_PART_SECTION>
         </ROW>
        </ROWSET>
      </xsl:variable>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    How to get the correct value when you use oraext:query - database?

    How should you exit? Several item ID with each having a value of the result set?
    If Yes, then you can try following:

     
                        
                            
                        
                             
                                  
                             
                        
                            
    
  • Problem with the GetParameter() function in IScript

    Hello

    I am facing a problem with the GetParameter() function in IScript. I created a URL below and appellant IScript

    GenerateScriptContentURL ("EMPLOYEE", "MFC", Record.WEBLIB_REPT_SJ, Field.ISCRIPT1, "FieldFormula", "IScript_GetAttachment"). "? FileName =' | & AttachUserFileURL;

    before generating URLS, I'm just encrypt the name of the ZIP file & assignment in the variable string & AttachUserFileURL I concatenated in link above.

    and try to take the value encrypted text of decryption by %Request.GetParameter("FileName") in IScript who isn't able to get special characters such as +, is.

    Please get this.

    Thank you

    Edited by: 936729 may 25, 2012 03:35

    + and = are allowed in URLS. You just have to URL encode like this EncodeURLForQueryString(&AttachUserFileURL) before adding them to your URL:

    GenerateScriptContentURL("EMPLOYEE", "HRMS", Record.WEBLIB_REPT_SJ, Field.ISCRIPT1, "FieldFormula", "IScript_GetAttachment") | "?FileName=" | EncodeURLForQueryString(&AttachUserFileURL);
    

    Here is the entrance of PeopleBook for EncodeURLForQueryString:

    http://docs.Oracle.com/CD/E28394_01/pt852pbh1/Eng/psbooks/TPCL/htm/tpcl02.htm#_6453b1b1_1355ab71343__503e

  • problem with the CURSOR and WITH clause

    Hi guys,.

    I have never created a package before. I try to run it, but I get:
    ORA-06550: line 8, column 16:
    PLS-00382: expression is of the wrong type
    ORA-06550: line 8, column 3:
    PL/SQL: Statement ignored

    I know that my problem is in the next section

    OPEN FOR V_io_cursor

    with GOT_R_NUM like)


    Is the above correct?

    When I copy paste the "heart" of the query, it works very well. I really have a problem with the CURSOR and the declaration.

    Here's the code in its entirety. I know that the code is much more then he returned, but ignore this overload that was to do some tests to make sure that I can achieve any query request.

    CREATE OR REPLACE
    PKG_SPF_NATIONALREPORTS PACKAGE BODY IS

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor IN OUT C_RESULTS)
    IS
    v_io_cursor C_RESULTS;

    BEGIN

    OPEN FOR V_io_cursor

    with GOT_R_NUM like)
    SELECT
    -START P_SelectFields
    r.cli_served,
    r.EIER,
    -END P_SelectFields
    r.RC,
    r.Year_ID,
    r.period_id,
    r.agreement_type_ind,
    CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT,
    YEARS.year_desc,
    RC_CODE.rc_code_id,
    RC_CODE.rc_code,
    AHRDA HOLDERS. AHRDA_ID,
    AHRDA HOLDERS. REGION_ID,
    AHRDA HOLDERS. PROVINCE_ID,
    AGREEMENT_TYPE. AGREEMENT_TYPE_ID,
    AGREEMENT_TYPE. AGREEMENT_TYPE_DESC_EN,
    ROW_NUMBER() over (partition R.YEAR_ID, R.CONTRACT_Number_Text
    order by
    P.PERIOD_desc
    (/ / DESC NULLS LAST) AS r_num
    RESULT r
    JOIN period p ON r.period_id = p.period_id
    JOIN CONTRACT_NUMBER ON r.contract_number_text = CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT
    JOIN RC_CODE ON contract_number.rc_code_id = rc_code.rc_code_id
    JOIN AHRDA holders ON ahrda.ahrda_id = rc_code.ahrda_id
    JOIN AGREEMENT_TYPE WE AHRDAS. AGREEMENT_TYPE_ID = AGREEMENT_TYPE. AGREEMENT_TYPE_id
    JOIN the YEARS WE r.year_id = YEARS.year_id
    )
    SELECT year_desc
    -START P_SUMFields
    SUM (cli_served) AS sum_cli_served
    The SUM (eier) AS sum_eier
    -END P_SUMFields
    OF got_r_num
    GROUP BY year_desc
    ORDER BY year_desc
    ;

    io_cursor: = v_io_cursor;

    END GET_NATIONAL_TOTAL_RESULTS;

    Agree - all this talk of loops FOR is completely irrelvant.
    A refcursor is usually the exact mechanism to return a result set.

    What is C_RESULTS?

    Just use SYS_REFCURSOR.

    No need for local variable.

    OUT why? Not just walk OUT?

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS
    (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor OUT SYS_REFCURSOR)
    IS
    BEGIN
     OPEN io_cursor FOR ...
    END;
    
  • Problem with the loading of XML and xmlns

    I'm having a problem with loading an XML file that was created by Filemaker.  FileMaker will display an XML file by using one of two different grammars.  A poster of a standard form for the most that I can use with a glitch.  Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.

    More precisely:

    " < FMPDSORESULT xmlns =" http://www.FileMaker.com/fmpdsoresult "> "

    ' If I remove the xmlns = " http://www.FileMaker.com/fmpdsoresult 'the file is loaded properly and I can access the different fields without problem.  However, when I go the xmlns =..., it will trace the XML properly but I can't access the fields by using the code below.  It drives me crazy!

    With part xmlns in the XML file, I get the following error when attempting to load the thumbnails files:

    TypeError: Error #1010: a term is undefined and has no properties.

    I need it so that the user can enter/change the data and simply output the XML file of Filemaker and then the Flash load the XML file not corrupted and displays the information requested by the user.  That is to say I might have the user open the XML file in a word processing application and have remove them the xmlns..., but it is rather heavy and not very user-friendly.

    I tried all the xml.ignore functions I could find, but it does not help.  I hope someone out there can help you

    Thank you

    -Brand-

    _____________________________________________________________________________________

    Partial XML:

    XML to export Filemaker:

    <? XML version = "1.0" encoding = "UTF-8"? >
    <! - this grammar has been deprecated - use the FMPXMLRESULT instead.
    " < FMPDSORESULT xmlns =" http://www.FileMaker.com/fmpdsoresult "> "
    < ERRORCODE > 0 < / ERRORCODE >
    Sport.FP7 < DATABASE > < / DATA >
    < LAYOUT > < / PAGE layout >
    < LINE MODID = '1' RECORDID = "1" >
    Brand of < FirstName > < / name >
    Fowle < name > < / LastName >
    Veil of < sport > < / Sport >
    Medal of <>no < / medal >
    Design of < CourseOfStudy > < / CourseOfStudy >
    < year > 1976-1978 < / year >
    California < HomeState > < / HomeState >
    < ImageName > 93 < / ImageName >
    < / ROW >

    ...

    < / FMPDSORESULT >

    __________________________________________________________________________________

    AS3 code:

    Import fl.containers.UILoader;
    var aPhoto: Array = new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
    var toSet:int = 10; time to time delay
    var toTime:int = place;
    var photoPerPage:int = 6;
    var fromPos:int = photoPerPage;
    var imgNum:Number;

    var subjectURL:URLRequest = new URLRequest ("testData_FM8.xml");
    var subjectURL:URLRequest = new URLRequest ("Sports.xml");
    var xmlLoader:URLLoader = new URLLoader (subjectURL);
    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    var subjectXML:XML = new XML();
    subjectXML.ignoreWhitespace = true;
    subjectXML.ignoreComments = true;
    subjectXML.ignoreProcessingInstructions = true;

    function xmlLoaded(evt:Event):void {}
    subjectXML = XML (xmlLoader.data);

    If {(root.loaderInfo.bytesTotal is root.loaderInfo.bytesLoaded)
    removeEventListener (Event.ENTER_FRAME, xmlLoaded);
    trace ("data XML file loaded");
    trace (subjectXML);
    } else {}
    trace ("file not found");
    }
    imgNum=2;//subjectXML.ROW.length;
    trace (subjectXML);
    loadThumb (0);
    }
    function loadThumb(startPos:int):void {}
    var count:Number = aPhoto.length;
    trace (subjectXML.Database);
    for (var i = 0; i < count; i ++) {}
    try {}
    aPhoto[i].source="images/"+subjectXML.ROW[startPos+i]. ImageName + "_main.jpg";
    } catch (error) {}
    trace (e);
    }
    aPhoto [i] .mouseChildren = false;
    aPhoto [i] .addEventListener (MouseEvent.MOUSE_DOWN, onThumbClick);
    }
    trace ("current mem:" + System.totalMemory);
    ldAttract.visible = false;

    }
    function unloadThumb (): void {}
    var count:Number = aPhoto.length;
    for (var i = 0; i < count; i ++) {}
    aPhoto [i] .unload ();
    aPhoto [i] .removeEventListener (MouseEvent.MOUSE_DOWN, onThumbClick);
    }
    trace ("current mem:" + System.totalMemory);

    }

    function onThumbClick(evt:MouseEvent) {}
    var i: Number;
    trace ("Thumbnail clicked" + evt.target.name);
    i = findPos (evt. Target.Name);
    ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos]. LOCAL_OBJECT_ID + "_main.jpg";
    ldLrgPhoto.visible = true;
    btnPrev.visible = false;
    btnNext.visible = false;

    gotoAndStop ("showPhoto");
    }
    function findPos(thumb:String):Number {}
    var pos:Number;
    var count:Number = aPhoto.length;
    for (var i: Number = 0; i < count; i ++) {}
    If (thumb == aPhoto [i] .name) {}
    POS = i;
    }
    }
    return pos;
    }

    Mark,

    The ':' is what we call a scope resolution operator. Using namespace allows you to potentially have two or more nodes that have the same name but a namespace 'different '. "These are normally specified in xml in the form xmlns:mynamespace ="http://myuniqueURI.com/etc"

    Normally, you would use the mynamespace:node by naming your xml nodes that are specific to this namespace.

    But the best is that namespace by default, when there is no real Prefixeespacenom: in the name of node as:

    That's how it is specified in your xml file, that is to say all the nodes without a prefix belong to the filemaker namespace.

    In actionscript, you navigate by using the scope-resolution operator and the variable that represents the namespace does not necessarily resemble the part "mynamespace" above. In your case the namespace used was the one by default (no), but a value has been assigned.

    To the question of the length, you must use the length() method, otherwise the e4x filtering seeks nodes named 'length' and creating a XMLList with no entry in there (because it's not). It is a common thing with other "Properties" that are expressed in the form of methods like children() and often take me when I started with the model XML as3.

Maybe you are looking for

  • Definition of default account for the App Store

    How to change the account itunes (AppStore) by default on my iphone? I use two different accounts, so need to disconnect and connect to each other on occasion.  I know how to do this.  But whenever I have to log off and go to sign in Apple uses my de

  • Tecra Z50 - A - 10 d striped

    Hello I have a problem with my TECRA. The back cover of this laptop model magnesium is very soft and brittle.After a few months, it is now full of scratches. My question is this: is there a way to get a new rear cover of the screen of this model of l

  • Installation of recovery of experts (option 2) CD and hard drive partitions

    Hello world! I bought Toshiba M70-144 Satellite. When I opened my first laptop computer, there are Win XP was preinstalled. Drive hard 60 GB has been "cut in half" for logical drives C and D. Now I had to recover my pc, and I've used easy setup (pres

  • First laptop charge time

    Hello I bought the new laptop of hp envy 15 t. I just want to know, what I need to charge my laptop, a few hours before using it? Thank you Siva

  • URGENT blackBerry Smartphones: liquid brand damage on the screen. Pls help!

    Hello I got a new BlackBerry Curve 8520 about a month ago. Today when I rushed to the office, I noticed that there are a liquid dark mark on the middle of the screen. I thought that it would be maybe the screen guard and I removed the screen protecto