davehill1974
Technical User
Hi,
I have written an idc file to pull data from our database to the .htx page everything is returned to the .htx other than the count?? Has anyone had this issue? If so please help. Here is the code:
Datasource: serv
Template: mprc08.htx
SQLStatement:
+ SELECT st_description
+ FROM statcode
+ WHERE st_status_code = '%search_stat%';
SQLStatement:
+ SELECT cm_inv_name, TODAY dt_today
+ FROM custmaster, cust_group
+ WHERE cm_cust_id = gr_cust_id
+ AND cm_cust_id = '%cust_id%'
+ AND gr_user = '%cust_user%';
SQLStatement:
+ SELECT count(*) AS cnt
+ FROM jobsheet, cust_group
+ WHERE js_customer_id = '%cust_id%'
+ AND js_customer_id = gr_cust_id
+ AND gr_user = '%cust_user%'
+ AND js_curr_stat_code = '%search_stat%';
i am trying to get it to the .htx using <%cnt%>
Thanks in advance.
I have written an idc file to pull data from our database to the .htx page everything is returned to the .htx other than the count?? Has anyone had this issue? If so please help. Here is the code:
Datasource: serv
Template: mprc08.htx
SQLStatement:
+ SELECT st_description
+ FROM statcode
+ WHERE st_status_code = '%search_stat%';
SQLStatement:
+ SELECT cm_inv_name, TODAY dt_today
+ FROM custmaster, cust_group
+ WHERE cm_cust_id = gr_cust_id
+ AND cm_cust_id = '%cust_id%'
+ AND gr_user = '%cust_user%';
SQLStatement:
+ SELECT count(*) AS cnt
+ FROM jobsheet, cust_group
+ WHERE js_customer_id = '%cust_id%'
+ AND js_customer_id = gr_cust_id
+ AND gr_user = '%cust_user%'
+ AND js_curr_stat_code = '%search_stat%';
i am trying to get it to the .htx using <%cnt%>
Thanks in advance.