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

Code Merge - SVN Errors

$
0
0
Getting the below SVN error during Code Merge after upgrading the Mendix 6.9 to Mendix 7.21. Using Tortoise SVN 1.17.15 version and also, tried reinstalling the same version and latest SVN version but no luck. SharpSvn.SvnDiffException: Unexpected end of svndiff input    at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)    at SharpSvn.SvnClient.Merge[TRevisionRange](String targetPath, SvnTarget source, ICollection`1 mergeRange, SvnMergeArgs args)    at Mendix.Modeler.VersionControl.SvnConnector.<>c__DisplayClass63_0.<Merge>b__0(ISvnClient c) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 794    at Mendix.Modeler.VersionControl.SvnConnector.PathClientDo(String workingCopyPath, Action`1 action) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 825    at Mendix.Modeler.VersionControl.RevMerger.SvnMerge(RevMergeState state, IProgressInfo info) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core.View\VersionControl\RevMerger.cs:line 324

Modify the date calendar or restrict the calendar to year and month, exclude the date

$
0
0
is there any widget available which can provide option to only select the year and month,? no need to select the date

Get data on form on right based on the selection from list on left by making a rest call

$
0
0
I want to implement something like this: https://appstore.home.mendix.com/index3.html where when a user selects an item from the list on the left, a REST service call is made and the output data is listed int the form on right side. I am adding a onClick action on list view that calls a microflow to get data (using the selected item name). What should be the data source for the form on the right side?   P.S. I do not have any persistable entity as I am integrating a legacy module

How to drag and drop the items with in the data grid?

$
0
0
Hi all, I have a data grid with 5 items with item names as item-1, item-2, item-3, item-4 and item-5. I want to drag and drop the item-5 to top with in the data grid. And I have to save the order of the newly sorted items. For example, I want to see the items in the data grid like this after sorting. item-5, item-1, item-3, item-2, item-4.  And when I query from the database, it should give me the latest sorted order wise. How can I achieve this? Please tell me the all possibilities to achieve this.  Thanks in advance. Regards, Venkat.

Get Months Between

$
0
0
Hello Everyone, I have 2 dates and i want to get the difference between those dates in months. i found that there are some methods like SecondsBetween, MinutesBetween, HoursBetween, DaysBetween and WeeksBetween but there is no predefined method as MonthsBetween so how can i calculate the months between 2 dates.

How to save an image to a specific folder of OS?

$
0
0
Hi guys I am wondering how I can save an image efficiently from Mendix folder to another specific folder of OS? One way I am thinking to is just writing a Java code that rewrites an image to that folder byte by byte ( writeImageContent ). Is there another more simple way like changing the location and moving it there, without rewriting the image?

Filter trap only in APM 2

$
0
0
Hi,   I am currently using APM 2 for one o my applications and every time I find a new error in my app I keep the trap so I can analyse the error later.   How can I filter all the traps to show only the “kept” traps?   Thanks, Leo  

Ideas on building a Selector Guide in Mendix

