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

Retrieve objects offline via javascript

$
0
0

Hi everybody,

I am building an offline app. In my app I want to retrieve objects through association in javascript. I believe that these objects are not yet synced to my offline, because in the JSON message I don't see them. (I know the GUIDs of the objects that are associated to my context object.) I tried to use mx.data.get and mxobj.fetch and it does not retrieve any objects. It does work in my brower and on my online app though. Probably because it can connect to the server.

I saw this post https://forum.mendixcloud.com/link/questions/17232 and I tried mx.data.getSlice but it does not work. It shows in my console the message: Function is not implemented yet.

In this post https://forum.mendixcloud.com/link/questions/81972 someone mentions that creating of objects can only be done is there is i.e. a listview to show these objects. Could it be possible that  retrieving my objects through association is only possible if I for example use a listview to show the objects so that they are synced to my offline app?


Excel export button behaviour changed in Mendix 7.3 ?

$
0
0

Hello

When migrating from Mendix 7.0.2 to 7.3.0 we noticed that the behaviour of the excel export button is changed. No longer the number of rows in the list are exported, the number of rows in Mendix 7.3 is limeted to the number of rows shown on the first page of the datagrid. 

When we use the Excel export button in a datagrid the number of rows exported in 7.3.0 is equal to the number of rows shown and no longer equal to the number of rows in the list (as was the case in Mendix 7.0.2) We checked that maximum number of rows property of the Excel button is high enough to export the complete list, but the number of rows remains limited to the number of rows shown in the data grid.

Any suggestions on how the get back the original behavour (export the complete list, with limitation the maximum number of rows property of the the Excel button)

 

Compare Lookup Values based on Enumerations

$
0
0

I have a Look Up Table called LuContactType

LuContactType consists of 3 Attributes one of which is "Name".

Name is an enumeration.

I have then associated this Lookup Table "LuContactType" to another entity called Contact.

I want to compare the value of $Module/Contacts.Contact_LuContactType in a micro flow.

Path will autocomplete the expression as far as

$Module/Contacts.Contact_LuContactType

I then am unable to add anything else to this expression. If I add a comparison to the enumeration value I get a type mismatch and

Invalid argument types Contacts.LuContactTYpe and Enumeration Contacts.ContactTypeEnum

I am unable to compare it against a string value and I am unable to extend the relationship beyond the basics of

  $Module/Contacts.Contact_LuContactType

I have only started using Mendix recently and I have to say I am learning to hate XPath with an all consuming passion.

BootstrapDate Picker is not working

$
0
0

Hi I have used BootstrapDatePicker in one of my pages. Its showing 404 - file not found for file: widgets/BootstrapDatepicker in console and from front end its showing error occured. 

Any one has faced the same problem before?

My own questions broke on forum?

$
0
0

Hi, I used to tick the My own questions checkbox on the forum to quickly view that last question I posted. However this question and some other question do not appear on this list.

Can anyone confirm or?

Team server project (Main line) is not empty.

$
0
0

Hi,

while I was trying to update my existing project from latest code.

1) exported code from existing application.

2) tried to import this package into another application but it is showing below error message:- 

 

個人ユーザーや個人事業主が買えるライセンスはありませんか?

$
0
0

一番安いライセンスは何でしょうか?

個人ユーザーや個人事業主が買えるライセンスはありませんか?

Sending data IE 11 vs Chrome

$
0
0

We are experiencing a delay in one of our forms which is a quite a simple form. When loading the in chrome the load times look like this:

Chrome loading times

 

 

However loading the same page in IE shows this time after time:

IE loading times

 

It appears that IE shows a lot more of "Sending" time compared to Chrome. Is this normal behaviour, what could we do to further reduce this?

Basically the requests that you see here are really small so to me it does not make sense that sending the requests takes so much time.

e.g.

{"action":"retrieve_by_ids","params":{"ids":["68116944363987487"],"schema":{}},"context":[],"profiledata":{"213f0a38fd57140":133}}

 


