nope, I was wrong.. is done automatically as soon one select a project.
Cool!

On Fri, Apr 24, 2015 at 1:27 PM, Ramzi Youssefi <ryouss...@gmail.com> wrote:

> 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 <ryouss...@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: ryouss...@gmail.com
>>
>
>
>
> --
> Ramzi Youssefi
> Görlitzer Str. 49
> 01099 Dresden, Germany.
> Cell: +49 173 1965465
> Email: ryouss...@gmail.com
>



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

Reply via email to