Hi All
I want to Put the Customer Card Page Editable as the User Rights. I Put the Editable "False" on the OnOpen Trigger of the Page.
Then I Create the Menu Button and After Press the Menu Button System Check Whether User has Permission or Not, If the User has Permission the Page Will be in Editable Mode Otherwise display the Error. I Made this Functionality for Classic Customer Card Form It's Working Fine bur in RTC It's not Working...Please Help me..
0
Comments
Did you try by transforming the form using transformation tool or manually transforming?
can you show us the logic and code written in page?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Maybe it's a solution for you to set the editable property based on the user setup while opening the page.
EDIT: sorry i thought about it again, this is wrong! this only applies to the visible property!
If you use a boolean variable with InDataSet = True and set that boolean on an action to True then your field will be enabled on the fly
This might be because that conflicts with the RunFormMode settings of the page.
However you can instead (as said in the previous post) control the Editable property of the various FastTabs or individual fields.
NAV Developer
check contact card and change the Type to person to company and company to person..you will get an idea..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
As I mentioned above..in contact card..if you selct Type= Person...Company No. field editable is set to true at run time..
If you select type = company...company no. is editable is set to false..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
|To-Increase|
rather than creating a menu button..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
|To-Increase|
Actually I want to Editable Whole page during Runtime...I Write Code "Currpage.EDITABLE := FALSE;" on onopen Trigger..and after that I write Code on OnAction Trigger of my Menu Button For User Right....This Functionality Works Perfect in Classic and I also try to Transform the Form through Transformation Tool but Atfet Transform the RTC page is not Working...
that issue is solved by declaring a global variable e.g. PageEditable (type boolean). Set that variable as value to Page property Editable (or visible). that variable can be changed during runtime. so write needed code into page trigger onopenpage, e.g. PageEditable := User.HasTheRightToEdit, where HasTheRightToEdit is a new field in table user.
Also possible: work with page property permission or change the permission sets for that issue.
follow https://msdynamicsnavashwinitripathi.wordpress.com/2015/08/05/accessbypermission-property-in-navision-2015/
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/