Hi,
to "addcell" in table.setFieldValue in Custom Screen, how could i insert "url" in Map() with <script>, so that User open the URL in a Popup instead of in a new Page?
Map map;
map.insert("label", <my Label>);
map.insert("url", "https://..."); // popup?
table.setFieldValue("addCell", map);
Thanks!
Alle Svar (3)
Hi Jianchun
Isn't the default behaviour that it opens in the same page, and not in a new tab? So, your code as it stands would open in the same page?
If you want to open it in a new tab, you can do:
map.insert("target", "_blank");
However if you need it as a popup window I don't think you can do it with CRMScript. You could probably add a HTML element to the screen and do some JavaScript trickery to selects the cells, add a click event listener on each cell that finds the URL from the row and opens a popup, but that could be prone to break if SuperOffice change the table layout.
HI Espen, sorry for my delay.
I have custom Screem to list my spcial Documents in a Static table v2.
Yes, you are right, in the crm scripts to this Table there is no possible to write JavaScripts for Popup my URL. I have also created Button, in the Scripts for this Button I have no iea to get Popup.
Maybe do you have example in which HTML-Element I can write Java Scripts to get Popup like this:
myPopup=window.open([url to my Popup],'','height=200,width=300');
setTimeout(Function(){myPopup.close();}, 1000);
The URL goes to my next Screen in Popup to run Logic for download selected Document like this:
Thanks a lot!