Questions and Verified Answers| Already Graded A
How do you show multiple specialized entities in the same list view? -
ANSWER -By adding a template for every specialized entity while
using the default for the generalized entity.
What do you need to do after an Object type decision? - ANSWER -
Cast to entity to the correct specialization.
What should you do if the Object type decision is empty? - ANSWER -
Create a log message, since this is unexpected behavior.
Why should you use inheritence? - ANSWER -It allows you to make
reusable microflow, which increases the consistency and maintainability
of your app.
when should you use a 1-1 association over inheritance? - ANSWER -
when the entity in question isn't a true specialization of the generalized
entity and/or the generalized entity's properties are not required when
dealing with the entity in question.
Why is creating a new entity and making it a specialization of the
FileDocument or Image entity preferred over using original entities? -
ANSWER -The original entities are part of the System module, which
makes them ineditable.
What indicates ownership over an association. - ANSWER -A dot on
that entity's side of the association.
, What is the main downside of a 'many to many' association - ANSWER
-It uses a lot more memory that other associations.
What is an index? - ANSWER -An extra table for a given entity in the
database with ID's and a specified attribute(s) in a sorted order which
allows for faster queries.
When do you use an index? - ANSWER -On entities with a lot of
objects that are read more than written and on the most searched
attributes, that also have many possibilities.
What is the downside of an index? - ANSWER -every time an object is
added, the entire index table needs to be updated, which can potentially
cause performance issues.
What are the 4 stages of a domain model restructering? - ANSWER -1.
extend your domain model
2. model the data conversion
3. deploy the new model and convert the data.
4. clean up the model.
What does the expression [reversed ()] do? - ANSWER -it tells mendix
to reverse the direction in which a association is read.
What does localization on a datetime attribute do? - ANSWER -It
changes the datetime value to the time zone of the user when used or
viewed. The value is still stored on UTC time.
When should you turn localization off? - ANSWER -when time offset
is irrelevant
, What is the Mendix Client? - ANSWER -The Client runs in your
browser and renders the front-end of your application. it makes use of
HTML, CSS and JavaScript. It talks with Mendix Runtime and stores
local objects within a session.
What is mendix runtime? - ANSWER -This is the application server
that provides the Runtime environment of your apps and executes any
logic defined in the application model. it talks with both the mendix
client and the database server.
What is the Database server? - ANSWER -Any form of database that is
supported by mendix. stores all data from your app and is structured
based on the domain models. it talks with mendix runtime.
what type of resource are pages, stylesheets and images in mendix? -
ANSWER -Static resources
Why would you choose database over Xpath as a data source for a list
view? - ANSWER -Constrains are easier to specify and are less resource
intensive, furthermore they can be used by offline mobile apps.
How do you analyze SQL Queries in Mendix. - ANSWER -By setting
the log level on ConnectionBus_Retrieve to Trace and checking the
console logs.
What is the difference between an association and database retrieve? -
ANSWER -A association retrieve will first check in memory which can
contain uncommited changes, while a database retrieve directly checks
the database, skipping uncommited changes.