Show objects for current user

0
hello all!   I am somewhat new to the Mendix platform, so here is my problem: I have a form witch can be filled in by a client many times. Everytime the form is filled in, i want the created object and the other objects who are created by the current user, to show on a overview page.   What would be the best aproach to achieve this?   many thanks in advance  
asked
5 answers
0

Hi Jasper,

 

if u are trying to add xpath constraint in entity level do this:

 

  1. First check the store owner checkbox in entity 
  2. Then xpath constraint will be [System.owner='[%CurrentUser%]']

 

 

answered
0

Hi Jasper,

 

You would have created 1 association which maps your entity with account entity . you can use that associaton to retrieve the objects created by current user.

 

Consider your entity is Project and conside your have association with account entity as Project_Account .

 

[Project.Project_Account = $currentUser]

 

The above xpath condition will give current user objects.

answered
0

Hello Jasper, 

i think you want to store owner who created the object. is it correct?

if yes, you can use domain model default option-

 

answered
0

 

Domain mobdel

error message

domainmodel

I want to show al the windows who are submitted by the currentuser. Everytime the app is initiated i create a person. 

answered
0

Hi Jasper,

 

Adding to the above answer, You could also add on a page level in datagrid or List xpath [System.owner = '[%CurrentUser%]'] to show the records related to the owner. 

answered