CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Custom Insert Mysql

Print topic Send  topic

Author Message
Caiorr

Posts: 8
Posted: 06/20/2011, 10:44 PM

Im trying to execute this command in a record page:

INSERT INTO Paginas(Nome, Tempo, ID_Formato, ID_Tema, ID_Usuario, Ordem) VALUES('{Nome}', {Tempo}, {ID_Formato}, {ID_Tema}, {Usuario}, {Expr0})

{Expr0} have to be LAST_INSERT_ID() function in Custom Insert Parameter Screen

I tryed all kind of combinations in Custom Insert Parameter Screen and nothing, can someone help?

http://www.neopubliq.com.br/temp/1.jpg

Tks
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 07/21/2011, 6:22 PM

Caiorr,

Have you resolved this or do you still need assistance?
View profile  Send private message
scarvello

Posts: 64
Posted: 07/22/2011, 1:32 AM

The value of mysql_insert_id() is affected only by statements issued
within the current client connection.
I'm not sure but may be that "Custom Insert" create a new connection.
You can try by building a stored procedure that insert the Master record and capture Last_Inserd_Id for the Detail record.
View profile  Send private message
Caiorr

Posts: 8
Posted: 07/22/2011, 6:59 AM

I created a hidden control.

Before execute the insert, i change this control with mysql command.

Its not the best way, but it worked.

Now my real problem is something that i cant say, cause every time i try to post a question here, Yes Software delete it.

And im not alone in this problem, and maybe Yes Software will delete it again.

I can tell that this posture just confirm how they care about us (clients).
View profile  Send private message
datadoit
Posted: 07/22/2011, 7:08 AM

It's possible that your messages may be getting deleted automatically
due to the content looking like some sort of SQL injection. Try posting
your questions/comments that include code snippets from the web
interface, and placing your code into the code tags (<code></code>).
Caiorr

Posts: 8
Posted: 07/22/2011, 7:18 AM

My question is about CCS u p d a t e s .... dont have codes...
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 10/23/2011, 2:17 AM

sometimes forum does some weird behaviour and this could happen.
_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.