Announcement

Collapse
No announcement yet.

Trying to create a substring variable. help please.

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

    Trying to create a substring variable. help please.

    Hello forum:
    This:
    <mvt:assign name="l.substring" value="substring(g.Basket:basket_id,'2','3')" />
    doesn't work for me.
    What am I doing wrong?
    Thanks, Larry
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en



    #2
    What isn't working? If it is that you can display the output, then you need to change l.substring to l.settings:substring, which will allow for display via the &mvt:substring; entity. If your desired output isn't right, need some context to diagnose.

    Comment


      #3
      When I attempt to display the substring result like this: &mvt:local:substring; I get nothing. I don't know if the mvt:assign statement is wrong or if the display of the substring is incorrect.
      ​I'll try the l.settings:substring change you suggested later this morning, got to go to class now.
      Larry
      Larry
      Luce Kanun Web Design
      www.facebook.com/wajake41
      www.plus.google.com/116415026668025242914/posts?hl=en


      Comment


        #4
        Code:
        <mvt:assign name="l.settings:substring" value="substring(g.Basket:basket_id,'2','3')" />
        &mvt:substring;

        Comment


          #5
          Thanks Dan. It's fixed now.
          Larry
          Luce Kanun Web Design
          www.facebook.com/wajake41
          www.plus.google.com/116415026668025242914/posts?hl=en


          Comment

          Working...
          X