IBM Business Process Manager


Images not displying in coach through the Process Portal


Hi everyone:
Working with BPM 7.5 in the part of the process designer, I have an issue, that doesn't allow me to see the images.
Only a rectangle with a red cross appears.
I have loaded the JPG images as Web Files in my project, calling them like this:
<img id=
"logo" src=
"<#=tw.system.model.findManagedFileByPath(" logo.jpg
", TWManagedFile.Types.Web).url#>" border=0>
If I test the coach inside the Process Designer, everything goes ok.
But if I start the process in the Process Portal, then the image won't show.
Hope someone could help me with this problem
Thanks in advance.
Regards.
Zerav,
Can you confirm that the code you described is HTML you coded inside a "Custom HTML" component inside a Coach inside a Human Service? You didn't say and I wanted to be sure.
Can you also validate the code you pasted is the exact code you entered in Process Designer? If it is, I am thinking there are some code problems with this fragment. Looks like the quotes types may need to be mixed (double and single quotes used in quote nesting).
Neil
Correct Code should be like this:
/>
Logo image you can display on coach with 'Image' control also.
Thanks.
ritedas
2700043R3Q
‏2012-01-17T07:27:10Z
Correct Code should be like this:
/>
Logo image you can display on coach with 'Image' control also.
Thanks.
More...
" />"
Please remove "" from img tag
ritedas
2700043R3Q
‏2012-01-17T07:29:11Z
" />"
Please remove "" from img tag
More...
Please check the attached screenshot image
ritedas
2700043R3Q
‏2012-01-17T07:34:08Z
Please check the attached screenshot image
More...
Attached herein.
It looks as though you have a space in the front of your image name.
You have " logo.jpg"
My guess is that it should be "logo.jpg"?
Be sure that the file name parameter in the findManageFileByPath call matches the file name as it appears in your proces application/toolkits "Files" list.
-Anthony
kolban
1000000446
‏2012-01-16T15:23:03Z
Zerav,
Can you confirm that the code you described is HTML you coded inside a "Custom HTML" component inside a Coach inside a Human Service? You didn't say and I wanted to be sure.
Can you also validate the code you pasted is the exact code you entered in Process Designer? If it is, I am thinking there are some code problems with this fragment. Looks like the quotes types may need to be mixed (double and single quotes used in quote nesting).
Neil
More...
Hi:
Thanks for your answers.
Neil, this is part of a Custom HTML block, and I'm using just double quotes. What can I do to correct this?
Ritesh, unfortunately, that didn't solve the problem =( The white rectangle with the red cross still appears
instead of the image.
Anthony, funny thing is that my code has no spaces, but the code tag in the forum just added that blank space
before the name of the image.
Strange that it works fine in Process Designer, but in the Process Portal logging in with a user of that very flow
I'm having this inconvenient.
And if I checked the generated HTML code and paste the image URL on some other tab, it asks me to login,
I use the admin user, then I'm able to see the image.
Hoping this have a solution.
Regards.
kolban
1000000446
‏2012-01-16T15:23:03Z
Zerav,
Can you confirm that the code you described is HTML you coded inside a "Custom HTML" component inside a Coach inside a Human Service? You didn't say and I wanted to be sure.
Can you also validate the code you pasted is the exact code you entered in Process Designer? If it is, I am thinking there are some code problems with this fragment. Looks like the quotes types may need to be mixed (double and single quotes used in quote nesting).
Neil
More...
Hi:
Thanks for your answers.
Neil, this is part of a Custom HTML block, and I'm using just double quotes. What can I do to correct this?
Ritesh, unfortunately, that didn't solve the problem =( The white rectangle with the red cross still appears
instead of the image.
Anthony, funny thing is that my code has no spaces, but the code tag in the forum just added that blank space
before the name of the image.
Strange that it works fine in Process Designer, but in the Process Portal logging in with a user of that very flow
I'm having this inconvenient.
And if I checked the generated HTML code and paste the image URL on some other tab, it asks me to login,
I use the admin user, then I'm able to see the image.
Hoping this have a solution.
Regards.
AnthonyBpm
270004REN8
‏2012-01-17T17:02:27Z
It looks as though you have a space in the front of your image name.
You have " logo.jpg"
My guess is that it should be "logo.jpg"?
Be sure that the file name parameter in the findManageFileByPath call matches the file name as it appears in your proces application/toolkits "Files" list.
-Anthony
More...
Hi:
Thanks for your answers.
Neil, this is part of a Custom HTML block, and I'm using just double quotes. What can I do to correct this?
Ritesh, unfortunately, that didn't solve the problem =( The white rectangle with the red cross still appears
instead of the image.
Anthony, funny thing is that my code has no spaces, but the code tag in the forum just added that blank space
before the name of the image.
Strange that it works fine in Process Designer, but in the Process Portal logging in with a user of that very flow
I'm having this inconvenient.
And if I checked the generated HTML code and paste the image URL on some other tab, it asks me to login,
I use the admin user, then I'm able to see the image.
Hoping this have a solution.
Regards.
SystemAdmin
110000D4XK
‏2012-01-18T01:21:01Z
Hi:
Thanks for your answers.
Neil, this is part of a Custom HTML block, and I'm using just double quotes. What can I do to correct this?
Ritesh, unfortunately, that didn't solve the problem =( The white rectangle with the red cross still appears
instead of the image.
Anthony, funny thing is that my code has no spaces, but the code tag in the forum just added that blank space
before the name of the image.
Strange that it works fine in Process Designer, but in the Process Portal logging in with a user of that very flow
I'm having this inconvenient.
And if I checked the generated HTML code and paste the image URL on some other tab, it asks me to login,
I use the admin user, then I'm able to see the image.
Hoping this have a solution.
Regards.
More...
Have you tried with Image control?
SystemAdmin
110000D4XK
‏2012-01-18T01:21:01Z
Hi:
Thanks for your answers.
Neil, this is part of a Custom HTML block, and I'm using just double quotes. What can I do to correct this?
Ritesh, unfortunately, that didn't solve the problem =( The white rectangle with the red cross still appears
instead of the image.
Anthony, funny thing is that my code has no spaces, but the code tag in the forum just added that blank space
before the name of the image.
Strange that it works fine in Process Designer, but in the Process Portal logging in with a user of that very flow
I'm having this inconvenient.
And if I checked the generated HTML code and paste the image URL on some other tab, it asks me to login,
I use the admin user, then I'm able to see the image.
Hoping this have a solution.
Regards.
More...
Hi, could you please check how many records are there in 'LSW_MANAGED_ASSET' table with name="logo.jpg".
ritedas
2700043R3Q
‏2012-01-18T10:33:06Z
Hi, could you please check how many records are there in 'LSW_MANAGED_ASSET' table with name="logo.jpg".
More...
Ritesh:
I'm using the image on a CustomHTML block instead of the Image control because I'm trying to emulate tabs as I had
some details with the content (serialize - deserialize) using dojo, and having short time to experiment, I decided
to use a custom html block.
As I mentioned, it is weird why the admin is able to see the image but any other user can't =(
Maybe do I need to grant any kind of permissions to my other users?
Let me check the table as I don't have direct access to it.
Thanks.
SystemAdmin
110000D4XK
‏2012-01-18T14:03:51Z
Ritesh:
I'm using the image on a CustomHTML block instead of the Image control because I'm trying to emulate tabs as I had
some details with the content (serialize - deserialize) using dojo, and having short time to experiment, I decided
to use a custom html block.
As I mentioned, it is weird why the admin is able to see the image but any other user can't =(
Maybe do I need to grant any kind of permissions to my other users?
Let me check the table as I don't have direct access to it.
Thanks.
More...
I still haven't seen a correct posting of the html + code you are using in the custom HTML block. The screen shot a few posts does not include proper quotes around the src attribute value.
It should look like this:
<img src=
"<#=tw.system.model.findManagedFileByPath('filename.ext',TWManagedFile.Types.web).url#>"></img>
I typed that in manually, but the gist is that you need to be aware of the manner in which quotes are used and their context.
'filename.ext' must exist in your list of managed files for your process application/toolkit.
Once you're sure you have the correct code, do you have Firebug or IE developer tools to inspect your rendered coach to see how the tag is being constructed? That would help also, if you're still running into issues.
hth
AnthonyBpm
270004REN8
‏2012-01-18T20:16:33Z
I still haven't seen a correct posting of the html + code you are using in the custom HTML block. The screen shot a few posts does not include proper quotes around the src attribute value.
It should look like this:
<pre class="jive-pre">
<img src=
"<#=tw.system.model.findManagedFileByPath('filename.ext',TWManagedFile.Types.web).url#>"></img>
</pre>
I typed that in manually, but the gist is that you need to be aware of the manner in which quotes are used and their context.
'filename.ext' must exist in your list of managed files for your process application/toolkit.
Once you're sure you have the correct code, do you have Firebug or IE developer tools to inspect your rendered coach to see how the tag is being constructed? That would help also, if you're still running into issues.
hth
More...
Hi Anthony:
The URL is constructed correctly, and admin user is able to see the image with the URL, but a mortal one just can't.
I don't know if I need permission on the rest of my users.
Regards
SystemAdmin
110000D4XK
‏2012-01-19T13:50:09Z
Hi Anthony:
The URL is constructed correctly, and admin user is able to see the image with the URL, but a mortal one just can't.
I don't know if I need permission on the rest of my users.
Regards
More...
Just making sure, I only have what you post to go on :).
How are they accessing this image:
1. Is it a service that a mere mortal user has access to because it is exposed?
2. Is it a task that is assigned to the user?
3. Something else?
-Anthony
AnthonyBpm
270004REN8
‏2012-01-19T14:26:25Z
Just making sure, I only have what you post to go on :).
How are they accessing this image:
1. Is it a service that a mere mortal user has access to because it is exposed?
2. Is it a task that is assigned to the user?
3. Something else?
-Anthony
More...
Hi:
1. Yes, it is a human service, and has the associated role in the upper activity. It is exposed to start this activity
to the role of the user that is accesing this activity.
2. Yes, the task is assigned to the user.
3. Nope, hope I'm not missing something.
Thanks and Regards.
SystemAdmin
110000D4XK
‏2012-01-19T22:48:15Z
Hi:
1. Yes, it is a human service, and has the associated role in the upper activity. It is exposed to start this activity
to the role of the user that is accesing this activity.
2. Yes, the task is assigned to the user.
3. Nope, hope I'm not missing something.
Thanks and Regards.
More...
I log into the portal with a user, and the images are not shown.
Then, I go to the source code, copy-paste the image URL in a new tab, then the Process Portal asks me
to sign in again; enter the same user login information, and then, the images appear correctly.
I can't still figure out what is wrong with the Process Portal, that I need to log in twice in order to
see the images of my project.
Regards
SystemAdmin
110000D4XK
‏2012-01-23T15:51:09Z
I log into the portal with a user, and the images are not shown.
Then, I go to the source code, copy-paste the image URL in a new tab, then the Process Portal asks me
to sign in again; enter the same user login information, and then, the images appear correctly.
I can't still figure out what is wrong with the Process Portal, that I need to log in twice in order to
see the images of my project.
Regards
More...
Hey Zerav:
At this point, it is really tough to troubleshoot what is going on. This is a scenario where it works for everyone else, except for you. Not having any screen shots, logs, exact code with coach designer layout makes it that much more difficult.
I would start with a blank canvas at this point and confirm that you can get that to work.
1. Upload a new web image, test.jpg or similar
2. Create a new human service
3. Add a single 'coach' to the service
4. In addition to the default components, add a custom HTML component.
5. Inside the custom HTML component, simply add the server-side script to include the image from #1
6. Run the service from the process designer play button, confirm it works.
7. From there, expose the service temporarily so you can call it from the portal, confirm it works.
If your 'blank canvas' runs as you'd expect, then there is something suspect about how you are either:
1. including your image in the custom HTML block that started this thread
2. the image itself
3. how you are calling the human service
hth
AnthonyBpm
270004REN8
‏2012-01-24T04:19:51Z
Hey Zerav:
At this point, it is really tough to troubleshoot what is going on. This is a scenario where it works for everyone else, except for you. Not having any screen shots, logs, exact code with coach designer layout makes it that much more difficult.
I would start with a blank canvas at this point and confirm that you can get that to work.
1. Upload a new web image, test.jpg or similar
2. Create a new human service
3. Add a single 'coach' to the service
4. In addition to the default components, add a custom HTML component.
5. Inside the custom HTML component, simply add the server-side script to include the image from #1
6. Run the service from the process designer play button, confirm it works.
7. From there, expose the service temporarily so you can call it from the portal, confirm it works.
If your 'blank canvas' runs as you'd expect, then there is something suspect about how you are either:
1. including your image in the custom HTML block that started this thread
2. the image itself
3. how you are calling the human service
hth
More...
Well, I guess this is what happens when you use an expensive defective tool that is not working properly.
I've been doing several tests, and the code is correct. I'll raise a PMR expecting this to be solved on 2 months.
Regards
SystemAdmin
110000D4XK
‏2012-01-26T13:56:44Z
Well, I guess this is what happens when you use an expensive defective tool that is not working properly.
I've been doing several tests, and the code is correct. I'll raise a PMR expecting this to be solved on 2 months.
Regards
More...
Hi
Did you ever get this resolved? I experienced a similar issue recently - however, on opening the task in Chrome, the image was downloaded (this did mean that you had to start the task twice to actually see the task details) but opening any further coaches opened did display the image. This is obviously not something that would be suitable for our end users, so if an actual fix exists I would be interested in the details of this.
Thanks
laura
Hi Zerav,
I have the same problem.
Did you found a solution?
Regards.
C9NX_Paulo_Bastos
270004C9NX
‏2012-05-22T12:49:15Z
Hi Zerav,
I have the same problem.
Did you found a solution?
Regards.
More...
I had a similar issue with images in my coaches. I noticed that image is loaded using the fully qualified hostname. If you log in to process portal using something other than the fully qualified name, it didnt resolve the image for me (I assume it was due to a session issue). When I log into the process portal using the fqn it worked fine.
SystemAdmin
110000D4XK
‏2012-01-26T13:56:44Z
Well, I guess this is what happens when you use an expensive defective tool that is not working properly.
I've been doing several tests, and the code is correct. I'll raise a PMR expecting this to be solved on 2 months.
Regards
More...
Zerav,
Did you get any resolution for this?
Regards
vedoonam
270005HFPA
‏2012-10-09T07:26:41Z
Zerav,
Did you get any resolution for this?
Regards
More...
Like someone else wrote: Check the resulting image URL in your web browser (right-click image icon etc) and verify it is the same server as listed in you browser navigation bar. We had problems where one was a http and another https or the port was different or whatever. Using a custom URL like myapplication.mycompany.com also messed things up. Now we have configured things correctly (or rather my sysadmin has).
Hi Zerav
Did you get this resolved. I have the same issue in BPM 8.0
Image shows up fine when I run my coach thru process designer but NOT when I run thru portal.
Thanks
Hi,
I tried this out in BPM v8.0.1 and it just works fine for me. Both from the Process Designer and the Portal.
<img id=
"pieLogo"></img> <script> require([
'dojo/ready'],function(ready)
{ ready(function()
{ dojo.byId(
'pieLogo').src = com_ibm_bpm_coach.getManagedAssetUrl(
'pie.PNG', com_ibm_bpm_coach.assetType_WEB,
'VCC',
false);
})
}) </script>
Thanks,
Vivekananth.T
whatswrong
2700059DS5
‏2013-02-28T20:20:07Z
Hi Zerav
Did you get this resolved. I have the same issue in BPM 8.0
Image shows up fine when I run my coach thru process designer but NOT when I run thru portal.
Thanks
More...
I had the exact same issue with BPM 8.0. I was able to "workaround" this by pasting the URL for the image into another browser window and "signing on" to view the image. After that the Process Portal displayed the image properly.
What is very strange is that I signed out of the Portal closed the browser, restarted the browser, re-logged on and the image continued to display correctly in the Process Portal.
whatswrong
2700059DS5
‏2013-02-28T20:20:07Z
Hi Zerav
Did you get this resolved. I have the same issue in BPM 8.0
Image shows up fine when I run my coach thru process designer but NOT when I run thru portal.
Thanks
More...
The post above is likely your clue. If you are logging into say https://myserver:9443/portal and if "my server" will resolve to the right machine for you you are logged in okay. However if the URL of the image is https://myserver.mydomain.com:9443/images/some_image.png then it may not render since the browser doesn't have a "valid" cookie for that server. The right answer is to use the correct portal URL for login. Although I'm guessing here, since I've not seen this problem.
Andrew Paier | Director | BP3 Global, Inc.
BP3 Global's Website | Twitter | Linkedin | Google+ | Blogs

Related Links

Link to Other Page using JS
Coach View Modify Control Type at Runtime
Unabel to see Process Server in Process Center Servers tab .
Task Assignment
Custom Palettes for BPDs and Services?
options for creating process instances using javascript API
Duplicate KPIs after upgrade
import snapshot of process app A to process app B
IBM BPM 8.0.1.2 BPD save error
How to change SMTP default port no.
BPM 8.5.0.1 with SharePoint 2010
How to optimize classes loading time of java integration?
REST API Restriction
How to Deploy snapshots in IBM BPM 8.5?
BPM Adv 8.5.01 to 8.5.5, how?
Starting BPD via REST externally

Categories

DW
Enterprise Content Man...
IBM Security
Tivoli Business Servic...
IBM Tivoli Monitoring ...
dW China
dW Russia
Spark on z/OS
IBM Blockchain
IBM Connections Docs C...
IBM Connections Cloud ...
IBM Verse
IBM SmartCloud Notes
IBM Kenexa LMS
Marketing Operations
Cloud security
IBM SmartCloud Applica...
Jazz for Service Manag...
Jazz for Service Manag...
Web Reports and Custom...
Cast Iron Best Practices
WebSphere Cast Iron Ex...
IBM SPSS Modeler
IBM SPSS Accessibility
IBM ILOG Optimization
Industry
Cognos BI 10
BI Strategies
Reportar contenido ina...
XML
Functional and GUI Tes...
Rational DOORS integra...
Installing/Configuring...
Reserved for Testing
Серверы IBM System x
webarchitecture
linux
workplace
tivoli
Test tivoli forum
Test for satish
Test Forum for Alberto
Greenhouse
Financial markets
Fabrication and Assembly
Automotive
IBM Globalization
IBM Storage Insights (...
Networking
XML
InfoSphere Master Data...
InfoSphere QualityStage
InfoSphere DataStage
IBM InfoSphere Guardium
DB2 for i
Infosphere Warehouse
The CDC (Change Data C...
IBM Db2 Event Store
BigFix App for QRadar ...
Công ty thiết kế website
Digital Advertising
IBM WebSphere Applicat...
AppScan Standard
Network Protection (XGS)
IBM Security Access Ma...
Collecting Windows Eve...
HA - High Availability
QRadar Incident Forens...
Patterns / Techniques ...
Gentran Director
Managed File Transfer
Education
Gentran Integration Su...
Gentran Windows upgrad...
Connect:Direct for Win...
Connect:Direct Mainframe
Connect:Direct for UNIX
Connect:Enterprise UNIX
Connect:Enterprise Mai...
Connect:Direct Mainframe
Connect:Direct for iSe...
Pricing, Configuration...
**Announcements & Ster...
C3 Product Manager/C3 ...
C3 Configurator
C3 Invoicing
Distance Education Sup...
Internationalization (...
Release 7.0
Zee Miscellaneous
Delivery and Service S...
RCP Framework
SQLserver
Oracle
Mathematical Programming
Moderator Collaboration
Business Rules Best Pr...
Map displays
Gauges, Indicators and...
3D Charts
Gantt charts
Radar charts
C++ Visualization Prod...
Mathematical Programmi...
Rule Execution Server
General BRMS Discussion
Форум IBM developerWor...
Information Server - J...
System Automation for ...
Tivoli Decision Suppor...
Tivoli Netcool Configu...
IBM Enterprise Asset M...
Tivoli Common Reportin...
IBM i Access for Linux
General Parallel File ...
Performance Tools Forum
PowerHA (Formerly know...
Active Memory Expansion
IBM BladeCenter Forum
System z Hardware Mana...
Multithreaded Java pro...
IBM SCORE

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile