Vb asp error ---- for each cartItem in shnta_eCart.Items do

I'm getting an error at this line
"for each cartItem in shnta_eCart.Items do"
<%
'For 4 or less maps, shipping is 7.95. Add 1 for each
additional map over
4.
'Loop thru all the current cart items checking for map
orders. Sum the
Quantity of each map order
'and then calculate the shipping.
function TheLeeRuleForShippingMaps()
additionalChargePerMap = 1
breakPoint = 4
quantity = 0
totalCharge = 0
'Count the number of maps orders. Map orders are
distinguished by the
FrameID: 1, 2, 3, 4. Total the Quantity field
'of all map orders. 1 = no addon, 2 = black frame 3 = gold
frame 4 = oak
frame
for each cartItem in shnta_eCart.Items do
if (cartItem.FrameID = 1 or cartItem.FrameID = 2 or
cartItem.FrameID = 3
or cartItem.FrameID = 4) then
quantity = quantity + cartItem.Quantity
end if
end for
'Calculate the shipping for the total quantity of maps
ordered
if (quantity > 0 AND quantity <= breakPoint) then
totalCharge = totalCharge + 7.95'Result
else if (quantity > breakPoint)
totalCharge = totalCharge + (quantity - breakPoint) *
additionalChargePerMap'Result
end if
TheLeeRuleForShippingMaps =
WA_eCart_FormatNumber(totalCharge,
shnta_eCart.ForceDecimalsC, shnta_eCart.DecimalPlacesC)
end function
%>

>so change it to the following? NEXT?
No, like this:
for each cartItem in shnta_eCart.Items
if (cartItem.FrameID = 1 or cartItem.FrameID = 2 or
cartItem.FrameID = 3 or cartItem.FrameID = 4) then
quantity = quantity + cartItem.Quantity
end if
next

