Currently we are working to integrate the Autodesk forge Viewer to display the REVIT file in our web application.
Also we are getting the asset details in a json format by using Model Derivative API.
Then extract the asset details from JSON file and store it in the database. Then we bind the asset details in tree view.
On clicking the particular asset in tree view - the selected asset should highlight and zoom in forge viewer.
Kindly share any c# sample code to highlight the selected asset (in custom tree view) in forge viewer.
you can use the below code to highlight the asset
pass the dbID:
this.viewer.fitToView(dbID);
this.viewer.isolate(dbID);
Related
I am using highlight JS for syntax highlighting. When published in the Azure webapp, it is working fine and color coding is appropriately displaying as shown below.
enter image description here
But when the same web app is mapped to a custom domain (created in cloudflare), highlight.js is not applied and the syntax is not highligting as shown below.
enter image description here
Note: In the above image text and background are same and text is not visible. Can someone help me out why the highlight.js is not working when the html page is accessed via the custom domain URL?
I am using Liferay 7.2. I want to display the viewURL link of an asset publisher in a Display Page Templates page. I couldn’t solve the problem. After searching, I realized that this problem can be solved in three ways:
Method 1:
1- As and admin, in Web Content>Structures create a structure (News Article) and make a Template for that structure.
2- Create page A and add an asset publisher. In this asset publisher: In Asset Selection choose Web Content Article as Asset Type and choose News Article as sub structure. In Display Setting tab choose View in Context as Asset Link Behavior.
3-In Site Builder>Pages create a Display Page Template (page B). Edit it and add an asset publisher similar to page A. However, in page B, in Configuration of asset publisher, in Display Settings choose Show Full Content as Asset Link Behavior and tick Set as the Default Asset Publisher for This Page and Show only assets with Page B as its display page template.
4-Create some News Article. In Display Page Template section, choose Specific Display Page Template and Page B.
In page A, everything is OK. However, when I click on ViewURL of an asset entry, it will redirect to page B. But, in asset publisher section of page B, no results is shown (There are no results.). Means that the chosen asset of page A is not shown in Display Page Template of page B.
Method 2:
Maybe the simplest method is editing Display Page Template (page B) in Section Builder>Content Display add Display Page Template. However, as stated in this issue , the display page content section only shows the summary and no style can be shown. Maybe it is necessary to edit abstract.jsp file. But, I don’t know how to do this.
Method 3:
Create a Widget Template and add it to page B. The article data of the selected asset can be obtained from the URL. However, I couldn’t get the data of the selected article.
I appreciate for any help in this regard.
An Asset Publisher instantiated in a Display Page Template won't show the page Web Content. One way to show an Web Content in a Display Page Template, is to instantiate a Fragment and map the Web Content fields to it, as shown here.
So, to solve your problem, you would need to change Page's B Asset Publisher to one or more Fragments, and map your News Article fields to them.
You could also map the Web Content to your own custom Fragmets, using Fragments lfr-editable fields
<lfr-editable id="unique-id" type="text">
This is editable text!
</lfr-editable>
Another way is to get the Web Content Java Object instance inside a Freemarker (a Fragment, Widget Template, Web Content Template, etc) with this snippet (only works for 7.3+)
${Request.INFO_ITEM}
I am using Dynamics 365 V9.
The view has a field that contains the url of an image. I would like to show in every line of the view, instead of the url, the image itself. Is it possible? Do I need to build a web resource for this?
Dynamics allows us to show images in views. Please see the article: https://learn.microsoft.com/en-us/dynamics365/customer-engagement/customize/display-custom-icons-instead
Basically, you have to add a web resource(JS) which should contain a logic to show the particular image. The image must be uploaded in CRM.
Hope it helps.
I'm completely new to the Dynamics CRM environment.
Within our current implementation, there is a grid which displays a list of current sales opportunities. Within this grid, there is a column for the user which is a link to another part of Dynamics. We want to instead be able to open a new window to another system. How can I customize how that link gets rendered out so that the client "onclick" function can link to a javascript function which will open a new window with the URL we need?
Please see attached:
Snapshot of Dynamics grid
Im afraid that this is not possible with supported customization.
My understanding is that you will keep URL to external system on entity and you would like to be able to open with single click from grid displaying this record?
However, Im not sure if you add this fields as single line of text with format option URL won`t work as expected. If this does not work, you would need a custom grid to display this data.
You can store url in text field with format URL, click on such field will open link in new window/tab.
For access web apps launched into a SharePoint site, clicking on "details" provides a page which has the following chart:
When I check the source of that "image", The link looks like this:
https://MYCOMPANY.sharepoint.com/THISPROJECTPATH/_layouts/15/AppMonitoringChart.aspx?Launches=Days&Data=0|0|0|0|0|0|0|2|1|0|0|0|4|0|0|0|0|0|0|0|0|1|1|0|0|0|2|0
in other words, it's passing the data to the chart in the link itself. I want a way to capture the link to this image (without visiting the page manually/authenticating), which would allow me to track signin status for many projects. This, however is impossible if the image itself doesn't have a fixed path... does anyone have any ideas? Or a way to harvest the data that is fed into the chart programmaticaly?