Can I refer to a specific dataview in a hyperlink?

7
Is it possible to send someone a hyperlink which redirects to a specific view on a specific object in a Mendix-application? For instance, the Mendix Incident application could mail me an update on an incident, and by clicking on the hyperlink I would be redirected to that specific incident. Ideally, the login credentials would be encrypted in the hyperlink as well.
asked
4 answers
4

I saw your comment Wouter,

I've used a 'workaround' when working with 2.4.0; it is possible to use microflow triggers on .mxf files. I did the following:

  • I have a theming with conditional loader
  • For some userroles, I want to execute a microflow (in this case, checking if their password needed to be changed)
  • On the forms (i.e. the actual .mxf forms) that were opened by the conditional loader I wrote a 'microflow trigger'
  • This will trigger the microflow as soon as the page is loaded, below is an example of how this trigger should look like:

    <div class="StartPage" style="padding:1px">
        <DIV dojoType="templatesystem.widget.MicroflowTrigger"
            actionname="Stamgegevens.OpenFormNewWachtwoord"
        >
        </DIV>
        <table width="916" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="360"  style="background-color:#FFFFFF;padding:4px">
                <table width="360" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img src="../ui/images/layout/startpage/mx_self_service.gif" /></td>
    

I hope this will help you, if you need more info please let us know!

answered
10

A direct link including login credentials is not possible right now. However, maybe the following solution can help you:

Define an association between a User and an Incident called startIncident (for example). Once an email is send to a user pointing at a specific Incident the association startIncident should be set between this incident and the User.

Since 2.4.3 you can define a microflow as 'startpage'. This microflow will be executed when a user logs in. In this microflow you can check if the startIncident association is set. If so, show a form with that incident, if not, show the default startpage.

answered
2

A deeplink module is available in the appstore now. (Mendix 2.5 only)

answered
1

Wouter,

this is not possible at the moment as far as I know. It is in general not possible to 'push' actions into a Mendix environment, logging in and opening a form falls into this category.

answered