Explore the community Forums Lectora Lectora Suggestions VAR(Assesment_Score)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #350160 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    67 pts
    @mnotermans5114

    Working on a title in Lectora 16.2.2 i notice this behaviour.

    I have several assesments/tests in a title.

    -Assesment1
    -Assesment2
    -Assesment3

    At some point i show the score(s) achieved in those assesments by calling the variable(s).
    – ChangeContents -> Set Text -> Var(Assesment1_Score)

    This all works perfect.
    If i now change the title of any of my assesments… eg.
    -Assesment1
    -Assesment2A
    -Assesment3
    The variables change along accordingly…almost everything internally changes along with the namechange of my test.. except……

    My ChangeContents action… i have to walk through the title and manually replace everywhere i used Var(Assesment2_Score) to Var(Assesment2A_Score)

    So i am not sure whether this is still the same in Lectora 17. But wouldn’t it be nice if any action calling a specific variable would change too automatically when changing that….

    Regards,
    Math

    #350466 Score: 0
    Profile photo of Jennifer Valley
    Jennifer Valley
    Moderator
    contributor
    beginner
    friend finder
    advanced
    lectora beginner
    verified member
    wise owl
    profile
    picture perfect
    curious george
    100 pts
    @jvalley4735

    I’ve brought your suggestion to the development teams attention.  Thanks!

    #362551 Score: 1
    Profile photo of Daryl Fleary
    Daryl Fleary
    Moderator
    beginner
    intermediate
    advanced
    friend finder
    LUC16
    LUC16 Attendee
    contributor
    wise owl
    verified member
    17 pts
    @dfleary

    The reason this occurs is that when we introduced the convenience of in-line variable replacement – so that you can put a variable into a text string, such as “Hello, VAR(Name)”  – Lectora/Lectora Online view that information as plain text, until the title is run. At that time it recognizes it as a variable because of the VAR() syntax. So when you are editing and change the name of your variable, Lectora/Lectora Online does not see that as a variable yet and therefore does not change it.

    You are using: ChangeContents -> Target Text block,  Value -> Set Text,  Text -> Var(Assesment1_Score)

    If you use: ChangeContents -> Target Text block,  Value -> Var(Assesment1_Score)

    … (not “Set Text”) you’ll be okay when the variable name changes.

    This post has received 1 vote up.
    #362577 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    67 pts
    @mnotermans5114

    Nice one Daryl. Thx 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.