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

Training Application does not show side navigation

$
0
0

Mendix 7.7.1. Mendix Theme

I go thru the Mendix Introduction Training building a sample Training Management application. I reached the point where I created side navigation with multiple pages. However, the navigation panel does not appear anywhere. Where should I look for answers?


How to upgrade form Mendix 7.6 to 7.7.1

$
0
0

HI ,

 

i have mendix 7.6 in my pc and need to upgrade to Mendix 7.7.1 to support my current project, can you please help me

 

regards,

Prabhakar

 

An error occured while comitting the code in Team server.

$
0
0

Hi Team,

I am getting the following error when trying to commit the project.

Mendix.Modeler.VersionControl.VersionControlException: An error occurred while checking for changes on disk. ---> SharpSvn.SvnRepositoryIOException: Unable to connect to a repository at URL 'https://teamserver.sprintr.com/d33dcd7f-539a-4a7f-83f1-38b576e2bd72/trunk' ---> SharpSvn.SvnRepositoryIOException: OPTIONS of 'https://teamserver.sprintr.com/d33dcd7f-539a-4a7f-83f1-38b576e2bd72/trunk': could not connect to server (https://teamserver.sprintr.com)

--- End of inner exception stack trace ---

at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)

at SharpSvn.SvnClient.Status(String path, SvnStatusArgs args, EventHandler`1 statusHandler)

at SharpSvn.SvnClient.GetStatus(String path, SvnStatusArgs args, Collection`1& statuses)

