CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Services json

Print topic Send  topic

Author Message
jokecoat

Posts: 43
Posted: 06/25/2011, 2:17 PM

Could anyone please explane what the Service builder does?

I know how it works:
- it creates a new page in folder <services>
- i can create a json grid

this works

On the original page i have to search strings (url) s_player_id and s_course_id. When i use the service builder i don't get the option for a search, so i manually add the search string in the service page (properties grid --> datasource). But when i add these i get No records, when i remove the parameters it works ok.

I need the json for Amchart
View profile  Send private message
jokecoat

Posts: 43
Posted: 06/28/2011, 3:21 AM

Nobody?
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 06/28/2011, 3:35 AM

Hi,

I donīt use the ajax builder or json services from CCS, I do my own code with jquery and advanced javascript, but may I can explain you the theorycal idea which is the same on both cases.

Json is the acronym of Javascript Object Notation, itīs a type of data used on the communication within the client side (for example a form screen) and the server side (dba),
so a json service means than the data within the client side and the server side will be returned using this kind of data, this kind of data is very popular nowdays due to his low weight, here is an example of how look json.

{"value":[1,2,3,4,5,6,7,8,9,10],"description:"[one,two,three,four,five,six,seven,eight,nine,ten]}

I always use json type of data by doing two dependent listboxes or three dependent listboxes.

I hope it gives you an orientation by using the builders from CCS.

Quote jokecoat:
Nobody?

_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
jokecoat

Posts: 43
Posted: 06/28/2011, 3:55 AM

Thank you for your reply.
But i still don't know why i can't use the search.

What i want is this:
I create a normal page ("MyPage"). It has a grid which depends on CCGETUserId()
In that same page i use the json service ("MyService"), which should return the same data based upon CCGetUserId()

In MyPage i put the amChart which uses the MyService to generate the chart
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 06/29/2011, 4:54 AM

Hi,

I understood you want different rows values on the grid depending on a CCGETUserId(),

I think itīs quite normal operation, may if you check it out the examples from the site

http://examples.codecharge.com/

would find somenthing useful.

I hope it helps.


Quote jokecoat:
Thank you for your reply.
But i still don't know why i can't use the search.

What i want is this:
I create a normal page ("MyPage"). It has a grid which depends on CCGETUserId()
In that same page i use the json service ("MyService"), which should return the same data based upon CCGetUserId()

In MyPage i put the amChart which uses the MyService to generate the chart

_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
jokecoat

Posts: 43
Posted: 06/29/2011, 2:57 PM

I know it should be a normal operation, but it doesn't work.

Maybe you should try for yourself:
Create a JSON service page with the builder. You will notice that in the builder you don't get the option to add a search.
Then when you manually add a where clausule (e.g. User_id = CCGetUserId() or Whatever = s_whatever) the page returns no records. Even when MyService.php?s_whatever=younameit
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 07/01/2011, 3:01 AM

Hi,

I believe what you say, I had experience with the feature builder and noticed than his fiability

isnīt all good as weīd wish,so I stopped using it.

You can write an e-mail to the support may they can give you a better answer.

Quote jokecoat:
I know it should be a normal operation, but it doesn't work.

Maybe you should try for yourself:
Create a JSON service page with the builder. You will notice that in the builder you don't get the option to add a search.
Then when you manually add a where clausule (e.g. User_id = CCGetUserId() or Whatever = s_whatever) the page returns no records. Even when MyService.php?s_whatever=younameit


_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
jjrjr2


Posts: 131
Posted: 07/01/2011, 8:20 AM

I usually only use the Sevice Builder to create the skeleton of the service then manually work the page to do what I want.

I then create my own Ajax calls and handle the data with my own code from the calling page.

By doing this, I seem to be able to avoid all the issues with the CCS Builder..

John
8-)
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
Real Web Development At: http://RealWebDevelopment.us
View profile  Send private message
jokecoat

Posts: 43
Posted: 07/01/2011, 11:30 PM

OK thanks for you replies.
View profile  Send private message
solesz

Posts: 137
Posted: 07/03/2011, 3:10 AM

Hi,

When you receive JSON data from your service file, I guess you put it into a grid to display.
Can you advise me to a free jQuery grid solution?

Thanks,

solesz
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright Đ 2003-2004 by UltraApps.com  and YesSoftware, Inc.