-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kie-issues#2548: Cannot add a new record within an empty Decision Table #2912
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kusuma04-dev Hi, thank you for the PR. I think from now one users will be able to add rows even to a table, that has zero rows/rules in the xml.
However, I would like to share one idea/proposal, that from my point of view would make more clear difference between no data state vs some data state.
Currently we have
0 rows just opened
0 rows transformed to one row
Proposal
0 rows just opened
0 rows transformed to one row
Thanks Jozef for the review and the proposal. I agree with you ,with these changes user can distinguish between dummy row and actual row. |
@tiagobento , Can you please share your thoughts on this: Screen.Recording.2025-02-19.at.6.16.31.PM.mov |
IDK I think it's weird to have to click on the |
@tiagobento ,Thanks for your suggestion , Yeah user can use normally ,here 1st row which is displayed is not actual rule , it becomes active only when user added something then they can use normally but if user didn't add anything then clicked on + icon then it will add 1st row(considering no rule present before). Please share your view on this if this is fine or we need to modify anything? |
Hi @tiagobento @jomarko , I have made the changes to make it work as normal decisiontable, Please review and suggest if anything is missing. |
5897555
to
5a75a1c
Compare
closes #2548 Cannot add a new record within an empty decision table
Before fix:
When user added empty decision table without any row , + icon is not visible to add rows.
After fix:
If user added an empty decision table then row is displayed, if user added something in that row then only it is updated otherwise row is just for display purpose and here if user tries to add another row , he can able to add after updating something in the displayed row.