Search the web
Sign In
New User? Sign Up
ajaxcfc · ajaxCFC Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
publishing query results with js   Message List  
Reply | Forward Message #54 of 1584 |
I'm just starting using the ajaxCFC framework. Looks very promissing.
Only i have problems publishing query results to a page. So I got
query results from a cfc function which i want to display in a table.
I've used this code, but that doesn't work. can somebody help me with
this?

function query_response(r){
var getLabel = function(result) { return result.processLabel };
var getLevel = function(result) { return result.processLevel };
DWRUtil.removeAllRows("tableBody");
DWRUtil.addRows("tableBody", r, [ getLabel , getLevel ]);
}







Wed Jan 18, 2006 11:50 am

m.gaalman
Offline Offline
Send Email Send Email

Forward
Message #54 of 1584 |
Expand Messages Author Sort by Date

I'm just starting using the ajaxCFC framework. Looks very promissing. Only i have problems publishing query results to a page. So I got query results from a...
m.gaalman
Offline Send Email
Jan 18, 2006
11:53 am

... promissing. ... table. ... with ... Actually it gives something back when i do this, but the fields are filled with "undefined". when is use dump() i get...
m.gaalman
Offline Send Email
Jan 18, 2006
7:39 pm

Thanks for bringing this to my attention. DWRUtil.addRows was not supported, because it only took arrays or objects as arguments, not complex serialized...
Rob Gonda
z0mb1e7
Offline Send Email
Jan 19, 2006
3:23 am

Super! thanks for your fast response and update... I just updated the files in my dev environment and my example works now! But if i do a SELECT * FROM the...
m.gaalman
Offline Send Email
Jan 19, 2006
9:44 am

When adding HTML code in the function i get a response like this on the page (instead ofa actualy parsing the HTML; Sales 2 <a href=2>jaja</a> Purchasing 1 <a...
m.gaalman
Offline Send Email
Jan 20, 2006
10:10 am

Mathijs, you posted a solution in my blog, but I haven't had time to look into it. I'll check it out tonight and possibly add it to the release. Thanks!...
Rob Gonda
z0mb1e7
Offline Send Email
Jan 20, 2006
4:28 pm

Mathijs, good call. When I rewrote the addRows function I did not include labels. I'll do it today. -Rob ... the files in my dev environment and my example...
Rob Gonda
z0mb1e7
Offline Send Email
Jan 20, 2006
4:27 pm

Mathijs, I added that functionality to addRows. However, I made it function a little different. Add rows now takes a fourth arguments for options. Right now...
Rob Gonda
z0mb1e7
Offline Send Email
Jan 21, 2006
5:23 am

Hi, How is it possible to do some js calculation on the query results? IE, my query gives back 4.5 hours, I like to display this as 4 hours 30 minutes on the...
m.gaalman
Offline Send Email
Jan 23, 2006
3:09 pm

If you're using the AddRows function the data cannot be modified. You could apply the logic at the query level and pass the data already formatted....
Rob Gonda
z0mb1e7
Offline Send Email
Jan 24, 2006
2:27 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help