LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

Datatable v4.1.4 - Formula fields are not shown

Open iahmadezzat opened this issue 2 years ago • 18 comments

This issue is relative to the older Issue #882

Details

I have formula fields added to the datatable but they're only being displayed while I'm configuring the columns inside the flow builder. But not being shown after saving and running the flow.

Noting that the data are retrieved from the database, so it has the formulas.

Versions

datatable v4.1.4 FlowActionsBasePack v3.15 FlowScreenComponentsBasePack v3.2.2

On a Sandbox API 58.0

Screenshots

In the configurator after selecting the columns to be displayed image

In the debug mode or after activating image

Also, I've tried different formula fields that includes both hyperlinks as in screenshots above and text only.

Your help is much appreciated. Thanks.

iahmadezzat avatar Sep 05 '23 10:09 iahmadezzat

@ericrsmith35 any help regrading this please?

iahmadezzat avatar Sep 16 '23 20:09 iahmadezzat

What if you put the formula in a rich text field?

On Sat, Sep 16, 2023 at 4:08 PM Ahmad Ezzat @.***> wrote:

@ericrsmith35 https://github.com/ericrsmith35 any help regrading this please?

— Reply to this email directly, view it on GitHub https://github.com/alexed1/LightningFlowComponents/issues/1452#issuecomment-1722306339, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX6BS7ZOUWRVWXQYKSTX2YBLPANCNFSM6AAAAAA4LQZLAY . You are receiving this because you were mentioned.Message ID: @.***>

ericrsmith35 avatar Sep 16 '23 22:09 ericrsmith35

@ericrsmith35 but how to put a formula field that contains a URL in a rich text?!

iahmadezzat avatar Sep 17 '23 10:09 iahmadezzat

You could create the link inside of a Text Template resource and assign that to the field value in the flow.

Have you confirmed FLS for the formula field? Newly added fields are not always made visible, even to the System Admin profile.

ericrsmith35 avatar Sep 17 '23 16:09 ericrsmith35

@ericrsmith35 Thanks Eric for your response. I tried your workaround and unfortunately it doesn't work! Even I created a rich text field in the object and filled it with data on some records and still coming blank to the datatable!

The FLS are visible for all profiles.

iahmadezzat avatar Sep 17 '23 20:09 iahmadezzat

Can you please show how you have the formula field configured? Are the records created before the flow even runs?

On Sun, Sep 17, 2023 at 4:40 PM Ahmad Ezzat @.***> wrote:

@ericrsmith35 https://github.com/ericrsmith35 Thanks Eric for your response. I tried your workaround and unfortunately it doesn't work! Even I created a rich text field in the object and filled it with data on some records and still coming blank to the datatable!

The FLS are visible for all profiles.

— Reply to this email directly, view it on GitHub https://github.com/alexed1/LightningFlowComponents/issues/1452#issuecomment-1722563957, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX7EMNJXQO2NFPCTXK3X25N4JANCNFSM6AAAAAA4LQZLAY . You are receiving this because you were mentioned.Message ID: @.***>

ericrsmith35 avatar Sep 17 '23 20:09 ericrsmith35

This is the formula field: HYPERLINK(CASESAFEID(Id)&'/e', 'Edit' , '_self') And yes, the flow is only getting data from database and showing them into the datatable.

PS: the formula field is for an edit url, because the lookup fields don't allow inline edit. A formula that only contains a static text also don't work.

iahmadezzat avatar Sep 17 '23 20:09 iahmadezzat

@ericrsmith35 I'd be happy to hop in a call to run through this together.

iahmadezzat avatar Sep 17 '23 21:09 iahmadezzat

Check out slides #21, #22 from this presentation I gave a Dreamforce on an alternative way to edit Lookup fields from a Datatable. https://docs.google.com/presentation/d/1AQXf6LYrkdsOI3e-8747fTS_qqq1IRiK/edit?pli=1#slide=id.g23ed53c4c9b_0_16

On Sun, Sep 17, 2023 at 5:08 PM Ahmad Ezzat @.***> wrote:

@ericrsmith35 https://github.com/ericrsmith35 I'd be happy to hop in a call to run through this together.

— Reply to this email directly, view it on GitHub https://github.com/alexed1/LightningFlowComponents/issues/1452#issuecomment-1722569286, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX3C3SWUNKHM6MSY743X25RETANCNFSM6AAAAAA4LQZLAY . You are receiving this because you were mentioned.Message ID: @.***>

ericrsmith35 avatar Sep 18 '23 13:09 ericrsmith35

Thanks @ericrsmith35 for your response. I checked the presentation and it's really cool. However, when I tried this solution the datatable is not refreshed with the new values after saving the record from the recordDetail FSC as shown in slide 21.

Also, I'm still looking for the formula fields to work because it will be more convenient for editing when selecting multiple rows.

iahmadezzat avatar Sep 24 '23 10:09 iahmadezzat

The Datatable is "refreshing" because in my example the flow is restarting. In a more complex flow, you could redirect back to thew Get Records after the Screen. image

ericrsmith35 avatar Sep 24 '23 15:09 ericrsmith35

I don't understand why this was closed as completed. I am having this exact problem (formula field not displaying in datatable) .

woodya-coder avatar Mar 15 '24 16:03 woodya-coder

@woodya-coder Are you sure you're including the formula field in your query or "Get Records" element?

iahmadezzat avatar Mar 18 '24 10:03 iahmadezzat

I selected the option of letting Salesforce store the objects for me. To produce the behavior this is what I did.

  1. added a simple formula field to account that returned the string "hello world"
  2. created screen flow with Datatable element.
  3. used Get Record to get some accounts.
  4. Put the formula field into the datatable (note that the preview shows the data as expected).
  5. Run the flow When I run the flow, the rows are there in the table, but nothing is visible.

woodya-coder avatar Mar 20 '24 01:03 woodya-coder

@woodya-coder @iahmadezzat Please let me know if the Field-Level Security on the Formula Field is set to Visible for the Profile running the flow. If it is nopt set to Visible, the Flow Builder will still show the field but it will be blank when running the flow.

ericrsmith35 avatar Apr 07 '24 16:04 ericrsmith35

@woodya-coder @iahmadezzat Any update on checking the Field Level Security for the formula field? I am unable to reproduce this behavior.

ericrsmith35 avatar Jun 23 '24 18:06 ericrsmith35

Hello Eric Sorry I've been so slow on this. The field level security is set to visible for all profiles. The field accessibility is set to Read Only for all fields.

Are you able to see a formula field okay in the Datatable?

On Sun, Jun 23, 2024 at 11:04 AM Eric Smith @.***> wrote:

@woodya-coder https://github.com/woodya-coder @iahmadezzat https://github.com/iahmadezzat Any update on checking the Field Level Security for the formula field?

— Reply to this email directly, view it on GitHub https://github.com/alexed1/LightningFlowComponents/issues/1452#issuecomment-2185256075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUWFBSGXMM3NKKZ3XAJXVTZI4E2LAVCNFSM6AAAAAA4LQZLA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVGI2TMMBXGU . You are receiving this because you were mentioned.Message ID: @.***>

-- Woody Anderson [image: LinkedIN Profile] http://www.linkedin.com/in/woodyaanderson

woodya-coder avatar Jul 02 '24 22:07 woodya-coder

@woodya-coder , @iahmadezzat I am not able to reproduce this issue.

ericrsmith35 avatar Jan 22 '25 19:01 ericrsmith35