Advertisement

04.07.2008 at 02:06PM PDT, ID: 23302785
[x]
Attachment Details

coldfusion cfoutput with maxrow and startrow instead of cfloop

Asked by panosms in ColdFusion Application Server, Cold Fusion Markup Language

Tags: ,

Hello experts.
I have two different codes for my result page.
the first code is giving for each art_Id the corresponding data from the column Besonderheiten with the function to have not more han 4 values .
the second code is doing what i want too,to replace the values from the column besonderheiten with the values from the extra_de column.
The problem i have is that i have build the page with the first code and with startrow ,maxrows and other functions for the repeat region.
how can i get the function from the second code into the first?
Any help?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
Recordset:
<cfquery name="artikel" datasource="#dsn#">
 SELECT a.Art_ID,a.Besonderheiten,H_All.Hersteller_DE
 FROM dbo.artikel a
 LEFT JOIN H_All ON (a.Hersteller_ID = H_ALL.Herst_ID)
   #PreserveSingleQuotes(WADbSearch1.whereClause)#
 ORDER BY #PreserveSingleQuotes(sql_orderby)#
</cfquery>
Database:
table artikel:
column art_Id   besonderheiten
         1        10,20,30,40,50,60
         2        30,60,80,70
         3        50,60,90,100
table Extras_DE:
Extra_Id      Extra_DE
 10            value1
 20            value2
 30            value3..........
code one:
<cfoutput query="artikel" startRow="#StartRow_artikel#" maxRows="#MaxRows_artikel#">
#WADAdboartikel.Hersteller_DE# <cfset loopCount = 4 />
                      <cfset count_Items = ListLen(WADAdboartikel.Besonderheiten) />
                        <cfif count_items LT loopCount>
                          <cfset loopCount = count_items />
                            </cfif>
                      <cfloop from="1" to="#loopCount#" index="i">
                        <span class="textresult">#ListGetAt(WADAdboartikel.Besonderheiten,i)#</span>
                        <cfif i NEQ loopCount>,</cfif>
                        </cfloop>
                      <cfif count_items GT loopCount>
                        ...
                        </cfif> 
</cfoutput> 
 
code two:
<cfloop query="artikel">
    <cfquery name="getExtras" datasource="#dsn#">
      SELECT Extra_DE
      FROM Extras_All 
     <cfif Len(artikel.Besonderheiten)>
      WHERE extra_ID in (#artikel.Besonderheiten#)
      <cfelse>
      where 1=2
     </cfif>
    </cfquery> <table width="100" border="1">
  <tr>
    <td><cfoutput>#artikel.art_ID#</cfoutput></td>
    <td><cfoutput>#arraytolist(listtoarray(valuelist(getextras.Extra_DE,',')),', ')#               
      </cfoutput></td>
  </tr>
</table></cfloop>
[+][-]04.07.2008 at 08:11PM PDT, ID: 21302290

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 12:44AM PDT, ID: 21303192

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 04:27AM PDT, ID: 21304065

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 07:40AM PDT, ID: 21305688

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 08:38AM PDT, ID: 21306328

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 10:45AM PDT, ID: 21307705

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 07:32PM PDT, ID: 21311441

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 07:33PM PDT, ID: 21311442

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 11:37PM PDT, ID: 21312273

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 05:01PM PDT, ID: 21320322

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 11:54PM PDT, ID: 21322292

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.10.2008 at 07:47AM PDT, ID: 21325392

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.10.2008 at 06:09PM PDT, ID: 21330746

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.10.2008 at 11:11PM PDT, ID: 21331640

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.12.2008 at 05:20AM PDT, ID: 21340811

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]04.12.2008 at 08:14AM PDT, ID: 21341458

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.12.2008 at 09:49AM PDT, ID: 21341766

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.12.2008 at 10:24AM PDT, ID: 21341852

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.12.2008 at 12:45PM PDT, ID: 21342246

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.12.2008 at 02:32PM PDT, ID: 21342557

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.13.2008 at 08:14AM PDT, ID: 21344984

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.13.2008 at 08:32AM PDT, ID: 21345057

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.13.2008 at 08:34AM PDT, ID: 21345064

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.13.2008 at 11:01AM PDT, ID: 21345585

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.13.2008 at 01:18PM PDT, ID: 21346049

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.14.2008 at 04:15AM PDT, ID: 21349039

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 07:21AM PDT, ID: 21358941

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: ColdFusion Application Server, Cold Fusion Markup Language
Tags: Adobe, COLDFUSION
Sign Up Now!
Solution Provided By: zadoc
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628