Announcement

Collapse
No announcement yet.

Possible problem with Empresa 5.21 and <mvt:assign> Can anyone explain this?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Possible problem with Empresa 5.21 and <mvt:assign> Can anyone explain this?

    Possible problem with Empresa 5.21 and <mvt:assign> Can anyone explain this?

    When I assign a value from an array to a variable, the value is not assigned.

    [code]<mvt:assign name="g.lineData" value="'1,USA,http://www.bentgate.com/all-products/browse/brand/voile/perpage/640,BentGate,graphics/00000001/bentgate_2.jpg;'" />

    <mvt:assign name="g.lineData" value="miva_array_deserialize(g.lineData)" />
    <mvt:assign name="g.ndx" value="g.lineDat[1]" />
    Why is g.ndx empty? g.ndx = <mvt:eval expr="g.ndx" /><br>

    g.lineData = <mvt:eval expr="g.lineData" /><br>
    g.lineData[1] = <mvt:eval expr="g.lineData[1]" /><br>
    g.lineData[2] = <mvt:eval expr="g.lineData[2]" /><br>
    g.lineData[3] = <mvt:eval expr="g.lineData[3]" /><br>
    g.lineData[4] = <mvt:eval expr="g.lineData[4]" /><br>
    g.lineData[5] = <mvt:eval expr="g.lineData[5]" /><br>[code]
    Ray Yates
    "If I have seen further, it is by standing on the shoulders of giants."
    --- Sir Isaac Newton

    #2
    Re: Possible problem with Empresa 5.21 and &lt;mvt:assign&gt; Can anyone explain this?

    Originally posted by RayYates View Post
    Possible problem with Empresa 5.21 and <mvt:assign> Can anyone explain this?

    When I assign a value from an array to a variable, the value is not assigned.

    <mvt:assign name="g.lineData" value="miva_array_deserialize(g.lineData)" />
    <mvt:assign name="g.ndx" value="g.lineDat[1]" />
    Your first line assigns the value to g.lineData but your second line is using g.lineDat (no "a" at the end).

    Comment

    Working...
    X