Skip to content
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

Display HTML Content in Body Component of SecondaryRecordSource in Dynamics 365 Timeline #592

Open
YonyMuneton opened this issue Jun 9, 2024 · 5 comments
Assignees

Comments

@YonyMuneton
Copy link

YonyMuneton commented Jun 9, 2024

Hi @JimDaly ,

I hope this message finds you well. I am currently working on implementing a custom SecondaryRecordSource for the timeline in Dynamics 365 and have encountered a challenge that I hope you could help me with.

I need to display HTML content within the body component of the timeline. I have tried using the "Label" (it shows as plain text) tag as well as other components like "HTML", but nothing seems to work. Is there a specific approach or component that you would recommend for this purpose?

Any guidance or examples you could provide would be greatly appreciated.

Thank you for your time and assistance.

Best regards,

image

@JimDaly JimDaly self-assigned this Jun 25, 2024
@JimDaly
Copy link
Member

JimDaly commented Jun 25, 2024

@YonyMuneton

I assume you mean the model-driven app timeline control described here Set up the timeline control.

You are asking me how to inject HTML into this control using data from some other data source. I don't see how this question is using any of the client-side scripting APIs we support. Setting arbitrary HTML into controls doesn't align with the extensibility pattern we provide.

I recommend you look at ways to get the data you want to refer to into Dataverse in some way, then configure the timeline control to display that data. You may want to look for blog posts like this one: Make the Activity Timeline Control Useful in Model-Driven Power Apps. I don't have first-hand experience with this, but looks promising.

@JimDaly JimDaly closed this as completed Jun 25, 2024
@YonyMuneton
Copy link
Author

Hi @JimDaly,

Thank you for your quick response.

The issue isn't about support; it's related to the SecondaryRecordSource. It works perfectly for me, except for one thing: I can't get it to work with HTML.

The image is an example of the result that could give you a better idea of my issue.

image

Regards!

@JimDaly JimDaly reopened this Jun 25, 2024
@JimDaly
Copy link
Member

JimDaly commented Jun 25, 2024

Adding @xxhice

@YonyMuneton Sounds like the sample code we include in the repo is working for you, but you want to modify it in some way?

We can accept issues that relate to the sample code we provide in this repo. If it is broken, we want to fix it. But we can't take issues that could be bugs or better addressed in the documentation.

Sample code are learning resources, but they don't stand alone. Perhaps @xxhice will understand what you want to do better than I do.

@YonyMuneton
Copy link
Author

Hi @xxhice,

I would appreciate your help with a specific aspect of the example code provided in the repository SecondaryRecordSource. I am looking to visualize HTML within the sample code instead of plain text. Could you guide me on whether it is possible to achieve this?

Thank you!

@ShikhaG1405
Copy link

@YonyMuneton , @JimDaly - Did you find any solution to this? Mine is a similar scenario where i am using this custom connector to read the data from a virtual table. Rich Text column of that table returns the data but when using the sample code new line breaks are not recognized properly.
Data stored on Virtual table as
Hello XYZ,
This is a sample code.
Testing this functionality

Using this code it gets displayed as
Hello XYZ,This is a sample code.Testing this functionality

Line Breaks are just ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants