Topic
  • 6 replies
  • Latest Post - ‏2012-11-19T06:15:50Z by PhaniRaju
SystemAdmin
SystemAdmin
7615 Posts

Pinned topic problem with Clickable image in coach

‏2012-11-05T06:40:14Z |
Hi All,

I am putting a print image on my coach. on click of that a user can invoke the print functionality on the coach.

Although the Print window pops-up when I click on the image, I also get the following error on the screen -

"Could not find any parameter in HttpRequest matching a button on the Coach. Button pressed was "
This is the code I am using - (also attaching the code in the notepad)

---

<html>
<head>
<script>
function printpage()
{
window.print()
}
</script>
</head>
<body>

<input type="image" src="<#=tw.system.model.findManagedFileByPath("printicon.JPG", TWManagedFile.Types.Web).url#>" onclick="window.print()">

</body>
</html>


I am using IBM BPM 7.5.1
Updated on 2012-11-19T06:15:50Z at 2012-11-19T06:15:50Z by PhaniRaju
  • makvell
    makvell
    269 Posts

    Re: problem with Clickable image in coach

    ‏2012-11-05T06:59:17Z  
    Add this code to the custom html in your coach:

    
    <script> function myPrintPage() 
    { 
    //your print code here 
    } </script> <img src=
    "<#=tw.system.model.findManagedFileByPath(" printicon.JPG
    ", TWManagedFile.Types.Web).url#>" alt=
    "print" onclick=
    "myPrintPage();"/>
    
  • SystemAdmin
    SystemAdmin
    7615 Posts

    Re: problem with Clickable image in coach

    ‏2012-11-05T07:12:22Z  
    • makvell
    • ‏2012-11-05T06:59:17Z
    Add this code to the custom html in your coach:

    <pre class="jive-pre"> <script> function myPrintPage() { //your print code here } </script> <img src= "<#=tw.system.model.findManagedFileByPath(" printicon.JPG ", TWManagedFile.Types.Web).url#>" alt= "print" onclick= "myPrintPage();"/> </pre>
    Makvell,

    As always, Spot on!

    Cheers,
    S :)
  • PhaniRaju
    PhaniRaju
    155 Posts

    Re: problem with Clickable image in coach

    ‏2012-11-15T11:53:58Z  
    I have used the same logic to display the image but i am unable to display the image could you please help me in this issue.
  • SystemAdmin
    SystemAdmin
    7615 Posts

    Re: problem with Clickable image in coach

    ‏2012-11-16T19:30:56Z  
    • PhaniRaju
    • ‏2012-11-15T11:53:58Z
    I have used the same logic to display the image but i am unable to display the image could you please help me in this issue.
    Check whether the file you have put in the Files ->Web file

    " alt="print" onclick="myPrintPage();"/>
  • SystemAdmin
    SystemAdmin
    7615 Posts

    Re: problem with Clickable image in coach

    ‏2012-11-17T06:17:57Z  
    • PhaniRaju
    • ‏2012-11-15T11:53:58Z
    I have used the same logic to display the image but i am unable to display the image could you please help me in this issue.
    Hi - Can you please elaborate on your problem please?

    Have you uploaded the image as a web-file you are planning to you as the icon?

    Secondly,

    you will have to find the server location of the web-file from the command I used.

    Post back the twx if non of this works.
  • PhaniRaju
    PhaniRaju
    155 Posts

    Re: problem with Clickable image in coach

    ‏2012-11-19T06:15:50Z  
    Hi I have used the below code and i have uploaded my image as webfile also but the image is not displaying.
    <html>
    <style>
    body {
    background-image: url("<#=tw.system.model.findManagedFileByPath("dojo.PNG", TWManagedFile.Types.Web).url#>");
    }
    </style>
    <body>
    Hi Phani
    </body>
    </html>