Tree in a popup window

Hello

I wish I had a popup of the tree in a window when I click on an item in a form (source of the element is identical to the id of/pid tree) and letting the user select something in the tree and it is assigned to the question on the form that is to say I want to be able to change the ID of the parent if I want to. If someone has done something like this? I don't know how to make a popup page by clicking on the element, but how to make a tree? Thank you.

Suni

Hello

That's what I did:

1. I created a new page in the tree (number 2 on page).

Model of the page is 'Popup '.

The tree SQL statement is:

select "EMPNO" id,
       "MGR" pid,
       "ENAME" name,
       null link,
       EMPNO a1,
       null a2
from "#OWNER#"."EMP"

Notice that I used "EMPNO a1" in what we use the substitution #A1 string # in the model tree.

2. I then updated the parameters of the model of the tree (only those shown have been changed, all the others remain unchanged):

(Text of node templates section)
Model parent node:

<tr>#INDENT#<td colspan="#COLSPAN#" valign="CENTER" class="tiny"><a href="#" onclick="javascript:passBack('#A1#');">#NAME#</a> #DRILL_UP#</td></tr>

Model text node:

<tr>#INDENT#<td colspan="#COLSPAN#" valign="CENTER" class="tiny"><a href="#" onclick="javascript:passBack('#A1#');">#NAME#</a></td></tr>

In both cases, #NAME # now was wrapped in a tag A that will be used to perform a passback() function that transfers the selected value back to the original page and close the window popup.

#A1 # out of two will be replaced by the EMPNO value for each item

3. on the page of the tree, I added in a Hidden element page called P2_ITEM_ID. This element will be used to contain the ID of the item that needs to be filled with the value selected on the original page. There are no special settings for this element.

4. I created an unconditional branch to page 2 to point to page 2 - not strictly necessary, but I always make sure that each page has an unconditional branch!

5 - Finally, on page 2, I added the following in the HTML of the page header:

<script language="JavaScript">
function passBack(val)
{
  var id = $v('P2_ITEM_ID');
  opener.document.getElementById(id).value = val;
  window.close();
}
</script>

When the user clicks on an item in the tree, this function is called. First, it gets the ID of the element to be filled and then passes the value chosen for her. Then, it closes the current window.

6 - now, on my form page (page 4), I need to add two things. First, as part of header HTML of the page, I added:

<script language="JavaScript" type="text/javascript">
function callpopup()
{
  var url = 'f?p=&APP_ID.:2:&APP_SESSION.::::P2_ITEM_ID:P4_MGR';
  var w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
  if (w.opener == null)
  {
    w.opener = self;
  }
  w.focus();
}
</script>

7. and, in the text of Post item for the item page P4_MGR, I added:

<a href="#" onclick="javascript:callpopup();">Select manager</a>

