How to make a variable global to use in all of my cfm page?
I have a problem with the variables.
i need to use a variable " loginrecord" in all of my cfm pages, its created in my login.cfm and the value of this needed in other page and maybe i need to change it .
in ASP simply we can use SESSION to make a variable global , is there any way in coldfusion ?
also in ASP we have a command SESSION.SESSIONID , so return the unique number from browser and we can se it as a security check for each one of people login to our site and each one is seperate random and unique number , is there any similar in coldfusion ?
Thanks
Alireza
Thanks,
the reason at the moment i stock with this command is i need to have login information available in all the pages to check the security. the good point i had in ASP is SESSION.SESSIONID , it make a unique number base on browser and i can check it if user loged in or no , or if loged in is the same user or other user . i couldnt find same command in coldfusion , and now i use <cflogin> but if i can find the way to have a browser session it help me in other part of my program.
i start coldfusion new ( near a month ) i have some book and Lynda DVDs, also online sources , and in this priod i re developed one of my program from ASP to coldfusion and its work. i am happy of this and help me to develop better and faster . in compare the coldfusion developed one realy is 40% original development in size and 50% faster . i have good background of ASP in last 8 years include MCSD and developed many program for a small and big companies. but i wanna to continue with coldfusion because i found it more helpfull than ASP specialy in FLASH development .
BTW thanks for your help
Similar Messages
-
I am trying to figure out how to make a variable:
Ex. I have two fields feildA and fieldB
I want fieldA to be dependant on fieldB
if fieldB is 1 then fieldA is 25
These are all the other variables
1 = 25
2 = 30
3 = 40
4 = 50
5 = 65
6 = 75
7 = 85
8 = 95
9 = 105
10 =115
Thanks!! CJOne way is to set up field A as a calculated field, using a script like the following:
// Calculate script for field A
(function () {
// Set up object to associate values
var vals = {
1: 25,
2: 30,
3: 40,
4: 50,
5: 65,
6: 75,
7: 85,
8: 95,
9: 105,
10: 115
// Get value of field B
var v = getField("fieldB").value;
// Set this field's value based on the value of field B
if (typeof vals[v] !== "undefined") {
event.value = vals[v];
} else {
// If corresponding value is not present, blank this field
event.value = "";
Replace "fieldB" in the code with the actual name of the field you're using.
You could also use similar code in the Validate event of field B to set the value of field A. -
Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times.
Please help to set it up, thanks in advanceYou need to give more info..
Firstly only works for what.. networking.. backup.. wireless. You need more nouns.. more adjectives... describe what you want and what fails.. then we can figure out why.
Most likely you have bridged it when it should be in router mode..
Most likely you are using Lion or ML which has the airport utility bridge the TC by default.
Change it to working as a router. That might help.
If you press reset button it will default back to router btw.
If you are on Lion.. use a real utility. http://support.apple.com/kb/DL1547 -
How to make Avery 8160 address labels using pages
Anyone know how to make Avery 8160 address labels using Pages?
Open the Avery 8160 Word template from their website.
Peter -
How to make the APEX tree in the "Expand All" shape by default?
Could anybody please enlighten me on how to make the APEX tree in the "Expand All" shape by default please? I created an APEX tree and by default it's in the "Collapse All" shape. I am using APEX 4.1.0.00.21
Hi,
you can check the view source of html and check the onclick code written on that plus sign(Expand All), just copy that onclick javascript code and put it on page javascript event.
Thanks,
Jaydip Bosamiya
+91-76000 23053
http://jbosamiya.blogspot.com -
Help!!! How to make quicktime plugin do not display on top of the web page?
Any one knows how to make quicktime plugin do not display on top of the web page??? I've tried to change the zIndex property using javascript, but it doesn't work.
Because we have some widgets which are required to be moved to anywhere on the page, we use iframe to implement that, so it can display on top of quicktime plugin, but the plugin flickers sometimes when we do some operation on the widget which is on top of it.
Anyone can helps me? Thanks in advance!!!
Windows XP Pro> Can you tell me how to set the script so that the
lightbox image is
> displayed
> on mouseover instead of mouse click.
Check the docs. Trent is usually very thorough in his
instructions.
Hint: I haven't studied it but it probably involves modifying
one of DW's
built-in Behaviors.
Walt
"ducati1" <[email protected]> wrote in
message
news:gkb906$qrd$[email protected]..
> Wow that DW extension is just what I needed.
> Thanks..
> Can you tell me how to set the script so that the
lightbox image is
> displayed
> on mouseover instead of mouse click.
> I currently have the thumbnails set to insert the ALT
text into a text box
> on
> mouse click.
> -
We have a large family, 5 kids and two adults all with iPads, iPhones, Mac Books, Servers.... How can we combine our purchases to use on all our devices. We have two Apple ID's and sometimes buy multiple copies because of how we are limited...
Hello Halfback71,
Thanks for using Apple Support Communities.
For more information on this, take a look at:
Frequently asked questions about Apple ID
http://support.apple.com/kb/ht5622
I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.
Best of luck,
Mario -
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
How to make Adobe as your default viewer for all your PDF file instead of the Preview given? Thanks
you need to "Get Info" on the file first. Select it, right click and select 'Get Info' in the menu.
In the window that pops up, near the bottom, the "Open With" drop down menu needs changed. If the drop down menu does not present the one you want, select "Other" and find it. -
I purchased PhotoshopCS5 Sept 2010 and still use the same MAC. I invertly deleted the font section but everything else works. How can I fixed this because I use fonts all the time? I don't want to purchase another one since this cost me $699:(
Which version of mac os x are you using?
Could you clarify what you mean by "I invertly deleted the font section" -
I am a loyal iphone user and of course mine is the 3g iphone.. is that any solution on how to fix the whatsapp that cannot used on all 3g iphone?? i'm not gonna change my phone since i still love my old iphone 3g??? Please reply me. Thanks
There is nothing you can do. The iOS for the iPhone 3G is too old to run WhatsApp
-
How to make a method global so that it can be used in another component.?
Hi,
Is it possible to make a method global so that it can be used in another component.?
i.e I have one component C1 and methods declared in this component M1, M2, ...
Now I have another component C2 and in this component i want to use method M1 of component C1.
how to do so?
Any inputs will be appreciated.
Thanx.Hi,
As Uday said, To make the method as global of component say C1, You have to make method as interface by clicking the check box.
Now while using the method in other component say C2, you have to follow following steps:
1. In used component of comp. C2, add component C1.
2. Instantiate the component atleast once in any of the method of component using code wizard option:
'Instantiate Used Componet'.
3. Now you can call the method of component C1 using code wizard option 'Method call in used controller' -
How to make a pageitem global to all other pages in an application
Hi all,
i would like to set parameters for print set, especially the url to the server of my print server.Currently i do it for every page that need to to connect to the print server everytime.
I am storing this information in the admin page, but want my users to pick up any changes to the url, so as not to constantly change it everytime.
The question is ,Is this possible, and if YES how ??
Thanks Benjamin.Hi Benjamin.
as far as I understand APEX, page variables / items indeed are application global and visible to other pages.
They reside in the APEX session context and are accessible from the page where they have been defined as well as from any other page.
But if you want to explicitly declare global items why don't you use application items for your printer settings ?
You can declare them under you application properties.
Regards
Marc -
How to make a call in j2me using bluetooth?
Hi All,
I wanted to make a call to another device which is in my bluetooth range i wanted to know how to make such a call?And i have heard that using bluetooth for making calls we can only do half duplex communication that is at a time only one person can speak while the other hears ?I wanted to know that can we do a full duplex communication also so that both of them can speak as well as listen at a time.
ThanksTo make a call using javax.microedition.midlet.MIDlet.platformRequest().
for eg:
String telNo = "tel:+9682651761543";
platformRequest(telNo ); -
How to make a call in j2me using bluetooth technology?
Hi All,
I wanted to make a call to another device which is in my bluetooth range i wanted to know how to make such a call?And i have heard that using bluetooth for making calls we can only do half duplex communication that is at a time only one person can speak while the other hears ?I wanted to know that can we do a full duplex communication also so that both of them can speak as well as listen at a time.
ThanksTo make a call using javax.microedition.midlet.MIDlet.platformRequest().
for eg:
String telNo = "tel:+9682651761543";
platformRequest(telNo );
Maybe you are looking for
-
Itunes latest version makes it impossible to find the obscure songs I want. Apple also appears to have removed the ability to sort according to different columns like popularity, artist, album, song length, etc. Please help me find a way to find th
-
With this Add On enabled, the system seems to be cycling in and out of repeated calls to "check" something, I suppose, adding an irritating delay to internet surfing. I have seen no adverse impact to disabling this Add On thus far. It happens on some
-
How do i cancel Netflix from my Apple account, i'm already a Netflix member ?
How do i cancel Netflix from my Apple account, i'm already a Netflix member ?
-
How to check a text type if it is filled or not for specific user status
Hello; I want to check if a text type in a notification is filled or not for a specific user status. I guess that can be done using the BADI "ORDER_SAVE", but not sure how to do that. Regards, Erkan Kaya
-
Getting data of two columns in one column
Hi, I need to show data of two columns in one column, I also want to insert space between the data of both the columns in the output can i use something like this ? (IMPORTER_NAME+' '+IMPORTER_ADDRESS) as "Location"