document.body.ondragstart = "return false";document.body.onselectstart = "return false"; microsoft dynamics ax interview questions: 2010

Sunday, December 5, 2010

10. Explain the record level security on ListView, TreeView, or Table form control?

The following code example illustrates the use of the same ListView with
record-level security enabled:
public void run
{
CustTable custTable;
;
super();
// Ensure that RLS is used.
custTable.recordLevelSecurity(true);
while select custTable
{
listView.add(custTable.name);
}
}

9. Explain the record level security on display and edit methods?


When using a display or edit method, consider using record-level security if a
value is returned from another row. However, record-level security is not
required in these situations:
If the value is derived.
If the value is based only on fields in the current record

8. when do we use record level security ?


These situations are
the following:
1) Using the display and edit methods.
2) Using ListView, TreeView, or a Table control to show data.
3) Using a temporary table as a data source.

5. How is the CAS useful to write secure x++ code?


1)It verifies that the code asserted the appropriate permission on the
call stack to use the dangerous class.
2)It verifies that the assert (the request to use the dangerous class) was
executed in trusted code and saved in the AOT.
3)It verifies that the assert was executed on the same tier as the
dangerous class.

4. what is a CAS?


Code Access Security allows developers to protect
dangerous APIs from being invoked by un-trusted code (code that does not
originate from the Application Object Tree)

3. what is a parm id?and uses?


Used to traverse within the param table

2. what is a parm table?and uses?

Microsoft Dynamics AX uses Parm tables to store what will be
updated. This allows the user to view and modify what will be updated without
affecting the original order. It also enables the update to be processed by the
batch system

1. what is the use of InItFrom method()?


                   To initialize fields in one table from another table

how do you call an enum value in x++?


Enumname::enumvalue