CRM window.open
Hi all,
Im currently using a window.open to open a new window of the same crm with the parameters
mention in this post:
/people/poonam.assudani/blog/2007/10/08/call-a-specific-component-and-object-from-outside-crm-using-url
The problem is that when i close the popup it kills the session and the parent needs to relogin
any suggestions?
Thx
Udi.
Hi Mannif,
I think you can do that but you will need to do some JS coding.
You need to set the window focus to the new window.
For opening in the tab i think this can also be controlled with the browser settings. Alternatively somewhere in the code SAP would have done a new window creation which creates a new browser session. You might have to look up relevant code or parameters for the browser you are using.
If you are new to Java Script look up the JS files in UI Component UICMP_LTX...this is the component for Transaction Launcher.
Look at the admin.js file under "Pages with Flow Logic "
Similar to this the UI component being used in your case will have JS files which will need to be modfied[ this will create a Workbench TR]
Thanks.
Similar Messages
-
Window.open opens new Firefox page, not a windows exploer window
I have a javascript code within Dynamics CRM to open a windows explorer window if a field is double clicked with the folder location in that field. For example, if our local server name was COMPANYSERVER
If the field contained \\COMPANYSERVER\Accounts and you double click it, that windows explorer window shows the Accounts folder in the COMPANYSERVER, and I can navigate to any child directories.
If we use CRM in Internet Explorer, this works fine. However if CRM has been opened in Firefox, instead of opening a windows explorer field, it opens a new tab in Firefox, with a File or directory not found error, obviously because it is trying to find a webpage rather than an internal directory.
I was not sure whether to log this on a Dynamics forum or Firefox forum, so I have done both, but as I say, it works perfectly with IE so I guess it's something I need to do differently for firefox, or change a setting somewhere within firefox?
I am very new to firefox, so if you can be quite basic with your answers I would really appreciate it!I personally have not done this before, however there are two old sources that have both referenced the IE Tab extension.
http://www.powerobjects.com/blog/2008/06/02/dynamics-crm-in-firefox-you-betcha/
*Is Firefox the default browser?
*Does it automatically run Firefox as the Administrator that is logged in? -
Our CRM system opens a tab everytime I click on a link, is there a way to avoid this?
Our CRM system opens a tab everytime I click on a link, is there a way to avoid this?
Hi andreamonni,
Yes there is check out the feature opening a new window in a new tab.
Firefox menu > Preferences > Tabs the first check box.
If this is happening only on this website:
In order to change your Firefox Configuration please do the following steps :
# In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
# Click '''I'll be careful, I promise!''' to continue to the about:config page.
browser.link.open_newwindow
2 (default in SeaMonkey and Firefox 1.5): In a new window
3 (default in Firefox 2 and above): In a new tab
1 (or anything else): In the current tab or window
or
browser. link. open_newwindow. restriction
please see [http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries] -
Problem with Sessions and window.open
Hi,
Hi everyone,
Help Please!!!
I am working with Sevlet session objects and HTML forms and windows. I have an HTML form for the user to supply a username and password. Once the user clicks submit I need to open another browser window that has no toolbar, no location, no status bar, etc. The user should also be able to go back to that login screen and login again and open a 2nd, 3rd, etc. instance of the application. My problem is that each application is being asigned the same sessionId. I believe it is being asigned to the main login window and thus to the other child windows it opens. Is there a way to work around this? Do I need to make the user open another browser window to login? I need to be able to let the user open multiple instances of the application with unique session ids for each.
Any insight is GREATLY appreciated on this topic. Anything you can tell me about sessions (Java), IE, window.open would help greatly!
THANK YOU IN ADVANCE!!!
MATo achieve this, you must introduce another level of
abstraction to the Servlet specifications. When you
work with JSP/Servlets you use mostly the HttpSession
to handle user related tasks, and the aplication
context, for things that are common to all users. But
inside the HttpSession scope, you want to create
containers that have 'smaller' scope and are uniquely
identified.
A ipothetical scenario :Let's say that you must have
multiple connections to several databases, on each
database user rights beeing diferrent, and you must be
able to track user actions globaly, and eventualy
capture a 'Close Application event' and close all db.
connections.
1. when the user first accesses the login frame create
the HttpSession. In the HttpSession object, store a
Hastable (let's call it 'ConnectionTable'). Each
object in the Hashtable must identify uniqely a
database connection. Now, to create unique identifiers
ids, make the keys in the hashtable java.lang.Long
objects, created using System.getCurrentTimeMillis().
This guaranties there will be no possible confusion.
From each new open window, on each request to the
server, along with the usefull parameters, send the
connection identifier. When proccessing the request,
select the object from the Hastable wich corresponds
to the ID.
2. Now, the values in the ConnectionTable, must act as
the containers that I mentioned in the first
paragraph. The simplest way to do this is to have
again a Hashtable derived class to do the job, wich
exploses methods similar to HttpSession: setAttibute (
Object key, Object value) and getAttibute ( Object
key, Object value). This container may use internally
a Hashtable to store object, and explose only the
getAttribute and setAttribute methods for clarity. Any
way, this is a problem of implementation. Let's call
this class CustomSession.
Now, a textual activity diagram:
1 user accesses the main page, you start a new
HttpSession; In the HttpSession object, store the
ConnectionTable object.
2. the user enters the userID and pwd and adatabase
name, and a new window is opened. Let's supose the
data entered is valid.
3. when you process the login data, you create a new
CustomSession object. you put in it whatever you would
put in your HttpSession. You generate a unique
identifier using System.CurrentTimeMillis(). Put the
CustomSession object in the ConnectionTable, using the
generated id as key. Send the response.
..... later on .....
100. the user asks for a particular action to be
performed - e.g. a row deletion. The page contains a
form with text field where the user introduces the
row number, a submit button and a hidden input with
the ID.
101. you process the data. Get the ID from the request
object, get the ConnectionTable from the session, get
the CustomSession using the ID as key, do whatever
your logic was doing, but obtaining the objects from
the CustomSession instead of HttpSession
NicNic,
Very slick idea. I think that it could work and it seems that there would be not security issues because the id that you would store on the client side is the Unique Identifier and not the actual Session Id. Do you forsee any security issues for this implementation? -
This does not appear to be a system issue, but rather a functional aspect of the browser windows. E.g., if I have 7 browser windows open to different sites... and all are Minimized, and I decide to open one to study, THEY ALL POP OPEN automatically. I am using Firefox v3.6.8 on Windows 7. This is an annoying behavior of the browser, and I am sure it can be somehow "turned off" but cannot determine how to do that. I have looked through all options. I am not a techie, but have reasonable proficiency with software apps.
This can happen if you drag a tab slightly down in the browser window while clicking.
Firefox has a feature called tear-off tabs
You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.
You can also do this via the right-click context menu of a tab: Move to New Window
You can drag that tab back to the tab bar in the original window to undo that detaching.
* https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t -
I am running Firefox 3.6.3 on my Mac G5 and my MacBook.
Since I installed Firefox 3.6.3, everytime I open Google Notifier, two Firefox browser windows open. This happens on both of my computers.
This never used to happen before, in the earlier versions.
How do I make it so that only one browser window opens?
== This happened ==
Every time Firefox opened
== I installed Firefox 3.6.3 ==
== User Agent ==
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7I got this all screwed up too.
hmm.. where to start?
3.6 and 4.0 beta - really aren't intended to play well together.
As has been mentioned above, they tend to write over each other.
I managed to get both 3.6.15 and 4.0 beta 12 on the same machine.
But, I had to do it several times.
I got lucky by deleting everything Mozilla, then installing 4.0b12, then 3.6.15 - while making sure that each installed into a separate folder.
I also took care to copy out a couple of BookMark BackUp files - just in case.
My old 3.6# had become so bloated - and, Unstable - for Me, it was time.
The bookmarks were all that I was still interested in.
All the Plugins, Themes, AddOns, etc... had slowed the app to a crawl.
So, I did as complete a wipe of Mozilla bloat code that I could, including profiles.
I then did some registry cleaning.
Then I installed 4.0b12 and 3.6.15.
I can't open them both at the same time.
If I open 3.6.15 first, then open 4.0b12 - the beta comes up as 3.6.15.
If I open 4.0b12 first, then open 3.6.15 - the 3.6 comes up as the beta.
This has a lot to do with both apps sharing the same default profile.
I hope to drop down to one app in the near future.
So, cobbling multiple profiles in order to diddle side by side apps - isn't worth it at this stage.
For me, I can't open FF 4.0b12 when my virus protection is running. PCTools doesn't like some thing about the way FF4.0 wants to phone home when it opens.
So, I can't commit to the 4.0b12, yet.
3.6.15 was crashing on open too - until I uninstalled the feedback addon. - go figure -.
Also, I can't get the 4.0b12 to start in safe-mode with the PCTools antivirus running.
At the rater they are going, I don't see 3.6.# going away any time soon. -
Since I started using FireFox version 4, every time I open a "new window", all other instances of FireFox windows open up. This is annoying as it often covers up instances I am currently using with instances that I don't wish to use right now. I can't seem to find a way to keep this behavior from occurring.
Try go to '''about:config''' search for '''browser.startup.homepage''' change its value to:
'''about:home''' - default page<br>
'''about:blank''' - blank page<br>
'''url''' - a page that you want
Also:
*[https://support.mozilla.org/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in safe mode]
*[https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems Reset Firefox]
*[https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware Problems caused by malwares]
*[https://support.mozilla.org/kb/how-to-fix-preferences-wont-save Preferences won’t save]
*[http://kb.mozillazine.org/Preferences_not_saved] -
How to get the window.opener object into a model window
Hi,
I m opening a new popup window with the help of window.showModalDialog(url,self,''). Now i want to access the opner window inside this popup window. Since this showModalDialog does not support window.opener so i passed 'self' as parameter and if i want to access the parent window i can access it with the help of window.dialogArguments . But the problem is window.dialogArguments is not an object .
for e.g.
var caller = window.opener
then caller can be used as object but if i do like this
var caller = window.dialogArguments
then i can't use caller as an object.
Can anybody tell me the correct way.
manishHi Manish,
I'm trying to use as well showModalDialog in IE and in the same time have a similar experience in other browsers (like Firefox) - similar to the Hotmail Empty Junk mail button, so here is a piece of code you might be interested in:
Caller page
// showModalDialog for Non-IE browsers
if (!window.showModalDialog) {
window.showModalDialog = function(sUrl, vArguments, sFeatures) {
var wFeatures = sFeatures.replace(/dialog/gi,"").replace(/:/gi,"=").replace(/;/gi,","); // plus a little more replacement
var modalWindow = window.open (sUrl, "_blank", wFeatures);
modalWindow.setFocusToWindow = function () {
modalWindow.focus();
modalWindow.setInterval ("setFocusToWindow()", 100);
// Show modal dialog...
window.showModalDialog ("modal_dialog.html", self, "dialogHeight: 300px; dialogWidth: 400px; center: yes; help: no; status: no")
modal_dialog.html
// IE only - other browsers will be fine
if (window.dialogArguments) {
window.opener = window.dialogArguments;
// Write something back in the opener window
window.opener.document.write ("here you go..."); -
Request.getParameter is NULL from window.open form submit
Hi all,
We have one portlet application where a jsp page has a link which opens as a child window using the window.open function in javascript.
It has a form and some textboxes with a save submit button.When the save button is clicked the portlet processAction is called but when i try to set the renderrequest all the request.getParameters are null .I have tried both the ActionRequest and HttpServletRequest and both have nul values.
As a result me Save is failing since the request.getparametrs are null.I added the "save" as part of form action URL and its getting passsed but the other, i am unable to fetch.
My Form action is : <form name="saveEntries" id="saveEntries" action="<portlet:actionURL secure="true"/>&action=save&_pageLabel=ABC" method="post">
My process action code is :
Enumeration<String> parameters = request.getParameterNames();
while(parameters.hasMoreElements()) {
String parameter = parameters.nextElement();
String[] values = request.getParameterValues(parameter);
if(values != null && values.length > 1){
response.setRenderParameter(parameter, values);
} else {
response.setRenderParameter(parameter, request.getParameter(parameter));
if(request.getParameter(parameter)!=null && "save".equalsIgnoreCase(request.getParameter(parameter))){
HttpServletRequest httpRequest = (HttpServletRequest) request.getAttribute("javax.servlet.request");
Enumeration parameterNames = httpRequest.getParameterNames();
Enumeration<String> httpparameters = parameterNames;
while(httpparameters.hasMoreElements()) {
String httpparameter = httpparameters.nextElement();
String[] httpvalues = httpRequest.getParameterValues(httpparameter);
if(httpvalues != null && httpvalues.length > 1){
response.setRenderParameter(httpparameter, httpvalues);
} else {
logger.debug("----------------->:ApproveTime else processAction = :Getting HTTP :parameter:"+parameter);
logger.debug("----------------->:ApproveTime else processAction = :Getting HTTP :request.getParameter(parameter):"+request.getParameter(parameter));
response.setRenderParameter(httpparameter, httpRequest.getParameter(httpparameter));
Any help is highly appreciated.Hello,
One potential reason why it isn't working for you is that the Java Portlet specifications (JSR168 and JSR286) don't allow URLs to be manipulated once they are created with a a portlet:xxxURL tag. The reason for this is that the portlet container needs to be able to rewrite the URLs to properly go back through the portal framework (or over WSRP if running the portlet remotely) and to encode all the parameters needed. The portal framework could even change it from a URL to a Javascript action, where simply appending extra "¶mName=someValue" onto the end of the generated URL won't work. So this:
<form action="<portlet:actionURL secure="true"/>&action=save&_pageLabel=ABC" method="post">isn't legal by the portlet specification-- if you want to add parameters to the actionURL, you can by doing this:
<form action="<portlet:actionURL secure="true"><portlet:param name="action" value="save"/><portlet:param name="_pageLabel" value="ABC"/></portlet:actionURL>" method="post">which will add the parameters to the URL in a way that will always work with the portal framework.
One other thing to note- it looks like you're just trying to copy all of the action parameters in the request into render parameters in the response; this can be done much easier like this:
response.setRenderParameters(request.getParameterMap());Kevin -
Problem with window.close and window.open
I am having two suspected Actionscript problems which only seem to be happening with Flash player 9 and later.
BACKGROUND:
I have a client who needs browser-launched swf files to play from a CD-ROM (I do not want to use the Flash projector). These files were created a few years ago using Actionscript 1 & 2 code and everything has worked perfectly until now.
Here is the setup:
First, an autorun file on the root of the CD runs and writes a 'trust file' to the 'Macromed' directory. The autorun next launches 'index.htm' which is simply an html page containing a series of links (topic1.htm; topic2.htm; and so on). Next, let's assume the student clicks the 'topic1.htm' link from the 'index.htm' page. The 'topic1.htm' link launches a web page (also located on the CD) which contains and displays 'topic1.swf'. So far, everything works fine.
Here is where the two problems happen.
Problem 1:
I have an 'Exit' button within each swf (remember each swf is contained inside an html page). The 'Exit' button has always worked properly, but suddenly does not work in Flash player 9. I am using the following Actionscript 2 code on the 'Exit' button:
on (release) {
getURL("javascript:window.close()");
The 'Exit' button has always worked using this code (and still works in Flash player 8 and lower). However, it does nothing when played using Flash player 9.
Problem 2:
There are links to html popup windows within the 'topic1.swf' file (remember 'topic1.swf' is contained inside 'topic1.htm'). Each popup window contains a swf file that is used to present a demonstration. When the student clicks the 'demo1.htm' link from 'topic1.swf', an html popup window SHOULD load and display 'demo1.swf' inside the 'demo1.htm' window. The main ('topic1.htm') window stays open so that the student can return to the topic after completing the demo. This has always worked properly until Flash player 9. Here is the Actionscript 2 code
which I am using on the button inside 'topic1.swf' to launch 'demo1.htm':
on (release) {
getURL("javascript:launchWin2('webpage2.html');");
ADDITIONAL INFO:
'topic1.htm' contains the following code which is used to support the Actionscript code listed under 'Problem 2' above.
<SCRIPT LANGUAGE=JavaScript>
<!--
var padvar="";
var childwind;
function launchWin2(arg) {
openWin2(arg);
function openWin2(arg) {
childwind = window.open(arg,"padwind2","menubar=no,location=no,status=no,scrollbars=no,width=750px,he ight=500px,left=0,top=0");
//-->
</SCRIPT>
I would appreciate any help anyone can offer. I am wondering if the problem has to do with a need to use ONLY Actionscript 3 code from Flash player 9 onwards.
Thanks!
TerryYou may have '''Switched ON Caret Browsing'''. press '''F7 (on Mac: fn + F7)''' to toggle '''Caret Browsing ON/OFF'''
* click '''Firefox''' button and click '''Options''' -> Advanced -> General -> remove
Checkmark from '''Always use the cursor keys to navigate within pages'''
* http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
* http://kb.mozillazine.org/Accessibility_features_of_Firefox
Check and tell if its working. -
We currently migrating over to http server from SunOne web server. When you run the launch.html file an additional browser window opens but the swf doesn't not start playing.
The new http server is using exactly the same doc root as SunOne.
I have swf in the mime types and i've checked all the permissions .
Conf File
Include /opt/IBM/WebSphere/HTTPServer/conf/httpd.conf
Listen 1xxxx
DocumentRoot "/www/edc/docs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/www/edc/docs">
Options FollowSymLinks
</Directory>
######### DirectoryIndex ############################################
directoryIndex index.html index.htm
IndexOptions FancyIndexing VersionSort
########## Pidfile location,Error and Access Logs #####################
PidFile /opt/IBM/WebSphere/HTTPServer/logs/edc/httpd.pid
ErrorLog "|/opt/IBM/WebSphere/HTTPServer/bin/rotatelogs /opt/IBM/WebSphere/HTTPServer/logs/edc/error_%Y-%m-%d-%H:%M 86400 -360"
CustomLog /opt/IBM/WebSphere/HTTPServer/logs/edc/access_log common
CustomLog "|/opt/IBM/WebSphere/HTTPServer/bin/rotatelogs /opt/IBM/WebSphere/HTTPServer/logs/edc/access_%Y-%m-%d-%H:%M 86400 -360" common
LogLevel warn
# The following directives define some format nicknames for use with a CustomLog directive
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
Alias /icons/ "/opt/IBM/WebSphere/HTTPServer/icons/"
<Directory "/opt/IBM/WebSphere/HTTPServer/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>Hi,
I would suggest you read the following thread:
Windows Media Server Did not Accept HTTP or RTSP streams???
http://social.technet.microsoft.com/Forums/en-US/winservermedia/thread/b3f4f8c9-ac36-49e6-adc7-21e744d2e28f
In addition, please check whether the following blog could help:
Play "mms" and "rtsp" Streams in Windows Media Player
Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Thanks,
Vincent Wang
TechNet Community Support -
For some time now and after firefox has automatically been updated a few times, I click on images or links which are supposed to open in a new window automatically. A new window opens but it is blank with no toolbars, just an adress bar with nothnig in it.
mha007, Thank you. I walked through your suggested solutions and finally disabled all add-ons and restarted them one by one. The culprit seems to be ViewSourceWith 0.8.11. Interestingly when it is enabled I had to go to TaskManager to force Firefox to quit.
Maybe this information will help others. I don't know if the cache clearing etc helped but I would suggest that others start but Bringing up Firefox in Safe Mode (hold shift when you select the icon), disable all add-ons and then start them one by one.
Of course if you have ViewSourceWith maybe you should just disable it first rather than go through the tedium of restarting each add-on separately. To get to the add-ons when it won't open from the toolbar type about:addons in the address area. -
FF worked fine before I accepted the latest update just a few days ago. My friend who lives far away said that she also has problems since the upgrade. When I click on the thumbnail to open FF no window opens, all I see is the crash report. Without the window I can't try the self-helps or give a crash ID (from what I understand from reading the options). None of the options in the crash report restore the browser. When I click on one, the box just pops right back up.
Other than general slowness of my system and some possible hacking which got someone into my paypal account this week, I've had no other computer issues. (I've changed my email address with PP & changed my email passwords in case someone is accessing my machine through my email...I'm not very computer literate...I don't believe this can happen, yet no other options were presented).
Because my friend also experienced this crash issue I think this is totally related to the upgrade & what ever it did to my computer such that FF no longer loads.
Please give me steps to fix this issue without FF running--all the self-help techniques seem to assume that I can run FF, get a browser window, utilize the links therein. I can't get a window open at all!YAY!! I have Safe mode!!
um, now what? -
I downloaded an update for my Safari web browser to "snow leopard". When I click on the .dmg file, a window opens up with a .pkg file but when I click on the .pkg file I get a prompt saying that it doesn't know what program to open it with.
I suspect if you're trying to open a file in 08 that's been opened in 09 the file has been updated to 09 and will not open in 08.
-
the js function to window.open() is in pageAA on a tab.
We click the form or link to open the popup to run a video.
We have a close button on the popup window.
When that is clicked the window.close() js is executed on that page leaving Zotero present and the popup still open.
We've tried using close() window.close() name.window.close() and
all fail the same way.
Short of disabling Zotero is there a way to close the popup in FF and any other addons with one shot?Thank's but still no fix.
In safe mode everything works.
Without Zotero - everything works.
When the popup is loaded with Zotero, the tab shows a constant "Loading" with the circular in process icon.
The Zotero icon shows to the left of the tab.
If I right click on Zotero and close it, the close() js works properly
Is there a way to do a window.open() with:
A. no tabs -or-
B. block all add on's -or-
C. to kill an add on
before doing the close()?
Maybe you are looking for
-
I need help with my for loop in this array
Ok well, I can't get my code to work. Also, please remember that this is just my draft so it isnt pretty. I will fix it up later so please look at it. The thing I want to do is look into the array for a time that matches what the user entered and ret
-
Hi, looking for answers but can't find a place for my question, so I'm posting here. I have an AIM account to use with iChat. AOL/AIM have my old email address to send me information by email. Is there a way to change this email address ? I just log
-
ORA-24777 when trying to call multiple Oracle SPs...
I had a SP in Oracle that called another SP in a SQL Server DB via DBLink. I was calling the Oracle SP from VB.NET (3.5) and because of transaction commiting I was not able to do this, so I removed the SQL SERVER SP call from inside the Oracle SP. Ho
-
Hi, I am creating a stacked bar chart and would only like to show the rows that contain data in the legend series. Is there a way to only show rows/labels where data exists for 'PRODUCT' for the current-group. The xml syntax used in the chart is belo
-
Photoshop CS5 bug - shape layers icons disappear
So I'm having this normal PSD when suddenly all the shape layer icons disappear and nothing seems to work to get them back. (I've tried restarting photoshop, computer, open the PSD from another PC) They work like they are there, double click and all