473,378 Members | 1,617 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Dynamic Datagrid not showing up

Hi everyone,

Thanks in advance for trying to help me out.

I have a SQLDataSource which is running a dynamically generated SQL2005 stored procedure. (That is, the stored procedure creates a varchar string and ends with an exec(@string) command.) The datasource is used by a gridview to display the result. The stored procedure gets a number of parameters which set bit values for "use query criteria 1" , "use query criteria 2" etc which are all tied to Visual Studio check boxes. (The result is-- will be-- that the user can select one or more check boxes and filter which records are returned.)

The stored procedure runs perfectly when I execute it on the database side, as well as when I click "Test Query" in the SQLDataSource configuration wizard. The columns are set properly, and everything looks to be fine right up until when I build it.

My problem is the gridview just doesn't show up. No header, no data-- nothing.

I admit I'm very perplexed. Does anyone have any idea what could cause this?

Other potentially useful info:

I don't get any build errors or SQL exceptions.
If instead of ending the stored procedure with exec(@string) I use SELECT @string, and copy/paste the output into the Select statement of the datasource, it runs fine.

Also, stepping through the .cs file shows that the SqlDataSource_Selected() is never called. Any idea why this would be?

Thanks in advance for your help!
Mar 6 '09 #1
17 2893
Frinavale
9,735 Expert Mod 8TB
Could you please post your code for the SQLDataSource so that we can see what's going on?

Thanks,

-Frinny
Mar 9 '09 #2
Sure thing Frinny.

The SQLDataSource uses this code:

