Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2078

valueList() should take any expression that evaluates to a query column

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.013
    • Fix Version/s: 4.1.0.000, 4.0.1.002
    • Labels:
      None

      Description

      Problem Description:
      valueList() only takes this exact syntax:
      valueList(queryname.columnName)

      Railo follows ColdFusion's lead here. It should simply take any expression that evaluates to a query column.

      Steps to Reproduce:

      function colours(){
      	var colours = queryNew("");
      	queryAddColumn(colours, "maori", "varchar", ["whero", "ma", "mangu"]);
      	queryAddColumn(colours, "english", "varchar", ["red","white","black"]);
      	return colours;
      }
      maoriColours = valueList(colours().maori); // <=== this is the bit to look at here!!
      writeOutput(colours().maori);
      

      Actual Result:
      error

      Expected Result:
      whero,ma,mangu
      (which is what I get on OpenBD)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: