Resolve Nodes - For Loop - Instance Manager Please Help

Hello,
I made a table in lifecycle designer that uses the instance manager to add rows.
I want to write code that will loop through each of the instances and perform a comparison.  I would like the code to examine the index field.  If the index field = 2,  then return the value of the num amount field.
This is what I have tried so far and it does not work. 
var
 var
var
oFields = xfa.resolveNodes("Subform1[*].index1");
var     
nNodesLength = oFields.length;
for     (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++)
  if (oFields.item(nNodeCount).rawValue ==2)     {
     form1.#subform[2].Table5.Row5.NumericField1.rawValue
     = form1.Page1.Subform1.Capital1.Capital1.detail.numAmount.rawValue;}
break;    

Here is a more lengthy definition of my problem.   I hope someone can help. 
1.     I have a table that will allow the user to add rows when they click the plus button.  Here is the code
----- form1.Page1.Table7.#subformSet[0].#subformSet[1].detailHeader2.Button2::click: - (JavaScript, client)
_detail.addInstance(this.parent.index);
//Invoke the recalculate method to include the field values from the added row in calculations.
xfa.form.recalculate(1);
2.     The table also has a button to delete rows.   Here is the code
----- form1.Page1.Table7.#subformSet[0].detail.Button2::click: - (JavaScript, client) --------------
// Invoke the Instance Manager to remove the current instance of the detail subform.
_detail.removeInstance(this.parent.index);
// Invoke the recalculate method to update the form calculations.
xfa.form.recalculate(1);
3.     The table has a drop down list named txtPartNum and that allows you make a selection.  Once you have made the selection a script populates other fields in the same row. The Drop Down list contains this code:
----- form1.Page1.Table7.#subformSet[0].detail.txtPartNum::initialize: - (JavaScript, client) ------
// Populate the part number Drop-down List.
partNoScript.populatePartNo(this);
----- form1.Page1.Table7.#subformSet[0].detail.txtPartNum::change: - (JavaScript, client) ----------
// Populate the description and the unit price when we change the part number.
partNoScript.getDesc(xfa.event.newText, txtDescription, numUnitPrice, index1);
4.     The following script populates the following fields:
txtPartNum,
txtDescription,
numUnitPrice,
index1
----- form1.#subform[2].#variables[0].partNoScript::partNoScript - (JavaScript, client) ------------
// This script object controls the interaction between the part number, description and unit price fields.
// When you fill the partNo, partDesc and partPrice arrays, make sure they have the same number of array indices in
// each array i.e. for every part number, there should be a matching description and price.
// Array of part numbers.
// This script object controls the interaction between the part number, description and unit price fields.
// When you fill the partNo, partDesc and partPrice arrays, make sure they have the same number of array indices in
// each array i.e. for every part number, there should be a matching description and price.
// Array of part numbers.
                     var partNo = new Array(" ",
                                                                "Company Labor - Regular Hours",
                                                                "Company Labor - Overtime Hours",
                                                                "Company Engineering - Regular",
                                                                "Company Engineering - Overtime",
                                                                "Company Burden",
                                                                "Subcontract Labor",
                                                                "Subcontract Engineering",
                                                                "Subcontract Material",
                                                                "Subcontract Equipment",
                                                                "Subcontract Labor & Material Bid",
                                                                "Purchased Materials",
                                                                "Materials from Inventory",
                                                                "Transportation Equipment",
                                                                "Miscellaneous Tools Shope and Garage",
                                                                "Construction Equipment",
                                                                "Rental Equipment",
                                                                "Permits",
                                                                "Legal Fees",
                                                                "Other Miscellaneous");