Sandbox limits

$
0
0

Hi All

I'm wondering about limits for the freely hosted "sandbox".

I know about the following limits:

1. 5 hosted applications

2. Limited support SLAs

3. 10 internal users or 100 external users (or a mix)

Apart from the above, I understand free hosting is a fairly unlimited offering, but I'd like to check the following:

1. Is there a storage limit for files uploaded (as data)?

2. Is there a daily data transfer limit?

3. Are there backup limits? ie. is it possible to schedule regular backups and restore from a prior day?

Thanks!

REST SSL handshake fail

$
0
0

I just set up a new Mendix app environment, and it is my first time. I deployed a project that we have running in a separate Mendix app environment, and everything seems to be working as I would expect, except that when I try to connect to the REST services in the project via SoapUI, I get an error:

Mon Jul 03 16:59:58 CEST 2017:ERROR:javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

This environment has the default Mendix SSL certificate installed, but so did the previous environment, and it worked there. Is there something else in this environment or in my project that I should be checking? This is the first time I'm setting up an environment from scratch, so any help would be very welcome. Thanks!

Copy paste YAML file on Windows Server

$
0
0

Hi,

I noticed that when using the windows runtime, the YAML text file is overwritten with the mendix runtime console values.

Is there a way around this? 

It would be easier for backing up and restoring the YAML settings. 

Currently all settings need to be entered in the runtime console, but it involves a lot of clicking and manual work.

 

Thanks in advance for any replies.

Data base Storing

$
0
0

Hi

        how To Stored Data in Database  internally and how maintain relationship between Tables.

unable to return back to previous url

$
0
0

how to get  previous url in browser from the current url(in my project even though  i'm clicking on the previous url option its showing current url in the browser) ?

Mendix API call to stop environment not working

$
0
0

I'm trying to stop the environments for my app using the Mendix Stop Environment API (https://docs.mendix.com/apidocs-mxsdk/apidocs/deploy-api#stop-environment)

Environment fails to stop. Any idea what should be different when using this api?

Request

curl --request POST \
  --url https://deploy.mendix.com/api/1/apps/myapp/environments/Test/Stop \
  --header 'accept: */*' \
  --header 'mendix-apikey: xxxx-8b97-xxx-bbfb-xxxx' \
  --header 'mendix-username: viral@mymail.com' \

 

Response Code:

500 Internal server error

Response:

{
    "errorMessage": "Cannot stop app: RuntimeStopFailed",
    "errorCode": "STOP_FAILED"
}

menu button microflow

$
0
0

There is a list page, it's include menu of different article types, If I click every subitem, it will show different types of page.

My logic is as follows: I create a menu and set every subitem's microflow. I hope every subitem's microflow can go to a common microflow,and the common micoflow can show the common list page. I don't want each of the subitem microflow to build up their pages. When I want to realize the idea, I find it diffculty. How can I pass the different type of article List to common microflow, and pass the end of common page?

Is my logic wrong? Is there any better solution?

Thanks in advance!


security inheritance

$
0
0

how to implement security inheritance in my project?

Online/Offline mobile application

$
0
0

Hi all

A customer wants to add offline functionality for some of their users in the field who will have an internet connection most of the time but will have occasions when they in areas with no connectivity.

They want to be able to provide both online and offline support, giving their users access to the whole application while online but a 'light' version when offline. It appears from the answer to this question, https://forum.mendixcloud.com/link/questions/87329, that this is not currently possible.

The customer is running 6.10.3 which has a separate offline profile rather than the hybrid profiles introduced in 6.10.4. Am I right in thinking that they could support the above by manually building two apps, one online and one offline? The online app would use the phone/tablet profile and the offline app would use the offline profile.

Given that this 'workaround' is not possible in later versions I guess this would prevent them from upgrading so is not really a recommended approach but I am just trying to find options for them at the moment.

Thanks in advance

iain

AppEngines / Slots / Nodes / CPU's / CPU load / CPU usage

$
0
0

Can somebody explain the differences between the terms AppEngines / Slots / Nodes / CPU's and also their relation to CPU load / CPU usage when running an application in the Mendix cloud?

For example: We have an application running in the Mendix cloud, on the deployment page we see we use 3 app engines, on the Application node CPU usage graph we see that the idle time has a max of 400%, How does 3 app engines correspond to a CPU usage graph showing 400% idle time?

For example: For the same application/setup we also get CPU warning alert emails with CPU loads around 1.2, while the CPU usage graph at that time shows the CPU idle time has a min of 300+% How does a CPU load of 1.2 correspond to a CPU usage graph showing 300+% idle time?

Deeplink No access rights for subquery

$
0
0

This is the same error as mentioned is this forum post. Then the problem was SSO in combination with deeplink that got solved eventually with an update of the deeplink module. This time I have no SSO server. When I submit the deeplink I have to log in, but then the stacktrace below is thrown. I double checked the security settings. The deeplink microflow is allowed by this user and that role has the deeplink user userrole. The index page constant is set to index.html and the LoginLocation constant is left empty. I must be missing something simple here but I keep banging my head why this error is being thrown.

Regards,

Ronald

Error while serving deeplink:

--------

com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//DeepLink.PendingLink[DeepLink.PendingLink_DeepLink='139893063425196233' and User='Catersels']","amount":-1,"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:198)

Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//DeepLink.PendingLink[DeepLink.PendingLink_DeepLink='139893063425196233' and User='Catersels']","amount":-1,"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)

Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//DeepLink.PendingLink[DeepLink.PendingLink_DeepLink='139893063425196233' and User='Catersels']","amount":-1,"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back
    at com.mendix.core.actionmanagement.CoreAction.processErrorState(CoreAction.java:303)

Caused by: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s):
    XPathTextGetRequest (depth = 0): //DeepLink.PendingLink[DeepLink.PendingLink_DeepLink='139893063425196233' and User='Catersels']
    at com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.java:59)

