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

CSS: Create class for specific input button

$
0
0
Hi, I have an referenceSelector-Widget and want to change the background-color of the input field to white. In the custom.css file I used following css-code: input.form-control {background-color: white !important;} Which worked perfectly, but I want to use this for one specific widget. Therefore I have selected the referenceSelector widget in the Mendix Modeller and written down “custom” as a class under the property “Common → Class”.  Afterwards I tried following css codes and none of them worked: input.form-control.custom {background-color: white !important;} input.form-control custom {background-color: white !important;} input.form-control, custom {background-color: white !important;} custom.input.form-control {background-color: white !important;} input.form-control>custom {background-color: white !important;}   Can anyone help? :)

Collaborative development roles

$
0
0
It seems that there is a need for business developer role that can use the Web Modeler but not the Desktop Modeler. With the changes just released in 7.23.3 I can enable a branch line for the Web Modeler and then manage the changes made by users using the Web Modeler (merge or revert in source control), but given that a user has to have the Develop right in order to be able to use the Web Modeler they could just download the Desktop Modeler and merge the changes themselves? Is this possible and I’m just missing it?

user in multiple departments

$
0
0
Hi, Mendix noob as I am I would value your input;   I have endusers which normally work for just one department. Some are skilled to work for more than one department but only for one department at the time. Of course departments will have many endusers. When these endusers log on I want to present them a list of all the departments they can be assigned to so they can choose which department they are working on that day. They should see only the records relevant to the department they’re working for at that time.   So my domain model has entities ‘administration.account’ and ‘department’ and a many to many association ‘account_department’. I have succeeded in setting up a microflow which detects the amount of departments the enduser has but I can not think of a way to present the enduser with a choice of the departments he or she is entitled to.   I tried a dataview showing all departments restricted with an xpath like [Administration.Department_Account/Administration.Account = '[%CurrentUser%]’ but that results in ‘incompatible expression types: Boolean, system user’. In other attempts my page ‘should contain a data view that accepts an object of type ‘account’ but what i really want to do is displaying departments, Or do I?   I must be thinking wrong, any idea's on what I should try? Thanks for your time.   Bert

Validation Timing for Committed Object

$
0
0
I have validation rules set for attributes on the entity level. As far as I’m aware of, those rules will only be triggered when an object is committed. However, I saw a situation that validation would happen on page and prevent me from entering my microflows for custom validations. Screen capture of the page “Select Address” opens a page and “Save” evokes a microflow. I’m wondering does anyone have some insights on this? 

importing a HTML and JS project

$
0
0
Hello everyone,   I hope all is well. I just have a small question. I am creating a project from HTML and JS, I am hoping whether it’s possible to import some HTML pages in to mendix and create microflows and pages for it? Also is it possible to export my current Mendix project into an HTML project?  Thank you

M2EE   Component bundles are not loaded.

$
0
0
I have a problem when i local run the app, i got an error message. M2EE    Component bundles are not loaded. But when I make a change in the domain-model and start local the app then i have no problem. It's works then well. But the next time i start local the app, i got the same error message, make a change in domain model and it works again Not easy this way of working. Have any one a solution for this issue. We have installed progressDB 10.7

Error: PRS POST Operation

$
0
0
Hi everyone, I tried to create a POST operation of my PRS. I did everything according to this documentaton: https://docs.mendix.com/refguide/published-rest-services (except for error handling). I also downloaded the example project to get sure that everything is implemented correctly.  By trying it out locally, I got the error you can see on the screenshot. In the console, I got the following: An unexpected error occurred while handling REST request  -------- com.mendix.core.CoreException: com.mendix.modules.microflowengine.MicroflowException: Error parsing JSON. next on empty iterator     at FruitPublishV1.PostFruit (Import with mapping : 'Import from JSON') Advanced stacktrace:     at com.mendix.basis.component.InternalCoreBase.execute(InternalCoreBase.java:389) Caused by: com.mendix.modules.microflowengine.MicroflowException: Error parsing JSON. next on empty iterator     at FruitPublishV1.PostFruit (Import with mapping : 'Import from JSON') Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:146) Caused by: com.mendix.integration.importer.ImportParseException: Error parsing JSON. next on empty iterator     at com.mendix.integration.importer.json.JsonImporter.$anonfun$parseJson$2(JsonImporter.scala:60)     at com.mendix.integration.util.AutoCloseableUtil$.using(AutoCloseableUtil.scala:10)     at com.mendix.integration.importer.json.JsonImporter.$anonfun$parseJson$1(JsonImporter.scala:49)     at com.mendix.integration.util.AutoCloseableUtil$.using(AutoCloseableUtil.scala:10)     at com.mendix.integration.importer.json.JsonImporter.parseJson(JsonImporter.scala:48)     at com.mendix.integration.importer.json.JsonImporter.parse$1(JsonImporter.scala:37)     at com.mendix.integration.importer.json.JsonImporter.$anonfun$importStream$1(JsonImporter.scala:39)     at com.mendix.integration.util.ContextUtil$RichContext$.withTransaction$extension(ContextUtil.scala:11)     at com.mendix.integration.importer.json.JsonImporter.importStream(JsonImporter.scala:39)     at com.mendix.integration.internal.InternalIntegration.doImportStream(InternalIntegration.scala:127)     at com.mendix.integration.internal.InternalIntegration.doImportStream$(InternalIntegration.scala:110)     at com.mendix.integration.internal.InternalIntegrationImpl.doImportStream(InternalIntegrationImpl.scala:41)     at com.mendix.integration.actions.ImportMappingResult$.apply(ImportMappingResult.scala:61) [...] Caused by: java.util.NoSuchElementException: next on empty iterator     at scala.collection.Iterator$$anon$2.next(Iterator.scala:41)     at scala.collection.Iterator$$anon$2.next(Iterator.scala:39)     at scala.collection.immutable.StreamIterator.next(Stream.scala:1057)     at com.mendix.integration.importer.json.JsonParser.next(JsonParser.scala:24)     at com.mendix.integration.importer.json.JsonParser.next(JsonParser.scala:7)     at com.mendix.integration.importer.json.JsonStreamingHandler.$anonfun$parse$1(JsonStreamingHandler.scala:37)     at com.mendix.integration.util.AutoCloseableUtil$.using(AutoCloseableUtil.scala:10)     at com.mendix.integration.importer.json.JsonStreamingHandler.parse(JsonStreamingHandler.scala:35)     at com.mendix.integration.importer.json.JsonImporter.$anonfun$parseJson$3(JsonImporter.scala:50)     at scala.util.Try$.apply(Try.scala:213)     at com.mendix.integration.importer.json.JsonImporter.$anonfun$parseJson$2(JsonImporter.scala:50)     at com.mendix.integration.util.AutoCloseableUtil$.using(AutoCloseableUtil.scala:10) [...]   Then I tried to execute the POST Operation of the Example fruit project that I found within the documentation – and I got the same error! Can anyone explain this?

SVGRenderer: refresh image

$
0
0
I'm using the awesome SVGRenderer to create an SVG. The SVGRenderer is placed in a Dataview. I would like to refresh the image if the context object is changed but somehow this is not happening. I'm using a Microflow Timer to perform a commit on the Dataview object. Upon reviewing the JS code, I see that there are no subscriptions (that part has been commented out): /* if (this._contextObj) {                 this.subscribe({                     guid: this._contextObj.getGuid(),                     callback: lang.hitch(this, function (guid) {                         this._updateRendering();                     })                 }); … */ Could this be the problem? If so, would there be a workaround? The image is created properly when the page is opened so a page refresh might do the trick. I have however seen a lot of questions on that topic and it is usually not regarded as the way to go. Thanks for any help!

List view expands vertically , is horizontal expand possible ?

$
0
0
I am using list view to display Date and few quantity associated for that date, the requirement is to show quantities below the date. I arranged the column in table to get the desired view but the problem with list view i am facing is that it expands vertically (add rows below) and i want it horizontally( in columns) How can it be achieved?

Mendix Modeler 'Closing' when attempting to merge. 7.15.1

$
0
0
Hi, When attempting to merge my changes anywhere could be mainline or a separate branch, it gets to the 'Merge changes' section on the check list, decides to then take a while. Then all of a sudden without a proper error message, windows just seems to shut the modeler down completely. Which just kills the process in its tracks. You can open the modeler back up fine, and it will normally have half of the changes merged but the other half haven't. Instantly you'd think that maybe there was just something wrong with a specific part of the code you're trying to merge. But when attempted THE EXACT SAME code on a separate machine entirely, doing the same merging task. It works....  Being having this all the time, and has got to the point where if I want to merge I need to use a colleagues computer to do so... Anybody had any similar problems with this? Any help would be great, (I haven't attempted the Turn off and on again approach of re-downloading Mendix modeler, but I have tried by re-downloading the branch, still the same problem)   Cheers Adrian 

