Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use one view model in multiple views using oj.router

3126073Dec 4 2015 — edited Dec 5 2015

Hi All,

We've  a use case in which we have one form in 2 pages. We are using oj.router to route to correct views but now we need to have one view model associated with two view.

var router = oj.Router.rootInstance;

  router.configure({'login': {label: 'View Login', value: 'login',isDefault: true},

                    'registration': {label: 'Registration', value: 'registration'},

                    'registrationstep2': {label: 'Registration2', value: 'registration'},

                    'dashboard': {label: 'Dashboard', value: 'dashboard'}

                    });

In the code snippet above we are trying to use the same view model for registration and registrationstep2. The route /registeration is rendered correctly but when we click on a button bound with id registerationstep2 the url changes but the view does not.

Please help!

Thanks

Comments

gernot

Instance debugging (d0.sql) shows that HTTP header variable is found and its value is correct. But the sentry function still fails - see attachment
d2.txt (12.99 KB)Which additional conditions are checked in the sentry function (in HTTP header variable authentication scheme to login in APEX itself)?
(user exists and is open)
Thanks

user12097829

Hi,
I've the same problem here (using Apex 21.2 and Apex 22.1):
HTTP header variable is set by Apache and found by Apex. But the sentry function still fails.
Using the Oracle provided "HTTP header variable" authentication scheme, there's no possibility to specify a custom sentry function, but obviously there must be an internal sentry function.
Which additional conditions are checked in the internal sentry function?
Thanks

user12097829

Hi,
found a solution for my problem with "HTTP header variable":
Following several tutorials I had set "Verify Username" to "After Login" for my authentication scheme.
After changing setting "Verify Username" from "After Login" to "Each Request" everything works fine.
Thanks

1 - 3

Post Details

Added on Dec 4 2015
2 comments
816 views