Caused by: com.mendix.core.objectmanagement.SecurityRuntimeException: No access rights for subquery [SELECT x1DeepLink.PendingLink.ID FROM deeplink$pendinglink AS x1DeepLink.PendingLink WHERE (c1deeplink$pendinglink_deeplink.deeplink$deeplinkid = 139893063425196233 AND x1DeepLink.PendingLink.user = ?)]
    at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleSubQuery(WhereClauseMapper.java:1184)
    at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleSelectColumn(WhereClauseMapper.java:1041)
    at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleWhereTermSide(WhereClauseMapper.java:613)
    at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.handleWhereTerm(WhereClauseMapper.java:172)
    at com.mendix.connectionbus.retrieve.query.mapping.WhereClauseMapper.map(WhereClauseMapper.java:145)
    at com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.mapWhereClauseWhereTerms(QueryMapper.java:733)
    at com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.getMappedQueries(QueryMapper.java:231)
    at com.mendix.connectionbus.retrieve.query.mapping.QueryMapper.getQueryInstances(QueryMapper.java:128)
    at com.mendix.connectionbus.retrieve.DataStoreCaller.mapToQueryInstances(DataStoreCaller.java:87)
    at com.mendix.connectionbus.retrieve.DataStoreCaller.getResult(DataStoreCaller.java:60)
    at com.mendix.connectionbus.retrieve.GetRequestHandler.doRequest(GetRequestHandler.java:73)
    at com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.java:45)
    at com.mendix.connectionbus.ConnectionBusImpl.doRequest(ConnectionBusImpl.java:391)
    at com.mendix.core.action.user.RetrieveXPathRawAction.retrieveXPathRaw(RetrieveXPathRawAction.java:133)
    at com.mendix.core.action.user.RetrieveXPathRawAction.executeAction(RetrieveXPathRawAction.java:79)
    at com.mendix.core.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.java:49)
    at com.mendix.core.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.java:17)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.CustomActionMonitorImpl$$anonfun$run$1.apply(CustomMonitoredAction.scala:14)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:145)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:147)
    at scala.util.Try$.apply(Try.scala:191)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:141)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:137)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Bouncy Castle in Mendix 7.3 - cannot create signature

