Set a page to non editable at runtime

ta5ta5 Member Posts: 1,164
edited 2015-02-25 in NAV Three Tier
Hi
Is it possible, to set a page to non editable at runtime (2013R2)?
The actions for "New" and "Delete" should also not be present, if editable is set to false.
I have tried Currpage.Editable(false), but it did not work.
Thx in advance
Thomas

Comments

  • geordiegeordie Member Posts: 655
    • Set the Editable property to a boolean variable on all the group containers
    • Set the variable property IncludeInDataset to Yes
    • Evaluate the boolean upon a certain event and call the CurrPage.UPDATE function

    Daniele
  • ta5ta5 Member Posts: 1,164
    Hi Daniele
    Thx for answering. This works so far, but still the "New" and "Delete" Actions are visible. And why is Currpage.Editable not working?
    Any other ideas?
    Thomas
  • geordiegeordie Member Posts: 655
    "New" and "Delete" actions are linked to InsertAllowed and ModifyAllowed properties: if you set them to "No", these actions will disappear (but it's not possible to control their visibility in runtime).
    As far as I know with RTC client Currpage.EDITABLE cannot be used for handling editability (was perhaps introduced for backward compatibility :?: )
  • ta5ta5 Member Posts: 1,164
    Thx for your findings. This is identical to my own investigations. So I have to accept as it is :-k
    Regards
    Thomas
Sign In or Register to comment.