Hello Community.
Is it possible to add a page in a dataverse list where the user would click and would redirect them to a secured page I created under "Other Pages" in the portal, instead of using a URL?
Thanks so much.
@OliverRodrigues @ragavanrajan
I was able to get the code you guys provided to work for my goal! Thank you for your time and solutions. I had some help to debug the issue I was running into, and figured out I needed to remove the conditional statement referencing "value == URL" so that all the URLs got replaced with an icon or button of some sort. I also replaced data attribute to reference my column's logical name in dataverse.
$(document).ready(function () {
console.log(555, "console loading");
$(".entitylist.entity-grid").on("loaded", function () {
$(this).children(".view-grid").find("td[data-attribute='columnlogicalname']").each(function (i, e){
console.log(222, "name of column loading");
var value = $(this).data(value);
console.log("666value Var", value);
var downloadElement="";
downloadElement += "<a href='"+this.innerText+"'>";
downloadElement += "<button type='button' class='btn btn-default btn-lg'>";
downloadElement += "<span class='glyphicon glyphicon-plus' aria-hidden='true'/>";
downloadElement += "</button>";
downloadElement += " </a>";
$(this).html(downloadElement);
// }
// else{
// $(this).closest('tr').css("background-color", "#ffffff");
// }
});
});
});
Thank you @Fubar .
@Fubar or @ragavanrajan I am not a JS developer. Could you help me on what exactly I need to replace in the code with my values to make it work? An icon would work well for me. It would be like a button the user can click on to get redirected to the Power BI embedded page.
Greatly appreciate everyone's help in this thread.
The out of the box List does not render a URL. The work arounds to this are to either parse the List (JavaScript as per Jakesh post above), or create your own list using Liquid in a custom Web Template (or technically can also be in a Web Page - but not good practice).
Hi @OliverRodrigues . I am not sure I understand, and thank you for your thoughts and time.
In an Excel cell, you can embed a hyperlink into a text field. If I click on this underlined name, it will redirect me to a web page. This is what I am trying to achieve, rather than displaying the URL. I don't know why Power Apps/Pages/Dataverse makes this so hard. You would think it is something rudimentary.
@jakesh would this solution solve your problem?:
does this make sense?
Hi @ragavanrajan .
Does this code resolve just for one URL? The page will have dozens of URLs referencing multiple internal pages in Other Pages.
Here's the code:
$(document).ready(function () {
console.log(555, "console loading");
$(".entitylist.entity-grid").on("loaded", function () {
$(this).children(".view-grid").find("td[data-attribute='crb3e_powerbiurl']").each(function (i, e){
console.log(222, "name of column loading");
var value = $(this).data(value);
console.log("666value Var", value);
if(value.value == "https://basictemplate.powerappsportals.com/payors/")
{
console.log(444, "condition triggering");
var downloadElement="";
downloadElement += "<a href='"+this.innerText+"'>";
downloadElement += "<button type='button' class='btn btn-default btn-lg'>";
downloadElement += "<span class='glyphicon glyphicon-phone' aria-hidden='true'/>";
downloadElement += "</button>";
downloadElement += " </a>";
$(this).html(downloadElement);
}
else{
$(this).closest('tr').css("background-color", "#ffffff");
}
});
});
});
Hi @OliverRodrigues . Yes, this would be an internal page under "Other Pages".
The requirement is to display a list of Power BI report names in a page so that users can click on the report name or icon, and it will redirect the user to a hidden "internal" portal page where the Power BI report/dashboard is embedded (via html liquid tag). The Power BI embedding page is on the "Other Pages" section where Access Denied and Page Not Found reside.
Here's an example:
As a user I will navigate to the Organization page where I can find a list of Power BI report names. From there I can click on the report name and it will redirect me to a Power BI Report page where the report is embedded.
Hi @jakesh I think this answers my question on the other thread
can you explain a bit more your requirement? there might be a few different ways to achieve this
Hi @jakesh
It is the same approach as your other question. Place your javascript and add the other pages URL in the value statement.
Please have a look at the output section. All I was doing there was displaying a mobile icon and allowing user to redirect to other pages in Portal.
Hope it makes sense.
Hope it helps.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional