Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Skylark - Render 2 tables -- [SOLVED]
Skylark - Render 2 tables -- [SOLVED] [message #53725] Fri, 24 April 2020 19:04 Go to next message
deep is currently offline  deep
Messages: 227
Registered: July 2011
Location: Bangalore
Experienced Member
Hi,

Refer Skylark example 09.

SKYLARK(HomePage, "")
{
	Sql sql;
	sql * Select(ID, NAME, LASTNAME)
	      .From(PERSON)
	      .OrderBy(LASTNAME, NAME);
	ValueArray person;
	ValueMap vm;
	while(sql.Fetch(vm))
		person.Add(vm);
	http("PERSON", person)
	    .RenderResult("Skylark09/index");
}


http("PERSON", person).RenderResult("Skylark09/index");
Here ValueArray table person is used.

I want to display second table data. How to pass it to http


Warm Regards

Deepak

[Updated on: Sat, 25 April 2020 13:22]

Report message to a moderator

Re: Skylark - Render 2 tables -- [SOLVED] [message #53733 is a reply to message #53725] Sat, 25 April 2020 13:24 Go to previous message
deep is currently offline  deep
Messages: 227
Registered: July 2011
Location: Bangalore
Experienced Member
I got the syntax in one of the Skylark example

it should be,

http
("PERSON", person)
("INFO",info)
("CARS",cars)
.RenderResult("Skylark09/index");


Warm Regards

Deepak
Previous Topic: Small fixe for OPENBSD package organizer configuration
Next Topic: memcpy() and memmove() optimization
Goto Forum:
  


Current Time: Wed Mar 03 15:16:56 CET 2021

Total time taken to generate the page: 0.01377 seconds