// Array of part descriptions.
var partDesc = new Array(" ",
                                                                "1221.9922",
                                                                "1222.9922",
                                                                "1221.9922",
                                                                "1222.9922",
                                                                "1221.9922",
                                                                "1232.9933",
                                                                "1232.9933",
                                                                "1232.9933",
                                                                "1232.9933",

Similar Messages

  • Dispute management - please help

    Hi Gurus,
    When I search for a dispute case using transaction UDM_DISPUTE then getting error below. It is not giving any additional information. When I click the message then I am directed to main menu.
    no RFC destination could be determined for the method call
    Please help,
    Regards,
    Pavan

    Hello
    Blue print document is confidential and varies from company to company, how ever I would try to give you some guide lines.
    - Understand the scope of sales and distribution, what sub modules of SAP and current business processes have been decided.
    - In principle you need to understand the "order to cash " cycle
    - At every SD process, relate to FI what documents are being generated
    - Some processes like master data creation, credit management policy of the client may be common to SD and FI, so they would part of both the processes
    - Use ASAP questionnaires and get feed back, comments and arrive at final list of processes in AR, credit management, collections and dispute management
    - Make visio and flow charts for every process in minutest detail
    -For every process, ensure , visualise the configuration, test scripts, user manuals etc, so that they would be prepared with ease in the next stage
    Reg
    assign points if useful

  • My iTunes won't open! It keeps saying 'The iTunes Library.itl is locked on a locked disk or you not have write permission for this file.' Please Help!

    My iTunes won't open! It keeps saying 'The iTunes Library.itl is locked on a locked disk or you not have write permission for this file.' Please Help!

    this may happen on external drives if:
    The external drive was hotpluged (removed) without going the correct "eject" way
    The iTunes library (database) got corrupted
    First Aid for external drive
    Close iTunes
    Unmount (eject) external drive the right way.
    Mount drive again
    Go to Workplace -> right click external drive -> choose "clean up" This will force the filesystem to rescan the file structure of the drive and rebuilding the file system table and journaling file.
    After the tool shows "done" (could last some time depending on size of drive) restart iTunes
    If your iTunes library is on your internal drive, this may happen
    The system was not shoot down correct, e.g. "pulled the plug"
    The iTunes library (database) got corrupted
    First Aid for internal hard drive
    Close iTunes
    Reboot system
    Go to Workplace -> right click external drive -> choose "clean up"
    After the tool shows "done" (could last some time depending on size of drive)
    Reboot system, restart iTunes
    If none of the above fixes your problem, post here.
    Lupunus

  • I am using Adobe Pro 11 and on opening a pdf I am getting error 'Insufficient Data for an Image'. Please help and provide a workaround if the solution not there.

    Hi all,
    I am using Adobe Pro 11 and on opening a pdf I am getting error 'Insufficient Data for an Image'. Please help and provide a workaround if the solution not there.
    I have already set the preferences to for page view to low zoom settings, and page fit view settings, but it never opens the pdf. Please check and provide a solution asap.
    Thanks in advance!

    Most of the documents have sensitive info on them.  I will have to do some looking for some that i can share, but will get something to upload (dropbox) as soon as I can.
    Thanks for you help.

  • I have not been able to update my fairy farm game for the last 5days as it quit at launch. I am afraid to delete and reinstall the game as i might lose all. Anyone knows if there is an update for this game? Please help. Thanks

    I have not been able to update my fairy farm game for the last 5days as it quit at launch. I am afraid to delete and reinstall the game as i might lose all. Anyone knows if there is an update for this game? Please help. Thanks

    Erdygirl please be aware you are posting to a public forum.  I have removed your personal information from your previous post.
    Please check your account at http://www.adobe.com/ to locate your serial number.  You can find more information on how to locate your serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • Been stuck for over  a year, please help me do this

    so i have this laptop with 8gb ram and core i7 as well as 2 hdd (no raid).
    Now i heard about premiere (cs4) and my laptop is ready to take most of the advantage but the hard drive is the bootleneck.
    Basically, all i want is to do few cuts in a video that was filmed by sony hdr-sr11 camcoder in hd 1080 60i settings. Now i heard i need 3 hard drives etc, but at the moment, i only have 2.
    So is there anyway i can do simple cuts in premiere without losing any quality and slowdown in fps or is there any other software that can be better? I really don't want to lose any quality or fps with the g73jh-a2 asus laptop i have?
    i also have ati 5870 video card

    The lowest was 19mb, but was floating arond 30mb. Still that aint good..
    I can't afford the partition magic and i heard its not good to partition after installing windows. I am thinking of fresh install, but if there is a workaround, it would save me tons of time as not installing apps etc.
    For the setup
    1)Can i have the programs in secondary drive? What about just a game or 2?
    2)By projects, do you mean the videos that im going to edit?
    3)what is scratch?
    4) By media, do you mean videos im going to edit?
    Lastly, what about a bit of data? Like <50gb.. Pictures documents etc
    Like, truly anonymous
    Date: Fri, 30 Apr 2010 17:16:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: been stuck for over  a year, please help me do this
    i did hdtune and was the os drive was 100mb-19mb in the end and the
    secondary one was 105-45~mbps
    Those figures are disturbing. For any reasonably modern 7200 RPM disk these figures should be around 120 - 60 MB/s. If it goes down to below 20, something is seriously wrong. Now that may be caused by your partitioning or something else, hard to discern from here, but these results are worrisome.
    Maybe Partition Magic can help you get rid of all these partitions, otherwise a complete reformat and fresh install of OS & programs is all that is left.
    Setup should be something like this:
    C: OS & programs & projects
    D: Pagefile, scratch and media
    It depends a bit on the nature of your projects, your workflow, but in general you set up your disks in such a way that disk accesses are spread over the available disks as much as possible.
    >

  • I must find my find my iphone data for last 1 year please help me

    i must find my find my iphone data for last 1 year please help me

    I confirmed, I have turned on " find my iphone. Here is the error I encountered

  • HT201210 i try to do several times... to recovery my ipad 2 wifi...but it gone off mode..what i must do.. i'm  university student ..i need my ipad for tomorrow lecture..please help me

    i try to do several times... to recovery my ipad 2 wifi...but it gone off mode..what i must do.. i'm  university student ..i need my ipad for tomorrow lecture..please help me

    What version of ios do you have?
    See Texas Mac Man's write up here.
    My iPad won't connect to my home wifi - even though it has previously worked fine.  It says it is unable to connect? - any ideas

  • My e-learning consists of 40 slides. I am publishing the project as HTML5, while previewing, when I use the back button on the playbar, there is an audio mismatch. Some other audio is played for that slide. Please help.

    My e-learning consists of 40 slides. I am publishing the project as HTML5, while previewing, when I use the back button on the playbar, there is an audio mismatch. Some other audio is played for that slide. Please help.

    Hi there,
    Can you please share your Captivate version?(Help>About Adobe Captivate)
    Thanks,
    Nimmy Sukumaran.

  • "Unable to Connect" using Firefox and Windows 7. Have tried all the suggestions on this website to no avail. I need firefox for my work! Please help!

    "Unable to Connect" using Firefox and Windows 7. Have tried all the suggestions on this website to no avail. I need firefox for my work! Please help!
    == This happened ==
    Every time Firefox opened
    == Since I downloaded Firefox

    same here my AV is ESET, i already unblock it but no use can't connect to the internet..

  • HT5694 I forget my ID and password for find my ipad please help.

    I forget my ID and password for find my iphone please help..

    It should be the same as your Apple ID and password. Do you not remember your Apple ID and password?
    Apple ID: How to find your Apple ID - Apple Support

  • OS X update 10.9.3 can't be installed on this disk. An error occurred while evaluating JavaAcript for the package. Please help!

    My Apple Store, Mail and update was not working for sometimes, when I download OS 10.9.3 and try to install, error message appear: OS X update 10.9.3 can't be installed on this disk. An error occurred while evaluating JavaScript for the package. Please help!

    iMac (27-inch Mid 2011), OS X Mavericks (10.9.3), SL & ML, G4 450 MP w/Leopard, 9.2.2

  • I upgraded to iOS 7 yesterday on my iphone and now none of my apps shows me any new message and when i open the apps it says "Connect to itunes for push notifications". Please help!!!

    I upgraded to iOS 7 yesterday on my iphone and now none of my apps shows me any new message and when i open the apps it says "Connect to itunes for push notifications". Please help!!!

    Same here.  I don't know how to solve the problem, but I figured out a way to close the app without re-starting or resetting the phone.  If you click ok and then press the home button twice really fast before the dialog box shows back up, you can put the phone in multi-tasking mode and close the app without having the shut the phone off or reset it.  Anxiously awaiting the fix for this since I have several apps I use that I can access at the moment.

  • My iPhone 4S screen flash all the time. Like if its locked it turns on. I think some notification pop for some msc. Please HELP!

    My iPhone 4S screen flash all the time. Like if its locked it turns on. I think some notification pop for some msc. Please HELP!

    Basics from the manual are restart, reset, restore.
    Have you tried each of these?

Maybe you are looking for

  • T7900 in the US... really?

    So, I go to www.creative.com. Nothing special, just want to see some 7.1 speakers to buy, and really want the T7900 set. I click on "Speaker Systems"... again, nothing special. I click on "7.1", you know, to see the 7.1 systems available. There are t

  • FILE_GET_NAME

    What is the purpose of FILE_GET_NAME function module?

  • List of CP with the Archiving flag

    Please advise me the tables with the relationsips between them to get the list of the CPs whose status is set for archiving. Thanks for your help in advance and points will be rewarded. Regards Kiran

  • Page up and page down to go to next block and previous block

    hii all I want to incorporate a functionality which when the user clicks the page up button the cursor should navigate to the previous block and if i press the page down button the cursor should navigate to the next block are there any triggersto do

  • Display E-Business Suite Navigation in Tree Structure

    Hello: When I login to E-Business Suite the Module display is in Folder format Is it possible to display Tree Structure? When can I get the instruction? Please help Vijay