$
0
0
Hello dear Mendix community, I currently work on a proof of concept for a product selector guide in Mendix. There is a range of products which have different functionalities. By selecting certain functionalities via check boxes we want to filter the products. The result shall resemble the following (example): (Can be found here: https://www.gegridsolutions.com/multilin/selector/generation.html ) Anybody has any ideas or recommendations on how to approach this issue? Maybe there is already a demo app featuring a selector guide which I could work on? Thank you very much! Miranda  

Mendix merge from branch line to mainline

$
0
0
Hi Team,    I am facing an issue while merging a branch line to a Main line . i tried the Port and Merge option which is resulting in many errors ,  but when i try Advanced option merge is successful , but the new changes are not getting updated on my main line . please assist..    

does dropdown filter on datagrid have max limit?

$
0
0
Hi, I have a datagrid with multiple filters. One of the filter displays a sorted list as dropdown and using comparision type Equal.  This list has got values more than 1000 but i can only see till 1000 values and later values are not shown. Is there a max limit setting anywhere? I dont have any XPaths set on this nor any security issue. 

Engineering Applications

$
0
0
Do you know about any engineering applications authored by using Mendix? In general, where can I find Mendix applications? I found some on the Mendix App Store but I guess not all the application are published in this way.

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.1, 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.1. 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://documentation-accp.cfapps.io/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.1 (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.

Upload image file by camera

$
0
0
Hello, we have a requirement to upload an image by using camera directly on mobile page. how we can achieve it in Mendix ? Thanks,

Mendix Application in SAP Hana Cloud

$
0
0
Hello  I deployed Mendix application in SAP Hana Cloud foundry (trail account )as per the online tutorial “Learn to build SAP App” Module 8. And started the application also. I can see my application in SAP Hana Cloud foundry.   But when I opened the application in browser. I am getting “Cant reach this page error”. Do I have anything missing or Mendix does not run in trail account?   Regards Shanmukha Rao Banisetti     Regards Shanmukha Rao banisetti

Can't Commit - SharpSVN Repository Exception

$
0
0
Hello Forum, I'm attempting to commit changes in my branch that resulted from a merge from the mainline, and receive the following error message. Any ideas on what to do? Thank you! Ricky -- SharpSvn.SvnRepositoryIOException: Commit failed (details follow): ---> SharpSvn.SvnRepositoryIOException: At least one property change failed; repository is unchanged ---> SharpSvn.SvnRepositoryIOException:  Attempted DAV:set operation could not be completed due to other errors. ---> SharpSvn.SvnRepositoryIOException: PROPPATCH of '/56273b94-cdaf-4784-a844-f038fe696f51/!svn/txr/2086-1nm/branches/S2branch': 207 Multi-Status    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)    at SharpSvn.SvnClient.Commit(ICollection`1 paths, SvnCommitArgs args, SvnCommitResult& result)    at Mendix.Modeler.VersionControl.SvnConnector.PathClientDo(String workingCopyPath, Action`1 action) in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 805    at Mendix.Modeler.VersionControl.SvnConnector.Commit(String projectDir, SvnCommitArgs commitArgs) in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 757    at Mendix.Modeler.VersionControl.RevCommitter.<>c__DisplayClass35_0.<CommitToRepository>b__0() in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Core\VersionControl\RevCommitter.cs:line 485    at Mendix.Modeler.Utility.ActionUtil.TryNTimes[TException](Action action, Int32 n, Int32 sleepBetweenTries) in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Utility\ActionUtil.cs:line 29    at Mendix.Modeler.VersionControl.RevCommitter.CommitToRepository(IProject project, String message, RevisionMetadata metadata) in C:\jenkins-ci\workspace\AppStudio3.0-Build@2\modeler\Mendix.Modeler.Core\VersionControl\RevCommitter.cs:line 487

Unable to connect debugger to cloud slot

$
0
0
Hi all, I tried to connect my debugger to an app in a mendix cloud slot today and get the following error message: The request was aborted: Could not create SSL/TLS secure channel System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at Mendix.Modeler.Microflows.Debugger.DebuggerClient.DoHttpRequest(String url, String password, String userAgent, String json, Int32 timeout) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Microflows\Debugger\DebuggerClient.cs:line 197 at Mendix.Modeler.Microflows.Debugger.DebuggerClient.PerformRequest(DebuggerRequest request, Int32 timeout) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Microflows\Debugger\DebuggerClient.cs:line 163 at Mendix.Modeler.Microflows.Debugger.DebuggerClient.StartSession(IEnumerable`1 breakpoints) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Microflows\Debugger\DebuggerClient.cs:line 64 at Mendix.Modeler.Microflows.Debugger.DebuggerController.StartDebugging(String url, String password, ConnectionMode mode) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Core\Microflows\Debugger\DebuggerController.cs:line 95 at Mendix.Modeler.Utility.BackgroundUtil.<>c__DisplayClass1_0`1.<Do>b__0(Object s, DoWorkEventArgs e) in C:\jenkins\workspace\Modeler-Build-6\modeler\Mendix.Modeler.Utility\BackgroundUtil.cs:line 28 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) Debugger was working in the past. Has anyone encountered this issue before?? Mendix version is 6.10.10 Licensed cloud slot -Andrej

Listview selection in Internet Explorer not consistently showing

$
0
0
Hi all, I was testing in Internet Explorer 11 and it occured to me that the selection of the listview row is not always visible. I tested it in Chrome and Firefox and it works like a charm there, so it seems to me that this is only an issue in IE. What I noticed in the DOM-explorer was that the mx-focus class is not consitently being set when clicking on the rows. Does anyone experience this to? And is there an solution for this? Thanks in advance!

"the server failed to start. see details for the server log" How can this be resolved?

$
0
0
I'm doing the Mendix Introduction course but everytime I 'run locally' I get this pop up error message ""the server failed to start. see details for the server log"  However, the log is empty.    I already cleaned deployment directory and restarted my computer several times. Please help?

Message Box kept showing

$
0
0
Hi, I created a simple microflow that displays a message box when a user clicked into a textbox.   Mircoflow is set up like below. I tested it and it worked. However, the message box kept showing and never stops when I click OK.   Wondering if anybody knows how to let the message box stops when I click ok. (just show once, right now it shows infinite times)   Thanks

Google Maps duplicating locations on pagination

$
0
0
Hi I have a page that loads the google maps locations from the Rest API using the microflow. The page has previous and next buttons, on click of each I am getting the updated locations from the microflow but the map is duplicating the locations (map is not refreshed with current page locations). Also I updated the Refresh on entity changes to Yes. Please help me to solve this issue.
Viewing all 83469 articles
Browse latest View live


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