Hello Guys, First I would like to appreciate all help by Dundas BI and forum mebers. It;s really great Forum.
Now I will narrate my question.
I want to write comments from different textboxes filters on dashboard to my custom database. I have followed below link .
https://www.dundas.com/Support/learning/documentation/cleanse-consolidate-modify-data/how-to/passing-placeholder-value-from-dashboard-to-manual-mdx-select
https://www.dundas.com/support/learning/documentation/cleanse-consolidate-modify-data/how-to/passing-parameter-value-from-dashboard-to-stored-procedure
However problem with this is when I try to tab from one comment box to another comment box, it is writing comment that number og time i.e. if I have 2 comment box as shown below Comment1 and Comment2. When I write comment1 and give tab, Comment1 is getting saved in database. When I write Comment2, both Comment1 and Comment2 (both are two columns in my custom table) are getting saved. Hence 2 records getting inserted, instead of 1.
Image as below:
My SP is as below:
–Use [Honeywell Golden Batch]
ALTER PROCEDURE [dbo].[Comment_Writeback]
– Add the parameters for the stored procedure here
@comment1 nvarchar(200),
@comment2 nvarchar(200)
AS
BEGIN
– SET NOCOUNT ON added to prevent extra result sets from
– interfering with SELECT statements.
SET NOCOUNT ON;
--UPDATE [dbo].[Table_1]
--SET LatestUpdate = @comment
--WHERE Project = @project
--SELECT * from [dbo].[Table_1]
Insert into [Test_WriteBack] ([Date],[Comment1],[Comment2])
Values (Getdate(),@comment1,@comment2)
SELECT * from [Test_WriteBack]
END
Is there any way to write only on ‘Save Comment’ button click event instead of tab?
Thnx.