Can't figure out how to create an update form in a cfwindow tag

I finally was able to figure out how to do an add form inside
of a cfwindow tag yesterday. But I want this form to be
multipurpose, and allow edits as well. But for the life of me, I
can't figure out how to pass a row of data to the form inside a
cfwindow. Normally, I'd pass the primary key via the URL but if I
try to do that here, it basically reloads the page and closes out
the cfwindow since I have the window set to not show by default.
My page has a list of departments. My page is called
departments.cfm. For each row in the department list, there is a
link called edit. When the user clicks this link, I want the
cfwindow to open with the cfform populated with the data from the
department list for the row selected. Sounds simple enough, except
how do I pass the department_id to the form? If my link is <a
href="departments.cfm?id=#department_id#>Edit</a>, the
cfwindow tag displays and I can see the data in it, but then closes
right away. I finally figured out that it was calling the page
again and the cfwindow is closing because I have it set to not
display by default. I'm about ready to drop this cfwindow and just
do real popup windows via javascript. And I'm normally not in favor
of doing popup windows, but the application I'm working on doesn't
have enough real estate on the screen to do a hidden form, so a
separate window containing the form is my best solution.
Anyone have any suggestions?

Well, this is kind of a tough one for me, but it sounds like
the best way will be to launch a JavaScript function everytime the
user clicks the link, like this:
<cfoutput query="getDepartments">
<a href="javascript:showWin(#yourID#)">show
window</a>
<br>
</cfoutput>
the showWin function will both create the window and launch
it, passing in the user chosen var:
function showWin(id) {
var URL = 'editDeptPage.cfm?dept_id=' + id;
var winName = 'deptWin' + id;
ColdFusion.Window.create(winName, 'Edit the Department',
URL,
{x:100,y:100,height:300,width:400,modal:false,closable:true,
draggable:true,resizable:true,center:true,initshow:true,
minheight:200,minwidth:200 })
The following line of code is supposedly to make sure that
the window refreshes each time it is launched, by naming it
something new each time:
var winName = 'deptWin' + id;
However, if it doesn't work, I think there's a Window refresh
function in the Ext library but I'm not sure.
Also, in the showWin function, after the Window is created,
you might need this but I'm not sure:
ColdFusion.Window.show(winName)
Talk to you later,
Peter

Similar Messages

  • I have an iBook G4 running on OS X 10.4.11 and I just got a new ipod and can't figure out how to get it updated to be able to sync my ipod PLEASE HELP

    I have an iBook G4 running on OS X 10.4.11 and I just got a new ipod and can't figure out how to get it updated to be able to sync my ipod PLEASE HELP

    You could go hunting for a fair price on a refurbished or restored Intel-based Mac or MacBook, as most early models of CoreDuo and Core2Duo can run Snow Leopard 10.6.8, and some much more recent.
    The Apple Store's Special Deals section that is online has some fairly recent examples of hardware with an OS, original accessories as noted, power cord, and complementary one year coverage. Eligibility for extended AppleCare plans are noted & may be available for various items in the store. Subject to availability. Refurbished. Like new. The price difference can be about the same as the additional two year AppleCare plan may cost, so get that too.
    Third party repaired restored or available through other channels vary in quality, quantity, condition, and may be lacking in some or most original accessories; they should include basic hardware as originally equipped and have the boot-install software disc set as intended for that build model & year specification, included.
    Auction sites rarely have that much of a kit together, w/ missing discs, scruffy, extra fees, etc. On the other hand, companies that restore and repair Macs for a living and are authorized Apple service centers may have something, if you aren't in the market for something holiday new or really quick. Older models if reasonably refurbished can still shine years later.
    Hopefully this helps somewhat.
    Good luck & happy computing!

  • HT1222 I can not figure out how to upload or update ios 5 to my ipad 2?

    I can not figure out how to upload ios 5.1.1 to my ipad 2. 

    What version are you currrently on (Settings > General > About > Version) ? If you are already on iOS 5+ then you should have a Settings > General > Software Update option on the iPad which will allow your to update directly on the iPad - if you are on iOS 4 then you can only update it by connecting to your computer's iTunes (you can also update via your computer's iTunes even if you already on iOS 5+).
    To update via your computer, connect the iPad to your computer's iTunes and copy any purchases off the iPad to your computer via File > Transfer Purchases - you may also want to copy photos and any important documents off the iPad as well e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc - they should be included in the backup, but it's best to have a copy of them outside of the backup just in case. You can then force a backup of the iPad by right-clicking the iPad 'Device' on the left-hand side of iTunes and selecting 'Backup'.
    You can then start the update by selecting the iPad on the left-hand side of iTunes, and on the Summary tab on the right-hand side clicking the Check For Updates button.
    Updating to iOS 5+ : http://support.apple.com/kb/HT4972

  • Can't figure out how to create a Slideshow

    I've read the online Help instructions. Read the Apple Support instructions and I just don't understand them. I'm new to iDVD and that's probably the problem. Can anyone send me detailed instructions on how to create a slideshow using my photos in iPhoto?

    Why the limit of only 99 photos in a slide show?
    Well the answer here deals more with Video DVD specifications than iDVD. The way iDVD builds slideshows each slide is more like a separate chapter, since these can have navigation buttons.
    And here are some details of DVD authoring from http://www.dahnielson.com/dvdprimer.html
    A DVD comprises of one or more video title sets, abrevated VTS, that contain the video and audio information as data streams. Each disc can have up to 99 VTSes, and each title set can be subdivided into 99 chapters.
    So it is the way iDVD build the slideshows in "chapter-like" manner that limits you to 99 slides......going from iPhoto using Quicktime export or "Send to iDVD" quicktime avoids this limit. But you can use the iPhoto "Send to IDVD" with slideshows without the 99 limit....so you can put them on DVDs....
    John

  • I can't figure out how to put a login form on my site

    Hello, I have a site that I created in flash and I need to add a login to a site caleld sharefile.  This form works correctly in html but I can't get it to work in my flash file.  Can anyone please help me out with transferrign this simple html form into flash.  Here is the code snippet:
    <form method="post" action="https://fmc-service.sharefile.com">
      <table cellspacing="0" cellpadding="0" border="0">
        <tr><td>Email:</td></tr>
        <tr><td><input type="text" name="username" /></td></tr>
        <tr><td height="5"></td></tr>
        <tr><td>Password:</td></tr>
        <tr><td><input type="password" name="password" /></td></tr>
        <tr><td height="10"></td></tr>
        <tr><td><input type="submit" value="Log In" /></td></tr>
        <tr><td height="10"></td></tr>
      </table>
    </form>
    I have the input text ready with one input box labeled username and the other labeled password in flash and on the submit button I have the script:
    on (release) {
        getURL("https://fmc-service.sharefile.com", "", "POST");
    When I publish the file it takes me to the right website but it does not log me in.  It just acts as if I just put a regular link to the sharefile login page.  I figured this was too simple.  Any help would greatly be appreciated.
    Thanks,
    Jason

    if you're testing locally, you probably have a security sandbox issue.  fix it here:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.ht ml
    otherwise, you don't have username and password defined on the timeline that contains your button and/or your button is a movieclip button

  • HT5312 When I get to the part where I need to fill out the 2-3 security questions, the option to send the answers to an e-mail does not show up, and I can't figure out how to create a rescue e-mail address. Help?

    This problem is starting to aggravate me, as I have over $40 in iTunes credit that I can't use, as every time I try to purchase something it asks me to answer my security questions, which I have forgotten the answers to and have no way of recovering them. It also states that it is my "first" time purchasing something, though I've had this account for a while. Please help.

    You need to contact Apple. Click here, phone them, and ask for the Account Security team.
    It isn't possible to create a rescue email address without correctly answering at least two of the questions.
    (86502)

  • Can't Figure Out How to Create a Pre-Set leaving Exposure Unchanged

    LR4.3, Windows 7 Home Premium 64bit
    I have been trying to create a preset that updates the Process Version to 2012, changes contrast, highlights and shadows, but leaves the Exposure unchanged.
    So, I change the Process Version to 2012, set the sliders for contrast, highlights and shadows where I want, and then I create the preset, leaving Exposure (and a bunch of other things) unchecked.
    Then, I apply the preset to a photo that is currently Process Version 2010. The process version, contrast, highlights and shadows all change as expected, but the Exposure goes to zero. What am I doing wrong?
    Thanks!

    Ok, additional information
    If I apply this preset to a photo that is already Process Version 2012, then the exposure remains unchanged.
    If I apply this preset to a photo that is a previous Process Version, the exposure is set to zero. Why? How do I fix this?

  • Can't figure out how to check for updates in Firefox for Ubuntu

    I'm running "Firefox 3.6.13 Mozilla Firefox for Ubunto canonical - 1.0". How do I check for updates? The how-to here in the help site says to look for the updates item in the Help menu but there isn't any such. I can't find it in the Tools menu, or in Edit>Preferences. Where is it hiding?

    Only the official builds from Mozilla can get updates patches as one cannot expect Mozilla to provide update patches to builds that Mozila did not well build.
    The reason the Help->Check for updates was missing was because Ubuntu removed it.

  • For the life of me, I can't figure out how to download the new 11.1 ver of iTunes.  When I plug my iPhone or iPad, the computer tells me to download the latest version.  I have been looking for almost 3 hours now.  HELP

    Help.  Can't figure out how to Download iTunes update V11.1

    Open itunes, Click Itunes, Check For updates

  • I recieved an Adobe Master Collection License number from my school (Stevens Institute of Technology) and I can't figure out how to use it in order to get the product. I've created a username and that's as far as I've gotten.

    I recieved an Adobe Master Collection License number from my school (Stevens Institute of Technology) and I can't figure out how to use it in order to get the product. I've created a username and that's as far as I've gotten. I need to download the product and I can't figure out where to begin.

    Ask someone at your school... Do you have a Cloud redemption code, or a CS6 serial number?
    If Cloud, Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html and
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    What it is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
    If CS6, download at Other downloads and enter your serial number when prompted
    Again... your 1st resource is your school

  • I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where

    I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where I do not have a Wi-Fi connections.  I need to be able access files without going to acrobat.com.  Help!!!@

    Post the PDF files to a web site. The browse to them in Safari on the iPad.  When you Open the files specify the Open to occur in Adobe Reader.  Then you can have/Save them in your Documents folder on the iPad.   An iPad has limited access to files otherwise.

  • I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 on the page Am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 spaces on the page. I am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I do the following: Hold down the command key and highlight all the items to be reproduced. Then hold down option and drag the items from the first to each subsequent card.

  • The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    Click on the Layout button lower right and choose a Vertical lyout from the dropdown

  • I am creating a list.  Page 1 is full and I can't figure out how to get to page 2.

    I am creating a list.  Page 1 is full but I can't figure out how to get to page 2.

    It would help if you told us which ages version you use? Are you still on MacOs 10.6.8?
    Did you use text boxes?

  • I created a folder from my camera roll and shared with my icloud acct, can't figure out how to access it from my computer?

    I created a folder from my camera roll and shared with my icloud acct, can't figure out how to access it from my computer? I log onto icloud and can't find anywhere where "shared" photos are..

    You need Mountain Lion (10.8.2 or higher) and iPhoto '11 (9.4 or higher) or Aperture 3.4 to get shared photo streams on Mac.
    Another option to transfer them is to either import them to iPhoto using your usb cable, as explained here:http://support.apple.com/kb/HT4083, or to us an app like PhotoSync to transfer them to your Mac over your wifi.  (PhotoSync will also transfer albums, not just photos from the camera roll.)

Maybe you are looking for