Skip to Main Content

APEX

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!

apex.message namespace - apex.message.clearErrors

Prashanth Raju-OracleOct 17 2018 — edited Oct 17 2018

Hi,

I am using APEX 18.1. For one of my business requirement I have used apex.message.showErrors to display the errror message inline to the item. Here is the sample code

apex.message.showErrors([

    {

        type:       "error",

        location:   [ "inline" ],

        pageItem:   "PXXX_ITEM_NAME",

        message:    "Error Message here.",

        unsafe:     false

    }

]);

Above error message is shown based on the condition. If the condition is not satisfied then I have to clear this error message for this item. I am doing it by apex.message.clearErrors. But the issue is this function clears all the errors currently displayed on the page items. Is there any API to clear only message for a specified item?

From the documentation https://docs.oracle.com/database/apex-18.1/AEXJS/apex.message.html#.showErrors I only see the apex.message.clearErrors API.

Thanks,

Prashanth

This post has been answered by Pierre Yotti on Oct 17 2018
Jump to Answer
Comments
Post Details
Added on Oct 17 2018
2 comments
3,994 views