Similar Messages

  • Using Item UIDRef, can we get data as set in "text on path option" dailog box for each "text on path" item

    Hi all,
    I have a Item UIDRef but facing a problem for getting data as set in "text on path option" dailog box for each "text on path" item.
    What I did:
    - Getting the  pointer "IMainItemTOPData" using item UIDRef as
      InterfacePtr<IMainItemTOPData> mainItemTOPData(shapesUIDRef, UseDefaultIID());
    - This interface has the method GetTOPOptionData () which return ITOPOptionsData pointer
    - But SDK don't have "ITOPOptionsData" class implementation.
    Second Approch:
    - Used "ITextOnPathSelectionSuite" and getting the correct result for Desktop plugin.But I want the correct result in server plugin also.
    Anyone who has an idea how to get this using UIDRef, please let me know.
    Regards,
    Jitendra Kumar Singh

    Hi Pulse,
    Unfortunately, Flex doesn't currently support text on a path. However, I binged it and found this:
    http://blog.tsclausing.com/post/49
    That might be useful.
    -Adam

  • IWeb generates error for each folder creation related to site & pageon .Mac

    When I "publish all on .Mac", iWeb generates an error related for each Site/Page iWeb have to create as folders to .Mac.
    I have to create the necessary folders manually directly to .Mac.
    iMac Core duo 2 GHz   Mac OS X (10.4.8)  

    I reformulate my question

  • To get unicode errors for each and every program

    hi,
         I have written a program to retrieve all the custom programs and user exits. Now I want to pass all these programs to UCCHECK tcode to get all the errors of each program separately by writing it implicitely.
         Is there any function module for uccheck tcode or else any other option. Pls tell me.
             thanks & regards,
                 Sekhar.

    UCCHECK is an executable report(RSUNISCAN_FINAL). Please use SUBMIT program (RSUNISCAN_FINAL) along with selection screen field SO_OBJ_N-LOW populated with list of programs identified.
    Syntax
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards
    Ravikumar

  • Different link for each cell on table item

    hello..,
    I have one table item on my WAD template.
    I created Characteristic Structure/Selection for rows and Key Figure Structure/Selection for columns.
    There is a requirement to jump to different report for each cell on that table.
    Is it possible?
    I try to created class "ZCL_MYCLASS" with superclass of "CL_RSR_WWW_MODIFY_TABLE".
    And put some code on HTML as below:
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER"/>
             <param name="MODIFY_CLASS" value="ZCL_MYCLASS"/>
             ITEM:            TABLE
    </object></P>
    For testing purpose, I put coding on CHARACTERISTIC_CELL method:
    if I_CHAVL = 'Revenue'. "This is selection description
    c_cell_content = 'R_e_v_e_n_u_e'.
    endif.
    But, it seems that it doesn't work.
    The question:
    1. How do I create simple MODIFY_CLASS, just for testing purpose that what I modify in class is already correct.
    2. How to debug class on WAD?
    Thanks in advance

    Not statically, but you can do this in code:
    That's a method on the left and a property on the right.
    I don't know if this will work as you expect (it should change the tip strip, but I don't know if it will appear like you want it to), so you can also implement this yourself by having a string indicator which you show and move around using its properties.
    Try to take over the world!

  • Big Fat error for each page!

    I'm hoping somebody here has my magic answer. Both my daughter and I were given 30g iPods for Christmas. It's now almost March and they are still sitting here unused. I am on Windows XP. I can't even install iTunes of any version. It downloads and when I run it, a message pops up that says:
    "installshield"
    And then under that is a message that says
    "command line parameters:
    /L Language ID /S Hide initialization dialog For silent mode use /S/v/qn.
    /v parameters to msi.exec.exe
    /UA <url to instMsiA.exe>
    /UW <url to instMsiW.exe>
    /UM <url to msi package>
    And under all that jibberish, it has the button to push "ok" You do so and nothing more happens.
    I've been told to remove any old attempts at installing itunes or quicktime before and I did so. I tried downloading an older version of iTunes but that gives the exact same message.
    Basically, I've got over $500 worth of useless electronics here and two unhappy frustrated music lovers
    Please help if you can. I would be eternally grateful!
    Win All   Windows XP Pro  

    Okay, I followed your directions to a "t". The first things didn't work so I went back through the process of repeating all the clean up steps. Then I went to apple.com to get the quicktime alone and I downloaded it and when I went to install it, this popped up:
    Windows ® Installer. V 3.01.4000.1823
    msiexec /Option <Required Parameter> [Optional Parameter]
    Install Options
    </package | /i> <Product.msi>
    Installs or configures a product
    /a <Product.msi>
    Administrative install - Installs a product on the network
    /j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>]
    Advertises a product - m to all users, u to current user
    </uninstall | /x> <Product.msi | ProductCode>
    Uninstalls the product
    Display Options
    /quiet
    Quiet mode, no user interaction
    /passive
    Unattended mode - progress bar only
    /q[n|b|r|f]
    Sets user interface level
    n - No UI
    b - Basic UI
    r - Reduced UI
    f - Full UI (default)
    /help
    Help information
    Restart Options
    /norestart
    Do not restart after the installation is complete
    /promptrestart
    Prompts the user for restart if necessary
    /forcerestart
    Always restart the computer after installation
    Logging Options
    /l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>
    i - Status messages
    w - Nonfatal warnings
    e - All error messages
    a - Start up of actions
    r - Action-specific records
    u - User requests
    c - Initial UI parameters
    m - Out-of-memory or fatal exit information
    o - Out-of-disk-space messages
    p - Terminal properties
    v - Verbose output
    x - Extra debugging information
    + - Append to existing log file
    ! - Flush each line to the log
    * - Log all information, except for v and x options
    /log <LogFile>
    Equivalent of /l* <LogFile>
    Update Options
    /update <Update1.msp>[;Update2.msp]
    Applies update(s)
    /uninstall <PatchCodeGuid>[;Update2.msp] /package <Product.msi | ProductCode>
    Remove update(s) for a product
    Repair Options
    /f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode>
    Repairs a product
    p - only if file is missing
    o - if file is missing or an older version is installed (default)
    e - if file is missing or an equal or older version is installed
    d - if file is missing or a different version is installed
    c - if file is missing or checksum does not match the calculated value
    a - forces all files to be reinstalled
    u - all required user-specific registry entries (default)
    m - all required computer-specific registry entries (default)
    s - all existing shortcuts (default)
    v - runs from source and recaches local package
    Setting Public Properties
    [PROPERTY=PropertyValue]
    Consult the Windows ® Installer SDK for additional documentation on the
    command line syntax.
    Copyright © Microsoft Corporation. All rights reserved.
    Portions of this software are based in part on the work of the Independent JPEG Group.
    Now I'm not a computer techie like some people are, but that still sounds like there is still something left on my computer of an old install. The only other thing I can tell you is that although there is no msi folder, there are plenty of files that have msi in them when I do a search of my "c" drive. But I realize that not all of them are necessarily related to quicktime or iTunes.
    Any more ideas anyone?
    Thanks in advance for trying to help me figure this out!
    Stephanie

  • For-each loops

    while working in jbuilder2005 i want to use for-each loops i see following error;
    " for-each loops are not supported in -source 1.2 (try -source 1.5 to enable for-each loops) "
    i configured the jdk libraries source to jdk1.5 even then i found problem
    do any body know
    Message was edited by:
    citymodel

    What it says: Java 1.2 does not have for-each loops. You configured it to use 1.5, but you also configured the compiler to check for 1.2-code compliance. Read the JBuilder manual or help about how to find and change the setting. It's probably somewhere in the project settings.

  • Unable to set a new value in an extended property from within a For Each Loop

    Setting a new value in an extented property fails when the property is dereferenced within a For Each loop usin the item  iterator. However, if you use the First or Last Iterators from the Find Targets activity works fine.
    The error message is : "Setting a value for this object type is not allowed"
    I believe this is a defect, can you please confirm

    Looks like a bug that needs to be reported.
    While we are figuring out the issue you can work around the bug.
    Add another "Find Targets" inside the loop, and use the ID of the current item in the loop to find the target (again) by ID.
    And then use Set Variable on the target that was just found...
    I know... Not an ideal workaround, so please open a Severity 4 bug for this.

  • Compile error for 2.6.16.9

    I"m trying to compile my custom kernel 2.6.16.9 and I'm getting the following comile error:
    CC kernel/sched.o
    kernel/sched.c: In function 'sched_init':
    kernel/sched.c:6034: error: 'array' undeclared (first use in this function)
    kernel/sched.c:6034: error: (Each undeclared identifier is reported only once
    kernel/sched.c:6034: error: for each function it appears in.)
    kernel/sched.c:6034: error: 'struct runqueue' has no member named 'arrays'
    kernel/sched.c:6035: error: 'k' undeclared (first use in this function)
    make[1]: *** [kernel/sched.o] Error 1
    make: *** [kernel] Error 2
    I'm using the latest con kolivas patch with the kernel.  Any suggestions as to how to fix this?

    bostoniman wrote:Ok, I sort of feel like an idiot, but I cant seem to find 2.6.16 base on kernel.org.  It's been a while since I made my custom kernel, so am I ooking in the wrong place?  It  should just be on kernel.org, right?
    You were so close, it was just a few clicks away 
    It's in here: http://www.kernel.org/pub/linux/kernel/v2.6/

  • Split an XML File and invoke a Web Serivce for each splits using an  XSLT

    Hi,
    We Have a requirement to Split an incoming XML File into chunks based on a child element and hit the target Web Service for each and every split ( i.e no of splits = no of hits on WebService).
    Currently, the incoming XML file is getting splitted and gets appended to the SAME Payload and the WebService is hitted only once with the entire Payload.
    Is it possible to invoke a WebService within a XSLT ?
    Please find below the XSLT code used to split the file in chunks of 3
    <xsl:param name="pItemsNumber" select="3"/>
    <xsl:template match="@*|node()">
    <xsl:choose>
    <xsl:when test="count(Batch/Item) > 4">
    <ItemMaintenance>
    <xsl:for-each-group select="Batch/Item"
    group-adjacent="(position()-1) idiv $pItemsNumber">
    <xsl:result-document href="ItemsMatch\{current-grouping-key()}.xml">
    <ItemMaintenance>
    <xsl:copy-of select="current-group()"/>
    </ItemMaintenance>
    </xsl:result-document>
    </xsl:for-each-group>
    </ItemMaintenance>
    </xsl:when>
    <xsl:otherwise>
    <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>

    Hello,
    It is possible to invoke a webservice from XSLT. To achieve this you must create a custom XSLT function that does the actual webservice call. You need to write an implementation in Java for this. See my blogpost http://blog.melvinvdkuijl.nl/2010/02/custom-xslt-functions-in-oracle-soa-suite-11g/ for a simple example.
    Regards,
    Melvin

  • Retrieve partner for each item in VBPA

    Hi everyone.
    I have an issue due to the way SAP stores the data in VBPA.
    I explain : for each different partner (at item level), they only store one item in VBPA. It compress the data like they say in OSS note 380507.
    My problem is how can i retrieve all the items for a document ?
    Is there any FM for that ?
    exemple : in my diocument i have the following :
    posnr  -kunnr
    1------   123
    2------   123
    In VBPA, i will only find the first line. I need a solution to retrieve the second one.
    Thanks for your help.

    Hi
    If a partner is valid for all items of the document u can see only one hit in VBPA where the item has the value of the header => 000000
    Only if a partner is valid for a certain item you should find an hit for that item.
    So if you need to get all partners:
    TABLES VBAK.
    PARAMETERS: P_VBELN TYPE VBAK-VBELN.
    DATA: T_VBAP LIKE STANDARD TABLE OF VBAP WITH HEADER LINE,
               T_VBPA LIKE STANDARD TABLE OF VBPA WITH HEADER LINE.
    START-OF-SELECTION.
    * Get Items
    SELECT * FROM VBAP INTO TABLE T_VBAP WHERE VBELN = P_VBELN.
    * Get partners
    SELECT * FROM VBPA INTO TABLE T_VBPA WHERE VBELN = P_VBELN.
    LOOP AT T_VBPA.
    IF T_VBPA-POSNR = '000000'. "<--- It means is valid for all items
       LOOP AT T_VBAP.
          WRITE: / T_VBAP-POSNR, T_VBPA-PARVW, T_VBPA-KUNNR.
       ENDLOOP.
    ELSE.                                      <--- It means is valid for only certain items
       LOOP T_VBAP WHERE POSNR = T_VBPA-POSNR.
          WRITE: / T_VBAP-POSNR, T_VBPA-PARVW, T_VBPA-KUNNR.
       ENDLOOP.
    ENDIF.
    ENDLOOP.
    Max

  • Select count(*) for each row of a table

    Hello All,
    Following query gives a statistics for each user (how many items he owns, home many tickets authored, how many objects he is subscribed to etc...)
    select auser.userid,
    (select count(*) from item where owner like '%' || auser.id || '%') ITEM_OWNER_CNT,
    (select count(*) from tkt where originator = auser.id) TKT_ORIGINATE_CNT,
    (select count(*) from tkt where assigned_to = auser.id) TKT_QA_CNT,
    (select count(*) from tkt where create_user = auser.id) TKT_AUTHOR_CNT,
    (select count(*) from subscriptions where subscriber_id = auser.id) SUBSCRIPTION_CNT
    from
    user auser
    I was not happy with the performance of this query, so I tried the same using group by. The performance was even worse.
    Is there any other option for me to try? Please advice.
    Thanks,
    Sathish

    Hi, Sathish,
    As SBH said, a lot depends on your data. Please post some sample data (CREATE TABLE adn INSERT statemetns) for all tables, and the results you want from that data. Describe and give examples of any relationships that are not one-to-one..
    You probably want to do joings, like SBH suggested, rather than scalar sub-queries.
    The connection between the auser and item tables
    (select count(*) from item where owner like '%' || auser.id || '%') ITEM_OWNER_CNT,is very suspicious. Perhaps the item table is poorly designed, and the query would be faster if that table were changed. Is changing the design of the item table an option?
    You should be able to get all the information from the tkt table in one pass. It looks like you need to unpivot the data, so instead of one row per ticket (with 3 different people connected to it), there are 3 rows per ticket, each with only 1 person referenced. This is not necessarily a bad table design. Unpivoting, even more than most other things, depends on your database version, so you'll have to tell what version of Oracle you're using.

  • Need to access parent elements in nested for-each loop

    Hi All,
    I have a xslt mapping requirement in which I am completely stuck. The details are as listed below. Please help!
    Schema structure is as follows:
    Root
    Payload
    Transaction-123
    Loop-LINE
    Loop-SDPP
    Segment-FSTT
    Element-111
    Required xslt file structure is:
    <xsl:for-each Loop-LINE>
    <tns:Item>
    <Line-1000>
    <Line-2000>
    <Line-3000>
    <Line-8000>
    <xsl:for-each Loop-SDPP>
    <xsl:for-each Segment-FSTT[ns0:Element-111 != "A"]>
    <SDetails>
    </SDetails>
    <xsl:for-each Loop-LINE> --------- How to access Loop-LINE element from this for loop????
    <tns:Item>
    <2000>
    <2020>
    <2070>
    <2150>
    </tns:Item>
    </xsl:for-each>
    </for-each>
    </for-each>
    </tns:item>
    </for-each>
    Need help in understanding how can I run a for-each loop for Loop-LINE which is two levels up in the schema tree structure.
    Thanks..

    Thanks for this answer but I can't obtain the right output with my test case; the multi column must be in the loop as that :
    ALPHABETICAL INDEX C1
    Alternator .......................................... Feed Pump
    Belt Details / Engine Gaskets Sets ..... Flywheel Housing
    < NEW PAGE>
    INDEX ALPHABETIQUE C2
    Alternateur......................................... Culbuteurs
    Bloc-Cylindres.................................... Demarreur
    Denis

  • Sales order line item delete error for MTO sales order

    Dear Experts
    iam facing below error for MTO sales order line item deletion
    "For reasons of cost management, item 000040 cannot
    be deleted"
    Please help
    Regards,
    KEdar

    It looks you try to delete the sales order line item and you get this error message.
    Try to put reason for rejection for the line item and save the order. This is equal to deleting the line item.
    You can also refer the OSS note 14097 - Order item cannot be deleted/overwritten for further information.
    Regards,

  • Getting ZVAT Error for some items

    We are getting ZVAT errors for some QC number & line items..
    Please provide the cause.

    Hi,
    I hope you have created ZCST and ZVAT by copying JIN6 & JIN7. Also in V/06 against the above two
    condition types, ensure that "D" is assigned to Condition Class and Condition Category.
    Go to V/08, select your pricing procedure and check whether you could see any of the
    following condition types
    a) JCST or JIN1
    b) JLST or JIN2
    Subsequent to introduction of VAT system in India, both JIN1 & JIN2 were replaced with
    JIN6 & JIN7. May be, you would have copied JCST and JLST. Nevertheless, as I already mentioned,
    you should check in V/06 for Condition Class and Condition Category.
    follow this path -
    SPRO Logistics General - Tax on goods movement - India - Basic settings -
    Determination of Excise duty - Condition based excise determination -
    Assign tax code to company code.
    There maintain the tax code to company code. Also  mention the tax code for the above condition type in FV11.
    rgds
    Raj
    Edited by: RAJEEV SHARMA on Aug 20, 2010 5:53 PM

Maybe you are looking for

  • The difference between how PV is calculated if lag or delay is used in scheduling

    When scheduling tasks, it is possible to add lag from the predecessor (which is useful for an amount of time which must pass before the next task (paint drying, for example), or to add delay (task form\schedule\delay).  Delay seems to be useful for a

  • My ipad isnt disabling zoom. how to disable zoom?

    i browsed settings>general>accessibility>zoom & then tried to turn zoom off but i failed to do so. what's the solution?

  • Users in PORTAL30.WWSEC_PERSON$ ... forever?

    Hi, Anybody now ... Why when user is removed from Login Server / Admin User (portal30_sso schema) this is not deleted from Oracle Portal (portal30 schema)? Regards.

  • Console Java Program: Keyboard I/O Question

    Ok, I'm programming a cute Maze game in Java, you see. Now, I am coding the class that will take input from the user and feed it to my "game engine"..heeh I'm trying to use the InputStreamReader class to take input from console (keyboard). Problem is

  • MLR 11 patch

    Hi After installing MLR11 pathc, I am getting the below error while starting the server. opmnctl startall opmnctl: starting opmn and all managed processes... ================================================================================ opmn id=ess