Locking textboxes in a normal form

ramsay18477ramsay18477 Member Posts: 52
Hi !

I was writing some code for locking textboxes on 2 types of forms - a tab form and a non-tab form. Basically, I was making 'editable ' property false.

But, the textboxes get grayed out on the tab form but the same textboxes with the same code dont get grayed on the non-tab form.

Can someone pls explain me the reason for tbis and also provide a solution ?
Thanks & Best Regards,

Ram.

Answers

  • krikikriki Member, Moderator Posts: 9,110
    Are you sure you have used "Editable" and not "Enabled"? If you use "Enabled", you have this problem.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ramsay18477ramsay18477 Member Posts: 52
    Hey Kriki, thanks again!

    Iam positively using "Editable".

    Because as I also said earlier, my code is the same on both the forms and if Iam using "Enabled", the textboxes won't get grayed out on the tab form too, right ?

    Thanks again.
    Thanks & Best Regards,

    Ram.
  • krikikriki Member, Moderator Posts: 9,110
    :oops: Just found out I mixed up 2 things:
    -Greying out happens for non-editable textboxes.
    -And also the text becomes grey in case of a non-enabled textboxes.

    Well, they should grey out!

    And they grey out when changing application and turning back to Navision.

    I think you find a bug in Navision. I leave you the honour to report it to MS!

    I also found a solution:
    Immediately after putting Editable to false, put also this:
    CurrForm.VISIBLE(FALSE);
    CurrForm.VISIBLE(TRUE);
    CurrForm.ACTIVATE;
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ramsay18477ramsay18477 Member Posts: 52
    hey kriki,

    Thanx a lot again !!!

    Is it actually a bug ? If so, can you pls. tell me the procedure of reporting it to MS ?

    I'll probably report it after I clear my MB7-221 exam otherwise MS might fail me... ;)
    Thanks & Best Regards,

    Ram.
  • krikikriki Member, Moderator Posts: 9,110
    hey kriki,

    Thanx a lot again !!!

    Is it actually a bug ? If so, can you pls. tell me the procedure of reporting it to MS ?

    I'll probably report it after I clear my MB7-221 exam otherwise MS might fail me... ;)
    I think it it a bug. To help you I checked a way to report a bug (without opening a incident at MS. So I googled (maybe I should have used LiveSearch!) and found this one : http://www.oreillynet.com/mac/blog/2002/06/mission_impossible_submitting.html :whistle: :whistle: :whistle:
    I know they follow the forum, so I hope they just read this topic. [-o<
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ramsay18477ramsay18477 Member Posts: 52
    Thanx, Kriki.
    Thanks & Best Regards,

    Ram.
Sign In or Register to comment.