1. Milton Jiménez
  2. PowerBuilder
  3. Wednesday, 9 August 2017 02:06 AM UTC

Hi, 

There is some solution for  Object pfc_n_cst_security.of_setcurity(graphicobject) /

support@appeon send :

For the classdefinition in pfc_n_cst_security.of_setsecurity(graphicobject), Please try the steps below:

 1 Set the values of all ancestor grapjiobjects's Tag to objectname.

    2.  Modify the script of of_setsecurity() as below:

    string ls_objname

    integer li_rc

    menu lm_menu

   userobject luo_object

    tab ltab_tab

 

// check arguments

If IsNull(ago_obj) or Not IsValid(ago_obj) Then Return False

 

// check if security was set

if not ib_initsecurity then return false

 

ls_objname = ago_obj.tag

 

IF of_LoadSecurity(ls_objname) < 1 then return false

 

il_numberofrows = ids_items.RowCount()

 

choose case ago_obj.typeof()

case menu!

lm_menu = ago_obj

of_setmenu(ls_objname, lm_menu)

case userobject!

luo_object = ago_obj

of_SetControlArray(ls_objname, luo_object.control, '')

case tab!

ltab_tab = ago_obj

of_SetControlArray(ls_objname, ltab_tab.control, '')

case datawindow!

of_setcontrolstatus ( ago_obj, ls_objname, '', '' )

case else

of_setcontrolstatus ( ago_obj, ls_objname, '', ls_objname )

end choose

 

return true

The menu is disabled 

 

Note:

If I use the Appeon / ACF_framework library object; The entire menu is disabled

Appeon Support Team Accepted Answer Pending Moderation
  1. Wednesday, 23 August 2017 05:39 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

Do you follow the steps we provide you? if the solution could solve your issue? if there is still the issue, please provide a simple PB case to us for more study, thanks.

You can also refer to article below to debug applciation.
http://support.appeon.com/index.php?/Knowledgebase/Article/View/59/10/the-approaches-to-debug-the-appeon-application

Regards,
ZhaoKai

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.