StephenM 0 Posted June 3, 2021 I'm looking for best practices or guidance for the following scenario. The front end is a page control with multiple pages. The user completes the form and presses 'Save'. The app takes the contents of the controls, populates an XML document, and sends the document to a server for validation and processing. Let's say a validation error occurs. One of the XML fields contained a negative number and only positive numbers are allowed. How does the client know which page and control to highlight for a given validation? I think there needs to be some association between the data entry controls and the XML fields, but I'm unsure what is the best way to build this. Have you handled this situation before? What algorithm or data structure did you use? Regards, Stephen Share this post Link to post
Guest Posted June 4, 2021 7 hours ago, StephenM said: and sends the document to a server for validation This sound like your starting point. You send something to someone (server). Then you should get a response (as you indicate above). Does the response contain validation information? Then that information must be mapped to the control (perhaps via a field DataLink) and code written to indicate what is a miss. If the response does not contain error information specific enough, then you option would be to show an error message unconnected to the "field" that is the culprit. Show us the response from the server for better advice. Share this post Link to post
Fr0sT.Brutal 900 Posted June 4, 2021 You have to link controls and XML fields 1:1, then just take invalid XML field, get its linked control, show it and display server's error text Share this post Link to post