This adds a link after the P4_MGR point on the page. When you click on it, this triggers the callpopup() function that creates a URL (note that I'm passing 'P4_MGR' in P2_ITEM_ID so that the popup page knows which element to update) and the display URL in a new popup window.

Andy

Tags: Database

Similar Questions

  • Setting the default size of the popup window

    I need a way to set the default size of the popup window on a specific area or all areas (whichever is easier). There is a particular site that pulls up a PDF in a pop-up window, and always default to a small window, but I need full screen. Apart from the obvious 'simply click on the button full screen every time ", can someone offer me some suggestions? If it were me, I'd just hit the button fullscreen, but I'm trying to set it up for some end-users rather capricious. The device in question (if important) is a Tablet from Dell XPS 18, and the version of Firefox is 24.0, just installed about twenty minutes ago. Forums for research, the only thing I found remotely close to what I'm looking for is to force the popup to allow resizing; This isn't what I need; the pop-up window already allows resizing. I need a way to automatically open it full screen. Thanks in advance for your help.

    Where the tab setting you are interested in I mentioned, the method to define who is in this previous post: https://support.mozilla.org/en-US/questions/968159#answer-469644

  • How can I display form details in a popup window?

    Recently, called assist of Babylon took control of Firefox and I had to reset Firefox to get rid of it. As a result, I lost the ability to right-click on a page and select from a list that allowed me to view the details of the form in a popup window. I've used this feature frequently to develop database applications that have many forms. Can someone tell me please how to restore this beautiful feature? I found something that opens a new tab with the form information in a large format that is rather ugly - I really want to come back for the nice small automatic that displays the information of the base form.

    I think're missing you an extension you used before. After using the Reset, a folder is created on the desktop with a name similar to "Old Firefox settings." If you open this folder, you will find a subfolder named extensions that contains your previous collection. The problem in using this as a point of reference, it is that a lot of extensions is stored in a GUID rather than their friendly name. But it could still be worth a visit, and you could Google the GUID to see if find you any matches.

    P.S. I'm curious to know what it was.

  • Call of Asinchronous of POPUP window

    I want to call an asinchronously of popup in my main application window, so it does not interrupt execution. The user may leave this window open and during this time of work in the main window. I want to wear the pop-up to the front, if the user re - opens the context menu while it has already been called. I know how to call the asinchronously popup but the vi will work again when collapsed many times you "sacrificed." So I want just the popup window to move forward if it is already active, instead of reopening when I close. PD: the popup window does not return all the data of the main application.

    I ended up doing this. (see attachment vi).

    The pop-up is ment to display information to the user that is loaded from CSV files directly from the pop-up window and then selected by the user as well. So it returns no data for the main program.

    If you find something wrong/plaster to do this way please tell. Thank you!

    PD: Ignore the comment on MainVi. He now works as expected.

  • Recently went from Outlook Express to Windows Live Mail. Since that time I can't send/receive emails without this message popup Windows live mail ID error 0x800ccc78 Server Error 530.

    Recently went from Outlook Express to Windows Live Mail.  Since that time I can't send/receive emails without this message popup Windows live mail ID error 0x800ccc78 Server Error 530.

    You will need to ask here:

    Windows Live Mail Forum
    http://windowslivehelp.com/forums.aspx?ProductID=15

    And you need to display an error message in its entirety. You can left click on it to highlight then right click to copy and then paste in this thread. Just the number of code alone is not enough.

  • When I get messages that needs to open a Web site a popup window stops him. What can I do to fix this?

    . A pop-up window has been blocked and not able to open.

    When I get messages that needs to open a Web site a popup window stops him. What can I do to fix this?

    Hello JoyceAtkinson

    To display the pop-up window, you will need to disable the pop-up blocker. Follow the link below to lean how to do this. Thank you.

    http://Windows.Microsoft.com/en-us/Windows-Vista/Internet-Explorer-pop-up-Blocker-frequently-asked-questions #

  • Double click does not open my files more, instead I need to select open in a popup window. can anyone help? I use windows XP

    Double click does not open my files more, instead I need to select open in a popup window.  can anyone help? I use windows XP

    This could be due to your double-click speed, look on your control panel and go to the mouse. There will be a tab for with double click on set your speed to what you want and test on it fake file.

    Hope this helped,
    James
  • How can I fix a popup window that says 'media usage rights acquisition' whenever I try to use my windows media player?

    How can I fix a popup window that says 'media usage rights acquisition' whenever I try to use my windows media player. Please answer!

    Whenever I try to use my windows media player I get a popup error that says "acquisition of rights of use media, error, Ref # 97.1e941645.1303713359.fefdlfe.» How can I solve this problem? Help, please.

    What version of WMP are you using? When exactly do you get this error?

    If you use Internet Explorer to access http://drmlicense.one.microsoft.com/Indivsiteand click on the upgrade button, which helps?

  • Every 10 minutes, I get a popup window of Microsoft Windows error: Dell Support Center has stopped working

    Every 10 minutes, I get a popup window of Microsoft Windows error: Dell Support Center has stopped working. A problem caused the blocking of the program works correctly. Windows will close the program and notify you if a solution is available.

    I uninstalled Dell Support Center via the Control Panel, run the virus and malware scans installed a restore of a month before this problem point and continues.

    Hello

    Dell has their own Forums of Support for you to enquire about Dell software issues.

    http://en.community.Dell.com/support-forums/default.aspx

    See you soon.

  • Incompatiable software, Family Tree Maker 2008, with Windows 7

    What to do to allow me to run the family tree making 2008 on Windows 7 as administrator.  If I can't do that I can't download the patches to update the software.  The message says "incompatiable software.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    Windows 7 Hardware/Software Compatibility Center.

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to / stationed there.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • ftwwrp32.dll is missing when you try to install Family Tree Maker 10 under Windows 7

    Hello

    I am trying to install Family Tree Maker 10 in Windows 7, but I get the error ftwwrp32.dll is missing. Family Tree Maker was already instaled on befor Windows Vista, the laptop is dead. I copied whole Famly Tree Maker file on disk. But I get the error message when I try to install the exe file. I've done it before on a XP, Windows version and it installed ok

    The original disc was lost

    Any help would be much appreciated

    Concerning

    Tom

    Hi Tom,

    Thanks for posting your query in Microsoft Communities. The problem description, I understand that you are not able to install Family Tree Maker 10. Provide the following information:

    ·         Did you do changes on the computer before the show?

    ·         What is the full error message?

    ·         The question is limited to this application?

    Follow these methods.

    Method 1: Follow the steps in the article, and check.

    How to solve problems when you install or uninstall programs on a Windows computer

    Method 2: Scan the System File Checker(SFC) to repair corrupted files.

    I hope this helps. Let us know if you need more assistance.

    Thank you.

  • Impossible to export the configuration of IOM - export popup window closes

    Hi all

    I have improved my OpenSUSE 12.3 to 13.1 and now I am not able to export the configuration of the IOM. When I click on export in the System Administration Portal, the popup window is opened and closed immediately.

    I have the same problem on Windows 7 with JAVA more recent.

    Very interesting, is that the export of the IOM 11.1.2.1.0 configuration works very well. In the version 11.1.2.2.0 not!

    Do you know how to solve this problem? (btw. I don't want to demean my Linux or Windows with Java)

    I think it is a bug in the IOM.

    Thanks and greetings

    Milan

    Oh... we discovered what the problem.

    DB password expired yesterday!

  • Excel 2007 problem - Popup Windows Installer

    Hi all

    I created an Excel 2007 with Thinapp package. Install this package on a computer works but when I try to run the menu example I have popup windows "install windows".

    I take a screenshot.

    Any ideas?

    Thank you

    Miluge

    Look in the event viewer that what causes the Installer launch... Many times is simply to isolate it entirely... Here is an excellent blog on the MSI installers and how to investigate this topic...

    http://www.vmwareinfo.com/2011/09/surgically-eliminating-Windows.html

  • new popup window does not open on Windows

    Hello

    When I open a new window in an extension of first HTML5 on Mac, it works,

    but no window opens under Windows.

    NewWindow = window.open ('www.adobe.com', 'name', 'height = 200, width = 150');

    Trying to apply moveTo() or focus() after open() returns cannot... call to undefined method.

    I wonder what causes this, probably he just gets blocked. By Windows? First on Windows? Chrome in the extension on Windows?

    Is there anything I can do about it?

    I can't open it in the default browser because ultimately the popup window is a Paypal popup

    opened by a Web page loaded in an iframe - that gives the same result while trying to open a window directly from inside the extension as described above.

    Thank you

    Jeff.

    It is a known issue with the CEP; We have disabled these methods (with window.open() or url >) to open a new page. A work-around using the API CSInterface.openURLInDefaultBrowser (url) to open it in the default browser in the system. I'm afraid that CEP provides no other methods to bypass if openURLInDefaultBrowser() does not fit your needs.

  • link to a popup window

    I just want to create several links that will open in a popup window. Is there anyone with a good idea for her?

    Hi DieterSch,

    Click on hyperlinks in Muse to expand options, put a tick on "Open link in a new window or tab.

    http://prntscr.com/43al7e

    Kind regards
    Radi amin

Maybe you are looking for