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

How to show error message to user if data grid 2 is empty

$
0
0
Hi, There is a page which contains a form. In this page we have many fields and some data grid 2 where user can create object. On click of SUBMIT button, if required fields are empty , it displys a error message below that particular field. I have called a microflow on SUBMIT button where I am validating all the fileds if they are empty or not. I want to display error message on click of SUBMIT if data grid 2 is empty. How to achieve this. Please help me out its urgent

Update PDF file does not support special characters

$
0
0
Hello everyone, I have a problem with Java action from marketplace module PDF Form Editor. I want to fill the PDF form with values from my application. It works fine, unless I use special character. That is problem for me because I am from Czech republic and we use characters like "ě" "č" "ř" in lot of words. I thought that problem is in file encoding. So I tried to force it to use UTF-8. It did not help. Can you please help me with this? Microflow where I call Java action "Update PDF file": Java action "Update PDF file": // This file was generated by Mendix Studio Pro. // // WARNING: Only the following code will be retained when actions are regenerated: // - the import list // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. // Special characters, e.g., é, ö, à, etc. are supported in comments. package pdfformeditor.actions; import java.io.InputStream; import java.util.List; import com.mendix.core.Core; import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.systemwideinterfaces.core.IMendixObject; import com.mendix.webui.CustomJavaAction; import com.timeseries.mendix.pdfeditor.dto.ErrorDto; import com.timeseries.mendix.pdfeditor.dto.UpdateRequestDto; import com.timeseries.mendix.pdfeditor.service.PdfService; import org.apache.pdfbox.pdmodel.PDDocument; import pdfformeditor.proxies.ErrorNP; import pdfformeditor.proxies.UpdateRequestNP; import static java.util.Objects.requireNonNull; import static java.util.stream.Collectors.toList; public class JA_UpdateFields extends CustomJavaAction> { /** @deprecated use inputDocument.getMendixObject() instead. */ @java.lang.Deprecated(forRemoval = true) private final IMendixObject __inputDocument; private final system.proxies.FileDocument inputDocument; /** @deprecated use outputDocument.getMendixObject() instead. */ @java.lang.Deprecated(forRemoval = true) private final IMendixObject __outputDocument; private final system.proxies.FileDocument outputDocument; /** @deprecated use com.mendix.utils.ListUtils.map(updateRequestList, com.mendix.systemwideinterfaces.core.IEntityProxy::getMendixObject) instead. */ @java.lang.Deprecated(forRemoval = true) private final java.util.List __updateRequestList; private final java.util.List updateRequestList; private final java.lang.Boolean flattenForm; public JA_UpdateFields( IContext context, IMendixObject _inputDocument, IMendixObject _outputDocument, java.util.List _updateRequestList, java.lang.Boolean _flattenForm ) { super(context); this.__inputDocument = _inputDocument; this.inputDocument = _inputDocument == null ? null : system.proxies.FileDocument.initialize(getContext(), _inputDocument); this.__outputDocument = _outputDocument; this.outputDocument = _outputDocument == null ? null : system.proxies.FileDocument.initialize(getContext(), _outputDocument); this.__updateRequestList = _updateRequestList; this.updateRequestList = java.util.Optional.ofNullable(_updateRequestList) .orElse(java.util.Collections.emptyList()) .stream() .map(updateRequestListElement -> pdfformeditor.proxies.UpdateRequestNP.initialize(getContext(), updateRequestListElement)) .collect(java.util.stream.Collectors.toList()); this.flattenForm = _flattenForm; } @java.lang.Override public java.util.List executeAction() throws Exception { // BEGIN USER CODE requireNonNull(inputDocument, "inputDocument is required"); requireNonNull(outputDocument, "outputDocument is required"); requireNonNull(updateRequestList, "updateRequestList is required"); if (!inputDocument.getHasContents(context())) { throw new IllegalArgumentException("The document doesn't have contents"); } try (InputStream fileDocumentContent = Core.getFileDocumentContent(context(), inputDocument.getMendixObject()); PdfService pdfService = new PdfService(PDDocument.load(fileDocumentContent))) { List errorDtoList = pdfService.updateFields(convertUpdateRequestsToDto(updateRequestList), flattenForm); if (errorDtoList.isEmpty()){ JA_UpdateField.writePdf(pdfService, outputDocument, context()); return null; } else return convertErrorsFromDto(errorDtoList, context()); } // END USER CODE } /** * Returns a string representation of this action * @return a string representation of this action */ @java.lang.Override public java.lang.String toString() { return "JA_UpdateFields"; } // BEGIN EXTRA CODE public static List convertUpdateRequestsToDto(List inputList) { return inputList.stream() .map(updateRequestNP -> new UpdateRequestDto(updateRequestNP.getFullyQualifiedName(), updateRequestNP.getValue())) .collect(toList()); } public static List convertErrorsFromDto(List inputList, IContext context) { return inputList.stream() .map(dto -> convertErrorFromDto(dto, context)) .map(ErrorNP::getMendixObject) .collect(toList()); } public static ErrorNP convertErrorFromDto(ErrorDto dto, IContext context) { ErrorNP mxNp = new ErrorNP(context); mxNp.setFullyQualifiedName(dto.getFullyQualifiedName()); mxNp.setMessage(dto.getMessage()); mxNp.setException(dto.getException()); return mxNp; } // END EXTRA CODE }

