Dear Sirs,
I installed NaturalONE CE 8.2 in my Windows 8 in the compatibility mode and it was all OK.
I created a new project MyTravel in agreement with the instructions of the Tutorial NaturalONE - How you set-up the NaturalONE project?
I followed steps below from 1 to the 24.
In the step 25, (You are now ready to run the program you wrote. In order to do so, right click MYTVLP01
and choose NaturalONE->Execute)
I choosed EXECUTE and I received the following message:
“NAT0082 Invalid Command or Object MYTRVLP1 do not exist in library” [b]
I would like you to inform why this message means because the object MYTRVLP1 exists in library MYTRVLIB.
(C:\Users\Erasmo\workspace824\MyTravel\Natural-Libraries\MYTRVLIB\SRC )
Please, see the PrintScreen .doc file attached.
Thanks a lot,
Erasmo Guimarães
55(11)98950-9952(Claro) - 55(11)4198-6705(Fixo)
erasmo_guimaraes@hotmail.com
-
Activate the NaturalONE perspective. In the Navigator view, click the right mouse button and choose:
New-> Natural Project. -
Type: „MyTravel“ in the text box labeled Project and then click the Finish button.
-
Notice that the new project you just defined appears in the Navigator view.
Click on the ‘+’ sign to the left of: MyTravel->natural-runtime(n) to see the contents of the new project. -
Notice the basic components of every NaturalONE Project that were created automatically.
Later on in the tutorial, you will see more new components, be sure not to delete any of the basic
components. -
Right-Click on the ‘-’ sign to the left of: MyTravel Project
->natural-runtime(n) and choose: New-> Natural Library. -
Type: „MYTRVLIB“ in the text box labeled Library and click the Finish button.
-
Click on the ‘+’ sign to the left of: Natural-Libraries
-
Notice the new library MYTRVLIB that you just created.
Click on the ‘+’ sign to the left of: MYTRVLIB and notice the three folders that were created: ERR, RES and SRC. -
In order to create a program: Right Click on SRC and choose: New->Program.
-
Type „MYTRVLP1“ in the box labeled Object Name and click Finish.
-
The Program MYTRLVP1 has been created and is now opened within the editor.
Notice the remarks at the beginning of the source.
Press Enter after the word here at the end of the line:
/* TODO: Enter your code here in order to insert a blank line. -
Press Ctrl+Space to get NaturalONE’s code assist to complete the command.
Type “DEF“ and choose DEFINE. Then press Enter.
13 Create one space after the word DEFINE and press Ctrl+Space. Then choose DATA and press Enter.
-
Repeat the same to choose Local.
-
Copy the following code on the next line following
DEFINE DATA LOCAL:
1 EMP VIEW OF EMPLOYEES
2 NAME
2 PERSONNEL-ID
END-DEFINE
READ (15) EMP BY NAME STARTING FROM ‘ADKINSON’
DISPLAY NAME PERSONNEL-ID
END-READ
-
You can see little red error markers to the left of your source code.
This is because you are referencing the Employeesfile in your code.
To resolve the reference, NaturalONE requires the existence of a DDM (Data Definition Module) in the
same Natural Library as our program.
We will copy that DDM from the Travel sample. For this the Travel Sample must be available.
If the Travelproject already exists in your Navigator view, you can directly skip to step 1.19.
If not then choose: Help Welcome. -
Click on Samples.
-
You now see a few samples that are available:
-
Click on: Travel approval application.
-
Close the Welcome tab, by clicking on the ’x’.
-
Select/Open the project Travel.
Then expand to: Travel->Natural-Libraries->Travel->SRC and locate EMPLOYEE.NSD(EMPLOYEES). -
Copy (or Drag & Drop) EMPLOYEE.NSD to MyTravel->Natural-Libraries->SRC.
-
Click on the ‘+’ sign to the left of Travel->natural-runtime(n) to collapse the Travel project.
-
Save the program you just wrote by clicking on the symbol in the toolbar.
-
You are now ready to run the program you wrote. In order to do so, right click MYTVLP01
and choose NaturalONE->Execute
Print Screen NAT0082.docx (191 KB)