ListFORM NonEditable other than Master Form !!

pskannaapskannaa Member Posts: 138
Hi,
I hav one small doubt regards Form NonEditable

..having Card Form & List Form. Initially CARD,LIST form is loaded, need to set LIST Form is EDITABLE(TRUE). When i call from CARD form to VIEW LIST(F5), need to show the LIST Form is EDITABLE(FALSE) and where ever i m calling the LIST Form it should be EDITABLE(FALSE).

Is there any property to set VIEWING LIST Form is EDITABLE(FALSE) otherwise EDITABLE(TRUE)

Suggestion Plz...

Regards,
Psk

Comments

  • kapamaroukapamarou Member Posts: 1,152
    It depends on how you call the form.

    You could try:
    CurrForm.EDITABLE(NOT CurrForm.LOOKUPMODE);
    

    on the OnOpenForm trigger..
  • pskannaapskannaa Member Posts: 138
    thanks, 1 more ques..

    how can i make noneditable fields in list form expect 1 field..

    i want to enter the value in one field in List, other all fields in list and card form should be noneditable
  • kapamaroukapamarou Member Posts: 1,152
    You'll need to make the form editable and change the property of each field... If you give a name to your control you can do this by code. But you'll need to explicitly set the property to each control...
  • matttraxmatttrax Member Posts: 2,309
    If you only want one field editable, but no others, you have to manually set each of those fields to non-editable. Setting the Form property overrides the field properties.
  • pskannaapskannaa Member Posts: 138
    Is there any option to get all current form fields one by one using looping...so that i can check the loop in particular control(field) which i do not want to editable and non editable..

    like...declare a variable as CONTROL and read all fields using loop and assigned to the var.

    if var.controlname <> 'No' then
    make non editable

    ....one of the programing logic is this....can we work out the same in NAV ?????
  • kapamaroukapamarou Member Posts: 1,152
    No. ](*,)
  • BeliasBelias Member Posts: 2,998
    but you can workaround if the fields that must be editable are less than the fields that mustn't be editable:
    put
    currform.editable(true);
    
    in the onactivate trigger of your field

    and this
    currform.editable(false);
    

    in the ondeactivate trigger of your field.
    obviously, put a
    currform. editable(false);
    

    in the onopen trigger of the form

    P.S.: thanks to tinorujis
    http://www.mibuso.com/forum/viewtopic.php?f=5&t=24881
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • pskannaapskannaa Member Posts: 138
    Yea...this logic is workout....Thanks buddy
Sign In or Register to comment.