Quantcast
Channel: Mendix Forum Questions
Viewing all 83468 articles
Browse latest View live

Determine Total Count of Rows in Grid

$
0
0

We are trying to display the total record count in a grid (in addition to the count in the pagination control). Is there any way to get the current total of rows? We have been able to retrieve the count on page load with javascript but have been unable to find a way to determine when the displayed count has changed (after a search).

Any help is greatly appreciated.


Sprintr not working

$
0
0

Are there more users experiencing issues with the Sprintr environment? I'm only able to view the buzz but not the project environment.

EDIT 1: Mendix is already investigating: Investigating - We are currently experiencing performance issues with the Platform Portal. We're investigating the issue. 

EDIT 2: Seems to be solved. 

Access pagination parametes inside a microflow.

$
0
0

 

Hi,

 

I am using a web/REST service inside a microflow to get a "data grid" data, and to optimize data access I have parameters to limit the returned number of items.

How can I get the pagination parameters (like sort by, start at, limit to...etc) inside a data source microflow feeding a data grid widget?

 

Thanks

Data Grid column width adjuster that appears in each data grid functionality to be set off

$
0
0

Is there a way that the column width extender that appears by default on the application in each data grid can be turned off? My customers would like that the width of the column must not be adjustable by the users of the application.

 

Offline default values of attributes

$
0
0

Hi all,

I'm currently working on an offline inspection application. However, I have some troubles with creating new objects offline. I would like to have default values for several attributes (default values should be CurrentDateTime, Enumerations and boolean values). But these are not generated if I create an object offline. Anybody knows how to do this, or if this is yet possible in the offline profile? 

Thanks in advance!

Ward

Show only the objects that are not associated

$
0
0

Hello,

In my App I have 3 entities. These are: Users, Function and Commissions. New Users don't have a Commission and also no Function. When I add Users to a Commission, I assign a Function to these Users. I use a reference selector to select the users. I want to put a contraint on this reference selector like: You can only select the Users that are not already assigned to a Commission and a Function. Can somebody help me with creating this constraint for this reference selector?

How to automatically select a newly created record in a Datagrid?

$
0
0

When creating a new record in a datagrid, via button New, the new record gets created, but the datagrid does not change it's selected record to the newly created one. How can I make the datagrid automatically select the newly created record?

There is also a listen-to dataview beneath the datagrid which I expect to show the details of the newly created record. Attempting to make that work.

Undefined variable - error whilst trying to create a custom theme

$
0
0

So unfortunately my browser currently wont allow me to paste my screenshot.

Ive been testing out creating a custom theme. I created the base using the mendix theme designer and now i'm attempting to customize the styling using the test app Survey Builder.

its all been fairly successful so far however when i run the app it flashes an error first of all then runs fine. 

Error: Undefined Variable: "$tabs-border-color".
 on line 42 of C:\MendixApps\themetesting-main\deployment\web\styles\sass\custom\components\_tabcontainer.scss

from line 18 of C:MendixAppsthemetesting-mainPploymentwebstylessass ustom ustom.scss

37: @import "pagetemplates/responsive/page-tabs";
38:@import "pagetemplates/responsive/page-website";
​39:@import "pagetemplates/responsive/page-wizard";

 

It goes on but i'm not going to type it all out at this point. I assume this was to do with me trying to create "tab-pills". Please bear with me as i'm still learning how to customize the styling. I'm using Koala to compile.

 

Christina


How to create data in database available for other sessions before transaction is finished in mendix 5.13.1

$
0
0

I have the following problem in Mendix 5.13.1:

I have to do a fraud check using a asynchronious webservice as a part of a bigger transaction.
But there is a problem that sometimes the answer of the asynchronious webservice arrives before the transaction is finished.

Before calling the (consumed)webservice a record is created with a reference-key that is passed to the webservice.
The transaction is not finished at this moment so this goes on.

In the published webservice, that handles the reply of the fraud check, the record created with the reference-key is retrieved and the result is added to this record.

Problem: When the transaction where the webservice is called is not yet finished when the published webservice is called the record with the reference-key is not yet available in the database.

Using the java-actions EndTransaction / StartTransaction of community-commons is not an option because i only want to save the record with the reference-key to the database. All other changes have to be roll-backed when the transaction fails.

I tried to solve this by backporting the commitInSeparateDatabaseTransaction of a later version of community-commons (which is not available for mendix 5.13.1). Just before calling the webservice the newly created record with the reference-key is saved using commitInSeparateDatabaseTransaction.

I tested this by using the debugger and stopped processing after the webservice is called to prevent ending the transaction.
But when the published webservice is called the record with the reference-key is not available in the database.

Any ideas how this problem can be solved?

 

 

SSource of backported CommitIn SeparateDatabaseTransaction for mendix 5.13.1:

public class commitInSeparateDatabaseTransaction extends CustomJavaAction<Boolean>
{
 private IMendixObject mxObject;

 public commitInSeparateDatabaseTransaction(IContext context, IMendixObject mxObject)
 {
  super(context);
  this.mxObject = mxObject;
 }

 @Override
 public Boolean executeAction() throws Exception
 {
  // BEGIN USER CODE
  ISession session = getContext().getSession();
  IContext newContext = session.createContext();
  Core.commit(newContext, mxObject);
  newContext.endTransaction();
  return true;
  // END USER CODE
 }

 /**
  * Returns a string representation of this action
  */
 @Override
 public String toString()
 {
  return "commitInSeparateDatabaseTransaction";
 }

 // BEGIN EXTRA CODE
 // END EXTRA CODE
}

 

 

 

Adding/changing HTML attributes of images?

$
0
0

