Options

need help,how to fix this error

barubaru Member Posts: 27
After i 'm delete all rec in table and insert new rec for that table in code.
every time i go to next rec for the first time it show this message:
cannot modify in this form.
can anybody help me,plzz?

Comments

  • Options
    kinekine Member Posts: 12,562
    It depend on in which trigger you are doing this job and how you call this form and on his properties... please, more info...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    barubaru Member Posts: 27
    i create a form with table box and subform, table box and subform table source table is same,but only table view is diffrent.

    table FIELD is like this:
    1.code
    2.code2
    3.desc
    4.count

    example rec is like this:
    code code2 desc count
    C1 '' A 4
    C1 CA1 A1 3
    C1 CA2 A2 1
    C2 '' B 2
    C2 CB1 B1 2

    table box only show rec with code2=''. when currrec in the table box is C1 subform only view CA1,CA2 and so on.

    in this form i create textbox with option.
    when i change the option, i delete all the rec and insert new rec.
    the subform view the last rec that i before delete. then when i go to next rec it show this message:
    cannot modify in this form.
    after i ok then message .sub form view back to normal.
    sorry, if my explain is confusing :oops: .
  • Options
    KowaKowa Member Posts: 918
    baru wrote:
    cannot modify in this form.

    This error message usually appears if you try to modify a protected table such as item ledgers entries or G/L entries with a normal end-user licence.
    What licence are you using and what is the table ID ?
    Kai Kowalewski
  • Options
    kinekine Member Posts: 12,562
    Try to call CurrForm.UPDATE(False) in the subform when you are changing the data... (for example through some new function in the sub-form...)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    barubaru Member Posts: 27
    :mrgreen: Thx alot for u suggest, Kine. it solve the problem :mrgreen:
Sign In or Register to comment.