Appointment booking Widget with Email Notification

$
0
0
Hello team, suggest the best appointment booking Widget available in the marketplace that includes mail notification and sms features.

Logic Bot in version 10.18 missing?

$
0
0
Hello everyone, can someone explain to me how and if the "Logic Bot" can be used in version 10.18? I neither have a slider in the GUI nor a checkbox under Edit -> Preferences. As you can see, there are even sub-options in the Logic Bot of the "Become a Rapid Developer" tutorial if, for example, "Retrieve from association" is selected. My Studio Pro: Tutorials Studio Pro:

How to create online quizz

$
0
0
Hi community, I am new to Mendix. I am working on an online quiz use case. Please help me with my requirement. Students need to book an exam slot and take the exam. While taking an exam with 25 questions from a 100-question set, give some idea for the logic. At the end, it needs to show the result of the students.

how to break session

$
0
0
Hello all developers.I have a query, I have a login with a soap web service, however I want to log out and log in with another user, however the data of the previous user appears, how can I solve this error?greetings

Create button not shpowing the entity

$
0
0
Create button not shpowing the entiy

Workflow User Task Completion with Scheduler

$
0
0
Hii Experts, I have a scenario where need to complete the Workflow User Tasks with scheduled event. A schedule event will be run which check if task is due, if yes then it should get completed and continues workflow. But I am getting an error while completing the task and it is as "Task can be completed only by the named user". please suggest the solution or any work around I can do.

Show user task page

$
0
0
Hello Team, I am using workflow. I want to show user task page immediately when I click on proceed button, without redirecting to taskinbox page. Is there any way to show user task page?

Need to view the excel file in browser

$
0
0
Hi Team, I am uploading an Excel file as a supporting document. I need to view this Excel file directly in the browser. Any ideas on how to achieve this?

How to resolve commit conflicts when options 'Resolve conflict using mine' and 'Resolve conflict using theirs.' do not appear?

$
0
0
I have a local commit of the project and I am trying to pull from the server. I tried both "rebase" and "merge", however, when I am asked to resolve the conflicts, there is no "resolve conflicts using mine" or "resolve conflicts using theirs option. If the document is modified, only option is "revert changes". If the document is newly created by me, I can't do anything. This question was asked here but duplicating the files also don't solve my problem: https://community.mendix.com/link/space/studio-pro/questions/121688

How to Design Anychart Maps ?

$
0
0
I am working with Anychart widget and created a cholopleth map using anychart, but this is looking so old age UI of map, How to make it looks good and Interactive design ??? i have tried to add configuration setting but it is not working is there any othert way to make it looks cool.

How to Print the Page as a PDF in Mendix.

$
0
0
How to Print the content of a Page as a PDF with same layout, format and dimensions as present in a Page ? The printable content in a page contains the List view data container.

