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

Theme/Styles folder missing in 7.0.2

$
0
0

Hi All,

I am create an application using Mendix 7.0.2 which is working fine. But when i am looking to customise using styles unable to find the folder where i can see in 7.6 version. Did i missed something here can you please help me.

 


ChartJS Multi-Axis

$
0
0

Has anyone implemented a multi-axis Line Graph using the ChartJS widget? It seems that the Line graph option is only for a single Y Axis with the latest release of the widget.

Google Maps Widget breaks when switching between web modeler and 7.6.0

$
0
0

When using the Maps Widget (latest version) in the web modeler for the HRM tutorial, it works as it should. However when switching to the desktop modeler, it breaks and shows the error as seen in the attached screenshot. Oddly enough it also blocks the input box for the attribute above the widget from editing. This can be prevented by placing the widget in its own container:

Due to this issue and trying to solve it, I am currently unable to merge the project on the web and desktop modeler, referring me to Tortoise in order to fix the conflicts. Just for context, cause that's a seperate issue.

PhoneGap Build app template shows missing script: package

$
0
0

Hi, I'm using the Mendix PhoneGap Build app template to create a phonegap package for PGB. When running the command line npm run package, I get the error: missing script: package.

This error appears when trying the run the script commands configured in the package.json. I think this means one or more scripts fail to run. Then I'm not sure if it's one of the scripts, or the installation failed. Using version 1.2.0 of the template.

Any suggestions?

Edit: You need to run "npm run pgpackage" instead.

Error: Idatarow.getprimarykeyvalue has been removed

$
0
0

Hi All,

We were using IDataRow row.getprimarykeyvalue to get GUID and retrieve by core.retrieveId to fetch records in version 6. When we moved to 7 version it got removed and we got an error.

Could somebody let me know if there is any other method I can use instead.

Thanks

Abhinay 

Make Datepicker Always Open

$
0
0

Is there a way to make the datepicker widget always open? I think there's a class that I can assign to the default datepicker widget to do that; however I'm unable to find its name. Any other good looking suggestion is appreciated.

The only other option is the bootstrap datepicker widget from the App Store which keeps resulting in errors whenever I change the settings, hover doesn't highlight the date, and the cursor changes to a text cursor when I hover over the calendar.

Demo users not working anymore since 7.6 on Sandbox?

$
0
0

The demo user functionality seems to be broken since Mendix 7.6.

 

When clicking on a user in the demo user menu on the right side in my Sandbox environment nothing happens. The log says that the demo user is unknown.

When I delete and make new demo users, I stil can't log in via the demo user menu, but I can login by using the demo users credentials.

Locally I have no problems.

This is happening with multiple apps.

 

Does anyone else experience this problems ?

iOS 11 compatibility

$
0
0

Hi,

We have updated an apple iphone to iOS11 and are experiencing an issue with one of our mobile apps build for the appstore.
(Currently deployed ad-hoc to a couple of test devices.)

When starting the app it immediately crashes back to the home screen.
I suppose a new version of the app should be build to run on iOS11?
If so should this be done with modeler 7.6 or in some other way?

 

Thank you in advance to anyone able to shed some light on this.


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 Hide Datepicker Text Field - Display Calendar Button Only

$
0
0

How can I hide the text field available for typing the date in the default datepicker widget? I only want the calendar button to be visible.

Note: I posted this question two days ago, and I received an answer from Jeffrey Draaijer; however, unfortunately his solution did not work for me (or I did not apply it correctly), then I deleted the question. Coming to think of it today I figured it's better to post the question and the suggested solution just for reference.

 

Jeffrey Draaijer's suggested solution:

"You can add the following to a custom.scss file and compile that in the Mendix project:

.mx-grid-search-item {
  .mx-grid-search-input {
    width: auto;
  }
  .mx-dateinput-input-wrapper {
    display: none;
  }
}

The width attribute in the mx-grid-search-input class will give the search item the width of only the label and the button.

The display none attribute mx-dateinput-input-wrapper class will hide the input field.

Hope this helps."

Database size reduction: Index vs Table size - Restore and rebuild

$
0
0

Size reduction

Our app has a steady growing database and  we frequently have to decrease the disk size by a restore and rebuild, which only temporarily helps. If we don't restore and backup our app performance serious suffers. On the mendix support page about database size reduction the following is written:

The only reason to use either the VACUUM FULL or restore and backup option is to physically reclaim lost space of a table (records of the same entity) that was once very large but has drastically been reduced in size (deleted records) and which you do no longer expect to grow back to (nearly) its previous size in the future. As in that case, and in that case only, leaving the deleted records in place to be reused makes no sense anymore.

source: https://docs.mendix.com/howtogeneral/support/database-maintenance-size-reduction

As i started, our database grows steady in size and we frequently do a restore and backup to reclaim database size. However, on the mendix support page is explained only to restore and backup if the database is not expected to grow to it's previous size. 

It's seems that our actions contradicts with the support page. Can this have any consequences?

Table/index size ration

Furthermore, we can clearly notice that after a restore and backup our database size steady grows again. Just after restore and back up the index/table ratio is close to 1, but as the size increases again the index size is four times as big than the increase in table size (see figure).

