Page 1 of 1

jQuery TM1 10.2.2 Execution

Posted: Wed Aug 20, 2014 3:09 pm
by rks1
Hello,

I have a plan - please don't judge me on that :-)

I want to include a jQuery library to slightly alter the DOM of TM1-Web. However, the whole dojo-business is over my edge. I only know some basics of jQuery and how to change a div here and there.
To load jQuery (or jQuery UI or anything) I would usually call it with jquery(document).ready(...). However, with the whole DOM created after the document is ready I am still looking for a way to call my DOM modifications.
(I would only like to add some update-proof things like a logo here or an extra text-line there)

Thank you very much :-)

Regards,
Konstantin

Re: jQuery TM1 10.2.2 Execution

Posted: Wed Aug 20, 2014 11:43 pm
by nick_leeson
I am not sure what your "plan" for JQuery is

a) Would you like to use JSON generated file from TM1 ?
b) Would you like to connect to the TM1 via the Rest API ?

Cheers

Re: jQuery TM1 10.2.2 Execution

Posted: Thu Aug 21, 2014 7:04 am
by rks1
Thanks for the answer nick.

It's much more simple than that. I just want to do some update-proof styling. In that way only to include my script file and jquery into the home.jsp. I want to add links to local documentations, contacts, logos etc. My idea was to include all this info in some divs and to append or replace them with the DOM created by dojo.

(If I would only want to do some styling I could simply add or replace a css file or two.)

I do not want to use this to exchange data.

Thank you for your help!!
Konstantin

Re: jQuery TM1 10.2.2 Execution

Posted: Thu Aug 21, 2014 12:10 pm
by tomok
Seeing as how modifying the DOM in TM1 Web, or even just adding your own stuff to a TM1 Web page is not a feature of the software, you are on your own on this. You'll have to reverse engineer the java code and figure out a way to have TM1 add your stuff when it generates a page. Good luck.

Re: jQuery TM1 10.2.2 Execution

Posted: Fri Aug 22, 2014 9:33 am
by rks1
Hi tomok,

I have already tried that with little success.
I had hoped someone else had the same problem before so I thought I'd ask here :-)

Cheers
Konstantin