Page 1 of 1

Getting Object from (Dynamic List or Form ) in Admin

Posted: Fri Feb 22, 2013 1:15 am
by configurer
Hi,

i'm trying to achieve the object of the current Selected Row in Admin. I found only by getting with Attributes like below :
( getDisplay().getListDisplay().getGrid().getSelectedRecord().getAttribute("currency") )

I get ID by using above method, but i don't know how to find this object.

How can i get this object. If anyone can help me on this ?

Re: Getting Object from (Dynamic List or Form ) in Admin

Posted: Fri Mar 08, 2013 1:20 pm
by jefffischer
You're in client-side executing code, so you don't have access to the core domain classes. What are you trying to achieve?

Re: Getting Object from (Dynamic List or Form ) in Admin

Posted: Tue Mar 12, 2013 6:15 am
by soeyannaing
i trying to get the Current Selected Object from Row. This is from my customized Presenter class which extended Broadleaf's Admin Presenter(e.g OrderPresenter.java) class.

Re: Getting Object from (Dynamic List or Form ) in Admin

Posted: Tue Mar 12, 2013 12:37 pm
by phillipuniverse
Are you saying that you need access to the underlying Order object? You currently cannot do anything with an OrderImpl instance in the frontend, you will need to delegate that to the backend. Everything in presenter classes is just a representation of an Order.

If you actually need to do something with an Order instance, you might be interested in the invoking a remote service tutorial: http://docs.broadleafcommerce.org/curre ... rvice.html