Help get this topic noticed by sharing it on Twitter, Facebook, or email.

How do you set an entrance by variable value?

I want to use the same page for a variety of activities but I want the entrance to be different depending upon the end usage. I have tried creating 3 entrances and named them "Ent1, Ent2, Ent3" Then on the page itself for the entrance field I set it to a variable: $myEnt$.
On the macro calling the page I set $myEnt$ to a value of either "Ent1" or "Ent2" or "Ent3".
Why does this not work? As best as I can tell all three of the entrances are run instead of the one defined in my variable.
2 people have
this problem
+1
Reply
  • Can you email a backup of your project to support@iruleathome.com what you are describing should be working.

    We are aware of issues with entrances on Android devices that we are currently working on fixing.

    Scott
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • I was impatient so I went a different route and created 2 additional activities with their own entrances and otherwise identical pages.. Bottom line I don't have that configuration anymore but I could look in my backups to see if an old one exists with that configuration.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • I did the same thing as the author of this thread did and I'm having the same problems on iOS.

    What I've noticed is that if an entrance is not assigned to a page it will always run when entering an activity that defines the entrance. The only way I could get this to work was if I assigned all of the possible entrances to a page.

    Is this a known issue or am I missing a step?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • After speaking with our developers I found that the scenario you are explaining is by design of the system. If an entrance is not assigned it will run when anytime you enter that panel. By referencing the entrance to a page you will be able to use variables to change which entrance will perform.

    Scott
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • Hi Scott,

    Can you go into detail on the intended design of using variables to define an entrance for a page / panel?

    I'm confused because if I have to assign an entrance to a page it appears it will always run that entrance when navigating to the page I assigned the entrance to. My goal was to pick between 2 entrances when navigating to a panel which doesn't seem possible with the current design (please correct me if I'm wrong). If there was an option to disable running an unlinked entrance when entering a panel it would solve all of my problems.

    Thanks again for your help,
    Chris
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • I would like to add to Chris's input.
    I have a system which I have tried to use variables to control entrances but , as Scott has said, if an entrance is not assigned to a page when entering the Panel it will execute ALL the time when any page is selected along with the entrance to that page which causes problems and confusion..

    To get round this I have created a "dummy" page for each entrance not initially assigned to a page so that it is not executed elsewhere. However, that merely makes less pages available for the real stuff especially if say a page could use 2 or 3 entrances which are not specific - merely called up by a change in variable value.

    Would it not be more logical to make entrances always automatically Disabled until they are specifically assigned to a page or called up by a page??

    Peter
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • I guess conditionals could probably solve the original problem, but please do NOT change the way an unassigned entrance runs when entering the panel. This is a really useful feature and shouldn't be discarded to allow something else to work.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • I have a further question on this subject, so hope someone can reply without me having to create a new thread which is not really required. Anyway...

    When assigning an Entrance to a page using a variable, we have ascertained that if the variable is empty, the Entrance will be 'unreferenced' and hence run whenever entering that Panel. But, what if the variable contains a string that is NOT the name of any page in the Panel?

    I'm thinking it is probably the same as if it is empty, but would appreciate it if an iRule bod could chime in here with the correct answer.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited