Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80973

get parameter from action calling

$
0
0

Hi there! I'm new in mendix, so don't judge too hard.

what I need:
- from client side call microflow that will will return list of objects with selection parameters
what I do:
- created microflow with parameter - parameterName
- calling action from client in such way

mx.data.action({
    params: {
        applyto: "set",
        actionname: "MyFirstModule.MicroflowName",
        xpath: "//MyFirstModule.EnetityName",
        constraints: '[parameterName="parameterValue"]',
        sort: [["parameterName", "asc"]],
    },
    origin: this.mxform,
    callback: function(obj) {
        console.log('got list', obj);
    },
    error: function(error) {
        console.log('got error', error);
    }
});

- in microflow created parameter with parameterName and type string and passing it to Action with type Retrieve Objects

['parameterName' = $parameterName]

- also tried before Retrieve Objects Create Variable, where will store parameterName

My problem:
- parameter that I'm trying to retrieve is empty

My question:
- where I'm wrong


Viewing all articles
Browse latest Browse all 80973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>