|
|
Register
|
Login
Home
Products
XMod Pro
XMod
Features
XMod Demos
Repeater Template
Tabstrip
AJAX
Ordered, Unordered and Definition Lists
Navigation Bars
News Articles
Scrolling
Fading News Ticker
Grid Layout Sample
Photo Gallery (Lightbox)
What's New in XMod 5.0?
XMod Screenshots
XMod Showcase
Form and Template Exchange
XMod Add-Ons
ScreenCasts
XMod Calendar
XMod RSS Reader
Testify!
Development Services
Support
Forums
Knowledge Base
Training
Blog
Contact
»
Support
>
Knowledge Base
Friday, July 30, 2010
What's New
[XMod]
Ratings on xmod template
[XMod Pro]
How Do I Use Tokens in A Select/Submit Command?
[XMod]
How to add automatic numbering
[XMod Pro]
Interpreting "Databinding Methods such as Eval() ..." Error Messages
[XMod]
How Do I Post to Salesforce?
[XMod Pro]
Can I Use The Module With All My Portals?
[XMod Pro]
Where is the XMod Pro Manual?
[XMod Pro]
Using A Stored Procedcure iin Forms
[XMod Pro]
Invalid Column Name Error Message
[XMod Pro]
Access Data in a Non-DNN Database
Home
Products
XMod Pro
XMod
Features
XMod Demos
Repeater Template
Tabstrip
AJAX
Ordered, Unordered and Definition Lists
Navigation Bars
News Articles
Scrolling
Fading News Ticker
Grid Layout Sample
Photo Gallery (Lightbox)
What's New in XMod 5.0?
XMod Screenshots
XMod Showcase
Form and Template Exchange
XMod Add-Ons
ScreenCasts
XMod Calendar
XMod RSS Reader
Testify!
Development Services
Support
Forums
Knowledge Base
Training
Blog
Contact
Knowledge Base
Unanswered
Active Topics
Forums
Search
Forums
>
XMod Pro
>
FAQ
Using A Stored Procedcure iin Forms
Last Post 08 Mar 2010 02:34 PM by DNNDev Admin. 3 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
regenbauma
Basic Member
Posts:12
04 Mar 2010 05:38 PM
Can you give me an example or guidance how i can create and call an onsubmit related event so that upon submit I can execute a string of sql statements to inject content from that form submission to a sql table, or call a stored procedure using the form variables as parameters.
I have a xmpro tabel thats being populated on submit , but a I have anothe tabel table that needs that data too...
also thinking ..can i have multiple submit statements for that addform.... i suppose i could also define a trigger ... any suggestions welcome
Thanks !!
DNNDev Admin
Posts:5766
04 Mar 2010 06:25 PM
The best way is to use a stored procedure. To do this, use the EXEC command in your command text. So, if your stored procedure is called "AddContact" and takes two parameters "Name" and "Address", your SubmitCommand might look like this:
<SubmitCommand CommandText="EXEC AddContact @Name, @Address" />
In your form, presumably, you would have some fields tied to this parameters:
<TextBox id="txtName" DataField="Name" DataType="String" />
<TextArea id="taAddress" DataField="Address" DataType="String" />
Power Your Website With XMod Pro
Buy XMod Pro Today
regenbauma
Basic Member
Posts:12
08 Mar 2010 10:03 AM
if i already had an insert statement in the submit woul dI need to move that to the stored procedure or can I just add a second submit command ?
DNNDev Admin
Posts:5766
08 Mar 2010 02:34 PM
You would need to move your INSERT statement into the stored procedure
Power Your Website With XMod Pro
Buy XMod Pro Today
You are not authorized to post a reply.
Knowledge Base Information
--Welcome - Read Me First
--Suggestions
--Information for Contributors
--Temporary Holding
XMod
--FAQ
--Solutions
XMod Pro
--FAQ
--Solutions
--Samples and Examples
Forums
>
XMod Pro
>
FAQ
Active Forums 4.1
© 2004-2010 Kelly Ford
|
Privacy Statement
|
Terms Of Use