Expand|Select|Wrap|Line Numbers
  1. set ANSI_NULLS ON
  2. set QUOTED_IDENTIFIER ON
  3. GO
  4.  
  5. -- =============================================
  6. -- Author:        Nick
  7. -- Create date: 2/16/2009
  8. -- Description:    Recieves user input from front end and
  9. -- returns a list of tasks, their due dates, completion
  10. -- dates etc.
  11. -- =============================================
  12. CREATE PROCEDURE [dbo].[xx_ReportCustom3_List]
  13.     @USE_DEFAULT int = 1, --1 = use default, 0 = use current selection
  14.     @USER_BEMSID int = 1801478,
  15.     @DAYS_FWD int = 0, -- how far forward to look. 0 = infinite
  16.     @DAYS_BACK int= 0, -- how far backward to look. 0 = infinite
  17.     @PAST_DUE int= 0, -- display items with status of past due.
  18.     @COMPLETED_ON_TIME int= 0, -- display items with status of completed on time
  19.     @OPEN int= 0, -- display items with status of open
  20.     @MM int= 0, -- display items with class of MM
  21.     @CPI int= 0, -- display items with class of CPI
  22.     @TSR int= 0, -- display items with class of CPI
  23.     @DELIV int= 0  , -- display items with class of Deliv
  24. -- note: for MM, CPI, TSR and DELIV 1 = Filter by, 0 = don't filter
  25.     @ASSIGNED_TO_BEMS int = NULL, -- display items assigned to this user
  26.     @SPECIFIED_EFFECTIVITY varchar(max) = NULL, -- display items associated with this effectivity
  27.     @COMPLETED_LATE int = 0 -- display items with status of completed late
  28. AS
  29. BEGIN
  30.  
  31. DECLARE @TIMESTAMP datetime
  32. SET @TIMESTAMP = getdate()
  33.  
  34. DECLARE @STR_SELECT varchar(max)
  35. DECLARE @STR_CLASS varchar(max)
  36.  
  37. -- Some data checking/fixing from front end
  38. IF @SPECIFIED_EFFECTIVITY = ''
  39.     SET @SPECIFIED_EFFECTIVITY = NULL
  40.  
  41. DECLARE @ALL_ASSIGNEES int -- 1 = show all, 0 = only assigned_to
  42. IF @ASSIGNED_TO_BEMS = 0
  43.     SET @ALL_ASSIGNEES = 1
  44. ELSE 
  45.     SET @ALL_ASSIGNEES = 0
  46.  
  47. DECLARE    @ALL_EFFECTIVITIES int -- 1 = show all, 0 = only specified effectivity
  48. IF @SPECIFIED_EFFECTIVITY IS NULL
  49.     SET @ALL_EFFECTIVITIES = 1
  50. ELSE
  51.     SET @ALL_EFFECTIVITIES = 0
  52.  
  53.  
  54. DECLARE @USE_WHERE_CLAUSE int
  55. IF 
  56. (
  57.     @DAYS_FWD = 0 
  58.     and @DAYS_BACK = 0
  59.     and @PAST_DUE = 0 
  60.     and @COMPLETED_LATE = 0 
  61.     and @OPEN = 0  
  62.     and @COMPLETED_ON_TIME = 0 
  63.     and @MM = 0  
  64.     and @CPI = 0  
  65.     and @TSR = 0  
  66.     and @DELIV = 0   
  67.     and (@ASSIGNED_TO_BEMS = 0 or @ALL_ASSIGNEES = 1)
  68.     and (@SPECIFIED_EFFECTIVITY = NULL or @ALL_EFFECTIVITIES = 1)
  69. )
  70. SET @USE_WHERE_CLAUSE = 0
  71. ELSE 
  72. SET @USE_WHERE_CLAUSE = 1
  73. --SELECT @USE_WHERE_CLAUSE
  74.  
  75.  
  76. --Create table variable to store user inputs
  77. DECLARE @var TABLE 
  78. (    
  79.     BEMSID int,
  80.     USE_WHERE_CLAUSE int, -- 1 = filter, 0 = return all
  81.     DAYS_FWD int, 
  82.     DAYS_BACK int,
  83.     PAST_DUE int,
  84.     COMPLETED_LATE int,
  85.     [OPEN] int,
  86.     COMPLETED_ON_TIME int,
  87.     MM int, 
  88.     CPI int,
  89.     TSR int,
  90.     DELIV int, -- MM, CPI, TSR and DELIV 1 = Filter, 0 = don't filter
  91.     ALL_ASSIGNEES int, -- 1 = show all, 0 = only assigned_to
  92.     ASSIGNED_TO_BEMS int,
  93.     ALL_EFFECTIVITIES int, -- 1 = show all, 0 = only specified effectivity
  94.     SPECIFIED_EFFECTIVITY varchar(max) 
  95. )
  96.  
  97.  
  98.  
  99. --SET USER PREFERENCES
  100. -- if @USE_DEFAULT = 1: populate @var with defaults
  101. -- if @USE_DEFAULT = 0: populate @var with passed in paramaters
  102. IF @USE_DEFAULT = 1 
  103.     BEGIN
  104.         INSERT INTO @var 
  105.         (
  106.             BEMSID, 
  107.             USE_WHERE_CLAUSE, 
  108.             DAYS_FWD, 
  109.             DAYS_BACK, 
  110.             PAST_DUE, 
  111.             COMPLETED_LATE, 
  112.             [OPEN], 
  113.             COMPLETED_ON_TIME,
  114.             MM, 
  115.             CPI, 
  116.             TSR, 
  117.             DELIV, 
  118.             ALL_ASSIGNEES, 
  119.             ASSIGNED_TO_BEMS, 
  120.             ALL_EFFECTIVITIES, 
  121.             SPECIFIED_EFFECTIVITY
  122.         )
  123.         SELECT 
  124.             BEMSID, 
  125.             @USE_WHERE_CLAUSE, 
  126.             DAYS_FWD, 
  127.             DAYS_BACK, 
  128.             PAST_DUE, 
  129.             COMPLETED_LATE, 
  130.             [OPEN], 
  131.             COMPLETED_ON_TIME,
  132.             MM, 
  133.             CPI, 
  134.             TSR, 
  135.             DELIV, 
  136.             @ALL_ASSIGNEES, 
  137.             ASSIGNED_TO_BEMS, 
  138.             @ALL_EFFECTIVITIES, 
  139.             SPECIFIED_EFFECTIVITY
  140.         FROM dbo.xx_USER_CERT_SUMMARY_PREFERENCES
  141.         WHERE BEMSID = @USER_BEMSID        
  142.     END
  143.  
  144. ELSE
  145.  
  146.     INSERT INTO @var 
  147.     (
  148.         BEMSID, 
  149.         USE_WHERE_CLAUSE, 
  150.         DAYS_FWD, 
  151.         DAYS_BACK, 
  152.         PAST_DUE, 
  153.         COMPLETED_LATE, 
  154.         [OPEN], 
  155.         COMPLETED_ON_TIME,
  156.         MM, 
  157.         CPI, 
  158.         TSR, 
  159.         DELIV, 
  160.         ALL_ASSIGNEES, 
  161.         ASSIGNED_TO_BEMS, 
  162.         ALL_EFFECTIVITIES, 
  163.         SPECIFIED_EFFECTIVITY
  164.     )
  165.     VALUES
  166.     (
  167.         @USER_BEMSID, 
  168.         @USE_WHERE_CLAUSE, 
  169.         @DAYS_FWD, 
  170.         @DAYS_BACK, 
  171.         @PAST_DUE, 
  172.         @COMPLETED_LATE, 
  173.         @OPEN, 
  174.         @COMPLETED_ON_TIME,
  175.         @MM, 
  176.         @CPI, 
  177.         @TSR, 
  178.         @DELIV, 
  179.         @ALL_ASSIGNEES, 
  180.         @ASSIGNED_TO_BEMS, 
  181.         @ALL_EFFECTIVITIES, 
  182.         @SPECIFIED_EFFECTIVITY
  183.     )
  184. --SELECT * FROM @var
  185.  
  186. -- Build SELECT clause
  187. -- The SELECT clause is fixed for this report, therefore no 'if' statements are required.
  188.  
  189. SET @STR_SELECT = 
  190. 'SELECT 
  191.     CLASS,
  192.     DUE_DATE,
  193.     ASSIGNED_TO_NAME,
  194.     TASK_REFERENCE,
  195.     EFFECTIVITY,
  196.     CASE 
  197.         WHEN cast(' + '''' + cast(@TIMESTAMP as varchar(max)) + '''' + ' as varchar(max)) > DUE_DATE AND COMPLETION_DATE IS NULL THEN ''Past Due''
  198.         ' + ' WHEN cast(' + '''' + cast(@TIMESTAMP as varchar(max)) + '''' + ' as varchar(max)) < DUE_DATE AND COMPLETION_DATE IS NULL THEN ' + '''' + 'Open' + '''' +
  199.         ' WHEN COMPLETION_DATE < DUE_DATE THEN ' + '''' + 'Completed On Time' + '''' +
  200.         ' WHEN COMPLETION_DATE > DUE_DATE THEN ' + '''' + 'Completed Late' + '''' +         
  201.     ' END as STATUS,
  202.     COMPLETION_DATE
  203. FROM
  204. dbo.fn_NickManagerReport_List()'
  205.  
  206. -- Build WHERE clause
  207.  
  208. -- There are three groups of items to query by.
  209. -- 1) Independent variables: One value found in one column only. Uses 'and'
  210. -- 2) Status variables: Multiple status types found in the same column. Uses 'or'
  211. -- 3) Task variables: Multiple task types found in the same column. Uses 'or'
  212.  
  213. DECLARE @QUERY_FLAG_1 bit -- query by days fwd, days back, effectivity, assigned to
  214. SET @QUERY_FLAG_1 = 0
  215.  
  216. DECLARE @QUERY_FLAG_2 bit -- query by status
  217. SET @QUERY_FLAG_2 = 0
  218.  
  219. DECLARE @QUERY_FLAG_3 bit -- query by Task
  220. SET @QUERY_FLAG_3 = 0
  221.  
  222. DECLARE @STR_WHERE_1 varchar(max) -- holds 'and' statements
  223. DECLARE @STR_WHERE_2 varchar(max) -- holds Status statements
  224. DECLARE @STR_WHERE_3 varchar(max) -- holds Task statements
  225. DECLARE @STR_WHERE_FINAL varchar(max) -- combines statements
  226.  
  227.  
  228. --Initialize strings
  229. SET @STR_WHERE_FINAL = ''
  230. SET @STR_WHERE_1 = ''
  231. SET @STR_WHERE_2 = ''
  232. SET @STR_WHERE_3 = ''
  233.  
  234. --SELECT DAYS_FWD FROM @var
  235. IF (SELECT DAYS_FWD FROM @var) <> 0 -- note 0 is ignore criteria else number of days
  236.     BEGIN
  237.         SET @QUERY_FLAG_1 = 1
  238.         SET @STR_WHERE_1 = @STR_WHERE_1 + ' DUE_DATE <= CAST(' + '''' + CONVERT(varchar(max),@TIMESTAMP + (SELECT DAYS_FWD FROM @var), 120) + '''' + ' as datetime) and '
  239.     END
  240.  
  241. --SELECT DAYS_BACK FROM @var
  242. IF (SELECT DAYS_BACK FROM @var) <> 0  -- note 0 is ignore criteria else number of days
  243.     BEGIN
  244.         SET @QUERY_FLAG_1 = 1
  245.         SET @STR_WHERE_1 = @STR_WHERE_1 + ' DUE_DATE >= CAST(' + '''' + CONVERT(varchar(max),@TIMESTAMP - (SELECT DAYS_BACK FROM @var), 120) + '''' + ' as datetime) and '
  246.     END
  247.  
  248. -- Add ASSIGNEE filter
  249. IF (SELECT ALL_ASSIGNEES FROM @var) <> 1 and (SELECT ASSIGNED_TO_BEMS FROM @var) <> 0 --IS NOT NULL
  250.     BEGIN
  251.         SET @QUERY_FLAG_1 = 1
  252.         SET @STR_WHERE_1 = @STR_WHERE_1 + 'ASSIGNED_TO_BEMS = ' + CONVERT(varchar(max), (SELECT ASSIGNED_TO_BEMS FROM @var)) + ' and '
  253.     END
  254.  
  255. -- Add EFFECTIVITY filter
  256. IF (SELECT ALL_EFFECTIVITIES FROM @var) <> 1 and (SELECT SPECIFIED_EFFECTIVITY FROM @var) IS NOT NULL
  257.     BEGIN    
  258.         SET @QUERY_FLAG_1 = 1
  259.         SET @STR_WHERE_1 = @STR_WHERE_1 + 'EFFECTIVITY = ' + '''' + (SELECT SPECIFIED_EFFECTIVITY FROM @var) + '''' + ' and '
  260.     END
  261.  
  262.  
  263.  
  264. -- Add STATUS filter
  265. SET @STR_WHERE_2 = @STR_WHERE_2 + '('
  266. IF (SELECT PAST_DUE FROM @var) = 1
  267.     BEGIN
  268.         SET @QUERY_FLAG_2 = 1
  269.         SET @STR_WHERE_2 = @STR_WHERE_2 + ' STATUS = ' + '''' + 'Past Due' + '''' + ' or '
  270.     END
  271.  
  272. IF (SELECT [OPEN] FROM @var) = 1
  273.     BEGIN
  274.         SET @QUERY_FLAG_2 = 1
  275.         SET @STR_WHERE_2 = @STR_WHERE_2 + ' STATUS = ' + '''' + 'Open' + '''' + ' or '
  276.     END
  277.  
  278. IF (SELECT COMPLETED_ON_TIME FROM @var) = 1 
  279.     BEGIN
  280.         SET @QUERY_FLAG_2 = 1
  281.         SET @STR_WHERE_2 = @STR_WHERE_2 + ' STATUS = ' + '''' + 'Completed On Time' + '''' + ' or '
  282.     END
  283.  
  284. IF (SELECT COMPLETED_LATE FROM @var) = 1
  285.     BEGIN
  286.         SET @QUERY_FLAG_2 = 1
  287.         SET @STR_WHERE_2 = @STR_WHERE_2 + ' STATUS = ' + '''' + 'Completed Late' + '''' + ' or '
  288.     END
  289. -- Clean up status filter
  290. IF @QUERY_FLAG_2 = 1 AND RIGHT(@STR_WHERE_2,3) = 'or '
  291.     BEGIN
  292.         SET @STR_WHERE_2 = LEFT(@STR_WHERE_2,len(@STR_WHERE_2)-3)    
  293.     END
  294. SET @STR_WHERE_2 = @STR_WHERE_2 + ' ) and '
  295.  
  296.  
  297.  
  298.  
  299. -- Add CLASS filter
  300. SET @STR_WHERE_3 = @STR_WHERE_3 + '('
  301. IF (SELECT MM FROM @var) = 1
  302.     BEGIN
  303.         SET @QUERY_FLAG_3 = 1
  304.         SET @STR_WHERE_3 = @STR_WHERE_3 + ' CLASS = ' + '''' + 'MM' + '''' + ' or '
  305.     END
  306.  
  307. IF (SELECT CPI FROM @var) = 1
  308.     BEGIN
  309.         SET @QUERY_FLAG_3 = 1
  310.         SET @STR_WHERE_3 = @STR_WHERE_3 + ' CLASS = ' + '''' + 'CPI' + '''' + ' or '
  311.     END
  312.  
  313. IF (SELECT TSR FROM @var) = 1
  314.     BEGIN
  315.         SET @QUERY_FLAG_3 = 1
  316.         SET @STR_WHERE_3 = @STR_WHERE_3 + ' CLASS = ' + '''' + 'TSR' + '''' + ' or '
  317.     END
  318.  
  319. IF (SELECT DELIV FROM @var) = 1
  320.     BEGIN
  321.         SET @QUERY_FLAG_3 = 1
  322.         SET @STR_WHERE_3 = @STR_WHERE_3 + ' CLASS = ' + '''' + 'Deliv' + '''' + ' or '
  323.     END
  324. --Clean up CLASS filter
  325. IF @QUERY_FLAG_3 = 1 AND RIGHT(@STR_WHERE_3,3) = 'or '
  326.     BEGIN
  327.         SET @STR_WHERE_3 = LEFT(@STR_WHERE_3,len(@STR_WHERE_3)-3)
  328.     END
  329. SET @STR_WHERE_3 = @STR_WHERE_3 + ') and '
  330.  
  331. -- Create and clean up final WHERE clause string
  332. IF @QUERY_FLAG_1 = 1 OR @QUERY_FLAG_2 = 1 OR @QUERY_FLAG_3 = 1
  333.     BEGIN
  334.         SET @STR_WHERE_FINAL = ' WHERE ' + @STR_WHERE_1 + @STR_WHERE_2 + @STR_WHERE_3
  335.         -- Clean up final WHERE string
  336.         SET @STR_WHERE_FINAL = LEFT(@STR_WHERE_FINAL,len(@STR_WHERE_FINAL)-3)
  337.     END
  338.  
  339. --Debugging
  340.     --SELECT * FROM @var
  341. --    SELECT @STR_WHERE_1 as ONE
  342. --    SELECT @STR_WHERE_2 as TWO
  343. --    SELECT @STR_WHERE_3 as THREE
  344. --    SELECT @STR_WHERE_FINAL as WHERE_CLAUSE
  345. --    SELECT (@STR_SELECT + @STR_WHERE_FINAL + ' ORDER BY DUE_DATE')as full_text
  346.  
  347. --Execute procedure 
  348. EXEC(@STR_SELECT + @STR_WHERE_FINAL + ' ORDER BY DUE_DATE')
  349. --sp_EXECUTESQL[@STR_SELECT + @STR_WHERE_FINAL + ' ORDER BY DUE_DATE'])
  350.  
  351. END
  352.  
  353.  
  354.  
  355.  
