Showing posts with label Self Practise Topics. Show all posts
Showing posts with label Self Practise Topics. Show all posts

Self Practise Topic 2

Self Practise Topic 2

Varibles & Datatypes Area

  1. 1)Create an Integer Item named mynum and store the value 100 and diplay the data in a Message Box when the page run.
  2. 2) Create a program to add two decimal numbers and display the result in a Message box when the object run.

Answers:

2.1)Here i am not specifying how to define a variable, i think you already understand how to define that from the previous post. Only diff is that you have to define the variable in the Datatype column as integer. 

The program code for display that was

----------------------------------------------------------- 

mynum := 5;

MESSAGE('The Value Of %1 Is %2', 'mynum', mynum);

-----------------------------------------------------------

2.2) For doing this you have todefine 2 variables as Decimal numbers.

Let us consider Num1 and Num2 , the result storing and display from the Result variable

the programming codes are as follows

----------------------------------------------------------

Num1 := 2;

Num2 := 7;

Result := Num1 + Num2;

MESSAGE('The Value Of %1 Is %2', 'Result', Result);

----------------------------------------------------------

The result will be 9

Self Practise

Self Practise Topic 1 

For opening the C/AL codes in different areas

  1. 1) How to open the C/AL code of Form No. 26 (Vendor Card)?
  2. 2) How to open the C/AL Code of Report No.3 (G/L Register)?
  3. 3) How to open the C/AL Code of XMLport 8002 (Item)?

Answer:

1.1) To do this you have to first open the object designer from the Tools->Object Designer or Press Shift+F12.

Then click on the Form option then select the form no 26.

Then click on the Design button.

Then press F9 to view the codes of the Vendor card.

1.2) To do this you have to first open the object designer from the Tools->Object Designer or Press Shift+F12.

Then click on the Report option then select the Report no 3.

Then click on the Design button.

Then press F9 to view the codes of the G/L Register.

1.3) To do this you have to first open the object designer from the Tools->Object Designer or Press Shift+F12.

Then click on the XMLport option then select the XMLport 8002.

Then click on the Design button.

Then press F9 to view the codes of the Item.

Related Posts with Thumbnails