Hello everyone.
I want to provide link in which users can go on click of link to particular page.
i.e I have a readOnly grid with column such as xyz,now I need to provide provide link for that row ,where on click of that users needs to stay on the module page in new tab that they have clicked through the link. How can I achieve this ,Can anyone suggest me which linkfield that I have use?
the grid column is here
Discussion posts and replies are publicly visible
I have used safelink for the same in readOnly grid.
But Bcoz I have used uri:" ",getting page for all the modules as same page,Do I have any option to provide the different urls for each modules(business,financial,account....etc shown in the fig).Since url not same for all modules here
Please let me anyone for the same.
What you have here will work, though I strongly suggest (in basically all cases) that developers avoid using a!linkField() and instead use a!richTextDisplayField(), subsequently making use of the "link" functionality contained down in a!richTextItem(). This approach is useful and more flexible in several ways - first, the link itself can conditionally be turned on or off depending on any factors you want (whereas a!linkField() will break if you try to not give it a link to refer to). Secondly, you have full control over text formatting, icons, etc, as well as the link style itself (i.e. underlined or not).
a!gridColumn( label: "Link Column", value: a!richTextDisplayField( value: { a!richTextItem( text: fv!row.workflowDescription, link: a!safeLink( showWhen: local!showWebLinks, uri: "www.google.com" ), /* further style configuration options, for reference: */ linkStyle: "STANDALONE", size: "MEDIUM", style: "EMPHASIS" ) } ), width: "AUTO" )
yes thank you,it is working.
Can we have the option to provide safelink for the gridField label?
The label which is shown here is representing right side value,Do I have the option to provide link for that label?
I used safelink but the uri is not same for all the modules.So it's not only based on uri change and based on the type of customer.in that case I need to show different type of customer and modules the page (uri) varies,so I have used recoedtype for that it is showing based on the customer type summary page is displaying,but in my case I need to show based on the customers different modules (business, financial.....) Can be shown.How will I achieve this using any of these links?
is anybody know the solution for this?This is my code.As of now all the modules are opening in summary bcoz of the dashboard (Text): URL stub of the destination record view. Default: “summary”. but in my case I need to show based on the customers different modules (business, financial.....) Can be shown. Is my question clear?
All field labels, etc, can only display Plain Text.
You just pass in a different value for the "dashboard" parameter, corresponding to the Record View's URL Stub.
The trick, of course, is whether you can systematically know which stub you'd want to include for each different grid row. The easiest way would be to have the stub be included in the data being shown on the grid, but figuring that out is kinda up to you as the owner of the data structure.
yes thank you