For Statement on a table using add.instances - need help

Hi,
I made this table in an acrobat form.   The table uses java script to add rows .   The code I used is:
_detail.addInstance(1);
There are two fields on this table that I want to evaluate 1)  an index named index1    
and 2) the value named numAmount
The script I am using to evaluate these to fields is as follows:
if (form1.Page1.Subform1.Capital1.Capital1.detail.index1.rawValue ==2)
    then
    $.rawValue = form1.Page1.Subform1.Capital1.Capital1.detail.index1.numAmount.rawValue 
    endif
My problem is that I need to nest this if statement inside some kind of a loop.    I want the program to look at my table, determine how many instances the user has added,  scroll through the table and look at index1,  if index 1 = 2 then i want it to return the value in numAmount.
I just can't get the syntax to work in either form calc or javascript.
I am trying to write this code using the calculate method on a fourth field located on form1.#subform[2].Table5.Row5.NumericField1
I have attached the file if it helps.   The table is on page one of the form and the display field is on page three. 
Any help would be much appreciated!!!

This is an Acrobat Forms JavaScripting forum, you might find more help in one of the LiveCycle Designer forums.

Similar Messages

  • I just created an iCloud email and I want to use that email for my iTunes account as well. I need help suiting the old apple I'd because I do not remember anything associated with that email and I don't know the security questions

    I just created an iCloud email and I want to use that email for my iTunes account as well. I need help switching the old apple ID because I do not remember anything associated with that email and I don't know the security questions or the login for that old email.

    You cannot do that.  The AppleID you used to create the iCloud account is an active primary email address.  The email address you created with the iCloud account is also an active primary email address (all Apple domain email address automatically become AppleIDs as well).  You cannot replace the primary email address on one active AppleID with the primary email address on another, active AppleID.
    You can use your iCloud email/AppleID with iTunes, but it will be a separate account, so all your previous purchases remain tied to the other AppleID you have.
    I don't understand your statement that you could not remeber your old AppleID password, as you would have had to use it to create the iCloud account in the first place (the first step of creating the iCloud account required you to login with your existing AppleID and password)?

  • After many months of non-use, when I opened Photoshop CS4 Extended, I got an error message 148.3.  "Licensing for this product has stopped working."  I need help, please.

    After many months of non-use, when I tried to open Photoshop CS4 Extended, I got an error message 148.3.  "Licensing for this product has stopped working."  I need help, please.

    Error "Licensing has stopped working" | Windows
    Error "Licensing has stopped working" | Mac OS
    Mylenium

  • Hello, can someone guide me on how to purchase ExportPDF please? i'm currently residing in South East Asia and it doesn't allow me to purchase the software that i need for my work. Please guide me. i need help badly.

    Hello, can someone guide me on how to purchase ExportPDF please? i'm currently residing in South East Asia and it doesn't allow me to purchase the software that i need for my work. Please guide me. i need help badly.

    Hi watanabei,
    Please see Countries where ExportPDF is available for purchase. - Adobe Community. It's necessary to have a credit card billing address in one of the countries listed in this document. If ExportPDF is unavailable to you, you may want to consider an Acrobat subscription, which would also allow you to convert PDF files to Word and other format. For more information, see www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • HT1937 I have an iphone bought in the UK but I'm in Europe and can not use it I need help please help me thanks

    I have an iphone bought in the UK but I'm in Europe and can not use it I need help please help me thanks

    wiliiam rrichard wrote:
    Because My iphone is Locked on the United Kingdom
    No it is not.  iPhones, like all cell phones are not locked to countries.  They are locked to carriers.
    Only the carrier to whom the device is locked can unlock it.  Contact the carrier.

  • My sister accidentally delete keynote from my purchased and i need to re pay if i want to use it. i need help

    my sister accidentally delete keynote from my purchased and i need to re pay if i want to use it. i need help!!!!!!!

    Two ways:
    1. Did you tried downloading Keynote using your iPhone as stated above? (make sure you are connected to Wi-Fi)
    2. You can also use computer iTunes > select iTunes Store under STORE (left sidebar), click Purchased on the right under QUICK LINKS > click Apps > Not in My Library.

  • Read data from MDM For Lookup and Flat table using MDM ABAP API

    Hi,
    I have requriment to read data from MDM from FLAT and Lookup table using MDM ABAP API. My design  is like this ,
    I have one ITEMS (Main table in MDM) and inside that i have one Lookup flat table ITEM_TYPE , my requriment is to read Item number and its related Item type.
    From ABAP.
    Please help if any body has any idea.
    Regards,
    Shyam

    HI Guys,
    I found my solution by myself. Below is the solution , hope this will help others:-
    Retrieve data from MDM  using MDM ABAP API.
    Step- 1. Create structure in SAP with the same name as that of MDM field code for MDM Main table.
    Step-2. Create another structure in SAP having all  lookup fields of MDM , fieldname in ECC must be same as that of MDM field
    code.
    Step-3.Create structure in SAP for  individual lookup field(Single Field only)   with the same name as MDM Field code.
    Step-4.
    DATA: IT_QUERY            TYPE STANDARD TABLE OF MDM_QUERY,  "MDM_QUERY_TABLE,
          WA_QUERY            TYPE  MDM_QUERY,
          WA_CDT_TEXT         TYPE  MDM_CDT_TEXT,
          IT_RESULT_SET_KEY   TYPE  MDM_SEARCH_RESULT_TABLE,
          WA_RESULT_SET_KEY   TYPE  MDM_SEARCH_RESULT,
          WA_STRING           TYPE  STRING.
    DATA:<Internal table> TYPE STANDARD TABLE OF <SAP Str Having all LOOKup Fields>    
    DATA: :<Internal table>TYPE STANDARD TABLE OF <SAP Str one LOOKup field>,
         <Workarea> LIKE LINE OF :<Internal table>.
    *PASS LOGICAL OBJECT NAME.
    V_LOG_OBJECT_NAME = 'Logical object name defined in Customization'.
    Define logon language, country & region for server
    WA_LANGUAGE-LANGUAGE = 'eng'.
    WA_LANGUAGE-COUNTRY = 'US'.
    WA_LANGUAGE-REGION = 'USA'.
    TRY.
        CREATE OBJECT LR_API
          EXPORTING
            IV_LOG_OBJECT_NAME = V_LOG_OBJECT_NAME.
    ENDTRY.
    CONNECT to repository. Apply particular logon language info
    CALL METHOD LR_API->MO_ACCESSOR->CONNECT
      EXPORTING
        IS_REPOSITORY_LANGUAGE = WA_LANGUAGE.
    *NOW PASS ITEM NO AND GET KEY FROM MDM.
    CLEAR WA_QUERY.
    WA_QUERY-PARAMETER_CODE  = <MDM FIELD CODE>. "Field code
    WA_QUERY-OPERATOR        = 'EQ'. "Contains
    WA_QUERY-DIMENSION_TYPE  = 1. "Field search
    WA_QUERY-CONSTRAINT_TYPE = 8. "Text search
    WA_STRING                = <Field Value>.
    GET REFERENCE OF WA_STRING INTO WA_QUERY-VALUE_LOW.
    APPEND WA_QUERY TO IT_QUERY.
    CLEAR WA_QUERY.
    *PASS ITEM NUMBER AND GET RELATED KEY FROM MDM.
    TRY.
        CALL METHOD LR_API->MO_CORE_SERVICE->QUERY
          EXPORTING
            IV_OBJECT_TYPE_CODE = <MDM Main Table>
            IT_QUERY            = IT_QUERY
          IMPORTING
            ET_RESULT_SET       = IT_RESULT_SET_KEY.
      CATCH CX_MDM_COMMUNICATION_FAILURE .
      CATCH CX_MDM_KERNEL .
      CATCH CX_MDM_NOT_SUPPORTED .
      CATCH CX_MDM_USAGE_ERROR .
      CATCH CX_MDM_PROVIDER .
      CATCH CX_MDM_SERVER_RC_CODE .
    ENDTRY.
    Pass record id into keys.
    LOOP AT IT_RESULT_SET_KEY INTO WA_RESULT_SET_KEY.
      WA_KEYS = WA_RESULT_SET_KEY-RECORD_IDS.
    ENDLOOP.
    WA_RESULT_SET_DEFINITION-FIELD_NAME = <Look field name>.
    APPEND WA_RESULT_SET_DEFINITION TO IT_RESULT_SET_DEFINITION.
    CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE
      EXPORTING
        IV_OBJECT_TYPE_CODE      = <MDM Main Table>
        IT_RESULT_SET_DEFINITION = IT_RESULT_SET_DEFINITION
        IT_KEYS                  = WA_KEYS
      IMPORTING
        ET_RESULT_SET            = IT_RESULT_SET.
    LOOP AT IT_RESULT_SET INTO
            WA_RESULT_SET.
    *PASS KEYS INTO MAIN TABLE TO GET Structure for FALT or Look up Table
      TRY.
          CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
            EXPORTING
              IV_OBJECT_TYPE_CODE = <MDM Main Table>
              IT_KEYS             = WA_KEYS
            IMPORTING
              ET_DDIC_STRUCTURE =<SAP Strct having all Look up fileds of MDM>         
      ENDTRY.
      LOOP AT <SAP Strct having all Look up fileds of MDM> INTO <Work area>.
        CLEAR WA_KEYS.
        APPEND <Work area>-field name TO WA_KEYS.
        CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
          EXPORTING
            IV_OBJECT_TYPE_CODE = <MDM Lookup table name>
            IT_KEYS             = WA_KEYS
          IMPORTING
            ET_DDIC_STRUCTURE   = <Single Structure in SAP For Lookup field>.
        READ TABLE <Single Structure in SAP For Lookup field>. INTO <Work Area> INDEX 1.
    Here you can get the value of realted lookup fields associated with main table data.
      ENDLOOP.
    ENDLOOP.
    LR_API->MO_ACCESSOR->DISCONNECT( ).
    Edited by: Shyam Babu Sah on Nov 24, 2009 4:52 AM

  • What is the syntax for creating global temporary table using a select query

    hii
    I'm creating a global temporary table using a select query ..how to mention 'on commit preserve rows' that?
    create global temporary table t1 as select * from trn_ordbase on commit preserve rows;
    but this is invalid syntax,so how to mention on commit preserve rows in this???if i dont mention it ,by default its considering as on commit delete rows.
    Please help me out of this problem.

    create global temporary table t1 as select * from trn_ordbase on commit preserve rows;You CANNOT use this syntax.
    http://download-east.oracle.com/docs/cd/B19188_01/doc/B15917/sqcmd.htm
    http://download-east.oracle.com/docs/cd/B19188_01/doc/B15917/glob_tab.gif
    http://download-east.oracle.com/docs/cd/B19188_01/doc/B15917/cre_tabl.gif

  • I got an iphone for my birthday, and when i tried to use it, there was still the apple id from the previous owner so now i cant use it, i need help please

    I need help unlocking an ipod that has the previous owners apple id and it wont let me log on and the previous owner, no longer is able to be reached.

    You will need to contact the previous owner, only they can reomve it from their account : http://support.apple.com/kb/TS4515
    If you can't contact them and get them to remove it then you won't be able to use the phone.

  • Purchased extreme to replace modem/router DSL used telephone cord need help with set up

    Prior to purchasing Airport Extreme had a standard modem/ wireless router from ATT for DSL. I have two macbooks both dropped connections while online with older modem.
    Airport Extreme purchased to correct connection issues I need help with set up. The older modem just used telephone cord. I tried to use telephone with extreme it did not work.
    How do I get extreme to work as the modem and router ?

    How do I get extreme to work as the modem and router ?
    you can't. the extreme is only a router. you need a separate modem (or disable the wireless part of your old router and use it as a modem - if that's possible).

  • TS1702 Whenever i click the link for a great app i found, to go to the app-store, the app store reply is " could not complete your request" this happen for every app link that i persue! Need help

    Whenever i click the link for a great app i found, to go to the app-store, the app store reply is " could not complete your request" this happen for every app link that i persue! Need help

    Try signing out of your account and then sign back in and see if that helps.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try again.

  • I can't send  message from iMessage why? I have credits for send but it doesn't work! Need help!

    Hello plz I need help !! I can't send my message with iMessage! I don't understand why?! Yesterday I send it! And now it's not working! I have credits ! So why?! PLZZZZZ need help have to talk to my friend!!

    Let me clarify.
    iMessage is completely different from regular SMS. iMessage is where you can text from Apple device to Apple device (ex. iPad to iPhone, or iPod to iPad)
    SMS is texting service for all phones, excluding the ipod, ipad. (ex. iPhone to Droid, or iPhone to Nokia)
    So when you iMessage someone on you iPhone, it is free and can be sent to anyone with an Apple device.
    When texting SMS, you can send to anyone with any kind of cell phone.

  • Physical attributes for index on temp tables (using physical model)

    I need create index on temp tables.
    When I generate DDL, it includes physical attributes like ‘LOGGING NOCOMPRESS NOPARALLEL’.
    I get error "ORA – 14451 (unsupported feature w/temporary tables)"
    I’ve to use physical model in OSDM. How do I get rid of physical attributes in DDL for index?

    Hi,
    Thanks for reporting this problem.
    You can remove the LOGGING clause by opening the Properties dialog for the Index in the Physical model and setting its Logging property to the blank option.
    However it's not possible to suppress the NOCOMPRESS and NOPARALLEL at the moment.
    I've logged a bug on this.
    As a workaround, you could do a global edit on the DDL file to remove all instances of NOCOMPRESS and NOPARALLEL.
    David

  • Search Help for field of standard table used on non standar report

    Hi all.
    I need to know whether is posible to set up a "Search Help" / "Matchcode" for one standard field (LFBK-BKTVP) of a standard table (LFBK) that is going to be used on the selection screen of one new non standard report ZFK01.
    I was wondering if this could be posible under any special attributes, set up, ... for this field in the corresponding screen, but do not really know nor if that would work neither what to set up. Any other workaround would also be welcome.
    Could somebodly help?
    Thanks in advance. Regards,
    Abdali

    Hi ,
    Please try this code .It is working as per your requirement.
    *& Report  ZTESTPRO4                                      *
    REPORT  ztestpro4.
    TYPES:BEGIN OF ty_lfbk,
          bvtyp TYPE lfbk-bvtyp,
          END OF ty_lfbk.
    DATA:gt_lfbk TYPE STANDARD TABLE OF ty_lfbk,
         gs_lfbk TYPE ty_lfbk.
    PARAMETERS:bank TYPE lfbk-bvtyp.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR bank.
      SELECT bvtyp
         FROM lfbk
         INTO TABLE gt_lfbk.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'BVTYP'
          dynpprog    = sy-repid
          dynpnr      = sy-dynnr
          dynprofield = 'bank'
          value_org   = 'S'
        TABLES
          value_tab   = gt_lfbk.

Maybe you are looking for

  • Key figures are not available when i performing LBWE action

    Hi gurus,   I am trying to load 2lis_02_hdr, 2lis_02_itm and 2lis_02_scl to infocube 0pur_c04. But whatever the key figures available in the cube its not appear in the R/3 side data Source.. but those keyfigures are available in LIS structure.. for t

  • Need correct color profile settings in windows....????

    Help!  Just replaced the motherboard and now all the color profiles in photoshop are wrong....  Does anyone know the correct settings to choose in windows or to choose for the graphics card... it's an AMD Phenom II.  I open Adobe Bridge and immediate

  • Workbench independent and workbench dependent

    What difference it makes for an application to be workbench inpedent or work benchdependent. for instance... smartfroms/sapscripts or workbench dependent or independent..what does this mean regards

  • GRC CUP risk analysis

    Hi, Risk analysis give risk status result in balls like red in critical, light red in high,orange in medium.we want,it should say critical,high,medium and low intead of balls and simulate also give same result as risk analysis.we also don't want if c

  • RE: Problems setting up environment failover SOLVED.

    Kamran: Solved the problem. You know what was causing the problem ? The way I was copying files to the destination environment. Yes, I was copying the files to vithar from kronos in ASCII mode, which in turn modified the header information for each f