Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I display a welcome message to the current user, such as “Welcome Jeremy”?

display message user welcome
0
Posted

How do I display a welcome message to the current user, such as “Welcome Jeremy”?

0

The default greeting for a user’s default (home) page is “Welcome ” followed by the display name of the page. If you customize the page banner to change the greeting or to define a greeting image, you suppress the default greeting. Adding a welcome component to the banner is planned for a future release. In the meantime, you can create a dynamic page that displays a greeting. You won’t be able to put the greeting in the banner, but you can add the dynamic page as a portlet at an appropriate place on the page. Here’s some sample code for a dynamic page to get you started: Welcome User declare theUser varchar2(30) := portal30.WWCTX_API.get_user; begin if theUser = ‘PUBLIC’ then htp.p(‘

Welcome! Please login.

‘); else htp.p(‘

Welcome ‘ || theUser || ‘

‘); end if; exception when portal30.WWCTX_API.NO_SESSION_EXCEPTION then htp.p(‘Error: Session not initiated.’); when others then null; end;
What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123