How to copy a project using the Mendix SDK

$
0
0
Hi, I'm looking on how to create a new project which would be a copy of an existing project using the platform SDK. Any ideas of how this can be done? Best regards, Daniel Serva

Uploaded FileDocument missing on Sandbox application

$
0
0
Hi all, I’ve just recently encountered an issue with missing files in a Sandbox Application. The DB entry for the files is there, complete with file size and hasContents=true. However, the actual files don’t exist and cannot be downloaded anymore. I’ve considered some autocommit issue, but then the DB entry should also be gone I assume. The issue occurred on an offline app and the big problem there is, that if only one such file is missing, the whole sync process will throw an error. Any ideas? regards, Fabian

Merge Problems and the 'svn:ignore' Story

$
0
0
Some people have been experiencing issues with merging branches recently and I want to take some time to explain what happened, because it has become quite a complicated story. The story starts simple. It starts with a ticket on Mendix 7.15.1. A team was experiencing crashes when merging branches to the main line. And when I say 'crash', I really mean crash. The Modeler would disappear without a word. Such a hard crash can only happen if it happens inside a native library, like the Subversion C library in this case. We were invited to the project and we could reproduce the issue. We found that the merge failed while merging the svn:ignore property. Let me explain what the svn:ignore property is. Some files are inside your project directory, but they are not (and should not be) on the Team Server. For example, the ‘deployment’ directory is on disk but not on the Team Server. Everyone has their own ‘deployment’ directory; it is not a shared thing. The same holds for backup files of the project and some other files. Subversion keeps track of which files are ignored in the svn:ignore' property. If you want to see this property yourself, right-click your project directory in the Windows File Explorer and choose TortoiseSVN > Properties. There will be a line in the grid for this property and its contents will look something like this: modeler-merge-marker .mendix-cache <PROJECT>.mpr.lock <PROJECT>.mpr.bak .project .classpath deployment <PROJECT>_main.launch If you merge a branch line to the main line, two of those svn:ignore properties meet. If they are both changed, it is very likely that there will be conflict. Resolving a conflict on this property is simple because you can just combine both lists, remove duplicates and be done with it. And that is what the Modeler does for you. In case of the project of the customer, we found that there were some funny symbols in the value of this property, namely so-called byte order marks (BOM). It took us a while to find those symbols, because they are invisible. We concluded (wrongly) that this was the issue and disabled the automatic merging if we encountered BOM characters. This was released as part of Mendix 7.19.0 and it fixed the issue for the customer. They could merge again. Everybody happy! Well, no. For the people for whom the automatic merge still triggered, another issue arose, having to do with newline conventions in the 'svn:ignore' values. You've got to love all those invisible characters spoiling the fun! If you have this issue, you will see messages complaining about a property change failing and something called PROPPATCH. See, for example, https://forum.mendixcloud.com/link/questions/92119 We provided a workaround for this problem on that forum question and here in the documentation: https://docs.mendix.com/howto/collaboration-requirements-management/troubleshoot-version-control-issues#2-6-getting-an-error-with-the-message-sharpsvn-svnrepositoryioexception-at-least-one-property-change-failed-repository-is-unchanged Also, the real fix for this newline problem will be released as part of Mendix 7.23.0. Everbody happy! Well, no. The next thing that happened is that we received a similar ticket on Mendix 6, which was odd because the cause for the BOM characters was not in Mendix 6! The plot thickened. We investigated again and our new theory was that the size of the ignore lists was becoming a problem. The projects in both tickets had lived for a long time and contained a lot of branches. For every branch in which you deploy, the Modeler creates and ignores a .launch file with a name like this: <PROJECT>-<BRANCH>.launch. Over time, those ignores start to accumulate and even though the documentation of Subversion states that there is no limit on the size of properties, we are now convinced that some of the underlying code actually cannot handle large ignore lists. So, the problem was not a new problem but it has always been there. Only now projects are becoming old and large enough to trigger it... By cleaning up the ignore lists to a reasonable size, we were able to merge again. We supplied the customer with a way to clean up the ignore lists and they could continue working again. To clean up the ignore list yourself, take the following actions: Install TortoiseSVN 1.7.15 if you do not have it yet: https://sourceforge.net/projects/tortoisesvn/files/1.7.15/Application/ Go the project directory of a particular branch. Right-click the white background of the project directory. Choose TortoiseSVN > Properties. Double click the line with the "svn:ignore" property. You will see a long list of ignore lines in a text editor. Remove all lines that end in ".launch" Also remove lines that look like this: /branches/branch:4183-4252. Those lines are actually corrupted data which should not be here at all. There may be other corrupted lines that look like this: 80-13ba-4c6f-98da-a23cd0afecdf svn:mergeinfo 3557 /branches/branch:4107-4155. Remove those as well. Make sure you do not remove other lines like "releases". Add a line containing the following text "*.launch". You should end up with a small list, something like:   modeler-merge-marker .mendix-cache <PROJECT>.mpr.bak .project deployment .classpath <PROJECT>.mpr.lock releases *.launch Click OK and OK again. Open the project from the Desktop Modeler. Commit the change to the 'svn:ignore' property with a special message, e.g. "Clean up ignore list". (Note: you will not see any changes in the Commit dialog but you can still commit). It was a mistake to ignore every .launch file individually and in Mendix 7.23.2, we will start ignoring them all at the same time by including the following line in the svn:ignore property: *.launch Based on the unreliabiltiy of the automatic merge feature, we have decided to disable the feature in 6.10.18 and 7.23.2. This means that you will have to resolve merge conflicts on the 'svn:ignore' property yourself. Here is the manual on how to do that. https://docs.mendix.com/howto/collaboration-requirements-management/troubleshoot-version-control-issues#2-7-resolving-conflicts-on-the-svn-ignore-property However, because we will be ignoring all .launch files at once (*.launch), branches will almost never contain changes to the ignore property anymore and conflicts will only happen if you ignore files or directories yourself. Everybody happy! I sure hope so. So, what should you do for your project? You can check whether the ignore list has grown a lot and if so, clean it up by using the steps above. Migrating to 6.10.18 or 7.23.2 (once they are released) will fix the problem for good, but there is no rush to do that. Finally, I want to apologize sincerely to the people who lost valuable time because of these issues. Knowing that you could not continue working, caused me sleepless nights as well. If you come to Mendix World, I can personally apologize to you. And there are lots of other reasons to come, too.

