NetTalk Central

Author Topic: How to go from Login to a specified FramePage?  (Read 3517 times)

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
How to go from Login to a specified FramePage?
« on: June 29, 2009, 02:09:48 PM »
I have a situation where, depending on the type of user (eg staff or student) they get to see a different FramePage/IndexPage.

I can establish at login what type of user they are but the "URL on Save" is set at GenerateForm and there doesn't seem to be any way to conditionally jump to a choice of "URL on save".

I tried with an intermediate Source Code procedure but this cannot be used as a URL (no HTML page generated).

Anybody found a way round this?

TIA

Mike
Mike McLoughlin

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: How to go from Login to a specified FramePage?
« Reply #1 on: June 29, 2009, 04:14:46 PM »
Hi Mike,

Set the LoginForm url on save to 'Framepage', '_top'
Set the frame url to, for ex: loc:RightFrame
Identify the user type setting a sessin value and
In the FramePage proc, Procedure Code embed

  if p_web.gsv('your sv')=....
     loc:RightFrame = 'ThisPage'
  else
     loc:RightFrame  = 'ThisOtherPage'
 end

Hope this helps,
Alberto
-----------
Regards
Alberto

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: How to go from Login to a specified FramePage?
« Reply #2 on: June 30, 2009, 07:28:05 AM »
Thanks Alberto, but unfortunately that won't do it.

I need to do the conditional branch *before* the FramePage because I am calling a different Frameset and Frames.

regards

Mike
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to go from Login to a specified FramePage?
« Reply #3 on: July 01, 2009, 03:00:49 AM »
Hi Mike,

Make your "intermediate" page a netwebpage not a source procedure.

Or better yet, default to the most common frame. Then early in that frame procedure, before it does anything, jump to another frameset procedure if the session is logged in in a specific way.

Or even better, look in WebHandler for where the Frame is called, then make a decision there to override which frame procedure is called.

cheers
Bruce