Skip to main content

Hi all,

 

I'm new with K2 technologies, so I'd like you to show me the way to best practices.

I've got a SmO Order. And I'd like to list them depending on one or more criterias. 

I mean that the SmartBox Get List method get me all the orders, but I'd like to have many more Get List method retrieving order when sale date is before date D, when price is above XXX, and so one.

Can I do that only with the designer or do I have to do a SmO service or mix those 2 solutions (SmartBox + custom service)....

Or do I only user standard Get List and I sort my orders in my code... 

Thanks for you help,

 

 

As per my understanding, you would need to get the orders list from external data sources (SQL server or Oracle) based on complex quires. This requirement can not be achieved using the K2 OOB components.


 


You should develop


1)      Develop Custom (static) service that exposes data from the external data using the List method with properties.


( You can find the Project template for VS 2005 in the Black-market )


2)      Create a smart object with properties and remove default smart box methods, add your own method that uses customer list method


 


Thanks


Jayaprakash N M


That's the way I came up with after trying K2 for a couple of days.

Thanks for validating this!

 


I cannot access the endpoints in my pc.i use http://dlx:8888/endpoints/endpoints.xml .i already edit the hotserver config file and restart the server .can anyone please help me to acces smart objects


I believe if you configuration looks like this:


 


<smoServices enableEndpoints="true" enableEvents="true" enableCrossDomainPolicy="true" specialCharacterReplacement="_" scheme="http" server="k2.denallix.com" port="8888" serviceRoot="SmartObjectServices">


 


The the url will be:


 


http://k2.denallix.com:8888/SmartobjectServices/endpoints/endpoints.xml


 


If you made any configuration changes, a K2 blackpearl service restart is also necessary.


 


 


Reply