Hi

I'm trying to make some accessibility improvements to a set of apps. One change we need to make is add our company name to the 'alt' attribute of the image in the HTML markup, however I can't find a way to control this from the modeler.

Does anyone know how to add/change HTML attributes in the modeler?

Cheers

Offline capable widgets

$
0
0

Hi all,

I have a question regarding the offline capabilities of widgets. The "Creating offline mobile apps with Mendix" presentation from July 29th 2016 from Mendix tells us that you can add a single statement to a widget to make it offline capable: 

But not all widgets are currently supported to have this function switched on. So my question is; how do I know if a certain widget is able to be Offline capable? 

For example the Document Viewer widget (https://appstore.home.mendix.com/link/app/12/).

Thanks in advance,

Ward Brink

Widget error on running app localy

$
0
0

When running our app localy, we recieve first a message about outdated widgets. this directs to tools->check widgets. When starting that function it generates a internal

 

error. Does anybody know about this error and how to fix it?

fisrt message

 

Second message;

Thanx in advance for your help.

 

and ow yes... i am a noob...

Widget development with Webpack and React

$
0
0

Hi,

At Finaps we have developed a new development environment to create Mendix widgets which include libraries like React. It is actually an adaptation of a NPM, Webpack, and Babel toolchain, so you can easy include any NPM package and target (very) old browsers like for instance IE 9. This new toolchain works for any Mendix version which we've tested (that is Mx 6 and 7) and is future-proof.

This isn't actually a question, we just want to share this with the community because we are really excited about the new possibilities for widget development! It is really cool to be able to use technologies like React, Plotly, and Material Design components. The boilerplate, with an explanation on how it works, can be found for free (open-source license) at:

https://github.com/Finaps/boilerplate-mendix-react-widget

Have fun developing widgets! We really like to hear your experience with widget development :)

How to get random enumeration value

$
0
0

In microflow value expression, how can I retreive a random enumeration. I have an enumeration called colors and I want to pick a random one.

Android app splashscreens, generated config.xml seems to be wrong

$
0
0

We want to show our own splashscreens in our app. We nicely created all the different splashscreens but still the default splashscreen was shown.

I noticed the config.xml has lines like:

<splash src="res/android/screen-ldpi-landscape.png" qualifier="land-ldpi"/>

All the references I found online did not have the qualifier attribute but a density, so I changed them all to density resulting in the following lines:

<splash src="res/android/screen-ldpi-landscape.png" density="land-ldpi"/>

After this change all the splashscreens were shown correctly.

We are rather new to the app building process, do we need to configure some extra information to generate this correctly?  

 


GIT repo for Application from modeller

$
0
0

HI there,

 

 looking at https://docs.mendix.com/howto/collaboration-project-management/starting-your-own-repository it *Seems* to be possible to use GIT(hub) for the repository for the modeller, but doesn't matter what I've tried today, I couldn't get it uploading/populating a fresh new repo.

The only conclusion I've got, is that the boiler plate template, is for a widget only, but trying that, it complained about missing .mpr file.

Reason I'm looking for non-teamserver, is the ability to have webhooks from github/bitbucket/gitlab on commits to track/etc. in slack/mattermost/hipchat/etc. that teamserver doesn't have

Countdown Widget

$
0
0

Hi,

I'm using the countdown widget and getting NaN as all the parameters in Safari.  On Chrome, it works fine and the countdown works.  Anyone seen this before?

Feature request: Push notification to a user

$
0
0

To my opinion now with HTML 5 this feature is something that should be in Mendix out of the box or solved with a widget. It would be so nice to not only have the activity type ‘show notification’ but also the type ‘push notification’ to a user object.

Appronto has offcourse it’s chat widget where notification can be pushed. Couple of drawbacks: it’s not free, they use a polling mechanism instead of websockets and you have to make user sessions persistent which influence according to the documentation the performance of the application (Would be nice it gave some more explanation about the impact, because I now have no clue what so ever about the impact when I flick this option from false to true).

There are some nice third parties with push notification frameworks:

https://www.parse.com/

https://pusher.com/

These look easily to implement in a Mendix application (most have rest webservices to work with). Problem is off course privacy. The messages go to an external party and I do not think most companies would like that.

Then we have some frameworks that can be incorporated inside Mendix:

http://vertx.io/

https://github.com/Atmosphere/atmosphere/wiki

http://www.strathweb.com/2012/05/native-html5-push-notifications-with-asp-net-web-api-and-knockout-js/

https://github.com/phonegap-build/PushPlugin

The first and the last are looking promising. Because I would like to be able to push to the app on a phone and not only to the web browser the user is using. Anybody already tackled this problem or has some more frameworks he would like to share? It would be nice (until Mendix provides this out of the box or with a widget :) ) if the post could be a nice entry into the world of push notifications.

Regards,

Ronald

[EDIT]

Google just released also something interesting: http://blog.chromium.org/2015/03/chrome-42-beta-push-notifications_12.html More info about Google Cloud Messaging https://developer.android.com/google/gcm/gcm.html Very interesting to push updates and keep the messages themselves on the Mendix server.

Getting java.lang.ClassCastException when included WS username token in custom request header while calling a consumed Webservice of some 3rd party.

$
0
0

Soap envelope generated by mendix is as below

 

Soap request that worked fine in Soap UI

 

 

It said like 

com.sun.xml.ws.message.saaj.SAAJHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

Could you please tell what should I do to get rid of these errors?

Connectionerror and internal server error

$
0
0

>Internal Server and Connection error occured 

>Tab{1} contains validation errors but  is invisible

Viewing all 83468 articles
Browse latest View live


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