[rt-users] RT Visual Interface Enhancements Enquiry
Nafiesa Allie
nafiesaa at kromco.co.za
Wed Jul 11 05:17:56 EDT 2012
Here is the error I got with my callback:
Undefined subroutine &HTML::Mason::Commands::jQuery called at
/svr/rt4/local/html/Callbacks/SLAC/Elements/Header/Head line 2.
On 11 July 2012 11:02, Nafiesa Allie <nafiesaa at kromco.co.za> wrote:
> OK, I figured out how to get RT to incorporate the code that I put into
> the Callback for the Header, however, there is something wrong with my
> code. Please can you give me guidance? Remember, that in the end I want
> the dashboard panels to lie side by side, and not the panels on the RT at a
> glance screen. Thanks.
>
> On 11 July 2012 09:35, Nafiesa Allie <nafiesaa at kromco.co.za> wrote:
>
>> Thanks, Ruslan.
>>
>> OK, I created my callback file but now I am not sure what the code should
>> look like.
>>
>> Using your dirty variant that applies to RT at a glance
>> jQuery('table.myrt td.boxcontainer > div').detach().appendTo('table.myrt
>> > tbody > tr').wrap('<td class="boxcontainer" />');
>> and changing it to
>> jQuery('table#dashboard-26.dashboard td.boxcontainer >
>> div').detach().appendTo('table#dashboard-26.dashboard > tbody >
>> tr').wrap('<td class="boxcontainer" />');
>> it now applies to the dashboard.
>>
>> However, adding the code to my callback, does not make any difference,
>> even after rebooting the RT server, regardless whether I am using your
>> variant or my own. I am not sure whether the problem lies in my code - see
>> printscreen attached, or elsewhere. I would deeply appreciate some further
>> help in this and am desperate to resolve this sooner rather than later. If
>> I am unable to master this, then some other ticketing system will be
>> enforced.
>>
>> (It feels like I am taking tiny baby-steps in resolving this problem; I
>> wish there was a clear example that one could follow.)
>>
>> Regards
>> Nafiesa
>>
>> On 10 July 2012 20:57, Ruslan Zakirov <ruz at bestpractical.com> wrote:
>>
>>> Hi,
>>>
>>> RT's file share/html/Elements/Header contains the following line:
>>>
>>> $m->callback( %ARGS, CallbackName => 'Head' );
>>>
>>> It's the perfect place to insert custom CSS/JS hacks.
>>>
>>> On Tue, Jul 10, 2012 at 2:51 PM, Nafiesa Allie <nafiesaa at kromco.co.za>
>>> wrote:
>>> > I think I must clarify what I am saying below:
>>> > from what I understand RT4 callbacks are defined in
>>> /rt4/share/Elements. I
>>> > found a number of callbacks there, but not the one I am looking for,
>>> viz.
>>> > Header, so I need help to either find it or create it from scratch.
>>> >
>>> > Regards
>>> > Nafiesa
>>> >
>>> > On 10 July 2012 13:36, Nafiesa Allie <nafiesaa at kromco.co.za> wrote:
>>> >>
>>> >> Hi Ruslan
>>> >>
>>> >> I managed to figure out how to successfully create a dirty variant,
>>> and it
>>> >> seems to do what I want. However, I am still struggling to create the
>>> >> callback.
>>> >> " There is a callback in Header file to put any custom javascript on
>>> RT
>>> >> pages. " - I do not find such a callback.
>>> >> I now understand the concept of a callback, but not finding the
>>> relevant
>>> >> callback does not help much. Please could you give me some direction?
>>> >>
>>> >> Regards
>>> >> Nafiesa
>>> >>
>>> >>
>>> >> On 6 July 2012 15:21, Nafiesa Allie <nafiesaa at kromco.co.za> wrote:
>>> >>>
>>> >>> Hi Ruslan
>>> >>>
>>> >>> Thanks so much for your swift response plus the given detail; I am
>>> so
>>> >>> glad that it is possible! However, I have no idea how to get to the
>>> >>> interface that will enable me to add the new code. This is the
>>> first time I
>>> >>> am wanting to do a customization, and I do not know where to start.
>>> How do
>>> >>> I get to the interface in your screenshot?
>>> >>>
>>> >>> Have a great weekend!
>>> >>> Nafiesa
>>> >>>
>>> >>>
>>> >>> On 5 July 2012 14:53, Ruslan Zakirov <ruz at bestpractical.com> wrote:
>>> >>>>
>>> >>>> On Tue, Jul 3, 2012 at 9:29 AM, Nafiesa Allie <
>>> nafiesaa at kromco.co.za>
>>> >>>> wrote:
>>> >>>> > I have already created dashboards with custom searches, but my
>>> problem
>>> >>>> > lies
>>> >>>> > with the fact that I cannot get the panels to lie alongside each
>>> other
>>> >>>> > as
>>> >>>> > per my example. RT only allows two lists/charts panels next to
>>> each
>>> >>>> > other.
>>> >>>> > How do I overcome this?
>>> >>>>
>>> >>>> With javascript:
>>> >>>>
>>> >>>> jQuery('table.myrt td.boxcontainer >
>>> >>>> div').detach().appendTo('table.myrt > tbody > tr').wrap('<td
>>> >>>> class="boxcontainer" />');
>>> >>>>
>>> >>>> Above is dirty variant, but at least it works in Chrome and
>>> >>>> demonstrates how to start. There is a callback in Header file to put
>>> >>>> any custom javascript on RT pages.
>>> >>>>
>>> >>>> >
>>> >>>> >
>>> >>>> > On 2 July 2012 21:47, Ruslan Zakirov <ruz at bestpractical.com>
>>> wrote:
>>> >>>> >>
>>> >>>> >> On Mon, Jul 2, 2012 at 12:42 PM, Nafiesa Allie
>>> >>>> >> <nafiesaa at kromco.co.za>
>>> >>>> >> wrote:
>>> >>>> >> > Great! So where do I start? I have never fiddled with CSS or
>>> JS
>>> >>>> >> > before,
>>> >>>> >> > so
>>> >>>> >> > it will be helpful if you could direct me to a relevant
>>> example.
>>> >>>> >>
>>> >>>> >> Start from Dashboards, custom searches and see how close you can
>>> get
>>> >>>> >> to what you need.
>>> >>>> >>
>>> >>>> >>
>>> >>>> >>
>>> >>>> >> >
>>> >>>> >> > On 29 June 2012 20:09, Thomas Sibley <trs at bestpractical.com>
>>> wrote:
>>> >>>> >> >>
>>> >>>> >> >> On 06/29/2012 10:57 AM, Benjamin Boksa wrote:
>>> >>>> >> >> > I am sure this can be done using RT4 by writing a custom
>>> page -
>>> >>>> >> >> > but I
>>> >>>> >> >> > honestly do not know how…
>>> >>>> >> >>
>>> >>>> >> >> Learning the basics of how to create your own page in RT will
>>> >>>> >> >> probably
>>> >>>> >> >> be faster and more efficient than trying to use the REST
>>> interface
>>> >>>> >> >> to
>>> >>>> >> >> get all the data and interaction you want.
>>> >>>> >> >>
>>> >>>> >> >> You can probably do most of what you want with a standard
>>> >>>> >> >> dashboard and
>>> >>>> >> >> a bunch of custom CSS and JS that targets it to rearrange as
>>> >>>> >> >> necessary.
>>> >>>> >> >
>>> >>>> >> >
>>> >>>> >> >
>>> >>>> >> >
>>> >>>> >> > --
>>> >>>> >> >
>>> >>>> >> > Groete/Regards
>>> >>>> >> >
>>> >>>> >> > Nafiesa Allie
>>> >>>> >> >
>>> >>>> >> > Kromco (Pty) Ltd
>>> >>>> >> >
>>> >>>> >> > | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e
>>> >>>> >> > nafiesaa at kromco.co.za |
>>> >>>> >> >
>>> >>>> >> > *Important Notice: This e-mail may contain trade secrets or
>>> >>>> >> > privileged,
>>> >>>> >> > undisclosed, or otherwise confidential information.
>>> >>>> >> >
>>> >>>> >> > If you have received this e-mail in error, you are hereby
>>> notified
>>> >>>> >> > that
>>> >>>> >> > any
>>> >>>> >> > review, copying, or distribution of it is strictly prohibited.
>>> >>>> >> >
>>> >>>> >> > Please inform us immediately and destroy the original
>>> transmittal.
>>> >>>> >> > Thank
>>> >>>> >> > you
>>> >>>> >> > for your cooperation.
>>> >>>> >> >
>>> >>>> >> >
>>> >>>> >>
>>> >>>> >>
>>> >>>> >>
>>> >>>> >> --
>>> >>>> >> Best regards, Ruslan.
>>> >>>> >
>>> >>>> >
>>> >>>> >
>>> >>>> >
>>> >>>> > --
>>> >>>> >
>>> >>>> > Groete/Regards
>>> >>>> >
>>> >>>> > Nafiesa Allie
>>> >>>> >
>>> >>>> > Kromco (Pty) Ltd
>>> >>>> >
>>> >>>> > | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e
>>> nafiesaa at kromco.co.za
>>> >>>> > |
>>> >>>> >
>>> >>>> > *Important Notice: This e-mail may contain trade secrets or
>>> >>>> > privileged,
>>> >>>> > undisclosed, or otherwise confidential information.
>>> >>>> >
>>> >>>> > If you have received this e-mail in error, you are hereby notified
>>> >>>> > that any
>>> >>>> > review, copying, or distribution of it is strictly prohibited.
>>> >>>> >
>>> >>>> > Please inform us immediately and destroy the original transmittal.
>>> >>>> > Thank you
>>> >>>> > for your cooperation.
>>> >>>> >
>>> >>>> >
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> --
>>> >>>> Best regards, Ruslan.
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>>
>>> >>> Groete/Regards
>>> >>>
>>> >>> Nafiesa Allie
>>> >>>
>>> >>> Kromco (Pty) Ltd
>>> >>>
>>> >>> | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e
>>> nafiesaa at kromco.co.za |
>>> >>>
>>> >>> *Important Notice: This e-mail may contain trade secrets or
>>> privileged,
>>> >>> undisclosed, or otherwise confidential information.
>>> >>>
>>> >>> If you have received this e-mail in error, you are hereby notified
>>> that
>>> >>> any review, copying, or distribution of it is strictly prohibited.
>>> >>>
>>> >>> Please inform us immediately and destroy the original transmittal.
>>> Thank
>>> >>> you for your cooperation.
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >>
>>> >> Groete/Regards
>>> >>
>>> >> Nafiesa Allie
>>> >>
>>> >> Kromco (Pty) Ltd
>>> >>
>>> >> | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e nafiesaa at kromco.co.za|
>>> >>
>>> >> *Important Notice: This e-mail may contain trade secrets or
>>> privileged,
>>> >> undisclosed, or otherwise confidential information.
>>> >>
>>> >> If you have received this e-mail in error, you are hereby notified
>>> that
>>> >> any review, copying, or distribution of it is strictly prohibited.
>>> >>
>>> >> Please inform us immediately and destroy the original transmittal.
>>> Thank
>>> >> you for your cooperation.
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> >
>>> > Groete/Regards
>>> >
>>> > Nafiesa Allie
>>> >
>>> > Kromco (Pty) Ltd
>>> >
>>> > | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e nafiesaa at kromco.co.za|
>>> >
>>> > *Important Notice: This e-mail may contain trade secrets or privileged,
>>> > undisclosed, or otherwise confidential information.
>>> >
>>> > If you have received this e-mail in error, you are hereby notified
>>> that any
>>> > review, copying, or distribution of it is strictly prohibited.
>>> >
>>> > Please inform us immediately and destroy the original transmittal.
>>> Thank you
>>> > for your cooperation.
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Best regards, Ruslan.
>>>
>>
>>
>>
>> --
>>
>> Groete/Regards
>>
>> Nafiesa Allie
>>
>> Kromco (Pty) Ltd
>>
>> | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e nafiesaa at kromco.co.za |
>>
>> *Important Notice: This e-mail may contain trade secrets or privileged,
>> undisclosed, or otherwise confidential information.
>>
>> If you have received this e-mail in error, you are hereby notified that
>> any review, copying, or distribution of it is strictly prohibited.
>>
>> Please inform us immediately and destroy the original transmittal. Thank
>> you for your cooperation.
>>
>>
>
>
> --
>
> Groete/Regards
>
> Nafiesa Allie
>
> Kromco (Pty) Ltd
>
> | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e nafiesaa at kromco.co.za |
>
> *Important Notice: This e-mail may contain trade secrets or privileged,
> undisclosed, or otherwise confidential information.
>
> If you have received this e-mail in error, you are hereby notified that
> any review, copying, or distribution of it is strictly prohibited.
>
> Please inform us immediately and destroy the original transmittal. Thank
> you for your cooperation.
>
>
--
Groete/Regards
Nafiesa Allie
Kromco (Pty) Ltd
| t +27[0]21 850-6847 | f +27[0]21 850-6871 | e nafiesaa at kromco.co.za |
*Important Notice: This e-mail may contain trade secrets or privileged,
undisclosed, or otherwise confidential information.
If you have received this e-mail in error, you are hereby notified that any
review, copying, or distribution of it is strictly prohibited.
Please inform us immediately and destroy the original transmittal. Thank
you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120711/3dd778b9/attachment.htm>
More information about the rt-users
mailing list