Brackets and variables

What is the correct syntax for insert a variable into brackets?  I have the following java script.
var tcount = Subform2.instanceManager.count - 1
xfa.host.resetData("form1.Subform1.Subform2[tcount]");
tcount
returns 0 (checked with text field)
and
xfa.host.resetData("form1.Subform1.Subform2[0]");
properly executes a reset.
but
xfa.host.resetData("form1.Subform1.Subform2[tcount]");
fails
any ideas?
Thank you!
Tyler

Since tcount is a variable you need to keep it outside of the double quotes.
xfa.host.resetData("form1.Subform1.Subform2[" + tcount + "]");
Thanks
Srini

Similar Messages

  • Difference between Temp table and Variable table and which one is better performance wise?

    Hello,
    Anyone could you explain What is difference between Temp Table (#, ##) and Variable table (DECLARE @V TABLE (EMP_ID INT)) ?
    Which one is recommended to use for better performance?
    also Is it possible to create CLUSTER and NONCLUSTER Index on Variable table?
    In my case: 1-2 days transactional data are more than 3-4 Millions. I tried using both # and table variable and found table variable is faster.
    Is that Table variable using Memory or Disk space?
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Check following link to see differences b/w TempTable & TableVariable: http://sqlwithmanoj.com/2010/05/15/temporary-tables-vs-table-variables/
    TempTables & TableVariables both use memory & tempDB in similar manner, check this blog post: http://sqlwithmanoj.com/2010/07/20/table-variables-are-not-stored-in-memory-but-in-tempdb/
    Performance wise if you are dealing with millions of records then TempTable is ideal, as you can create explicit indexes on top of them. But if there are less records then TableVariables are good suited.
    On Tables Variable explicit index are not allowed, if you define a PK column, then a Clustered Index will be created automatically.
    But it also depends upon specific scenarios you are dealing with , can you share it?
    ~manoj | email: http://scr.im/m22g
    http://sqlwithmanoj.wordpress.com
    MCCA 2011 | My FB Page

  • Fixed and Variable Breakup of Actual Cost

    We have implemented Material ledger and also activated actual cost component split. We are getting the actual product cost at month end. In the costing cockpit we get the Peiodic unit price(Actual cost) as well as std price of the material. But In costing cockpit we are not able to get the breakup of Fixed and variable. Whereas we are getting Fixed and varible breakup when we check cost component report in ckm3. But there, we can see individual material wise fixed and varibale breakup.
    Can anybody help me so that I can see the Actual Fixed and variable cost for all the products at a time?
    With regards
    Mukesh Poddar

    Fixed price, is the fixed costs - I usually see it in relation to Overhead..
    Fixed costs remain, whether you manufacutre or not.
    Say you are deciding whether to out-source an assembly,  If you outsource, VARIABLE cost will be saved, Material, labor for that assembly, Overhead representing fringes for that labor, the electricity to run that specific machine.  However, you will still have fixed costs of: Management Salary (although some of that can be variable); insurance on the building; heating and cooling for the building; realestate taxes.
    If the cost to make "in house" is 150 each and the vendor is going to charge you 100, thi is only a true saving if your fixed costs are less than 50.
    SAP allows you to separate fixed and variable costs so that you do make/buy analysis, budgeting, etc
    Hope this helps
    Edited by: Althea Madigan on May 12, 2010 2:11 PM

  • SOAP Use Adapter-Specific Message Properties and Variable Transport Binding

    Hi Friends,
       I am new to use to Soap Adapter. Please help me out bellow doubts.
       1.When you use Use Adapter-Specific Message Properties and Variable Transport Binding .
       2. Where exactly  we r using below parameters.
    Remote User : (technical name: SRemoteUser )
    Remote Host : (technical name: SRemoteHost )
    SOAP Action (technical name: SHeaderSOAPACTION )
    To transfer further header fields, set the relevant indicator. You can then store the following attributes and their values in the XI message header:
    Variable Header : (technical name: XHeaderName1 )
    Variable Header : (technical name: XHeaderName2 )
    Variable Header : (technical name: XHeaderName3 )
    Thanks&Regards
    G.Bhanuprakash

    Hi,
       1.When you use Use Adapter-Specific Message Properties and Variable Transport Binding .
    SAP Help says both are needed to be checked when you want to process adapter attributes
    Configuring the Receiver SOAP Adapter - SAP NetWeaver Exchange Infrastructure - SAP Library
    These attributes can be get/set using dynamic configuration and their technical names are what you have pasted:
    Remote User : (technical name: SRemoteUser )
    Remote Host : (technical name: SRemoteHost )
    SOAP Action (technical name: SHeaderSOAPACTION )
    To transfer further header fields, set the relevant indicator. You can then store the following attributes and their values in the XI message header:
    Variable Header : (technical name: XHeaderName1 )
    Variable Header : (technical name: XHeaderName2 )
    Variable Header : (technical name: XHeaderName3 )
    Remote User - the username used to send a message to the adapter engine using SOAP
    Remote Host - hostname which the remote user used
    SOAP Action - SOAP Action of the XI webservice (sender) / SOAP Action of the receiver webservice
    Variable Headers are additional key-value pairs in the HTTP Header that could be accessed in the XI Header using dynamic configuration. The limit is only three though.
    Regards,
    Mark

  • Budget Report to show the fixed and variable split for Materials

    Hello Gurus,
    Could you tell me if there is a budget standards report that will show the fixed and variable split for Materials? Example: Labor, Equip., QC and Overheads? 
    I need it for the correctly rolled-up 'final material number' step.  The report that does this now (without fixed and var split) is the Indented BOM Comparison (sret - cost mgmt-product costing - cost mgmt-customized reports - cost estimate comparison - costed multilevel compare rpt - Indented BOM Comparison).
    Thanks,
    Jefferson

    one simple way is in your final itab declare a slno type i field
    data : begin of itab occurs 0,
    slno type i,
    <other fields>
    end of itab.
    after filling the data in itab.
    loop at itab.
    itab-slno = sy-tabix.
    modify itab.
    endloop.
    in fieldcatalog also you have to define that slno field as the first column.
    but it will change its order if you are sorting the output or filtering the output.
    regards
    shiba dutta

  • How to put the column name and variable value in the alert message.

    Dear,
    how can i put the column name and variable value in the alert message text. i want to display an alert which tell the user about the empty textboxes. that these textboxes must be filled.
    Regards:
    Muhammad Nadeem
    CHIMERA PVT. LTD.
    LAHORE
    [email protected]

    Hello,
    The name of the item that fires the current trigger is stored in the :SYSTEM.TRIGGER_ITEM system variable.
    The value contained in this item can be retrived with the Name_In() built-in
    value := Name_In( 'SYSTEM.TRIGGER_ITEM') ;
    LC$Msg := 'The item ' || :SYSTEM.TRIGGER_ITEM || ' must be entered' ;
    Set_Alert_Property('my_alert_box', ALERT_MESSAGE_TEXT, LC$Msg ) ;
    Ok := Show_Alert( 'my_alert_box' ) ;
    ...Francois

  • Hard drive bracket and screws for elitebook 8460p

    I need a separate hard drive that I can insert when needed. I already have hard drive, but would like to buy bracket and screws. Is there an hp part number for this? I know there are hard drive, bracket, screws kits (eg 635225-001 for 250 gb kit), but only want bracket and screws. Any help would be greatly appreciated. Thanks, CCD1006
    This question was solved.
    View Solution.

    Hi,
    The bracket and screws are available from HP Parts Store on the link below.
    http://h20141.www2.hp.com/Hpparts/Search_Results.aspx?mscssid=2EE6B796021D4FD38D7EEC8B41971A3F&Searc...
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Overview report cost estimate (fix and variable)

    Hello
    anybody knows a overview report  where i can see for the current valid cost estimates
    per material
    costs splitt between fix and variable costs
    Alternatively it would be sufficient if this is just shown for a costing run
    In CK40N and all other reports i know i have the complete costs but to see details an extra click to the between fix and variable costs is needed and i can not extract to excel.
    Or is the only option an query on KEKO,KEPH, CKIS?
    Cheers
    Tim

    Hello
    @Sachin: Thanks for the report but the output is not that good - but helpful
    @Eric: Thanks this report solved my problem )
    Cheers
    Tim

  • Product costing - Fixed and variable cost.

    HI,
    I like to know how the cost is divided into fixed and variable at the cost compent level.
    as there is only one setting available at Define Cost Component Structure.
    Kindly let me know how this is done and possible forward the Product costing document and setting.
    my e-mail :[email protected]
    With Regards
    Krishna Singareddy
    Edited by: krishna singareddy on Feb 26, 2008 8:26 PM
    Edited by: krishna singareddy on Feb 26, 2008 8:27 PM

    Hi,  FICO MOH ,
    Do u have any logic if a coast element has 100 how do u divide it among the fixed and variable.
    what is the persentage or based on what it is defined .
    can u put some example pls
    with regards
    krishna

  • Material standard and variable price

    Hi all,
    I've been ask to create a report that shows the variable and standard price of the material for the current month and compare this with the price of a month that they get to choose, and if they don't choose a month to compare it with then I should show the price of that material for every month of the year.
    My question is, where can I find this info in SAP. I know that in MM03 I see the standard and variable price of the month and the previous month, but that's about it.
    where can I find this historical info of prices for material?
    thanks in advanced,
    Fidel Gregorio Peralta.

    Hi!
    You can find current prices in table MBEW. Field VPRSV says, if you find moving avg. in column VERPR or the standard price in STPRS. Currency is company code currency.
    In table MBEWH you find historical values - which are only inserted in case of price changes - so missing periods have same value as last entry before.
    Regards,
    Christian

  • Tables for Fiels Fixed Value and Variable Value

    Hi,
    Can any one tell me where the actual fixed and variable costs are stored in which table and also the planned costs. I have checked it, but it is showing RKPLN as data structure. We are doing development report where in standard Cost Center Report we need to have break up of fixed and variable cost. Please guide me where exactly these fields are stored in which table. its very urgent.

    Hi,
    In regard to the tables for planned data please do a search of the forum as this question has already been asked a few times. E.g. here:
    CO PLANNING TABLES
    In regard to fixed / variable actual costs: these are not stored in separate tables. If a posting contains fixed and variable portions, for example postings resulting from splitting (KSS2), then the fixed portion is stored in the COEP- WKFBTR (line items) and COSS-WKF*  fields (summary items).  Please observe SAP note 192107 on this issue.
    Regards
    Karl

  • Fixed and variable cost component break up in PCA

    Hi,
    Is it possible to get fixed and variable cost component break up and contribution report in PCA at each product group level and lower level of node. I think this requires development. As my client requires the report to have cost break up into fixed and variable in PCA at each line item level. Can anyone solve this

    Hello
    You can get the report by using the  report painter, no development will be required.
    Regards
    Madhav

  • What exactly is the diff between main window and variable window

    what exactly is the diff between main window and variable window in SAP script?

    hi,
    MAIN WINDOW :- In a main window you display text and data, which can cover several pages (flow text). As soon as a main window is completely filled with text and data, the system continues displaying the text in the main window of the next page. It automatically triggers the page break.
    You can define only have one window in a form as main window.
    The main window must have the same width on each page, but can differ in height.
    A page without main window must not call itself as next page, since this would trigger an endless loop. In such a case, the system automatically terminates after three pages.
    VARIABLE WINDOW :- The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the form.
    hope this will be useful.
    If useful then reward points.
    with regards,
    Syed

  • Transporting Queries and Variables from QA to DEV

    Hi gurus,
    Is there a way I can transport my query and variables(query components) back to DEV from QA,cos one of the variable that I am using started having a problem in DEV and can't seem to be able to fix it .
    You can check the problem question here
    Problems with a Query
    Thanks

    If you have access you can bundle the report in QA the same way as in Dev.  This is assuming you have a package set up there and basis will probably have to manually move it to the queue and import it.  This can be risky to do.

  • Illustrator Data Sets and Variables Help Please

    Hi, how's everyone doing?  I need a little help with Data Sets and Variables, or at least i believe that's what i need help with.  Ultimately i am trying to run an action on a batch of files. 
    I have an eps file with two images placed side by side.  They are the same image.  I am trying to replace both images and save the file accordingly.  Trying to make this happen using a bunch of files.  All the files can be in one folder and will be the same size. 
    I hope this make sense and what i need done is doable.
    Any help or advise would be greatly appreciated.
    Thanks in advance.

    Not sure a I read you correctly but if I understand you
    what you have to do is make the first two images as dynamic variables using the variable panel and save it as a data set
    then replace those two images and save those as a data set
    So now you have data set one and two.
    You can save that as an variable library (xml)and that can be loaded into other documents.
    The question is can it be actioned?
    It can be scripted and do you want the same two images to replace the same two image in each document.
    I think you really have to tell us more.

Maybe you are looking for

  • How do I alter a PDF stored in my documents

    I have an IMac.  I created and scanned a resume into my documents.  How do I edit or must I retype

  • APP payment fails

    1 ) In APP payment configuration payment currencies configured are USD, JPY, INR 2) Vendor document posted in currency GBP. 3) Now when I run APP for this vendor, payment fails. Please advise how I can make payment to this vendor.

  • Can't buy book to be made and shipped in America from the UK

    iphoto (iphoto '08 - 7.1) will not give me the option to pay for a book to be made and shipped in the US, from my UK mac account. I've just spent 5 days getting this book together and now I'm going to have to re-create the whole thing and get it ship

  • Suggestions on setting up RAID drives for sharing files

    Looking for some suggestions on how to best set up my schools mac lab... What I have: The lab admin computer is a MacPro 8GB ram two internal 1TB drives (no RAID card) HD one is currently not raided and is running leopard 10.5.4, ARD3, CS3, etc. The

  • All in one 414 printer

    How do I print 4x6 photo's with out the printer resizing. I am using picasa 3.