115
Views
4
Comments
Solved
Validation inside table

Hi OutSystemsor, I created a screen for a Form. Inside a form, I have a table that can be edited with the icon at the right of table, but I cannot get the current input widget  inside that table  in Action to make a validation. Could anybody help me?

Here is the table

2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

You can try this forge component ListValidation.

Install it and its demo and check implementation into demo then try to implement same logic in your application

2024-06-11 16-02-22
Nguyen Ngoc Nam

I tried to copy it and it's work, thanks again Mr.

2020-11-25 10-45-32
Mostafa Othman
Champion

Hi Ngoc,

While you click save after editing this row you can send either Id of record as input parameter to save action if you retrieving it from database into list that you assigning to table then you can filter list by this Id to get row data and validate it or you can send current row number as input parameter to save action and use it as index of list to get current item data for validation for example "List[CurrentRowNumber].PICName"


You can find more options in this post :

https://www.outsystems.com/forums/discussion/67119/how-to-get-data-from-selected-row/

2024-06-11 16-02-22
Nguyen Ngoc Nam

I understand what your says, but what I want is, if the current input has a wrong format, when I click Save, the textbox will show the validation message and the red borderlines. But I dont know how I can get the Input.Valid and Input.ValidationMessage to customize it

The widget is not showed in Client Action - If Condition

2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

You can try this forge component ListValidation.

Install it and its demo and check implementation into demo then try to implement same logic in your application

2024-06-11 16-02-22
Nguyen Ngoc Nam

I tried to copy it and it's work, thanks again Mr.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.