History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-4793
Type: Improvement Improvement
Status: Verified Verified
Resolution: Fixed
Priority: P1 P1
Assignee: Mamye Kratt
Reporter: Pablo Kang
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Using clonenumber emits warning when using replicator

Created: 26/Sep/07 01:10 PM   Updated: 10/Oct/07 05:45 AM
Component/s: Debugger warnings
Affects Version/s: 4.0.5WaffleCone
Fix Version/s: RingDing, 4.0.6/Jujube

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 6,730
Runtime: N/A
Fix in hand: False


 Description  « Hide
A "reference to undefined property 'clonenumber'" debugger warning is displayed when using replicators and trying to access clonenumber.

Test case:
<canvas debug="true" bgcolor="silver">

    <dataset name="searchdataset">
      <product name="vanilla" color="1 white"/>
      <product name="chocolate" color="2 brown"/>
      <product name="strawberry" color="3 red"/>
      <product name="pistachio" color="4 green"/>
      <product name="pumpkin" color="5 orange"/>
      <product name="mango" color="6 yellow"/>
      <product name="peppermint" color="7 pink"/>
      <product name="chocolate chip" color="8 white and black"/>
      <product name="coffee" color="9 coffee"/>
      <product name="green tea" color="10 light green"/>
    </dataset>

    <simplelayout/>
    <replicator dataset="searchdataset" xpath="/product">
        <view bgcolor="${this.clonenumber%2 ? 0XFFFFFF : 0XEAEAEA}"
              width="400" height="20">
            <text datapath="@name"/>
        </view>
    </replicator>
</canvas>


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
P T Withington - 26/Sep/07 02:34 PM
This is a candidate for inclusion in jujube.

P T Withington - 27/Sep/07 05:22 AM
r6640 | ptw | 2007-09-27 08:20:32 -0400 (Thu, 27 Sep 2007) | 16 lines
Changed paths:
   M /openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs

Change 20070926-ptw-p by ptw@dueling-banjos.local on 2007-09-26 17:30:12 EDT
    in /Users/ptw/OpenLaszlo/ringding
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Declare clonenumber

Bugs Fixed:
LPP-4793 'Using clonenumber emits warning when using replicator'

Technical Reviewer: hminsky (pending)
QA Reviewer: pablo (Message-ID: <Pine.OSX.4.64.0709261631480.11512@pkang-mac.local>)

Tests:
    Bug test case no longer gives a warning

Amy Muntz - 04/Oct/07 06:32 AM
Tucker - please merge fix to wafflecone for Jujube per request.

Amy Muntz - 04/Oct/07 06:33 AM
Reopening for merge to wafflecone (jujube).

P T Withington - 04/Oct/07 05:07 PM
r6730 | ptw | 2007-10-04 17:05:22 -0700 (Thu, 04 Oct 2007) | 15 lines
Changed paths:
   M /openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/core/LzNode.lzs

Change 20071004-ptw-Y by ptw@dueling-banjos.local on 2007-10-04 17:02:35 PDT
    in /Users/ptw/OpenLaszlo/jujube
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Declare clonenumber

Bugs Fixed:
LPP-4793 'Using clonenumber emits warning when using replicator'

Technical Reviewer: max (over shoulder)

Tests:
    Bug test case no longer gives a warning


Steve O'Sullivan - 05/Oct/07 04:26 PM
This is verified as per Lorien Henry-Wilkins.

P T Withington - 10/Oct/07 05:45 AM
Fixed in 4.0.6