ericrsmith35 / DatatableV2

28 stars 24 forks source link

Cannot inline edit fields on apex-defined table #49

Closed ohadios closed 3 years ago

ohadios commented 3 years ago

When I enabled inline edit on one of the columns in my apex-define table, everything looks good - except I cannot find any way to get those values out of the screen. When clicking 'Save', the values disappear from the screen. I attempted to suppress the save button, but the values are not passed out through the output string.

ericrsmith35 commented 3 years ago

What is the field type you are trying to edit?

ohadios commented 3 years ago

What is the field type you are trying to edit?

Number field - decimal. It is null when passed into the Datatable - the expectation is that the user will provide a value.

ericrsmith35 commented 3 years ago

Do text and integer fields work when you edit them?

ohadios commented 3 years ago

Do text and integer fields work when you edit them?

Just tried to both - no luck :/ Could I be doing something wrong?

ericrsmith35 commented 3 years ago

Are you checking the contents of the Output Edited Records attribute after selecting Next from the datatable Flow screen?

ohadios commented 3 years ago

Are you checking the contents of the Output Edited Records attribute after selecting Next from the datatable Flow screen?

I just tried - the "Output Edited Rows (User Defined)" returns an empty list - whether I just 'ignore' the save button, or if I suppress it. Clicking save still just clears the values.

The "Output Selected Rows (User Defined)" returns the selected rows, but without the edited value.

ericrsmith35 commented 3 years ago

I ran a number of tests and I'm still not able to reproduce your issue. Can you point me to a repository where you have your flow and apex classes so I can take a closer look?

ohadios commented 3 years ago

I ran a number of tests and I'm still not able to reproduce your issue. Can you point me to a repository where you have your flow and apex classes so I can take a closer look?

I guess I'm doing something wrong - that's encouraging :) I just put the source in this git: https://github.com/ohadios/dataTableFlow

There are two datatables in this flow. It's the second one, named: lotWrappers that is using the custom apex object. And also - thank you so much for being so responsive! When we are allowed to congregate again - I owe you a beer!

ohadios commented 3 years ago

Hi Eric - I've not had much luck trying to figure this out... have you had a chance to look into my repo?

arnaudvdvk commented 3 years ago

@ericrsmith35 @ohadios Hello, I'm facing the same issue. I hope we can find a solution for that. Thanks !

ericrsmith35 commented 3 years ago

I have not yet had a chance to look at this. I hope to take a look this weekend or next.

Eric Smith

On Wed, Nov 4, 2020 at 4:56 AM arnaudvdvk notifications@github.com wrote:

@ericrsmith35 https://github.com/ericrsmith35 @ohadios https://github.com/ohadios Hello, I'm facing the same issue. I hope we can find a solution for that. Thanks !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ericrsmith35/DatatableV2/issues/49#issuecomment-721632081, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX2PKN4SYAULTT5MITLSOEQMFANCNFSM4SWZSH5Q .

arnaudvdvk commented 3 years ago

@ohadios I had the same issue but I found the cause. It is a config reason. You need to change the "Key Field". You need to put a field that is unique. I'm working on Product Items, so I put "Product2ID".

I hope it helps.

@ericrsmith35 FYI

ericrsmith35 commented 3 years ago

Thanks.

On Thu, Nov 12, 2020 at 1:17 PM arnaudvdvk notifications@github.com wrote:

@ohadios https://github.com/ohadios I had the same issue but I found the cause. It is a config reason. You need to change the "Key Field". You need to put a field that is unique. I'm working on Product Items, so I put "Product2ID".

I hope it helps.

@ericrsmith35 https://github.com/ericrsmith35 FYI

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ericrsmith35/DatatableV2/issues/49#issuecomment-726251565, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX5EWBU5DTDRVQQ324LSPQREDANCNFSM4SWZSH5Q .

ohadios commented 3 years ago

Thank you @arnaudvdvk ! will check it out next time I have a use-case... I took a different approach using objects for now - but I may roll back to using apex objects.