Open a popup window by clicking the icon on the datagrid

I am using PopUpManager class to displayed the popup. While clicking the datagrid popup will display.
Now i have a change in requirement that i need to open popup window when the user clicks the icon on the datagrid itemrenderer. Expecting valuable response to complete the requirement.

Hi David,
Thanks for the prompt response.
In our application, while clicking the datagrid column, we have calculate
some values based on the datagrid and show the results in the another
datagrid placed below. Also if the user wants some info about the customer
we have some it in a popup by
private function custPopUp(event:ListEvent):void {
if(event.columnIndex==3){
     hiddenActionpopup = "OpenPopUp";     
     requestPopUp.send();                    
}else
          // when the user clicks the column other than columnIndex 3,
we      //have show the calculate results in another datagrid.
Now what we r going to do is, instead of protecting a column, we have an
icon for customer details, other than that If an user clicks anywhere it
will show the calculation.
For that, I need to set action for the icon in the itemrenderer.
Thanks in Advance.
Jude Paul
hi
If you want have an action dependendant on a cell in the grid you can use
itemclick rather than doing the operation from renderer.
protected function dataGrid_itemClickHandler(event:ListEvent):void
   if (dg.columns[event.columnIndex].dataField =="whatever the datafieldname
is") doPopup();
<mx:DataGrid x=0" y="0" width="100%" height="100%" id="dg"
itemClick="dataGrid_itemClickHandler(event)"/>
David.

Similar Messages

  • Show the custom popup window on clicking the people name in sharepoint people search result

    Show the custom popup window on clicking the people name in sharepoint people search result
    We are doing the below code to open a popup but while clicking on name link its postback the page and not opening the popup in first click but opening in second click.The same issue occurs while navigate to second page using pagination
    The below code used to show name in item template
    <button id="NameFieldLink" class="temp" style="font-size: 12px;text-decoration:none;color:#0072c6;border:0px solid #fff;background:transparent;margin-left: 1px;height: 15px;padding: 0 10px 17px 0px;text-align: left;cursor:pointer;font-family:
    Arial, Helvetica, sans-serif;" title="">_#= DisName =#_</button> 
    The below jquery code used to open popup in control search template
    ctx.OnPostRender = []; 
    ctx.OnPostRender.push(function () {
    $(".temp").on("click", function(event)
    event.preventDefault();
    $('#fadeout').show();
    $('#pop1').find('.tab-content-people').html($(this).closest('.emp-card').find('.pop-content').html());
    $('#pop1').show();
    return false;

    I believe the issue is that you are not actually searching against the result source you made in step #1.
    It's not enough to make a result source, you have to tell the search results web part to use it.
    Try this:
    1. Go to the Pages library of Search Center
    2. Create a new Search Results page
    3. Edit the page, then edit the search results web part
    4. Change the source for the search results web part to your source
    5. Add the page to your Search Center navigation
    6. Run the search on that page
    Scot
    Author,
    Microsoft SharePoint 2013 App Development
    Author,
    Professional Business Connectivity Services
    Author,
    Inside SharePoint 2013
    Blog, www.shillier.com
    Twitter, @ScotHillier
    SharePoint Trainer, Critical Path Training

  • Open a new window on clicking the CommandButton in JSF

    Hi,
    I have a page and two <h:form> in that page.
    The second <h:form> just has a date field and a Submit button.
    Selecting a date and clicking the CommandButton should open the report in a new window.
    If no reports found then a msg needs to be displayed in the new window.
    <h:form styleClass="form" id="form2" target="_blank">
    Report Date
    <t:inputCalendar id="dtTo" required="true" value="#{controlDBean.reportDate}" renderAsPopup="true"   
            popupWeekString="week" renderPopupButtonAsImage="true" popupDateFormat="MM/dd/yyyy" size="12"
            maxlength="10"     forceId="true"      popupButtonStyleClass="calendar"
            title="MM/DD/YYYY"     popupButtonImageUrl="../../images/calendar.gif">
    <f:convertDateTime type="date" pattern="MM/dd/yyyy" />
    <div style = "FONT-SIZE: 8pt; FONT-FAMILY: Arial; COLOR: RED;"><h:message for="dtTo" /></div>                                                  </t:inputCalendar>
    <hx:commandExButton type="submit" value="Retrieve"  id="button1" action="#controlDBean.frmRetrieveReport}"></hx:commandExButton></td>this works fine...
    But even when the validation on the date field fails..it takes me to the new window with the message rather than staying on the current page.
    How can this be achieved at the button level rather than the form level?/
    Any help is really appreciated.
    Thanks!!

    whether this is useful ?
    I am using string field here.
    public StringField(java.lang.String name,
    java.lang.Object listener,
    java.lang.String callback,
    java.lang.String value)Constructs a StringField
    Parameters:
    name - Name of field
    listener - Listener to update
    callback - Callback of listener
    value - Value of field
    -Arun

  • How to open a new window by clicking the string in the text field ?

    Hi
    is it possible to do this ?
    Some string value is retrieved from database and it is placed in the text field. [ done with this part ]
    i have to provide link to that string to open a new window. [ yet to do ]
    Please help me in this.
    Note : if this is not possible , give me some other idea to do this.
    -Arun

    whether this is useful ?
    I am using string field here.
    public StringField(java.lang.String name,
    java.lang.Object listener,
    java.lang.String callback,
    java.lang.String value)Constructs a StringField
    Parameters:
    name - Name of field
    listener - Listener to update
    callback - Callback of listener
    value - Value of field
    -Arun

  • Is there a way to open a new tab/window by clicking the Safari dock icon?

    Is there a way to open a new tab or window by clicking the Safari dock icon? Right now, the default behavior seems to be that Safari simply un-minimizes or displays the last window in focus.
    I want to be able to quickly fire up a new tab or window in Safari when it is out of focus, such as when Finder is in focus. The workaround right now is to right-click on the Safari dock icon, and select "New Window", or to allow the last window in focus to appear, and cmd+t or cmd+n. But this is too many steps over the course of a day for a highly frequented task like this.

    I'm glad that helped. Thanks for posting back.
    ... when I save this as an application as "run only", it's relatively quick to run, but there's a delay to load... I assume it's opening Script Editor every time?
    As long as the script is saved as an application -- Run Only or not -- it should definitely not cause the Script Editor to open. You can verify this by closing the Script Editor application altogether prior to clicking on the docked script icon that you saved. You should notice that the Script Editor does not open when the script is run.
    FWIW, I went back and saved a version of the script as a Run Only app, and I didn't notice any difference between it and the original, which was saved without the Run Only option checked. The delay that you're noticing might be accounted for by the fact that the script, because it was saved as an application, will be activated just as any other standalone application would be. This happens prior to Safari being activated. Watch your menu bar when clicking on the docked script icon and you should see the name of the saved script app appear for a split second before Safari gets activated.
    The only time I can think of that you might wish to save the script as a Run Only application would be if you wanted to conceal the script for some reason. If, for example you were publishing the script as a part of an application release and didn't want its contents known, or you didn't want an end user to be able to edit the script, you might select the Save As > Run Only option. To illustrate this, try dragging and dropping a script saved as a Run Only application onto the Script Editor's icon. You should see a warning dialog to this effect:
    *Unable to read the file because the script is not editable (it was saved as run-only).*
    Whereas if you drag a script that was not saved as a Run Only app onto the Script Editor's icon, the script should open in the Editor, and it can be edited.
    I played around with the "stay open" option for saving the script as an application, but it appears I have to close the app and reopen it before I can get it to work a second time.
    The Stay Open option is appropriate for scripts which use an "On Idle" handler, which really wouldn't apply in this case. Check out more on Idle Handlers here and here.
    Is there a faster way to use this multiple times throughout the day?
    One way you might speed up the action would be to save the script +as a script+ by choosing Save As > File Format: script from the Script Editor's File menu. The resulting script can then be activated by assigning a hot key to it using one of several 3rd-party keyboard shortcut programs available on the Internet. (I used Spark, assigned a function key to the script I posted earlier, and found the action to run significantly faster.)
    Good luck.

  • I can't open a new safari window by clicking the icon on the bottom

    As above, I want to open multiple window by clicking the icon on the bottom but it does not work.
    Is there somebody who helps this problem?
    Thanks.

    I want to open multiple window by clicking the icon on the bottom but it does not work.
    You can only open one Safari window at a time from the Safari icon in the Dock but you can save open Safari windows by clicking on the orange radio button top left in the Safari window. That will save that page to the right of the insertion mark on the Dock next to the Trash for easy access.

  • I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • Urgent help on opening a new popup window when clicking on h:comandButton

    Hi All,
    I am working on a JSF application.I got a requirement where i need to Open new popup window when the user clicks on <h:commandButton>. Here is my sample code.
    <h:panelGroup>
    <h:commandButton onclick="window.open('/gwp/pages/client/auto_id_card_proof.jsp','PrintIDCards','top=30,left=0,width=800,height=600, scrollbars=1')"
    value="#{ClientLabels['PrintAutoIdCard.PrintProofOfInsurance']}" immediate="true"/>
    </h:panelGroup>
    Iam getting an error message in the new popup window as below when i click on the commandButton.
    JSP Processing Error
    HTTP Error Code: 404
    Error Message:JSPG0036E: Failed to find resource /pages/client/auto_id_card_proof.jsp
    Root Cause:java.io.FileNotFoundException: JSPG0036E: Failed to find resource /pages/client/auto_id_card_proof.jsp     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.findWrapper(AbstractJSPExtensionProcessor.java:293)     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:266)     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
    Any help will be highly appreciated.
    Thanks
    Vijay

    Please, urgency is your own problem and thus irrelevant to us. This way you are seemingly putting pressure to us, which is rude.
    At any way, a 404 simply means that the URL is wrong.

  • HT201317 On a PC with iCloud Control Panel, open a Windows Explorer window. I cannot see .. Select Photo Stream under Favorites. Open My Photo Stream. Click the "Add photos" button. Select photos to import to My Photo Stream,

    I have a VAIO pc and want to put some photos up to iCloud to then go onto my iPad.
    I have iCloud control panel and have followed the instructions.
    Everything is on that should be on .. on the iPad and pc.
    but I cannot find how to  ...
    Select Photo Stream under Favorites. Open My Photo Stream. Click the "Add photos" button. Select photos to import to My Photo Stream, and then click Open.  ...
    as advised in FAQ on iCloud.
    I cannot find favourites ... sorry !!!
    I use Google Chrome, could that be the problem?
    The Apple shop were very sweet, but sent me home with instructions .........
    Please help
    Carski

    It should look like this...
    Open Windows explorer, select Photo Stream under Favorites on the left sidebar:
    Click on Photo Stream, then to the right double-click on My Photo Stream.  Click on Add Photos on the top the menu bar:
    Select the photos you want to import, then click Open.

  • I'm using FF for Mac 3.6.13 and everytime I open a new window or tab the image of what I see is tiny which requires me to click Command + to enlarge it. The actual page is normal size, but its the image of the page that opens tiny.

    I'm using FF for Mac 3.6.13 and every time I open a new window or tab the image of what I see is tiny which then requires me to click Command + to enlarge it about 4 or 5 times. The actual page is normal size, but its the image (what I see) of the page that is tiny.

    Thanks but Command 0 on a Mac only makes a temporary change to that one page. The link you provided doesn't show how to make a permanent change. Do you know how to permanently change this so I don't have to do it to every new page?
    Thank you.

  • Closed all firefox windows by clicking the x 'cancel', then 'close tabs'. After reboot, couldn't recover open tabs, (options were not highlighted under History , i.e. Recently Closed Tabs or Recently Closed Windows). Why couldn't I recover my tabs?

    When rebooting mac, I closed all firefox windows by clicking the cancel "x" and then clicked "close tabs". After rebooting I could not recover my open tabs, as none of the options were highlighted under History , i.e. Recently Closed Tabs or Recently Closed Windows.

    We're sorry to hear that Firefox is crashing. In order to assist you better, please follow the steps below to provide us crash IDs to help us learn more about your crash.
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and then go back to your forum question and paste that into the "Post a Reply" box. (Please don't take a screenshot of your crashes, just copy and paste the ID's. The below image is just an example of what your Firefox screen should look like)
    :[[Image:aboutcrashesFx29|width=500]]
    Thank you for your help!
    More information and further troubleshooting steps can be found in the [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes]] article.

  • Opening New Browser window for click event on an image

    hi all,
    I want someone to help me out solving the problem of opening
    a new browser window on the mouse click event of an image or a
    button etc.... The new window would contain the datagrid details
    from the main window, but in an expanded form. If at all there is a
    solution, I even want to know whether there is anyway for sizing
    the poped up window,because I dont want the new poped up window to
    cover the entire screen.
    For getting better idea of my problem, the best example I
    could give is the popup window that appears when we click on the
    preview button while posting the message to the forum.
    Someone please do help me out in this regard.
    Thanks,
    amar.

    I'd definitely try to use a Flex popup... but the
    flash.net.navigateToURL method is a simple way to open a popup
    window in a new browser. You can pass any data needed by the new
    page using the URLRequest and/or URLVariables. The URL you navigate
    to could, of course, be another Flex application if necessary. I
    use this only when I need to open a popup window on another site,
    or an HTML formatter report or something similar.
    Concerning yourself with the size of the popup window may be
    a bad design choice also. I, for example, have my browser
    configured to open all popups in a new tab regardless of sizing
    constraints imposed by the designer. If it is absolutely necessary
    for you to have control over the size of your popup window, you
    should follow the advice given by others and use a Flex
    popup.

  • Nautilus doesn't open a new window when clicked

    For a while now, I have been experiencing an annoying issue.
    Whenever I open Nautilus either by clicking the icon in the drawer (example: http://i.imgur.com/uZc3n7S.png) or by hitting "Super" (the Windows key) and typing nautilus+enter, Nautilus doesn't create a new window anymore. Instead, it just shows "Files" in the top bar, as seen here: http://i.imgur.com/Ho2nJhv.png
    I can open a Nautilus window by clicking on the "Files" item in the top bar and clicking "New Window", as seen here: http://i.imgur.com/7IrWqvr.png
    Also, whenever my desktop is focused, the "Files" item is visible in the top bar. In the drawer, the Nautilus icon is always highlighted as well. This leads me to believe that GNOME thinks Nautilus is already open, while it is not.
    Note that I have enabled my desktop to be managed by Nautilus, so I can have icons on my desktop. I'm not sure, but if I recall correctly, this problem started ever since the one time I ran gnome-settings-daemon manually, to test if a certain bug still exists.
    Has anyone experienced a similar issue? How could I track down why this is happening?
    Last edited by Gerry (2014-02-12 20:59:18)

    Gnome-shell issue. You can disable desktop management as a temporary fix, but the next gnome-shell update will fix the problem.
    https://bbs.archlinux.org/viewtopic.php?id=175993
    https://bugzilla.gnome.org/show_bug.cgi?id=722510
    https://bugzilla.gnome.org/show_bug.cgi?id=722690

  • Table events lost after opening a popup window

    In an advanced table , I have a column which shows a link. If this link is clicked , a new window opens which displays a popup window.
    If the link is not clicked , I can traverse through the advanced table.
    If I click on the link, I cannot navigate through the Advanced Table, The show hide does not work.
    The new Window is being shown for the link using
    a. A OALinkBean
    b. The link bean Destination property is set using OA.jsp?xxx
    c. The target frame is set to _blank.
    Any suggestions on what could be the problem?

    The pop up page is a read only page or ur doing some action events on the pop up page?Are you simultaneuosly doing action on pop up and base page?
    --Mukul                                                                                                                                                                                                                                                                                                                                                       

  • Message (of message manager) gets lost by opening a popup window

    Hi all,
    On behalf of a better error/exception handling, I would like to show the stacktrace in a popup window, that means, if the application reports an error message (through the message manager in the view controller), the user (administrator, developer) can optionally click a link (LinkToAction => opening a modal window) to see the stacktrace in a separat popup window.
    Unfortunately if the popup window now gets displayed, the error message on the main view (background of the popup window) will be cleared, so this - for the common user more readable - information is not anymore displayed, also when the popup will be cleared.
    Of course, I could backup the error message in a context value and redisplay it after closing the popup window, but I suppose that's not a very cool solution...
    Other any good ideas?
    Thanks,
    Stefan

    Hi Stefan
    Usually showing a stack-trace to the end-user of your application is not so helpful as might appear. My experience shows that the information is too technical for the end-user and does not help him/her to resolve the issue/problem. It's better to display error messages pointing him to some solution or directions that he might do in order to fix the error.
    If you still want to show a stack-trace I'd advise the following. You have to prepare the UI control with the stack-trace in the same server response (round trip) which shows the message manager's messages. The messages will not disappear until a client sends a new request to the server. When you open the popup such request definitely takes place.
    Maybe try to display the stack-trace in the bottom of the screen so user have to scroll down a little bit to show the trace.
    Or maybe Tray control will help in the case. Try to put the trace in a text view and put the view in a tray. Then user has to expand the tray to see the trace. But do not assign any event handlers to the tray to avoid additional request to the server while it's expanding.
    BR, Sergei

Maybe you are looking for

  • Loading multiple flat file at a time.

    hi experts, I am having 15 flat files with same data structure.so how do i load all the fileswith out creating 15 info packges . ( say all the files are on the desktop.) I had seen the option that ABAP code an be written in info package in extraction

  • Lion, versions, restore and iDisk

    I've been working extensively in Lion for about a month, writing a novel.  Mostly I love the interface and workspace improvements.  However, recently I lost work in a scary way, at least twice, while moving from my laptop to my desktop and back.  Thi

  • Audio to Text converter

    Is there any free programs that will convert wave,mp3 to text my wife records her teacher and puts it on the computer but would like to convert to text in office

  • Can we  increase the size of column alias which is limited to 30

    In simple words select ename as "alias having more than 30 characters here" from emp; CAn it be executed correctly somehow?

  • Highlighted default item in list component???

    I can't seem to find how to have an item in a list component highlighted by default. I'm sure its right there in the docs staring me down, but I dont see it. I've found scrollToIndex method, but that doesnt seem to actually highlight the index item.