Thee table valued function specified is this:

Expand|Select|Wrap|Line Numbers
  1. set ANSI_NULLS ON
  2. set QUOTED_IDENTIFIER ON
  3. GO
  4. CREATE FUNCTION [dbo].[fn_NickManagerReport_List] 
  5. (     
  6.  
  7. )
  8. RETURNS @table TABLE
  9. (
  10.       [CLASS] VARCHAR(MAX),
  11.       ASSIGNED_TO_BEMS INT,
  12.       ASSIGNED_TO_NAME VARCHAR(MAX),
  13.       MANAGER_BEMS INT,
  14.       MANAGER_NAME VARCHAR(MAX),
  15.       DUE_DATE DATETIME,
  16.       COMPLETION_DATE DATETIME,
  17.       CHANGE_NUMBER VARCHAR(MAX),
  18.       [GROUP_SUBGROUP] VARCHAR(MAX),
  19.       EFFECTIVITY VARCHAR(50),
  20.       [CPI_NUMBER] VARCHAR(MAX),
  21.       [STATUS] VARCHAR(MAX),
  22.       [SYSTEM] VARCHAR(MAX),
  23.       CP_NUM VARCHAR(50),
  24.       CP_REV VARCHAR(50),
  25.       DELIVERABLE_DESCRIPTION VARCHAR(MAX),
  26.       [DELIVERABLE_NUMBER] VARCHAR(MAX),
  27.       TASK_REFERENCE VARCHAR(MAX)
  28. )
  29. AS
  30. BEGIN
  31.     DECLARE @TIMESTAMP DATETIME
  32.     SET @TIMESTAMP  = GETDATE()
  33.  
  34.     INSERT @table
  35.     SELECT 
  36.           [CLASS],
  37.           ASSIGNED_TO_BEMS,
  38.           ASSIGNED_TO_NAME,
  39.           MANAGER_BEMS,
  40.           MANAGER_NAME,
  41.           DUE_DATE,
  42.           COMPLETION_DATE,
  43.           CHANGE_NUMBER + ' - ' + CHANGE_TITLE AS [CHANGE_NUMBER],
  44.           [GROUP] + ' - ' + SUBGROUP AS [GROUP_SUBGROUP],
  45.           EFFECTIVITY,
  46.           cast(CP_NUM as varchar(MAX)) + '-' + cast(CPI_NUMBER as varchar(MAX)) AS [CPI_NUMBER],
  47.           CASE      
  48.             WHEN @TIMESTAMP > DUE_DATE AND COMPLETION_DATE IS NULL THEN 'Past Due'
  49.             WHEN @TIMESTAMP < DUE_DATE AND COMPLETION_DATE IS NULL THEN 'Open'
  50.             WHEN GETDATE() > DUE_DATE AND COMPLETION_DATE IS NULL THEN 'Past Due'
  51.             WHEN GETDATE() < DUE_DATE AND COMPLETION_DATE IS NULL THEN 'Open'
  52.             WHEN COMPLETION_DATE < DUE_DATE THEN 'Completed On Time'
  53.             WHEN COMPLETION_DATE > DUE_DATE THEN 'Completed Late'             
  54.           END as STATUS,
  55.           SYSTEM + ' - ' + SUBSYSTEM AS [SYSTEM_SUBSYSTEM],
  56.           CP_NUM,
  57.           CP_REV,
  58.           DELIVERABLE_DESCRIPTION,
  59.           cast(CP_NUM as varchar(MAX)) + '-' + cast(DELIVERABLE_NUMBER as varchar(MAX))
  60.             AS [DELIVERABLE_NUMBER],
  61.           TASK_REFERENCE
  62.     FROM 
  63.           dbo.xx_NICK_TEMP_TABLE
  64. RETURN
  65. END
  66.  
  67.  
  68.  
