Can I have a Web page Dashlet with dynamic content?

I can easily add an Action button in Record View to open a page whose URL is composed of a base and an ID stored on the current record.

Something like:

concat("">mywebsite.com/info, $field_name)

Is there an easy way to use that field definition/formula to just include that page as a Web Dashlet in the intelligence pane as well?

It looks like the Web Page dashlet is static only and cannot reference the current record.

Thanks,

Francesca

Parents
  • Hi  , 

    The standard Web Page Dashlet in Sugar displays a static web page, so there’s no built-in way to have it dynamically render a site with values from the current record.

    I was thinking about this recently, and while my idea is a bit… unconventional, it works without any custom code.
    If you don’t mind a slightly “weird” workaround, here’s what I tried:

    1. Create an IFrame field in your module, and have it render based on dynamic content. For example, I used it to perform a Bing search using the Case Subject.



    2. In Studio, edit the Record View Dashlet layout for your target module so that it only displays the IFrame field you just created.






    3. On the Record View, add a Record View Dashlet for that module.

    The result? You get a dashlet that dynamically loads Web content based on the current record—without writing a single line of code.




    You might struggle with the window size and so on, so please give it a try and see if it works for your use case!

    Cheers,

    André





  • You are right, I do struggle with the the size, so I used a panel on the Record View  where I added the iFrame itself.

    Fought a bit with the CSP right but it works.

    Would be great if the iFrame window was resizable  by the user:) 

Reply Children
No Data