$
0
0

Hi,

I've been using the Bouncy Castle library with Mendix 7.1.

In Mendix 7.3 in the release notes it says: "Runtime will not globally register the Bouncy Castle Java library in order to prevent clashes with the usage of Bouncy Castle in the user libraries"

Thus I now register it myself after startup:

import org.bouncycastle.jce.provider.BouncyCastleProvider;
...
Security.addProvider(new BouncyCastleProvider());

Now, when I try to verify a signature

...
sig.init(new JcaPGPContentVerifierBuilderProvider().setProvider("BC"), publicKey);
...

I get an exception:

org.bouncycastle.openpgp.PGPException: cannot create signature: Error constructing implementation (algorithm: SHA256WITHRSA, provider: BC, class: org.bouncycastle.jcajce.provider.asymmetric.rsa.DigestSignatureSpi$SHA256)
    at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createSignature(Unknown Source)
    at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createSignature(Unknown Source)
    at org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider$JcaPGPContentVerifierBuilder.build(Unknown Source)
    at org.bouncycastle.openpgp.PGPSignature.init(Unknown Source)

Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: SHA256WITHRSA, provider: BC, class: org.bouncycastle.jcajce.provider.asymmetric.rsa.DigestSignatureSpi$SHA256)
	at java.security.Provider$Service.newInstance(Unknown Source)
	at sun.security.jca.GetInstance.getInstance(Unknown Source)
	at sun.security.jca.GetInstance.getInstance(Unknown Source)
	at java.security.Signature.getInstance(Unknown Source)
	at org.bouncycastle.jcajce.util.NamedJcaJceHelper.createSignature(Unknown Source)
	at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createSignature(Unknown Source)
	at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createSignature(Unknown Source)
	at org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider$JcaPGPContentVerifierBuilder.build(Unknown Source)
	at org.bouncycastle.openpgp.PGPSignature.init(Unknown Source)
	at licensing.LicenseTool.verifyData(LicenseTool.java:318)
...

Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission""org.bouncycastle.pkcs1.not_strict""read")
	at java.security.AccessControlContext.checkPermission(Unknown Source)
	at java.security.AccessController.checkPermission(Unknown Source)
	at java.lang.SecurityManager.checkPermission(Unknown Source)
	at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
	at java.lang.System.getProperty(Unknown Source)
	at org.bouncycastle.crypto.encodings.PKCS1Encoding$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.bouncycastle.crypto.encodings.PKCS1Encoding.useStrict(Unknown Source)
	at org.bouncycastle.crypto.encodings.PKCS1Encoding.<init>(Unknown Source)
	at org.bouncycastle.jcajce.provider.asymmetric.rsa.DigestSignatureSpi$SHA256.<init>(Unknown Source)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.security.Provider$Service.newInstance(Unknown Source)
	at sun.security.jca.GetInstance.getInstance(Unknown Source)
	at sun.security.jca.GetInstance.getInstance(Unknown Source)
	at java.security.Signature.getInstance(Unknown Source)
	at org.bouncycastle.jcajce.util.NamedJcaJceHelper.createSignature(Unknown Source)
	at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createSignature(Unknown Source)
	at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createSignature(Unknown Source)
	at org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider$JcaPGPContentVerifierBuilder.build(Unknown Source)
	at org.bouncycastle.openpgp.PGPSignature.init(Unknown Source)
	at licensing.LicenseTool.verifyData(LicenseTool.java:318)
...

Has anyone encountered this or knows what I am doing wrong?

Viewing all 83469 articles
Browse latest View live


Latest Images

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