Mendix 10 / PopUp menu /Acessibility

$
0
0
Hi, Using Mendix 10 with datagrid 2 and a column with PopupMenu we are getting the following error: Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden. Element with focus: div Ancestor with aria-hidden: We are facing the same issue with the dropdown container. It's seems to be related with some html that is being generated that conflicts with the accessibility guidelines/standarts. How can we fix this, in order to have the PopUp menu and the datagrid 2 working together?

How to Resolve "Can't resolve 'canvg'" in jsPDF Integration in Mendix without Node.js

$
0
0
Hi Mendix Community, I am working on a Mendix project where I need to generate a PDF from an image using jsPDF. I am using a container that relies on a JavaScript class to capture the image and pages contains graphs  convert it into a PDF. The JavaScript file is named jsPDF: Generates the PDF. However, I am encountering the following error when running the project locally: ModuleNotFoundError: Module not found: Error: Can't resolve 'canvg' in 'C:\Users\aman.shukla_infobean\Mendix\MyAppv3-feature_StaticPages_Aman_2\javascriptsource\dashboard\actions' This issue arises because the canvg module is not being found in the environment, and while it works when I manually install npm locally, the problem appears when deploying the project. Since Mendix doesn’t support Node.js dependencies or npm modules, I need to find a solution that avoids using npm altogether. Here are my requirements: No Node.js Dependency: I want to use libraries that work in a browser environment, so no need for Node.js or npm. No npm Modules: I don’t want to install npm modules. Instead, I want to include precompiled versions of libraries directly. Pure Client-Side Execution: The JavaScript should run entirely client-side (in the browser), in line with Mendix's model-driven framework. Could anyone suggest how I can integrate jsPDF or similar libraries into my Mendix project without running into this error? How can I resolve the dependency issue with canvg and generate PDFs purely client-side? Thank you in advance for your help!

Reset Number everyday

$
0
0
Hi Folks, We have one requirement where an integer/long column should reset to 1 everyday. Basically we need to generate a token number starting from 1 everyday. I am thinking to have one entity with an Integer/Long attribute and to have a scheduler every day to set it to 1 and increment everytime when a new object creats for it. Apart from this can anyone suggest any better idea?

In Entity Error is showing

$
0
0
Hello Everyone, One error is showing After I am running the Application, please share your ideas ,how to clear this error.

Display objects from Salesforce in Mendix

$
0
0
I downloaded the Salesforce Connector module from Mendix. I established the connection with my Salesforce account. I created a custom object in Salesforce. I want to display it in my page of my Mendix application. How should I proceed? It looks like I need to modify the DS_Product_Query microflow query. I'm not sure. And if so should I also modify the Domain Model? Thank you =)

Master’s Thesis: Request for Quick Feedback on Low-Code Platform Requirements

$
0
0
Hello everyone, I am a master’s student at the University of Kassel, currently working on my thesis in the field of low-code development. I have compiled a list of requirements and would like to determine how well the platform meets them. It would be sufficient if you could simply respond to each requirement with “yes,” “no,” or “partially.” I hope it’s alright that I’m posting this here. I’ve tested the free trial versions extensively, but I’m still not entirely certain if this platform suits my needs. Thank you in advance for your feedback. (F1) Overview & Progress Status, capacities (F2) Notifications & Appointment Scheduling Automated e-mails, reminders (F3) Document Generation For example PDF, digital signatures (F4) Automatic Calculation of Deadlines For example: deadline = start date + X days (F5) Central Document Repository Structured storage, archiving (F6) Template Library Digital forms to be filled out online (F7) Different Role Profiles Permissions for students vs. supervisors (F8) Document Feedback Loop Iterative reviews, comments, and version control (F9) Interoperability Outlook, Moodle, SAP, etc. (N1) User-Friendliness Intuitive handling (N2) Data Protection GDPR, data security (N3) Reliability Maintenance, stability (N4) Pricing Model No subscription models <3

Login page username

$
0
0
Hello everyone, I am trying to create the Automatically username have to show in new edit inside the data view box, please share your ideas, how to do.
Viewing all 83469 articles
Browse latest View live


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