entity selection

$
0
0
Hi, it is not possible to select an entity ( by example on the add button or , i can select go to page); What i’m forgetting to do? Make a dataview?) 1The selected page 'TrainingEvent_Overview' expects an object of type 'TrainingEvent', which is not available here.Property 'On click' of menu item 'Training_Event'Navigation-

MS Outlook to Office 365 file format migrate with tool

$
0
0
There are several methods available in the market that help your file convert PST to Office365. but manual method its lengthy process. I want to convert all the files at some time, then I need to process any smart way. If you have any idea please suggest me.

certificate for mobile App for windows phones

$
0
0
After creating a mobile app for Windows phones with PhoneGap, I tried to install it on my Windows computer, but it failed because a new certificate needs to be installed or the Appx package needs to be provided with a trusted certificate . How can I create a package with a trusted certificate?

I want to move to mendix 7.23.2 The release notes look good, Has anybody else pushed this release to production and had problems?

$
0
0
Hi There I want to move to mendix 7.23.2 The release notes look good, Has anybody else pushed this release to production and had problems? Regards, Patrick  

Mendix Gulp setup for ux-theming

$
0
0
Does anybody has some more info how to best setup gulp in combination with Mendix? I know that Jelte Lagendijk did mention in this post that a gulp setup was the best, but he did not elaborate on the configuration part. Regards, Ronald

Dynamic layout on differend devices

$
0
0
Hi,   I have an application with a few pages and a template grid on one of those. The page is opened from a microflow. I’d like the grid to have 4 columns on a desktop browser, but only 1 column on the phone screen I thought it would be easier, but I can’t figure it out, how to do it without duplicating the page (and microflows and home pages, ...) for both devices. Is there any solution for this?

Uploading data from excel

$
0
0
I have excel importer and MX modeler, but am trying to build the framework to actually upload the files. Do i need to make a microflow for every every attribute on the excel file (every column)? I feel like i shouldn’t but I keep getting an error trying to do it the way the documentation says to do it (one microflow).
Viewing all 83469 articles
Browse latest View live


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