cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramzi Youssefi <ryouss...@gmail.com>
Subject Re: Current project context
Date Fri, 24 Apr 2015 11:27:28 GMT
I will reply my own question in case someone needs the same.
In an Ajax request, when you give the projectid parameter a -1 then you
will get the id of the current project where you are currently in.

Cheers!

On Fri, Apr 24, 2015 at 11:15 AM, Ramzi Youssefi <ryoussefi@gmail.com>
wrote:

> Hello everyone,
>
> I'm currently developing a UI Javascript Plugin for Cloudstack and I was
> wondering if there is a global variable that tells me in which project I'm
> currently in.
>
> For example, if I list something in the ViewList, than the context will be
> something like this:
>
> var description =  args.context.listDevices_list_view[0].description;
>
> Now I need something similar but regarding the project where I'm currently
> in (since project can be selected in the upper left corner).
>
> Thanks a lot!
> --
> Ramzi Youssefi
> Görlitzer Str. 49
> 01099 Dresden, Germany.
> Cell: +49 173 1965465
> Email: ryoussefi@gmail.com
>



-- 
Ramzi Youssefi
Görlitzer Str. 49
01099 Dresden, Germany.
Cell: +49 173 1965465
Email: ryoussefi@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message