PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Query is marked as read-only

When I open a query, it says it's marked as read-only and the Save button is disabled. Upon checking on the code, it's checking for the CheckQueryObjectSecurity. Anyone knows how this can be avoided? Below is the code I found.


&gsQueryName = QRYSELECT_WRK.QRYNAME;

&gbReadOnly = False;

If QRYSELECT_WRK.QRYOWNERTRANS = "U" Then

  &gbIsPublic = True;

  &nResult = %Session.CheckQueryObjectSecurity(&gsQueryName);

  If &nResult = 1 Then

   MessageBox(%MsgStyle_OK, "", 139, 215, "###This query is marked as read-only. The save button has been disabled.");

   &gbReadOnly = True;

  Else

   If &nResult = 2 Then

     MessageBox(%MsgStyle_OK, "", 12, 2, "###You are not authorized to access the definition %1.", &gsQueryName);

     Return;

   End-If;

  End-If;

Else

  &gbIsPublic = False;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center