at Mendix.Modeler.VersionControl.SvnConnector.ClientDo[T](Func`2 action) in C:\jenkins\workspace\Modeler-Build\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 142

at Mendix.Modeler.VersionControl.SvnConnector.GetStatuses(String localDir, Boolean retrieveRemoteStatus) in C:\jenkins\workspace\Modeler-Build\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 197

--- End of inner exception stack trace ---

at Mendix.Modeler.VersionControl.SvnConnector.GetStatuses(String localDir, Boolean retrieveRemoteStatus) in C:\jenkins\workspace\Modeler-Build\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 201

at Mendix.Modeler.VersionControl.RevCommitter.<>c__DisplayClass21_0.<AddCheckWorkingCopyStep>b__0(IProgressInfo info) in C:\jenkins\workspace\Modeler-Build\modeler\Mendix.Modeler.Core\VersionControl\RevCommitter.cs:line 257

at Mendix.Modeler.Utility.Progress.ProcessRunner.RunStep(Step step) in C:\jenkins\workspace\Modeler-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 88

at Mendix.Modeler.Utility.Progress.ProcessRunner.worker_DoWork(Object sender, DoWorkEventArgs e) in C:\jenkins\workspace\Modeler-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 68

at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)

at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

 

I searched in the forum for similar and found that reinstalling SVN tortoise might fix the error. I even did that but could not solve it. Please help me fix the issue.

Thanks and Regards,

Sushuma

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
}

 

 

 

Issue with generating ipa file for Mendix 7.7.1

$
0
0

Hi,

I'am trying to make .ipa file for my applications which I updated on Mendix 7.7.1. Before that I used Mendix 6.10.3. My problem is about phone and tablet navigation, also with hybrid mobile navigation. I download .ipa file but when I start application I got message which says: ''Unable to find navigation profile HybridPhone". So, my question is what exactly I need to insert for phone and tablet navigation and how to setup config.xml file or phonegap package?

Thank you. 

Multi-Select Datagrid Search Fields on iPad

$
0
0

In one of my apps, I have a page with a datagrid that has multiselect search fields (standard out of the box search fields).  When this page is accessed via a browser from and iPad (Safari and Chrome behave the same), the multiselect fields do not function.  I can't select any search options and the list of options does not appear when I navigate to one of these search fields.

Anyone else ever seen this?  Is this a know bug?  Any workarounds exist?

Thanks in Advance

Mike

Download files subanonymous

$
0
0

Hi

I'm using simple rest module to generate urls for file documents. The links created cannot be downloaded because the gets in mendix for downloading the files uses those token things. Is it possible to download files sub-anonymous?

{
  "Foo_Response": [],
  "Response_Entity": [
    {"str_url": "http://localhost:8081/file?guid=10977524091715585&target=internal"},
    {"str_url": "http://localhost:8081/file?guid=10977524091715586&target=internal"}
  ]
}

 

Thanks

How to localize your app?

$
0
0

Hi, we need to support multiple languages in our project. The supported languages are added to the project, and all the views, labels and texts have been translated. Then the system shows the app in your preferred language. The preferred language is set on the user account.

But what about the login page, and the forgot password functionality. How do you handle that?

We need to support both desktop browser and mobile hybrid app.

Edit:

The first thing you want to do is to change the language of the anonymous user. There are already some challenges there see topics https://forum.mendixcloud.com/link/questions/23192 and https://forum.mendixcloud.com/link/questions/87018 and you can find more if you want.

However I could not find this topic in the ideas forum, so I submitted the idea here check: https://forum.mendixcloud.com/link/ideas/441

It would be nice if you give this idea some loving<3


The use of ChartJS

$
0
0

Hello, I am new to reporting and thought I'd use one of the available charts on the Mendix app store however I am having issues getting my head around it. Not sure if it is just me or the documentation is not detailed enough.

If someone here has done something with charts, getting the necessary data to plot the chart, please reply.

Hope to hear from some of you guys soon. Kind regards, Kofi Ghartey-Tagoe

Image Uploader

$
0
0

We run on-prem and have two servers sitting behind a load balacer in our production environment.  In our application, our screens include client logos which get uploaded via an image uploader widget on an admin page. I spent the morning looking into how it all works and found the files (renamed as GUIDs) stored in the /data/files folder on the application server.  My question is around how the files are renamed when uploaded.  Is the GUID  value based on system time, etc. or a fixed value based on the original file name?  I.e. Is there a way to ensure a file is always named the same on different servers?  I tried uploading the images on both servers but they appear to get named differently so the reference in system$filedocument.__uuid__ will only ever be correct on one server. 

Is the only way for this to work to upload the image on one of the servers and then copy the file to the second server?  Can I create a network share and mount it on both servers and redirect the /data/files folder to the mount point?

Show percentage in Pie Chart Widget

$
0
0

Hi,

could you please help me with showing the numbering/percentage in the pie chart itself?

 

 

Thanks,

Prem

How to Use Checkbox

$
0
0

Hi all,

I am new to mendix and i do not know how to use checkbox within dataview. 

Basic Details is I am Creating Travel Insurance application in that i need to create three Categories Like normal, Premium and Luxury. 

I have created table like structure with 3 Columns as Normal, premium and Luxury.

In that columns premium and Luxury I have to place checkbox for covering personal objects like Passport, Medical etc and the condition for checkbox is " If the user selected the checkbox certain percentage(say like 10%,20%) of main fee will be added to result ..  and Microflow procedure for Checkbox activity

Please tell me or Advice me to do this in Step by step manner with an Example, so that i do Easily.. Thanks in Advance

Google maps - drawing lines between locations

$
0
0

Hey guys,

here’s what I would like to achieve:

Screen Shot 2017-08-28 at 14.14.54.png

Lines between points. I tried the widget “Advanced Google Maps Widget Only” though I couldn’t set it up successfully, I think it needs an update. When I tried to set the latitude of the marker, I just couldn’t select the attribute “Latitude”

 

GoogleMaps Custom Marker works, though it’s functionality is still different from what I want to achieve.

Does anyone have any thoughts on this? Or perhaps can point me in the right direction, or has even done/fixed this before: I’m all ears!

How to Use CheckBox Especially On-Enter and On-Leave Options in Checkbox properties.

$
0
0

Hi all,

I developed Travel Insurance Application and I have added Checkbox in Dataview.

 

I added Checkboxes in DataView and i dont know to add condition in that..meaning as If the User check the boxes the value has to be added in result and if he unchecks it the value has to be minus or reduced from the result( as he checks in previous Step). For acheiving this I found On-Enter and On-leave options in Checkbox properties.. I dont know how to utilize them.. Please let me know how to use them with some Example. so That I can Understand Better.. Thanks In Advance

Al Makthum

 

SSO integration

$
0
0

CMy colleague has built SSO into a mendix app, it needs to speak to our organizations ADFS. it works as a web app but we are trying to deploy it to mobile (android) and somewhere in the packaging process or the phonegap process things change.

I will paste below the email from my colleague.

To support authentication via SAML/ADFS, the index.html page needs to redirect to the app’s /SSO/ URL. I’m not sure exactly what the app’s /SSO/ URL is, and have not been able to determine it locally within the hybrid app. When I tried temporarily hard-coding the SSO URL, it actually comes up in a separate browser window, outside of the app.

So, I need to know:

1. How to determine on the client what the actual application’s URL is.
2. How to successfully make the hybrid app redirect to /SSO/ for authentication via ADFS and then redirect back into to the local hybrid app once authentication is successful, so that the user can proceed with the app normally from that point.

Are you able to assist?


Remove tooltip from CKEditor for Mendix

$
0
0

I'm using the CKEditor on a page. When the mouse pointer hovers over the text area, a tooltip is displayed with text that is irrelevant to the user. How do I change or remove this?

 

Performance Test using Android Studio

$
0
0

Hi Team,

 

I am trying to do performance testing of mendix application in Android Studio but facing issues. Is it possible to do the performance testing using Android Studio for mendix based application.

Appreciate your quick response.

Thanks

Salma

M- 9611056400

PostgreSQL SQL optimization needs for sub-select (need to add "order by" clause)

$
0
0

Good day, 

I'm the DBA/infrastructure-engineer (that's what they call me, not that I'm an engineer ;() for a Mendix application, so no, I've not yet opened the modeller, just deploying the .mda with m2ee and handling the PostgreSQL database(s) :)

Below two explain analyze on a ~165GB database (including all the indexes) for a query from 6.10.10. The first is the query as issued by the Mendix app, the second contains a "order by" clause in the sub-select query. As you can see, it's 26x times faster than the query that Mendix created.

Now my questions:

1) What should I ask the developer to do to give you better information to debug/analyze this issue?

2) Anything that the developer(s) can do to get the "order by" clause added to the query?

 

 

Mendix 6.10.10 query:

aquacheckweb=# explain analyze select "field$datapoint"."soiltemperature1400","field$datapoint"."maximumdepth","field$datapoint"."powersavingsmode"
 FROM "field$datapoint"
 WHERE "field$datapoint"."id" IN (SELECT "c1field$datapoint_profile"."field$datapointid"
 FROM "field$datapoint_profile""c1field$datapoint_profile"
 WHERE "c1field$datapoint_profile"."field$profileid" = 14918173765683509)
 ORDER BY "field$datapoint"."datadate" DESC,"field$datapoint"."id" DESC LIMIT 1;
                                                                                                   QUERY PLAN
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=227.00..820633.93 rows=1 width=29) (actual time=7471.294..7471.294 rows=1 loops=1)
   ->  Nested Loop Semi Join  (cost=227.00..11310950621.74 rows=13787 width=29) (actual time=7471.293..7471.293 rows=1 loops=1)
         ->  Index Scan Backward using "idx_field$datapoint_datadate" on "field$datapoint"  (cost=113.50..53086239.37 rows=97886374 width=29) (actual time=0.009..1540.537 rows=4257689 loops=1)
         ->  Index Only Scan using "field$datapoint_profile_pkey" on "field$datapoint_profile""c1field$datapoint_profile"  (cost=113.50..115.01 rows=1 width=8) (actual time=0.001..0.001 rows=0 loops=4257689)
               Index Cond: (("field$datapointid" = "field$datapoint".id) AND ("field$profileid" = '14918173765683509'::bigint))
               Heap Fetches: 1
 Planning time: 0.426 ms
 Execution time: 7471.326 ms
(8 rows)

 

 

The optimized query: 


aquacheckweb=# explain analyze select "field$datapoint"."soiltemperature1400","field$datapoint"."maximumdepth","field$datapoint"."powersavingsmode"
 FROM "field$datapoint"
 WHERE "field$datapoint"."id" IN (SELECT "c1field$datapoint_profile"."field$datapointid"
 FROM "field$datapoint_profile""c1field$datapoint_profile"
 WHERE "c1field$datapoint_profile"."field$profileid" = 14918173765683509 order by "c1field$datapoint_profile"."field$datapointid")
 ORDER BY "field$datapoint"."datadate" DESC,"field$datapoint"."id" DESC LIMIT 1;
                                                                                                                          QUERY PLAN
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=1661339.87..1661340.37 rows=1 width=29) (actual time=287.819..287.820 rows=1 loops=1)
   ->  Sort  (cost=1661339.87..1668233.37 rows=13787 width=29) (actual time=287.817..287.817 rows=1 loops=1)
         Sort Key: "field$datapoint".datadate DESC, "field$datapoint".id DESC
         Sort Method: top-N heapsort  Memory: 25kB
         ->  Nested Loop  (cost=27953.94..1647552.87 rows=13787 width=29) (actual time=231.228..286.999 rows=4167 loops=1)
               ->  HashAggregate  (cost=27840.44..34733.93 rows=13787 width=8) (actual time=231.152..232.457 rows=4167 loops=1)
                     Group Key: "c1field$datapoint_profile"."field$datapointid"
                     ->  Index Only Scan using "idx_field$datapoint_profile_field$profile_field$datapoint" on "field$datapoint_profile""c1field$datapoint_profile"  (cost=113.50..14053.44 rows=13787 width=8) (actual time=1.649..229.249 rows=4167 loops=1)
                           Index Cond: ("field$profileid" = '14918173765683509'::bigint)
                           Heap Fetches: 2837
               ->  Index Scan using "field$datapoint_pkey" on "field$datapoint"  (cost=113.50..116.48 rows=1 width=29) (actual time=0.013..0.013 rows=1 loops=4167)
                     Index Cond: (id = "c1field$datapoint_profile"."field$datapointid")
 Planning time: 0.390 ms
 Execution time: 287.922 ms
(14 rows)

aquacheckweb=#

Show PDF inside application from binary content from service

$
0
0

Hi,

I have binary data coming from REST Webservice. Currently, I am saving that data inside a entity as string. I want to show the PDF inside my mendix page and the pdf should contain the the entity data and it should be converted from binary to show as perfect pdf styled thing. How can I do this.

Thanks in advance.

Drools integration

$
0
0

How can i integrate drools in my application?Is there any way other than java action?

Viewing all 83469 articles
Browse latest View live


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