Can not see language option in tools menu & define ACTI

ufukufuk Member Posts: 514
Hi everyone,

I was getting an error while trying to change a caption in any form in ver 4.0. :

You have specified an unknown variable. ACTION. Define the variable under 'Global C/AL Symbols :-k

The relevant "action" is placed in the line.

IF FORM.RUNMODAL(0,StdTxt) = ACTION::LookupOK THEN
Text := StdTxt.Description;
EXIT(0);

I changed the codeunit 1 in which this line is placed. I copied it and save as 50001 then delete it. But now I can not rename it as codeunit 1 because of license permissions. Meanwhile after renaming codeunit 1, I can not see language options in tools menu.

Anyone has an idea of how to change the ID of the codeunit again or the ACTION error I mentioned above?

Best Regards

Ufuk
Ufuk Asci
Pargesoft

Comments

  • kinekine Member Posts: 12,562
    1) If you are NSC (you have developer license) - you can export the CU into text, change the no. of the CU and import it back. But before that you need import CU1 from cronus through .fob file to create the CU. The text import will overwrite it without problem than.

    2) May be that there is problem with some global variable. You cannot use Action as name of your variable. Check this. Action is special C/AL keyword.

    3) Be sure that you do not have field with name Action in your table which is used as Rec or in "With" statement...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ufukufuk Member Posts: 514
    1) Thank you very much. Importing the CU worked fine. :whistle:

    2-3) I did not declare any variable. It is the original state. I only wanted to rename a caption but got that warning. And I did not understand the relation between changing a caption and that code line in CU1. :-k Maybe a localisation error or a bug??
    Ufuk Asci
    Pargesoft
  • kinekine Member Posts: 12,562
    If it is localization error, then you will have problem everywhere with lookups...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ufukufuk Member Posts: 514
    I am not sure. But when I make that line a decription then I get a new codeunit error and so on..
    Ufuk Asci
    Pargesoft
  • kinekine Member Posts: 12,562
    hmmm... it seems for me strange... I think problem will be somewhere else...
    which version of Navision you are using? 4.00? 4.00 update 1? 4.00 ServicePack 1?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ufukufuk Member Posts: 514
    I am using 4.0. Meanwhile I have to say that I am an instructor in a CPLS.

    Have you ever tried to change a caption in G/L Account form in 4.0? Have you ever got any error like that?

    I am very new in development and so I think it is very hard to solve that problem without reinstalling the program. (if it works?)
    Ufuk Asci
    Pargesoft
  • kinekine Member Posts: 12,562
    Yes, it is working without problem.

    1) Try to do that on a new fresh cronus DB copied from install CD. Is it working or not?

    2) Try to do that with Navision 4.00 wiht update 1 (I think that you can download it on MIBUSO or you can ask Microsoft)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ufukufuk Member Posts: 514
    Thanks a lot.
    I tried using new database but I did not try to update Navision.

    Best Regards
    Ufuk Asci
    Pargesoft
  • ufukufuk Member Posts: 514
    Finally I solved the problem. \:D/

    Especially users from Turkey have to pay attention to the error mentioned above. Changing ACTION TO ACTİON and CODEUNIT to CODEUNİT in CU1 solves the problem.

    Ufuk
    Ufuk Asci
    Pargesoft
Sign In or Register to comment.