Variables defined in OnRequestStart - cant use in another template??

In my onrequest start i have the following code:
<cfset pagetype = 1>
<cfif isDefined("URL.type")>
<cfset pagetye = #URL.type#>
</cfif>
<!--- query to get the page type --->
<cfquery name="qryGetPageType"
datasource="#Application.dsn#">
select type from tblTypes where id = #pagetype#
</cfquery>
basically, every page that I go to, need to know the type -
and on the pages with forms (separte cfm files) i need to
have a hidden form field that holds 1 or 2 depending on pagetype
when i do
<cfinput name="pagetype" type="hidden"
value="#pagetype#">
it results in Variable PAGETYPE is not defined
Am I missing something???
Thanks in advance
sb

Thank you for your post
I feel like I am overlooking something?!?!?
Here is my code (copied & pasted)
I have tried using <cfoutput></cfoutput> around
the hidden cfinput on the edit category form, but it does not
remedy.

Similar Messages

  • Activated iphone on one computer and now cant use on another

    I was in Michigan for a couple of months and that is where I bought my iPhone in July. I activated it on my friend's computer up there and now my home computer in Georgia will not even recognize my iPhone when I connect it. I have tried erasing all data.

    Not entirely sure about iPhoto as I don't have a mac, but when syncing from folder(s) only the contents of the most recent sync will be on the iPad - but I assume that iPhoto will be the same and will therefore remove the previous sync before putting the ones on. He also won't be able to copy them off before syncing as you can only do that with photos loaded via the camera connection kit or saved from emails/websties.
    This article has some general info on syncing photos http://support.apple.com/kb/HT4236

  • Using variables defined in another script

    hallo
    i have two separate scripts trigered by two unique shortcuts:
    lets say first SCRIPT_1 takes a color (or any other property) of currentlly selected object and saves it in a variable "objCOLOR"
    than i work on something else for a while or select different objects and eventually run SCRIPT_2 where id like to use value "objCOLOR" which i defined a while ago using SCRIPT_1
    is it possible to define variables in one script and after a while use them in another script ? some kind of SUPER GLOBAL variables stored in memory of InDesign ? available to be used by various scripts ?

    I'm not JS man - but you can do this other way - use InsertLabel and ExtractLabel
    description from VB:
    Sub InsertLabel(Key As String, Value As String)
    Member of InDesign.Document
    Sets the label to the value associated with the specified key. / Key: The key. / Value: The value.
    Function ExtractLabel(Key As String) As String
    Member of InDesign.Document
    Gets the label value associated with the specified key. / Return value: The label. / Key: The key.
    example in VB:
    first script:
    myDoc.InsertLabel("objCOLOR","0,120,24,0")
    second script:
    myColor = myDoc.ExtractLabel("objCOLOR")
    I don't know if you can save color value directly ...
    I'm not sure - but you can use .InsertLabel and .ExtractLabel with all objects in InDesign
    robin
    www.adobescripts.com

  • How to use global variable defined in planning area in FOX

    Hi guys
    I meet a situation that needs to use variables defined in planning area in FOX.How to code?
    My situation as follows:
    Two variables are defined in planning area,one is zcomp_code,the other is zfiscyear.
    There are two key figures in the planning area,one is sales volume,the other is delta(%).
    I want to use sales volume multiplied by delta(%) in selected zcomp_code and zfiscyear by users.
    Anyone can help?
    Thanks in advance.

    Hi Eric
    check this example
    in fox you shoud declare your data and after call your variable
    after this you could easily operate on data using the f4 for definig the right fox operators
    DATA FYEAR TYPE 0FISCYEAR.
    FYEAR = VARV(PLANYEAR).
    {0COPANETRV, FYEAR,CRA,020} =
    {0COPANETRV,FYEAR,CRA,020} *
    ({ 0CP_DELTAB,FYEAR,CRA,020} + 100 ) /100.
    {0CP_DELTAB,FYEAR,CRA,020} = 0.

  • Hi, Cant use Query builder in Apps. Because there is no Foreign Keys define

    Hi,
    We Cant use any Query Builder (SqlDeveloper) in Oracle Apps.
    Because there is no Foreign Keys defined on the table except primary key.
    I agree that common colums are there on different table,
    But it's bit difficult to digout for numbers of tables from different modules (schema).
    Do any one have any query which can find common colums from different tables though the tables may or may not be from different Schemas too.
    Thanks in advance.
    Bachan

    >
    Due to performance oracle has not applied constraints
    on tables except Primary Key.
    I find this hard to believe. The most likely reason for this, is to speed up inserts, but thats only applicable if you have lots of inserts at the same time.
    But they have given eTRM to refer the forigen columns
    on different tables.
    Forigen column is just for name shake there is no
    constraint available except Primary key.
    And whenever we have to make query and apply join, we
    have to dig a lot.
    Even we cant use Sqldeveloper Query builder, which is
    a dam good tool for making Joins and query.
    My problem is the Time and effort which we have to
    put for diging tables.
    just want to reduce that with some intleactual
    Query.You will get quicker as you get more experienced. Of course, everytime you have a query to do a specific job you could save it in an appropriately named file and store it in your source control system.
    >
    Can u help me with names of the Tables which store
    information about tables, schema, columns, index, and
    views.select * from dictionary

  • I cant connect WITH another divice using Bluetooth

    I cant connect WITH another divice using Bluetooth

    The Bluetooth profiles for the iPhone to not support connecting to other devices. To check what they do support, see this support document. http://support.apple.com/kb/HT3647

  • Defining Variables so that MC can use them too.

    OK I know that this is a basic question. I have variables defined in the Root directory of the flash file so that the If statement in the root directory can use them. However there are goto-statements in the movie clip right under the Root directory that also uses the same variables.  How do I define the variables so that act like 'global variables'? I mean I want to define the variables so that the code in the movie clip will use them along with the code in the root directory.

    Ok I tried that to no avail.  This is how my file is set up
    Root->Animation->Action script
    stop();    var Home;  var Roster;
    function mouseDownHandlerHome(event:MouseEvent){Content.gotoAndStop(Home);
    function mouseDownHandlerEnlist(event:MouseEvent){ navigateToURL(new URLRequest("https://spreadsheets.google.com/viewform?key=psvc5aYhLuFoImejmLioWew&hl=en"));}
    function mouseDownHandlerRoster(event:MouseEvent){Content.gotoAndStop(Roster);}
    topmenu.home.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerHome);
    topmenu.Enlist.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerEnlist);
    topmenu.Roster.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerRoster);
    |
    Content(movieclip)
    |
    Home(movieclip)-> Action Script
    (stop();
    Home=1; Roster=3;
    var xmlholder:URLLoader=new URLLoader(new URLRequest("Home.xml"));
    ->Roster (which has similar code)
    As you can see I have a variable in the root timeline that I am defining in the embeded Movieclip.  So if there is an easy way to do a global variable or something please tell me.
    NOTE: I have looked it up and people say that I would have to use a package to define a new class and then import it.  This is a problem because I am too green to know how to do that. So if that is the only way to do it, please explain the process in small simple words.
    Thanks in advance.

  • I cant figure out what is wrong i keep getting this an OIEception that says "{"The process cannot access the file because it is being used by another process."}

    I am trying to move a file from a folder to another folder.
    here is my code:
    //storage of the all files
    string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Test Pictures");
    private void historyPictureBox_Click(object sender, EventArgs e)
    destinationFile = @"C:\Users\Jonah\Desktop\Test Test";
    File.Move(folderContentNames[1], destinationFile);
    updateListBoxFileName();
    updateImageBox();
    each time I hit the bolded underlined part I get that error message.
    if you need anything else just ask.
    Thanks in advance,
    Thor Orb

    Hi Thor,
    If you want to move a file from a folder to another folder, I think you could get the sourcePath and TargetPath. The code below shows a simple demo:
    string[] folders = Directory.GetFiles(@"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test");
    string desFile =Path.Combine( @"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test - Copy\"+Path.GetFileName(folders[1]));
    File.Move(folders[1], desFile);
    In addition, the link below might be useful to you:
    # How to: Copy, Delete, and Move Files and Folders (C# Programming Guide)
    >> The process cannot access the file because it is being used by another process
    The message seemed that the file was opened in other process. Did you operate the file with other code?
    I think you could check if the files and the folders were opened, and review your codes if they were used in other places.
    If you have any further questions, please feel free to post in this forum.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.
    Ya, Thanks I figured about the path and destation. yes I am using the file in another area, the file is an image jpg and I am displaying it in a picture box. Now I have been doing a little research I see a command called Dispose() and this is suppose to
    release the handle on the image, but I can seem to figure out have to use it correctly.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Collections;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.IO;
    namespace Scanned_Picture_Ogranizer
    public partial class Form1 : Form
    //storage of the all files
    string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Scan Project Testing\Test Pictures", "*.jpg");
    //List<string> folderContentList = folderContentNames.ToList();
    private List<string> folderContentList = new List<string>();
    Bitmap currentImage;
    Bitmap placeHolder;
    public Form1()
    InitializeComponent();
    convertingArrayToList();
    startUpData();
    string sourceFile = @"C:\Users\Jonah\OneDrive\My Programming Projects\Scanned Picture Organizer Project\Test Pictures";
    string destinationFile = "";
    private void moveButton_Click(object sender, EventArgs e)
    private void startUpData()
    //placeHolder = new Bitmap(folderContentList[0]);
    //currentImage = (Bitmap)placeHolder.Clone();
    // Image loadImage = new Bitmap(pictureClones[0]);
    // currentFilePictureBox.Image = loadImage;
    int numberOfFilesLeft = folderContentNames.Length;
    foreach (string name in folderContentNames)
    fileNamesListBox.Items.Add(name);
    fileNameTextBox.Text = folderContentNames[0];
    numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
    ///loadImage.Dispose();
    //FileStream currentImage = new FileStream(folderContentList[0], FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
    private void convertingArrayToList()
    foreach (string listName in folderContentNames)
    folderContentList.Add(listName);
    private void selectingImageFromListBox()
    private void updateImageBox()
    Bitmap currentImage = new Bitmap(folderContentList[0]);
    currentFilePictureBox.Image = currentImage;
    currentImage.Dispose();
    private void updateListBoxFileName()
    fileNamesListBox.Items.RemoveAt(0);
    fileNameTextBox.Text = folderContentList[0];
    // numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
    private void historyPictureBox_Click(object sender, EventArgs e)
    destinationFile = @"C:\Users\Jonah\Desktop\Scan Project Testing\Test Test\";
    File.Move(folderContentList[0], destinationFile + System.IO.Path.GetFileName(folderContentList[0]));
    folderContentList.RemoveAt(0);
    updateImageBox();
    updateListBoxFileName();
    when I first start the program the first picture displays, but when I trigger historyPictureBox_Click(), it does that error again. Another things is that I already looked at that link and it didn't help.
    I just super confused, I would like your help on this.
    Thanks,
    Thor Orb

  • Cant disconnect iPod. Files used by another app.

    iTunes will not let me disconnect my iPod because it says files on my iPod are being used by another app. I have my iPod set up to update manually because I have a few different music files on my iPod then in my iTunes music library and I dont want them deleted. Right now the only way I can easily disconnect the iPod is by the icon in the windows toolbar. Or is that what the manual means when it says you have to disconnect the iPod manually when the iPod is set up to update manually. I confused >.< Please help!!!

    Does this always happen when you connect your iPod? If not, and if you can disconnect your iPod by using the Remove Hardware icon in the toolbar, then it should be no big deal. Don't worry too much.
    Occasionally I also encounter this after I copied songs to my iPods. I don't know why but since I was able to disconnect using the Remove Hardware icon I do not worry about it and so far I have no reason to be worried. I use manual update as you do.

  • 22591 The specified computer name (%ComputerName;) is already in use by another virtual machine or by a virtual machine configuration object. Ensure that the computer name is unique in the VMM environment, and then try again.

    Hello everyone,
    I recently bummed into an error message when I want to deploy a service template.
    Setup:
    1 HyperV server on win2k12 r2
    1 SCCM VMM 2k12r2 on the hyperv server
    1 template with all the objects in the library
    Error:
    When I deploy the the service template I get the below error message.
    22591
    The specified computer name (%ComputerName;) is already in use by another virtual machine or by a virtual machine configuration object.
    Ensure that the computer name is unique in the VMM environment, and then try again.
    The issue is that I can't find it anywhere, not on my domain controller not on my dns server as a record and also not as a vm in sccm or in powershell when doing get-vm. So where do I need to remove it ( no it is not an option to create a new Hostname for
    this service template ).
    Andre

    There could be a couple things happening.
    One - you have a Service Template, it defines %Computername% as a variable.  And you have deployed this Template once using 'foo' and you are deploying it again as 'foo' without deleting the previous instance.
    Two - you hardcoded the computer name into the template.
    Three - you are scaling out and you have hit the bug that the wizard does not increment the machinename if you have something like computername## where SCVMM should be incrementing the machine name.
    Windows does not support identically named machines (you can't have two machines on the same network with the same computer name - they broadcast their name and the 'second' one shuts down its network stack).  In support of this SCVMM also enforces
    this rule.
    And with any templates SCVMM is in charge of machine names at deployment.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • How to read static variable defined java class from flex?

    This is a beginner question. If I use remoteClass to map a java class and a flex class, how can I access a static variable defined in java class from the flex code?
    Thanks!

    Static propeties are by default ignored in the blazeds for serialization. You can try using another global property in the java bean which maps to the value stored in the static property( Hopefully it should work)
    eg,
    public String instanceValue = ClassName.staticValue;
    Ref: http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=serialize_data_3.ht ml

  • How to get the value of a variable defined in javascript in JSP

    how to get the value of a variable defined in javascript in/through JSP????

    In Javascript you can use the DOM to access the input element and set it's value before submitting the form. Then it's value will just be passed.

  • How to Access Variables defined in the PopUpWindow

    Hi Friends
    I am building a flex site using flex builder 2.....
    Here I need your help.....
    My Problem is how to store a variable from a popup window
    I have this problem while in the login window comes as popup
    while clicking login button in the page a popup where user
    can enter username and password...
    after submitting if the login is successufl the popup
    vanish...
    After a successful login I need to store the logged user name
    in the main index page but I am not able to store
    At first I created a variable 'loggedUsername' in the popup
    panel and after success log i assigned the username to it ... after
    it i am not able to get the loggedUsername..
    doubting I defined the variable in the main index.mxml page
    but this variable is not accessible from the loginwidow.mxml page
    where the popup will function...
    Heip me
    how to store the name if the user login is success..
    thanks
    Chintu...

    Lets say you have a public property in your application like
    public var name:String = "John Smith";
    to access this using an inline item renderer:
    <mx:itemRenderer>
    <mx:Component>
    <mx:VBox>
    <mx:TextInput text={outerDocument.name} />
    </mx:VBox>
    </mx:Component>
    </mx:itemRenderer>
    To access variables of the applicaton you can use
    Application.application.name (for example) to reference "global"
    variables, so you might also use this technique. With an inline
    item renderer, the outerDocument property will refer to the
    component which contains the renderer.

  • Get CGI env variables in a database procedure using new APEX Listener

    I already posted this question in the Apex Listener forum and still no replies after one week. The original post is here:
    Get CGI environment from APEX Listener within database procedure
    So please forgive me for posting in this forum as well, but there is a lot more activity here.
    I'd like to know how I can get the CGI environment from the APEX Listener. For example, if I want to write a procedure that inserts into a table the originating IP Address of the client making the web request, how do I get it?
    I am familiar with the Oracle Http Server and mod_plsql, and I know how to call OWA_UTIL.GET_CGI_ENV to get this sort of information. How do I do it using the APEX Listener?
    In particular, how do I do this when calling a custom procedure (not in an Apex workspace)? When I try it now, I get an error from owa_util. The cgi env seems to be empty or not initiated (owa.num_cgi_vars is null or zero).
    Specific set-up:
    I have a web server running the latest JDK, Glassfish, and 1.1.4 Apex Listener. It connects to another server running the latest 11.2 database. Apex is installed and running, but I am not really developing a traditional Apex application in a workspace. I mainly use it like you would use mod_plsql. In other words, I have custom pl/sql packages that are called directly via URL. The requests are forwarded by the listener to the database, and the DB executes the procedure and returns output using htp.p to send text back to the browser. And it works just fine for this purpose. But if I want to call GET_CGI_ENV to get information like the IP Address, web browser making the request, etc. I can't seem to get it with the OWA packages.
    Can anyone shed some light on this? If Apex Listener is not designed to do this, is there some kind of workaround I can use to forward this sort of information to the database for each request?

    I have not tried owa_util.print_cgi_env from SQL Workshop yet, as I have not created an APEX workspace. I have had no need for a workspace because of the way I am using APEX as a method for calling custom packages and stored procedures. In other words, I am using APEX strictly for the mod_plsql functionality. I just use it to forward requests to the database to execute pl/sql code, but I don't develop anything in APEX. My application is a web service with no screens and no direct user interface, which is why I did not need to create APEX forms. The front end is a mobile app that makes calls to the web service.
    But I have tried calling owa_util.print_cgi_env in one of my stored procedures and it returns no data, even when calling it from the web front-end.
    So I am beginning to believe that if the OWA toolkit works with APEX, then it must only be enabled when invoked within a workspace. Stand-alone procedures can be called via APEX, but apparently doing so does not initiate the CGI env variables. This set-up used to work under the OHS with mod_plsql. The embedded pl/sql gateway also works this way.
    Is there a procedure call that APEX is making to set the environment before each SQL Workshop request?
    My security model currently blocks access to all packages and procedures except for my custom packages. I am using the APEX Listener configuration to allow only the packages listed by name in a white list. But I thought I allowed all access when I first tried calling the OWA packages. I'll have to try that again.

  • TS3212 im trying to reinstall but will not allow, due to an error 7,  itunes helper not installed correctly,i have tried several times, but will not allow me to install, i have used itunes for years but now cant use it, can you help

    i have tried to reinstall itunes because it is saying i cant use my itunes due to an error 7, itunes helper not installed correctly, please reinstall, i have tried several times but still not allowing me to use, ive never had this problem before in all the years i have used itunes, i have gone through all the troubleshooting but still no access, can you help

    Many thanks.
    That suggests that another application has stashed old QuickTime componentry in your system files.
    So just in case we'll go looking for older QuickTime componentry in the most common locations for it to be stashed.
    First we'll need to change some view settings.
    In your Start menu, open Computer.
    In your Organise menu, select Folder Options.
    In the View tab, make sure that "Show hidden files and folders" is selected, and Hide extensions for known file types is unchecked.
    Click OK.
    Now in Computer, open your C:\ drive (or whichever drive you have your operating system installed on).
    Open the "Windows" folder.
    If you have a 32-bit version of Windows, open the "System32" folder.
    If you have a 64-bit version of Windows, open the "SysWOW64" folder.
    What files and folders can you see in there with QuickTime in the title? (In a standard installation of Quicktime you should be seeing precisely two files... QuickTime.qts and QuickTimeVR.qtx ... and no QuickTime folders whatsoever.)

Maybe you are looking for

  • Positioning Multiple pdfs on array of 6 large screens when each pdf is restarted

    I am setting up an array of 6x 42" screens connected to a single windows computer using 2 x nVidia NVS 510 4 port graphics cards. nView ver 141.00 is installed. we are using Adobe reader X Our challenge is how to run multiple pdf displays each starti

  • How do I get rid of duplicates on my playlist caused by being in the cloud?

    So... how do I get rid of duplicates in my playlist, caused by having my music in the cloud? Wiithout, of course, having to delete several thousand songs individually? Grrr! Arggg!

  • Oracle backup & restore problem

    Hi Team, I am new to the RMAN, I want to test Backup & restore operation I have database called Test , I am creating new table in the database called Test_table through SQL *coPlus create mmand. Now After this I am taking backup the of all cotrolfile

  • I can't purchase a license

    Hi. I am from Mozambique. I had downloaded from Adobe the XI Pro trial, and it has already expired. Now I'm trying to purchase a license since yesterday and I can't. Help me please. It is urgent.

  • I can't get accurate playheadTime in flvplayback component.

    I use flvplayback to play a 20 seconds flv video, but I can't get accurate playheadTime no matter how to set the attributes. Here is my as3 codes. import mx.video.*; my_FLVPlybk.playheadUpdateInterval=10; //my_FLVPlybk.seekBarInterval=100; //FLVPlayb