Simple question on the passage of ID variables in a url after you add a new record
Hello;I know it's a simple question, I have a brain block. I'm going from a form and insert a new record in the db, but after I insert the new record, I want to pass the ID variable that gets are entrusted to him. How can I do this?
It's my code to insert:
< cfset EventDate = "#DateFormat(form.eventDate,"mm/dd/yyyy") #" >
< datasource = "" #APPLICATION.dataSource # cfquery "dbtype ="ODBC">"
INSERT INTO events
(title, eventDate, eventTime, location, contact, telephone, fax, email, URL, sponsor, body)
VALUES (< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.title #" >,)
< cfqueryparam cfsqltype = 'cf_sql_date' value = "" #EventDate # ">,"
< cfqueryparam cfsqltype = "cf_sql_time" value = "#form.eventTime #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.location #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.contact #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.phone #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.fax #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.email #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form. "URL #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.sponsor #" >.
< cfqueryparam cfsqltype = "cf_sql_longvarchar" value = "#form.body #">) "
< / cfquery >
< cflocation url = "events_RecordView.cfm" >
In the cflocation I want to pass the variable ID, how about a new record?
Thank you.
CFmonger
Try this. This will select in the query exactly what was inserted just enter the id and pass id just to get in the variable. If two people fill out the form at the same exact time, that assure that they are redirected to the appropriate page.
Tags: ColdFusion
Similar Questions
-
simple question: is the f2280 a printer/scanner wireless?
Simple question: is the f2280 a printer/scanner wireless?
This widget could not be displayed. -
I have a simple question about the meta-data.
Hello. It is a simple question about the meta-data. How can I get the video bitrate of a flv or mp4 (video playing via NetStream file) file
right now I have this:
Code var netClient:Object = new Object();
netClient.onMetaData = function(meta:Object)
{
for (var in meta props) {}
trace (props + ":" + meta [props]);
}
MovieClip (root) .durations = meta.duration;
trace (MovieClip (root) .durations);
};
NS.client = netClient;And my output is:
videocodecid: avc1
audiocodecid: m4as
aacaot: 2
Width: 960
AudioChannels: 2
videoframerate: 23.976
TrackInfo: [object Object], [object Object]
moovposition: 32
avcprofile: 77
audiosamplerate: 48000
avclevel: 31
seekpoints: [object Object], [object Object], [object Object], [object Object]
height: 540
Duration: 221.312As you can see, there is nothing of video bitrate.
I know that the video bitrate of my videos, but then I have to manually type each number of bitrate into my flash project, and it would be such a fuss when I have a lot of videos. Would be nice if flash can detect the video bitrate.
It's for my online portfolio.
Why you divide by 8? If you want to convert bytes into bits, multiply by 8.
-
I installed the download tool usb/dvd windows 7, but after you have selected the iso file when I insert the USB stick and refrecing, it does show that "no usb drive compatible' what is the problem with my USB
I have sandisk cruzer blade USB key
Hi Rohit,
Thanks for posting your query in Microsoft Community Forum. I understand that your USB drive is having problems of compatibility with your computer, but I would like to learn more about the issue in order to provide you with better assistance.
- You did it any significant hardware or change software on the computer before this problem?
- When do you get exactly the error message?
- Have you tried to connect to any other computer on this flash drives?
- Your USB key works on other computers or have you tried to connect to different USB ports on this computer?
- Is the pen drive getting detected in the case or you are able to access the drive folder in the window of the computer ?
The question may arise if the currently loaded USB driver has become unstable or damaged, or if your PC requires an update for problems that could conflict with a device USB and Windows. This can also occur if your USB controllers may have become unstable or corrupt. So, I would suggest trying the following steps and check if the problem persists.
Method 1:
Please try the fixit (s) provided below which will help you solve common problems associated with devices and USB ports.
- Hardware devices do not work or are not detected in Windows
- Diagnose and automatically fix the Windows USB problems
If method 1 does not work, try Method 2.
Method 2:
Remove and reinstall all USB controllers.
- Open Manager devices by clicking the Start button, click Control Panel, click system and security, and then, under System, clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
- In the list of the categories of equipment, locate and expand Bus USB controllers.
- Right-click every device under the Bus USB controllers node and then click Uninstall to remove them one at a time.
- Restart the computer and let the USB controllers get reinstalled.
Plug in the removable USB device and test to make sure that the problem is solved.
If the problem persists, go to method 3.
Method 3:
This method will install the latest drivers from device to your USB device.
- Click the Start button, type Windows Update in the search box, and then click Windows Update in the results pane.
- Click find updates. When the scan finished, click optional review updates.
- Click the check box next to the update, and then click install updates.
- If you are prompted, read the license agreement, then click I agree.
- Follow the instructions on the screen to download and install updates.
- If you are prompted, restart your computer.
More information: Update a hardware driver that is not working properly
Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.
-
I have copy of old tbird and seamonkey e-mail files with the files and emails for each. I need to add to new tbird install. can not find a way to do it. HELP PLEASE. previous e-mail files are under mail then mail.earthlink* .net and each of the five mail .net is an email address I have. I can't find a way to identify each file by email to the specific email address (IE mail.my E-mail name.net) so I can copy the files and emails from the past to the email addresses now under tbird. previous installed e-mail identities may not be the current configuration of e-mail files in tbird. I think that I must be sure that mail.name.net matches the previous mail.name.net to be able to copy and paste the old to the new. is there a way to find the file name correct the old email and correspond to the new? all my emails very important information are mostly in the old mail electronic id and must be available in the identification of email again (but same) how can I do this?
http://KB.mozillazine.org/Importing_folders
Use this module.
https://addons.Mozilla.org/en-us/Thunderbird/addon/ImportExportTools/
-
After you create a new playlist in iTunes, every song has the cover of the album and no box on the left side. How can I remove from the work and recover the box? TIA
You can change the appearance of a selection by clicking on "reading list" in the upper right of the iTunes window. The desired view is probably "tracks"
-
Mr President.
What is wrong with this sequence, it does not work when, after 3 inserts, I add a new record with the trigger it gives an error.
--SL_CUSTOMERS table data INSERT INTO SL_CUSTOMERS VALUES(1,'Kamrul Hasan',NULL,NULL,'Moghbazar', 'Dhaka','0456789123',NULL,NULL,NULL,'Y',NULL); INSERT INTO SL_CUSTOMERS VALUES(2,'Rabiul Alam',NULL,NULL,'Motijheel', 'Dhaka','0567891234',NULL,NULL,NULL,'Y',NULL); INSERT INTO SL_CUSTOMERS VALUES(3,'Shahed Hasan',NULL,NULL,'2-G/1,2-2,Mirpur', 'Dhaka','0678912345',NULL,NULL,NULL,'Y',NULL);
CREATE SEQUENCE "ALIZA"."SL_CUSTOMERS_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER NOCYCLE ; CREATE OR REPLACE TRIGGER SL_CUSTOMERS_TRG BEFORE INSERT ON "ALIZA"."SL_CUSTOMERS" FOR EACH ROW BEGIN IF :NEW.CUSTOMER_ID IS NULL OR :NEW.CUSTOMER_ID < 0 THEN SELECT SL_CUSTOMERS_SEQ.nextval INTO :NEW.CUSTOMER_ID FROM DUAL; END IF; END; /
When I try to insert several records with the seq.nextval it gives error
violation of primary key.
INSERT INTO "ALIZA"."SL_CUSTOMERS" (CUSTOMER_NAME) VALUES ('sdfsd') ORA-00001: unique constraint (ALIZA.SL_CUSTOMERS_PK) violated ORA-06512: at line 1 One error saving changes to table "ALIZA"."SL_CUSTOMERS": Row 4: ORA-00001: unique constraint (ALIZA.SL_CUSTOMERS_PK) violated ORA-06512: at line 1
Concerning
Mr President.
I find the solution by creating a function before the triiger
as below
CREATE SEQUENCE "ALIZA"."SL_CUSTOMERS_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER NOCYCLE ; CREATE OR REPLACE FUNCTION get_SL_CUSTOMERS_vId RETURN VARCHAR2 AS BEGIN RETURN SL_CUSTOMERS_SEQ.NEXTVAL; END; / CREATE OR REPLACE TRIGGER SL_CUSTOMERS_TRG BEFORE INSERT ON "ALIZA"."SL_CUSTOMERS" FOR EACH ROW DECLARE dummy VARCHAR2(200); BEGIN dummy := get_SL_CUSTOMERS_vId(); :NEW.CUSTOMER_ID := dummy; END; /
It works very well
Thank you all for the suggestions.
Concerning
-
How to recover a database after you add a data since the last file backup.
How to recover a database after you add a data file to a tablspace existing since the last user managed backup.
PS: I am aware that the user managed backups are not used and RMAN is used these days.At the stage of the mount: select name from v$ datafile;
The last entry indicates a file named /xxx/xxx/.../UNNAMEDXXX.dbfNow
ALTER database create datafile ' / xxx/xxx/.../UNNAMEDXXX.dbf' as 'path_where_you_want_to_add_the_datafile ';
The name of the data file must match the name that added in production
This will create a data file to the required location.
Once the file has been created, you can continue with recovery.
-
Question about the use of constant variables in forms
As I am still very new to forms, please forgive my ignorance, if the answer to my question is very simple. I'm trying to understand how to use constant variables in my application Forms. For example, if I want the return code of constants for the configuration application (not, mind these are examples):
RC_SUCCESS CONSTANT PLS_INTEGER: = 1;
RC_FAILURE CONSTANT PLS_INTEGER: = 0;
RC_YEAR_DATA_NOT_FOUND: = 50;
Then in a module I created, if I wanted to check the return code against one of the constants I would do:
DECLARE
RC PLS_INTEGER;
BEGIN
GET_YEAR_DATA ('2000 ', rc);
IF rc = RC_YEAR_DATA_NOT_FOUND THEN
-Make an error handling
END IF;
END;
I know that you can declare constants within the individual procedures or packages, but I can't find information on how to do it in the world for the application. I read on the use of global variables in forms, but only the CHAR data type and the fact that the value can be modified doesn't really fit for this purpose have I missed something? Is there a config file or something for the Web server that can be used to configure these?
Any help would be appreciated.
Thank youTo declare constants create a Package specification in a pll and deifne all your vitals, something like:
PACKAGE PK_CONSTANTS IS RC_SUCCESS CONSTANT PLS_INTEGER := 1; RC_FAILURE CONSTANT PLS_INTEGER := 0; RC_YEAR_DATA_NOT_FOUND := 50; END;
Then attach this pll for all your forms-modules and use it as
IF rc = PK_CONSTANTS.RC_YEAR_DATA_NOT_FOUND THEN .. END IF;
A word on exceptions or errors: to me more clear (and in the case of exceptions even better) to throw an exception only to hide behind return-codes.
-
Simple question about the signing of the app
Hello.
I develop libraries to be used in other apps.
It will be a cod file, its name will be added to the jad as a dependency.
My library has access to the secure API (call of the browser), so I have a simple question:
can I register only my cod library or application that uses my library is expected to be signed in too?
THX.
You should be ok just signature cod of the library, if your application uses any API secure. However, I just make a habit to sign everything just in case.
-
Simple questions on the earphones of events and memory management
I am brand new to AS 3.0 (have not coded in 10 years!) and I have a two part question on the management of event listeners.
1. is it possible to use variables or loops to simplify the process of creating event listener? For example, I have a scene that animates the leaves when they are hit. There are 25 or more leaves, so I need to handlers of 25 and 25 functions, even if the animation is the same. Right now my code looks like this:
leaf1.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf1);
leaf2.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf2);
leaf3.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf3);etc. And then the functions all alike as well.
function animateLeaf1(e:TouchEvent): void {}
leaf1.gotoAndPlay ("animationStart");
}
function animateLeaf2(e:TouchEvent): void {}
leaf2.gotoAndPlay ("animationStart");
}etc. My instinct tells me there is an easier way to do this, but I don't know if it's just because I see a model and want to put it in a loop or if there is really a better way to do it. I have event listeners are doing right?
2. How can I clean my waste? Each of my frames will have 100-300 earphones of events inside, for animations, etc., mainly because a single button can have 3-5 event listeners (touch Start, end touch, touch roll on, roll off touch, etc.). Is this too much for a mobile device to manage? When can I disable event listeners to make sure that they are the garbage collector to release the memory? I don't want memory leaks, but the event listeners must be active when the frame is active and destroyed when the setting is inactive; I don't know how to program which, or if such a garbage collection is already inherent in Flash.
Thank you very much!
Amberleaf1.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf);
leaf2.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf);
leaf3.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf);
leaf4.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf);
function animateLeaf(e:TouchEvent): void {}
e.currentTarget.gotoAndPlay ("animationStart");
} -
simple question for the first time the user: someone please be a hero
Forgive the restorative nature of this question but the FM help files are surprisingly usless for the first time and users.
I did successfully a rectangle graphic. Now, I want to put some text in the rectangle. I see that I can't just click on and type. Apparently I have to, I don't know, do a "framework" of text or something? I don't see why this is so complicated or why the help docs do not begin at the obvious base.
Please throw me a bone and wander if this. I use 9 FM, but I am sure that the version is not serious.
Thank you!
There are two possibilities to place text on a chart.
One is to use the "text tool" in which you can type a string of text whenever you click on the slider. You can format the string, but you cannot apply a character tag or a paragraph tag. And you can't put a carriage return make several lines; to do this, you need to add the additional lines of text.
The line of text tool is the letter 'A' that appears in the icons when you consider > toolbars > toolbar graphics.
Second method is to create a text frame, and then type in it. You can apply paragraph tags, tags of characters, use of CRs and so on in a text frame.
Text frame tool is the small square with several lines in, just above the "A" icon in the Graphics toolbar.
-
Simple question about the file .AS in flex3 code integration
I'm sure it's very easy for most people, but I can't understand it off... nada, zilch...
I have this file ( file of optimized Perlin noise), and I'm trying to register / make available in my code flex3. I can't get the code right names/import space, and I'm not sure - because of the namespace - if I'm supposed to put this file in a collection of subfolders (something like: nl/ronvalstar/math...). The end result is for me to be able to replace the BitmapData.perlinNoise method with a version optimized for the generation of clouds in real time.
I would be grateful if someone could give the code for this file integrated.
Thanks :)You must place the file in the folder (> indicates subfolder)
SRC > nl > ronvalstar > math
You are supposed not only to put the file here, you put it here. In fact, it must put a packet having all its classes in the corresponding folder.
Then, use
Nl.ronvalstar.math import. *;
at the beginning of the section of your mx:Script. Or - just import the single class - use this:
Import nl.ronvalstar.math.OptimizedPerlin;
-
I plugged my USB Modem to the computer, it's MMX352G micromax modem. After the internet connection all browsers open the pages of the World Bank, but in the task bar sign network is to have a Red Cross and when I go over it, it says not connected, but I can always use internet in my browsers. Why? It causes an adverse effect on my computer.
Hi Akash,
Welcome to the Microsoft community. According to the description of the bar icon problem tasks of the network have a red x, but you can still access the internet. Provide the following information:
· Did you do changes on the computer before the show?
· You use a third-party security software?
I suggest you follow these methods.
Method 1: Follow these steps:
Step 1: Start the computer in safe mode with network and check if the problem persists.
Startup options (including safe mode)
Step 2: If the problem does not persist in safe mode with networking, perform a clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.
Note: After completing the steps in the clean boot troubleshooting, follow step 3 from the link to start the computer to a Normal startupmode.
Method 2: Follow the steps in the article.
Windows wireless and wired network connection problems
You can read this article for more information:
How can I troubleshoot network card?
I hope this helps. Let us know if you need more assistance.
-
When activate the integration in Virtual PC features, then the dialog box "Enter your credentials" appears. After entering the username and password of the system cannot connect because the host name is added in front of the user name that I entered. Example: Guest user name is "Admin". The host name is "XYZ". Vrtual PC try to connect as a user "XYZ/Admin" on the comment system. After getting the error message I can manually correct the user name in the normal windows login screen on the client and open a session. However, no saved credentials, to be asked to log on again whenever I have resize the Virtual PC window. Any ideas how to solve this problem? Thank you!
Hello
What is the error message?
Please try following the steps for the computer to remember the credentials and do not ask the password to open each programs:
1. when it asks for a password, click Cancel . Without integration feature, you are allowed to log on with an account that do not have a password.
2. set a password for your current user.
3. click on Tools , Windows Virtual PC, choose the integration features allow.
a. type the password, check the box ' remember my references of "and click OK to open a session.»
b. after joining the domain, logon in XP mode with the local administrator account.
Maybe you are looking for
-
So I got this computer and I downloaded Skype for about 1.5 months it worked on windows 10 then one day the Skype comes to the accident I tried to reinstall Skype and turn off the pc and it won't work it opens for about 10-20 seconds then does not an
-
I can't connect a Flir camera to the network
I have problems connecting to a security camera FLIR FX at the network.
-
Is possible to change the type of node WINS with cmd command on a windows operating system that is not joined to the domain?
-
Activation of Windows Vista to a new hardware?
3 years ago, I bought a Fujitsu Siemens Scaleo p This year, I bought a few pieces new (everything except the hard drive). Now it says I need to activate Windows but I can't activate it. The problem came when I bought the motherboard, processor and ra
-
the LCD of my lenovo g550 is broken or should I say had a big crack... I was wondering how much it would cost me to replace ir or fix it? IM in the philippines by the way...