Sarveshgithub / sfdc-lwc-lightning-datatable

Salesforce Lighting Data table
MIT License
78 stars 28 forks source link

[ Enhancement ] - Have the ability to specify recordId and connectedUserId #263

Closed mickaelgudin closed 8 months ago

mickaelgudin commented 8 months ago

the idea is simple in the where clause :

WHERE AccountId <> {recordId}

WHERE CreatedById = {connectedUserId}

we replace {recordId} by the record id(if there is one set) and the {connectedUserId} with the id of the connected user

Sarveshgithub commented 8 months ago

@mickaelgudin I have implemented the changes

mickaelgudin commented 8 months ago

@Sarveshgithub thank you for the implementation.

I reviewed your changes, you should use replaceAll and not replace in the js method appendWhere, otherwise we cannot specify the recordId on multiple criterias, same goes for connectedUserId.

Can you implement this fix? Thank you in advance.

Sarveshgithub commented 8 months ago

@mickaelgudin Agree, good catch, applied fix