Skip to Main Content

Intelligent Advisor

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 get Current Screen name programmatically?

20goto10Aug 22 2019 — edited Aug 26 2019

I have set a custom property for the screen name in the interview:

pastedImage_0.png

I want to be able to retrieve this value in the onSubmit function, as on the next page I have a redirect button which has a dynamic URL:

OraclePolicyAutomation.AddExtension({

onSubmit: function(evt) {

    var curScreen = evt.interview.currentScreen; //Gives me no property I can examine for name

    var curScreenName = globalThis.getCurrentScreenId(); //Works in Chrome developer mode, feels dodgy but gives me the ID at least

    if(curScreenName.includes("PersonalDetails"))

    {

          var strURL = "[http://www.google.com.au](http://www.google.com.au/)";

          evt.interview.setInputValue("redirect\_url", strURL);

    }

}

});

(on next screen - the last of the interview)

pastedImage_0.png

Unfortunately this does not work. How can I get the name of the current screen (if it has been set?). I am on 19B and I think some functionality which returned the ID got removed since 19A (see my post here - please upvote!) so I'm trying to find a workaround.

Thanks for any help..

This post has been answered by Michael-OPA-Oracle on Aug 22 2019
Jump to Answer
Comments
Post Details
Added on Aug 22 2019
2 comments
379 views