And the table the function pulls from is:

Expand|Select|Wrap|Line Numbers
  1. USE [CPF_test]
  2. GO
  3. /****** Object:  Table [dbo].[xx_NICK_TEMP_TABLE]    Script Date: 03/09/2009 09:47:56 ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. SET ANSI_PADDING ON
  9. GO
  10. CREATE TABLE [dbo].[xx_NICK_TEMP_TABLE](
  11.     [CLASS] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  12.     [ASSIGNED_TO_BEMS] [int] NULL,
  13.     [ASSIGNED_TO_NAME] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  14.     [DUE_DATE] [datetime] NULL,
  15.     [COMPLETION_DATE] [datetime] NULL,
  16.     [CHANGE_NUMBER] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  17.     [CHANGE_TITLE] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  18.     [GROUP] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  19.     [SUBGROUP] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  20.     [EFFECTIVITY] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  21.     [MANAGER_BEMS] [int] NULL,
  22.     [MANAGER_NAME] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  23.     [CPI_NUMBER] [int] NULL,
  24.     [SYSTEM] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  25.     [SUBSYSTEM] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  26.     [CP_NUM] [int] NULL,
  27.     [CP_REV] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  28.     [DELIVERABLE_DESCRIPTION] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  29.     [DELIVERABLE_NUMBER] [int] NULL,
  30.     [TASK_REFERENCE] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  31. ) ON [PRIMARY]
  32.  
  33. GO
  34. SET ANSI_PADDING OFF
Which you can add data to this table by executing:

Expand|Select|Wrap|Line Numbers
  1.  
  2. DECLARE @CLASS varchar(max)
  3. DECLARE @ASSIGNED_TO_BEMS int
  4. DECLARE @ASSIGNED_TO_NAME varchar(max)
  5. DECLARE @DUE_DATE datetime
  6. DECLARE @COMPLETION_DATE datetime
  7. DECLARE @CHANGE_NUMBER varchar(max)
  8. DECLARE @CHANGE_TITLE varchar(max)
  9. DECLARE @GROUP varchar(max)
  10. DECLARE @SUBGROUP varchar(max)
  11. DECLARE @EFFECTIVITY varchar(max)
  12. DECLARE @MANAGER_BEMS int
  13. DECLARE @MANAGER_NAME varchar(max)
  14. DECLARE @CPI_NUMBER varchar(max)
  15. DECLARE @STATUS varchar(max)
  16. DECLARE @SYSTEM varchar(max)
  17. DECLARE @SUBSYSTEM varchar(max)
  18. DECLARE @CP_NUM int
  19. DECLARE @CP_REV varchar(max)
  20. DECLARE @DELIVERABLE_DESCRIPTION varchar(max)
  21. DECLARE @DELIVERABLE_NUMBER int
  22. DECLARE @TASK_REFERENCE varchar(max)
  23.  
  24. --OTHER PARAMATERS
  25. DECLARE @TIMESTAMP datetime
  26.  
  27. -- USER PARAMATER VARIABLES
  28. DECLARE @CLASS_TYPE int
  29. DECLARE @STATUS_TYPE int
  30. DECLARE @ValueOne int
  31. DECLARE @ValueTwo int
  32. DECLARE @int1 int
  33. DECLARE @int2 int
  34.  
  35.  
  36. ----------------------BEGIN USER PARAMATERS----------------------------
  37. SET @ASSIGNED_TO_BEMS = 1631350--1801478 -- Romo: 1631350
  38. SET @CLASS_TYPE = 3 -- 1=MM, 2=CPI, 3=TSR, 4=Deliv
  39. SET @STATUS_TYPE = 4 -- 1= open, 2= past due, 3=completed late, 4=completed on time
  40.  
  41. SET @ValueOne = 1
  42. SET @ValueTwo = 1
  43.  
  44. SET @CP_NUM = 1234
  45. SET @CP_REV = 'A'
  46. SET @EFFECTIVITY = 'test2'
  47. SET @CHANGE_NUMBER = 'Change number is not really a number'
  48. SET @CHANGE_TITLE = 'MMChangeTitle'
  49. SET @GROUP = 'GroupSomething'
  50. SET @SUBGROUP = 'SubgroupOrOther'
  51. SET @CPI_NUMBER = 1
  52. SET @SYSTEM = 'SystemTheWhatie'
  53. SET @SUBSYSTEM = 'SubsystemChupathingie'
  54. SET @DELIVERABLE_NUMBER = 1
  55. SET @DELIVERABLE_DESCRIPTION = 'Deliverable blah blah deliverable'
  56.  
  57.  
  58. ---------------------- END USER PARAMATERS ----------------------------
  59.  
  60.  
  61. ----------------------BEGIN CALCULATED PARAMATERS----------------------------
  62. SET @TIMESTAMP = getdate()
  63. SET @ASSIGNED_TO_NAME = (SELECT [NAME] FROM dbo.CAPTO_USER WHERE BEMSID = @ASSIGNED_TO_BEMS)
  64. SET @MANAGER_BEMS = (SELECT MANAGER_BEMSID FROM dbo.CAPTO_USER WHERE BEMSID = @ASSIGNED_TO_BEMS)
  65. SET @MANAGER_NAME = (
  66.                         SELECT m.[NAME] 
  67.                         FROM dbo.CAPTO_USER cp 
  68.                         JOIN dbo.CAPTO_USER m 
  69.                         ON cp.MANAGER_BEMSID = m.BEMSID
  70.                         WHERE cp.BEMSID= @ASSIGNED_TO_BEMS
  71.                     )
  72.  
  73. -- changes variance for due/completion dates
  74. SET @int1 = @ValueOne * RAND() + 1
  75. SET @int2 = @ValueTwo * RAND() + 1
  76.  
  77.  
  78. ----------------------BEGIN CASE PARAMATERS----------------------------
  79. --SET STATUS_TYPE PARAMATERS
  80. IF @STATUS_TYPE = 1 -- open
  81.     BEGIN
  82.         SET @DUE_DATE = @TIMESTAMP + @int1
  83.         SET @STATUS = 'Open'
  84.     END
  85. IF @STATUS_TYPE = 2 -- past due
  86.     BEGIN
  87.         SET @DUE_DATE = @TIMESTAMP - @int1
  88.         SET @STATUS = 'Past Due'
  89.     END
  90. IF @STATUS_TYPE = 3 -- completed late
  91.     BEGIN
  92.         SET @DUE_DATE = @TIMESTAMP - @int1
  93.         SET @COMPLETION_DATE = @TIMESTAMP + @int2
  94.         SET @STATUS = 'Completed Late'
  95.     END
  96. IF @STATUS_TYPE = 4 -- completed on time
  97.     BEGIN
  98.         SET @DUE_DATE = @TIMESTAMP- @int1
  99.         SET @COMPLETION_DATE = @TIMESTAMP - @int1 - @int2
  100.         SET @STATUS = 'Completed On Time'
  101.     END
  102.  
  103. --SET CLASS_TYPE_PARAMATERS
  104. IF @CLASS_TYPE = 1 -- MM
  105.     BEGIN
  106.         SET @CLASS = 'MM'
  107.         SET @TASK_REFERENCE = 'CHANGE_NUMBER, CHANGE_TITLE, GROUP - SUBGROUP'
  108.     END
  109. IF @CLASS_TYPE = 2 -- CPI
  110.     BEGIN
  111.         SET @CLASS = 'CPI'
  112.         SET @TASK_REFERENCE = 'CP_NUM-CPI_NUM, System - Subsystem'
  113.     END
  114. IF @CLASS_TYPE = 3 -- TSR
  115.     BEGIN
  116.         SET @CLASS = 'TSR'
  117.         SET @TASK_REFERENCE = 'CP & CP_REV, SYSTEM - SUBSYSTEM'
  118.     END
  119. IF @CLASS_TYPE = 4 -- Deliv
  120.     BEGIN
  121.         SET @CLASS = 'Deliv'
  122.         SET @TASK_REFERENCE = 'CP_NUM-DELIVERABLE_NUMBER, DELIVERABLE_DESCRIPTION'    
  123.     END
  124. ---------------------- END CASE PARAMATERS ----------------------------
  125.  
  126. ---------------------- BEGIN INSERT STATEMENTS ----------------------------
  127.  
  128. IF @CLASS_TYPE = 1 -- MM
  129.     BEGIN
  130.             INSERT INTO dbo.xx_NICK_TEMP_TABLE 
  131.             (
  132.                 CLASS
  133.                 ,ASSIGNED_TO_BEMS
  134.                 ,ASSIGNED_TO_NAME
  135.                 ,DUE_DATE
  136.                 ,COMPLETION_DATE
  137.                 ,CHANGE_NUMBER
  138.                 ,CHANGE_TITLE
  139.                 ,[GROUP]
  140.                 ,SUBGROUP
  141.                 ,EFFECTIVITY
  142.                 ,MANAGER_BEMS
  143.                 ,MANAGER_NAME
  144. --                ,STATUS
  145.                 ,TASK_REFERENCE
  146.             )
  147.  
  148.             VALUES
  149.             (
  150.                 @CLASS
  151.                 ,@ASSIGNED_TO_BEMS
  152.                 ,@ASSIGNED_TO_NAME
  153.                 ,@DUE_DATE --DUE DATE 
  154.                 ,@COMPLETION_DATE --COMPLETED DATE
  155.                 ,@CHANGE_NUMBER
  156.                 ,@CHANGE_TITLE
  157.                 ,@GROUP
  158.                 ,@SUBGROUP
  159.                 ,@EFFECTIVITY
  160.                 ,@MANAGER_BEMS
  161.                 ,@MANAGER_NAME
  162.                 --,@STATUS
  163.                 ,@TASK_REFERENCE
  164.             )
  165.     END
  166.  
  167. IF @CLASS_TYPE = 2 -- CPI
  168.     BEGIN
  169.             INSERT INTO dbo.xx_NICK_TEMP_TABLE 
  170.             (
  171.                 CLASS
  172.                 ,ASSIGNED_TO_BEMS
  173.                 ,ASSIGNED_TO_NAME
  174.                 ,DUE_DATE
  175.                 ,COMPLETION_DATE
  176.                 ,SYSTEM
  177.                 ,SUBSYSTEM
  178.                 ,EFFECTIVITY
  179.                 ,MANAGER_BEMS
  180.                 ,MANAGER_NAME
  181.                 --,STATUS
  182.                 ,TASK_REFERENCE
  183.             )
  184.  
  185.             VALUES
  186.             (
  187.                 @CLASS
  188.                 ,@ASSIGNED_TO_BEMS
  189.                 ,@ASSIGNED_TO_NAME
  190.                 ,@DUE_DATE --DUE DATE 
  191.                 ,@COMPLETION_DATE --COMPLETED DATE
  192.                 ,@SYSTEM
  193.                 ,@SUBSYSTEM
  194.                 ,@EFFECTIVITY
  195.                 ,@MANAGER_BEMS
  196.                 ,@MANAGER_NAME
  197.                 --,@STATUS
  198.                 ,@TASK_REFERENCE
  199.             )
  200.     END
  201.  
  202. IF @CLASS_TYPE = 3 -- TSR
  203.     BEGIN
  204.             INSERT INTO dbo.xx_NICK_TEMP_TABLE 
  205.             (
  206.                 CLASS
  207.                 ,ASSIGNED_TO_BEMS
  208.                 ,ASSIGNED_TO_NAME
  209.                 ,DUE_DATE
  210.                 ,COMPLETION_DATE --COMPLETED DATE
  211.                 ,CP_NUM
  212.                 ,CP_REV
  213.                 ,SYSTEM
  214.                 ,SUBSYSTEM
  215.                 ,EFFECTIVITY
  216.                 ,MANAGER_BEMS
  217.                 ,MANAGER_NAME
  218.                 --,STATUS
  219.                 ,TASK_REFERENCE
  220.             )
  221.  
  222.             VALUES
  223.             (
  224.                 @CLASS
  225.                 ,@ASSIGNED_TO_BEMS
  226.                 ,@ASSIGNED_TO_NAME
  227.                 ,@DUE_DATE --DUE DATE 
  228.                 ,@COMPLETION_DATE --COMPLETED DATE
  229.                 ,@CP_NUM
  230.                 ,@CP_REV
  231.                 ,@SYSTEM
  232.                 ,@SUBSYSTEM
  233.                 ,@EFFECTIVITY
  234.                 ,@MANAGER_BEMS
  235.                 ,@MANAGER_NAME
  236.                 --,@STATUS
  237.                 ,@TASK_REFERENCE
  238.             )
  239.     END
  240.  
  241. IF @CLASS_TYPE = 4 -- Deliverable
  242.     BEGIN
  243.             INSERT INTO dbo.xx_NICK_TEMP_TABLE 
  244.             (
  245.                 CLASS
  246.                 ,ASSIGNED_TO_BEMS
  247.                 ,ASSIGNED_TO_NAME
  248.                 ,DUE_DATE
  249.                 ,COMPLETION_DATE --COMPLETED DATE
  250.                 ,CP_NUM
  251.                 ,DELIVERABLE_NUMBER
  252.                 ,DELIVERABLE_DESCRIPTION
  253.                 ,EFFECTIVITY
  254.                 ,MANAGER_BEMS
  255.                 ,MANAGER_NAME
  256.                 --,STATUS
  257.                 ,TASK_REFERENCE
  258.             )
  259.  
  260.             VALUES
  261.             (
  262.                 @CLASS
  263.                 ,@ASSIGNED_TO_BEMS
  264.                 ,@ASSIGNED_TO_NAME
  265.                 ,@DUE_DATE --DUE DATE 
  266.                 ,@COMPLETION_DATE --COMPLETED DATE
  267.                 ,@CP_NUM
  268.                 ,@DELIVERABLE_NUMBER
  269.                 ,@DELIVERABLE_DESCRIPTION
  270.                 ,@EFFECTIVITY
  271.                 ,@MANAGER_BEMS
  272.                 ,@MANAGER_NAME
  273.                 --,@STATUS
  274.                 ,@TASK_REFERENCE
  275.             )
  276.     END
  277.  
  278.  
  279.  
There is a section in that last that lets you change parameters if you wish to see specific records.

Thanks again for helping!
Mar 9 '09 #3
Frinavale
9,735 Expert Mod 8TB
This wasn't what I was expecting.
Didn't you say that you tested your stored procedure and it worked fine?
Or is your stored procedure not working?

I was expecting to see C# code...
Mar 9 '09 #4
Oh, I'm sorry. I misunderstood what you were asking for. Yes, the SQL code executes properly. I thought you were wanting to re-create the datasource.

Here is the code for the sqlDataSource:

Expand|Select|Wrap|Line Numbers
  1.                <asp:SqlDataSource ID="SqlDataSourceRunCustomReport" runat="server" 
  2.                     ConnectionString="<%$ ConnectionStrings:CPF_TestConnectionString %>" 
  3.                     SelectCommand="xx_NickTempManagerReportCustom3_List" 
  4.                     SelectCommandType="StoredProcedure" 
  5.                     onselecting="SqlDataSourceRunCustomReport_Selecting" 
  6.                     ProviderName="<%$ ConnectionStrings:CPF_TestConnectionString.ProviderName %>">
  7.                     <SelectParameters>
  8.                         <asp:ControlParameter ControlID="RadioButtonUseDefault" Name="USE_DEFAULT" 
  9.                             PropertyName="Checked" Type="Int32" />
  10.                         <asp:ControlParameter ControlID="TextBox8" Name="USER_BEMSID" 
  11.                             PropertyName="Text" Type="Int32" />
  12.                         <asp:ControlParameter ControlID="ddl_Fwd" Name="DAYS_FWD" 
  13.                             PropertyName="SelectedValue" Type="Int32" />
  14.                         <asp:ControlParameter ControlID="ddl_Back" Name="DAYS_BACK" 
  15.                             PropertyName="SelectedValue" Type="Int32" />
  16.                         <asp:ControlParameter ControlID="cb_PastDue" Name="PAST_DUE" 
  17.                             PropertyName="Checked" Type="Int32" />
  18.                         <asp:ControlParameter ControlID="cb_CompletedOnTime" Name="COMPLETED_ON_TIME" 
  19.                             PropertyName="Checked" Type="Int32" />
  20.                         <asp:ControlParameter ControlID="cb_Open" Name="OPEN" PropertyName="Checked" 
  21.                             Type="Int32" />
  22.                         <asp:ControlParameter ControlID="cb_MM" Name="MM" PropertyName="Checked" 
  23.                             Type="Int32" />
  24.                         <asp:ControlParameter ControlID="cb_CPI" Name="CPI" PropertyName="Checked" 
  25.                             Type="Int32" />
  26.                         <asp:ControlParameter ControlID="cb_TSR" Name="TSR" PropertyName="Checked" 
  27.                             Type="Int32" />
  28.                         <asp:ControlParameter ControlID="cb_Deliv" Name="DELIV" PropertyName="Checked" 
  29.                             Type="Int32" />
  30.                         <asp:ControlParameter ControlID="tb_ASSIGNEE" Name="ASSIGNED_TO_BEMS" 
  31.                             PropertyName="Text" Type="Int32" />
  32.                         <asp:ControlParameter ControlID="tb_Effectivity" Name="SPECIFIED_EFFECTIVITY" 
  33.                             PropertyName="Text" Type="String" />
  34.                         <asp:ControlParameter ControlID="cb_CompletedLate" Name="COMPLETED_LATE" 
  35.                             PropertyName="Checked" Type="Int32" />
  36.                     </SelectParameters>
  37.                 </asp:SqlDataSource>
Mar 9 '09 #5
Frinavale
9,735 Expert Mod 8TB
One more thing, please post the Only the code for GridView4 ....
Do you have AutoGenerateColumns = "false"??
Mar 9 '09 #6
Here is the code for GridView4:

Expand|Select|Wrap|Line Numbers
  1. <asp:GridView ID="GridView4" runat="server" 
  2.                     DataSourceID="SqlDataSourceRunCustomReport" 
  3.                     ondatabound="GridView4_DataBound">
  4.                 </asp:GridView>
I've tried with both auto-generate columns true and false.
Mar 9 '09 #7
Frinavale
9,735 Expert Mod 8TB
In all of that SQL script I did not see a stored procedure named "xx_NickTempManagerReportCustom3_List"........ ....


What stored procedure are you supposed to be calling?


P.S. please post code in [code] tags, not [quote] tags ;)
Mar 9 '09 #8
I renamed the procedure to "xx_ReportCustom3_List" when I made it a CREATE procedure to make sure it executed properly after I added some comments.

xx_NickTempManagerReportCustom3_List is the correct stored procedure.

PS: sorry about using quote rather than code! I'll revise the post accordingly.

Edit: Frinavale made it code rather than quotes for me already. Thanks!
Mar 9 '09 #9
Frinavale
9,735 Expert Mod 8TB
I was hoping that you were doing something wrong in your asp or c# code, but I don't see anything wrong.

You're going to have to excuse me for my ignorance here because I haven't actually created a stored procedure since first year college and haven't created one quite as complicated as yours. Check out this article and see if it helps you....hopefully someone with more stored procedure experience can help you.

Are you absolutely sure that your stored procedure returns data?
Mar 9 '09 #10
Well, thanks for trying to help. I'm sure the stored procedure runs correctly and returns data. Whats more, the SQLDataSource returns data when I go through the wizard and click "Test". The darn gridview just won't show up. I'm stumped.

Thanks for trying!

If anyone has any ideas, I'm all ears (err-- eyes).
Mar 9 '09 #11
Frinavale
9,735 Expert Mod 8TB
I'm going to have to set up MSSql Server tonight and give this a try later because I'm curious as to why this isn't working as well.
Mar 9 '09 #12
I'd certainly appreciate it, Frinavale!
Mar 9 '09 #13
NeoPa
32,556 Expert Mod 16PB
Nick.

I think what you need to do here before anyone else is likely to jump in and help, is to reduce your real world application into a much smaller testbed application.

It's very hard to work on someone else's code - especially with no access to the system they're working on. 350+ lines of (just the SQL) code is too much to work with, especially as the great majority of it is red herring info.

As I say above, I suggest you strip out all non-essential (to illustrating the bug) code and, after ensuring it still exhibits the same problem, post that with an explanation if necessary. This will reduce the work required to help you to a level which our volunteer helpers are more likely to find acceptable.

This is a standard debugging technique, which I would recommend in most cases anyway. Even in smaller, less complicated scenarios, helpers will appreciate that you've gone to the trouble to reduce how much you need them to do to help you. Don't be surprised if you sometimes find you no longer need to post the question though, as the answer will become clear to you anyway.
Mar 10 '09 #14
Thanks for the RE: NeoPa. I'll give it a shot and see if I can replicate it with a simpler scenario. I'll post my findings.

Thanks!
Mar 10 '09 #15
NeoPa
32,556 Expert Mod 16PB
When you've done that I'll see what I can find that might explain the strange goings on. I must admit that I'm still only using MS-SQL 2K though, so there may be differences. Let's see what we have when we have it.

PS. Obviously don't lose what you have already. Do the debugging in a copy. It's often a single, simple change that's required after the problem is found and understood.
Mar 10 '09 #16
Well, I did what NeoPa suggested and created a dummy stored procedure that was far simpler. I discovered two things.

1) For some reason, setting acceptable default values on the SQLServer side caused Visual Studio get angry and not display the gridview. As I said in my first post, the default values were acceptable and running the stored procedure with those default values caused the procedure to run correctly, so I'm at a bit of a loss.

2) If the stored procedure expects an argument that isn't specified when running a funky procedure like mine (that is, creating a string then executing it) it seems Visual Studio will ignore it completely. I discovered that if I don't specify a certain value (assigned_to_BEMSID) then the gridview just doesn't show up.

I have a bit of debugging to do yet. If I change values on my front end and say click my run button, the gridview doesn't refresh. If however I save those changed values as defaults (which runs a stored procedure to save them to a table on the SQL Server side) then run using default values, it does update.

EDIT: Turns out I'm tired and didn't have a control set for that variable in the SqlDataSource. I'm going to go home now.

In any case, thank you both very much for your help! I really appreciate the time you took trying to help a newb web designer.

Cheers!
Mar 10 '09 #17
NeoPa
32,556 Expert Mod 16PB
Sleeping on it, is another very handy technique to help solve various problems. This is often associated with arcane magic, as the power to fix even the most convoluted problems is quite surprising ;)

Good luck and see what a fresh brain brings you tomorrow.
Mar 11 '09 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: JP011 | last post by:
Hello I have hit a major road block when it comes to building my dynamic datagrid. To make a long story short I need a dynamic datagrid because my connection string could change and I need the...
0
by: irene | last post by:
Hi,I am trying to update a datagrid of a web page but I am having the problems. I am using the sqldataadapter and dataset to bind it to a datagrid. The web page shows a list of people(the datagrid...
4
by: karunakar | last post by:
Hi All I was poplating Datagrid Datagrid has one of the column showing datetime field format iam showing DATE here not Necessary to populate the Time Frame Even my datebase column also...
2
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know...
1
by: Amber | last post by:
The DataGrid allows you to make columns visible or invisible on demand - even edit and other special columns. This article will show you how it is done. Some developers have reported problems...
3
by: John E. | last post by:
I have a datatable that I am binding to a C# ASP.NET 1.1 web page datagrid. I also want to put an "Edit" column on the datagrid. However, whenever I use the following code, it puts the Edit...
6
by: Dee | last post by:
Hi The paging numbers of my DataGrid dont actually page. What can be the cause? Everyting else seems to work. Thanks Dee
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
0
by: cindy | last post by:
I have a dynamic datagrid. I have custom classes for the controls public class CreateEditItemTemplateDDL : ITemplate { DataTable dtBind; string strddlName; string strSelectedID; string...
0
by: mvanroshum | last post by:
Hi, I have the following problem: The DataSource of a DataGrid can be set to an IList. The DataGrid nicely lists the objects in the IList, showing all the public properties of the objects as...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.