Can this strong increase in index size have any effects? What could be the cause of this relative big increase in index size?

Is anyone else getting Page object 'Datapoint' should not be empty with Chart JS?

$
0
0

I'm showing a chart using Chart JS and showing a popup form when clicking on a datapoint. This works well as long as I click on a datapoint within 1 second (before the 1000 ms animation finishes). If I wait longer, it works about 1/3 of the time. This is on Chrome Version 61.0.3163.100 (Official Build) (64-bit) and Microsoft Edge 40.15063.0.0. The datapoint objects are committed to temporary entities in the microflow launched by Chart JS.

 

Edit: This page is showing two charts on separate pages of a tab control.
 

Data Grid does not update calculated fields

$
0
0

Hello,

 

In my scenario there is an entity "Row" displayed in a Data Grid, one field "field_a" of the "Row entity" is editable inside the data grid. Another field is "field_b" which is a calculated field with the microflow return the value "2 * field_a".

If there is only one row the scenario works fine and if the user inputs 3 in "field_a", "field_b" becomes 6 on display. If the user clicks on anywhere else on the screen after changing the value of "field_a", everything works fine too.

Yet, if there are two rows, and after the user presses Enter after changing the value of "field_a" of first row, cursor moves to the editable value of the second row, but the calculated value of "field_b" is not updated.

I think this is a bug.

Office365 AD implementation with OAUTH

$
0
0

HI All,

Can you please let me how integration works for Office 365AD using oAUTH in Mendix

 

Commit Object instantly after changing the value in Java action

$
0
0

Hi All,

I am working on a requirement where we have to create unique reference number (customized - Example - XXXX01234). Problem is, when we use the latest used number in DB, sometimes we can get the same number for different transactions as the commit is not getting completed until all the microflows complete running.

I have decided to do these things in Java action and it doesn't help me either. Below is my Java code. Can anyone help me if we can do commit instantly in DB using Java action.

Appreciate your help.

Java Code:

Sequence ProductSequenceObj = this.ProductParameter1.getProduct_Sequence().get(0);
        switch (ParameterParameter1) 
        {
        case Quote:            
            newSequenceNo = ProductSequenceObj.getLatestAssignedNumberQuotes()+1;
            ProductSequenceObj.setLatestAssignedNumberQuotes(newSequenceNo);            
            ProductSequenceObj.commit();
            break;            
            
        default:
            newSequenceNo = ProductSequenceObj.getLatestAssignedNumberPolicies()+1;
            ProductSequenceObj.setLatestAssignedNumberPolicies(newSequenceNo);
            Core.commitWithoutEvents(getContext(), seQuenceEntity);
            ProductSequenceObj.commit();
            break;
        }
        return (long) newSequenceNo;

Thanks,

Nags


Pass List elements with button, other than in control bar

$
0
0

Hi there,

I have a list of elements and in order to maintain the consistency among all the applications, I need to place a continue button at the bottom of the page. Now, the issue is I can not place the button at the bottom, if I'm using a data grid. Secondly, is there a way I can select elements from a list view and pass it through the button?

The List I'm trying to pass is non persistable and there is no way I can retrieve it from the database. I need to pass the selected elements for the session only.

My problem is very similar to this question https://forum.mendixcloud.com/index4.html, but again I can't use data grid, control bar button.

Thanks,

Vertika

How to get the one Entity properties into another Entity?

$
0
0

Hi All,

   I'm new to mendix, could you please help on this

 

  Issue:  I'm working on Twilio two-factor authentication facing the issue in Verify OTP Rest API,  we have two entities (Mobile & OTP).  

  OTP Rest API:

       Once enter the mobile number getting the OTP and call the Rest API.  (inputs - mobile number, country code, api_key) - its working fine

 Verify OTP Rest API:

      Here I have to pass the otp code, mobile number, and country code, How to get the mobile number and country code here?

 

How to associations for the Mobile & OTP Entities.

 

 

 

  

 

 

Automatically resizing a popup

$
0
0

Hi all,

This question has been asked once or twice before, but never with a (for me) usable answer. 

Is there a (preferably not extremely hacky) way to get Mendix to automatically adjust the size of a popup based on its contents? 

My use-case is simple. Most of the input for my current project is done through a popups. As these are all quite small (4 to 6 input fields) so no scrolling is involved. However, I do perform validation checks on the input. Whenever a validation message is shown, the popup content overflows, resulting in a scrollbar. This is both ugly and not user-friendly.

I'd very much like the popup to auto-grow to accommodate the new content. Has anyone managed to find a way to resolve this?

Kind regards,

Chris

Struggling with first web service

$
0
0

I am trying to connect to a SOAP api web service. 

What i want to accomplish is to look up a person by using a unique identifier and i want to populate a datagrid with the values in mendix. 

Where do i begin and what is the quickest way to accomplish this. 

I can send the api documentation via private message if anyone out there can help. 

Implementing Dataview with Microflow using existing Datagrid

$
0
0

HI All,

I have a datagrid with customer data having Name and city.Data is getting displayed in a grid format post clicking create. Now i want to click on Name column and get the details of name alone in another entity or page.

Can you please provide any suggestion.

 

Viewing all 83469 articles
Browse latest View live