Conditional Search on Start

How can I setup a conditional search on start? When the page is loaded, perform the following logic:

1) Check for the presence of a session variable
2) If present, go to the data view editForm1. If not present, search on start.

Would business rules be the place to look? If so, any syntax snippets (sql or c#), or links to docs that cover this scenario would be excellent.

Please Note: I am using SPA html approach (it is my understanding this may limit the options available for use of server side user controls).
1 person has
this question
+1
Reply
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

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

  • Thank you for offering this potential solution. Using the page class override method, I imagine I could check for the session variable as part of that logic, and then redirect to the url and associated parameters. This seems like it will satisfy the requirement to load editForm1, but it isn't clear to me how seach on start would be handled.

    1) It appears following bookmark "#advanced-search" is being generated automatically based on the data view configuration, however I cannot seem to bypass it. How would this be bypassed using a URL Parameter?
    /pages/clients#advanced-search

    2) Can the search on start property be referenced as a url parameter? If so, what is the syntax? I tested other pages that have data views that are not configured as "search on start", when I add #advanced-search to the url, this does not cause the search on start behavior to be triggered.

    Related Topics (may help others put the pieces together)
    Context Needed Reference Current Page and controllerName
    Redirect Page if Session Variable Null
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

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