KM Document iView and horizontal scrollbar
I have a simple KM Doc Iview that displays a image. But I get this annoying hosrizontal scrollbar, it should rather display the whole image without the scrollbar. Have anybody experienced this? Any workarounds please? Thanks!
Is your iView embbeded into another page or it's a new blank page?
If your image is too big and exceeds the width of the window the scrollbar is created
Similar Messages
-
KM Document Iview and Horizontal scroll bar
I have a simple KM Doc Iview that displays a image. But I get this annoying hosrizontal scrollbar, it should rather display the whole image without the scrollbar. Have anybody experienced this? Any workarounds please? Thanks!
Hi,
Set the height type of the iView to Automatic OR if that doesn't work because of domain issues then set it to fixed and in addition set the iview height to the height of the image + 10~20 px more..
Good Luck
Benjamin Houttuin -
Firefox and horizontal scrollbars
Hi,
When using Firefox 3 to view wide APEX pages, I don't get the horizontal scrollbars.
Is this a known issue?
YoniHi,
I use 3.0.7 as well and don't have any issues with it. There was a bug, ages ago, that would stop the scrollbar from showing - but this was fixed. I can't see any about:config settings that would stop this showing (but you might like to check this). Alternatively, it can be hidden using a style on the body tag - as you have FireFox, if you have FireBug, you could check this.
Andy
(Craig - whilst writing, can you have a look at: [http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/concept.htm#sthref186] - PrinterFriendly is in position 9 and Debug is in position 5) -
KM Document iView and User Permissions
Hi all,
I have created a KM Document iView to display a document (stored within KM) to my users. However, it is happening something I believe is not correct.
When I set only READ permission for this folder, the KM Document iView is not able to display the document for my users. On the other hand, when I change the permission to, at least, READ/WRITE, the iView works fine.
Is it really the behaviour of that iView? Or am I doing something wrong?
Thanks in advance
Fernando UrzedoFernando,
Read permissions should allow users to see the content. Please check this link on Assigning Permissions to Folders.
http://help.sap.com/saphelp_nw04/helpdata/en/a8/d349d2e488964da38a661fa722e7a9/content.htm
Check if the eu role has read permissions.
Also check this link for information on permissions iview.
-Dileep -
JTextPane and Horizontal Scrollbars
Hi there,
I had written an app that included an Event Log, and all was good in my
world.
Then one of the app users commented they would like errors to stand out within the log!
I said "No Problem" but it turns out to be a major bloody headache!!!!!
I was using a JTextArea but after reading some posts on this forum I decided to use a JTextPane. I found some code for changing the font colour, and everything appeared to be working fine ;-)
...until that is I realised my HORIZONTAL_SCROLLBAR_AS_NEEDED was never needed as the text had started to wrap ;-(
I have tried searching this site and none of the suggestions work for me, the vertical scroll works fine - and I am really stuck. Therefore:
Is there a way to get the Horizontal scroll bar working in a JTextPane?
Is there an alternative to JTextPane that will allow me to control font colour by line?
Do you even know what I am harping on about?
Or should I admit defeat and add a second JTextArea and a button to switch between my two event types??
Any suggestions would be greatly received!
P.S. Below is the edited code that I think is responsible for my problem :0)
public class EventLogGUI extends JPanel
private JPanel jpLog = new JPanel();
private StyledDocument sdLog = new DefaultStyledDocument();
private JTextPane jtpLog = new JTextPane( sdLog );
private MutableAttributeSet mas = new SimpleAttributeSet();
private JScrollPane jspLog;
public EventLogGUI()
this.setBounds( 5, 7, 407, 256 );
this.setBorder( BorderFactory.createLoweredBevelBorder() );
this.setLayout( null );
this.add( jpLog );
jspLog = new JScrollPane( jtpLog,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
jspLog.setBounds( 12, 25, 372, 180 );
jpLog.setLayout( null );
jpLog.setBounds( 5, 5, 397, 218 );
jpLog.add( jspLog );
jtpLog.setEditable( false );
jtpLog.setMargin( new Insets ( 2, 2, 2, 2 ) );
public void initialiseGUI()
Vector events = uploadEventLog();
String event;
jtpLog.setText( "" );
for ( int i = 0; i < events.size(); i++ )
event = "" + events.elementAt( i );
if ( event.length() >= 8 && event.substring( 0, 8 ).equals( "WARNING:" ) )
StyleConstants.setForeground( mas, Color.red );
else
StyleConstants.setForeground( mas, Color.black );
try
sdLog.insertString( sdLog.getLength(), event + "\n", mas );
catch( Exception e )
}Hi!
just wondered if you've searched the forum already. If not: always do that before posting.
I searched and found this helpful:
http://forum&threadID=256602
the solution found in that thread is to extend the JTextPane and add a setLineWrap-method:
class JTextWrapPane extends JTextPane {
boolean wrapState = true;
JTextArea j = new JTextArea();
* Constructor
JTextWrapPane() {
super();
public JTextWrapPane(StyledDocument p_oSdLog) {
super(p_oSdLog);
public boolean getScrollableTracksViewportWidth() {
return wrapState;
public void setLineWrap(boolean wrap) {
wrapState = wrap;
public boolean getLineWrap(boolean wrap) {
return wrapState;
} now you can use JTextWrapPane instead of JTextPane:
// instead of private JTextPane jtpLog = new JTextPane( sdLog );
private JTextWrapPane jtpLog = new JTextWrapPane( sdLog );and set JTextWrapPane.setLineWrap(false):
jtpLog.setLineWrap(false);It may not be the non plus ultra, but it seamed to work for me. ;) -
Tableview and horizontal scrollbar
Hi !
I'm having problem on showing horizontal scroll bar in a dynamic tableview.
My situation is:
TabPane
---|___Tab
-------------|_TableView
If i add more columns than i can view i would like to see an horizontal scroll bar.
Right now, extra columns do not care about my will ! :)
Do you have any idea?
thank you!
Edited by: fabsav on 31-mag-2013 16.27This should happen automatically. For example, if you run the example code in {thread:id=2543320} and add enough columns, the scroll bar appears. It's possible you need to put the table in some other kind of container.
-
Creating a JTable with resizeable columns and Horizontal Scrollbar
Hi,
I would like to create a JTable with about 24 columns in it. The problem is, my ViewPort in my JScrollPane is about 3-400pixels wide, and the JTable tries to cram itself into the ViewPort. This makes the columns too tiny to read. I'd like it to do something a little more sensible, like use the PreferredSize of the columns. Can anyone point me in the right direction to keep JTable from creating scrunched up little columns, so that it creates columns that are at least partially readable? Thanks.
BTW, I suppose I could set NO_AUTO_RESIZE but I would rather not do that. I like being able to resize columns. Basically what I want to do is control the JTable's width and not worry about the ViewPort's width.This made it impossible to resize columns. Works fine for me:
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
public class TableHorizontal extends JFrame
public TableHorizontal()
JTable table = new JTable(5, 10);
table.setAutoResizeMode( JTable.AUTO_RESIZE_OFF );
JScrollPane scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane );
table.getColumnModel().getColumn(0).setPreferredWidth(10);
table.getColumnModel().getColumn(1).setPreferredWidth(20);
table.getColumnModel().getColumn(2).setPreferredWidth(30);
table.getColumnModel().getColumn(3).setPreferredWidth(40);
table.getColumnModel().getColumn(4).setPreferredWidth(50);
public static void main(String[] args)
TableHorizontal frame = new TableHorizontal();
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.pack();
frame.setVisible(true);
} -
Hi,
I have created a new portal desktop and new framework page.i have created some KM document Iviews and assigned those iviews to a role.I have created anonymous access to the user.But i couldnt display the content of the iviews as it is showing the following error:
"The requested operation is forbidden for this resource. You do not have the permissions required to access this resource."
But when i add the super_admin_role to my portal desktop.All the iviews are displayed.
Is it possible without super admin role?
Plz help me out.
Thanking you
santosh sarafHello Santosh,
Every user role might not be having access permissions. Did u configure the permissions based on doc
https://websmp101.sap-ag.de/~sapidb/011000358700000439092005E.PDF
and KM config based on SAP note 599425
http://help.sap.com/saphelp_nw04/helpdata/en/a8/d349d2e488964da38a661fa722e7a9/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/b2/4bc041f123c817e10000000a155106/content.htm
https://websmp101.sap-ag.de/~sapidb/011000358700003463852005D.PDF
Hope this helps,
Thanks,
Praveen
PS.Dont forget to reward points -
KM Document Iview not Displaying
Hi Experts,
I have created KM Document iview and when i preview, its working but when i assign it to Role and check it with Users or Admin am getting error page cannot be displayed.
Please let me know what i have missed, I have checked Entry Point for both IView and Role there are YES, but its not working.
Regards,
SivaHi hari,
It is problem on client side cache. Goto IE Browser --> Tools --> Internet option and Clear the history, Delete temp files and Delete cookies. Then you have to check the iView.
Change property of Document iView as
Allow Client Side Caching -> No
Hope it helps
Thanks,
cbr -
Excel on KM Document iView.
Hi,
I created a "KM Document iView" and specified the path to a MS-Excel file. I preview the iView and the spreadsheet displays fine.
I add this iView to a Role and assign this role to a user. When user selects the tab and menu item to display the Spreadsheet, it displays the following error.
The alert message reads as "C:\Documents and Settings\knatarajan\Local Settings\Temporary Internet Files\Content.IE5\WHYVOH2B\pcd!3aportal_content!2fcom.pilgrimspride.bi.portal.PP_Portal_Group!2fcom.pilgrimspride.bi.portal.km.fld_KM_Reports!2fcom.pilgrimspride.bi.portal.km[1].xls could not be found. Please check the spelling....." etc.
Pl. let me know if any one faced this/or a similar issue.
I could also send screen shots if need be.
To start with I can't understand why it looks for this location for the file instead of retrieving it from the server.
Best Regards,
KumarThanks for your reply Jarek.
Is there a way to force the excel to display in a read only mode?
I see that preview also works with KM Document iView when the path is set to <b>/guid/8084ab95-97cc-2810-bdb0-d1497b82b2be</b> instead of <b>/PPC/External/ToRicos.xls</b>. But again the access from within the role in runtime errors out.
com.sap.sql.log.OpenSQLException: Cannot assign a java.lang.String object of length 82 to host variable 1 which has JDBC type VARCHAR(64).
Is there any other resolution besides using a url iView?
Best Regards,
Kumar -
KM Document iView for displaying PDF file.
Hi all,
I have uploaded one pdf file (Estimate.pdf) to KM in folder abc. I want to create an iView to display that pdf file in portal. For which I have created a KM Document iView and in "Path to Document" property I have assigned the document path like: /documents/abc/Estimate.pdf
Now when try to see preview, instead of opening my pdf file, it shows only one image on top with text mySAP.com.
I have also tried to create a link to my document and given the link path but I got the same result.
Can anyone tell me why is this happening? Is there any other property to be set?
Thanks in advance!!!!!Vikranth,
Check for the path again carefully. I guess you are following the right approach, but instead of previewing it, try assigning it to a user and check what happens.
Refer to this [article|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0235c19-9493-2b10-64a5-8487b23a7a41]for creation of iviews.
Good Luck!
Sandeep Tudumu -
KM Document iview is fine in preview but not with role
HI,
I am facing problem with KM Document iview .
I have uploaded .gif file in root/documents/myfolder/text.jif
I have cereated Km document iview and set the parameter path to documnet : /documents/myfolder/text.jif
when i preview the iview it si fine . When i attach the iview to role it is throwing "page can not be displayed" error .
I tried with URL iview, KM DOc iview, KM Navigation iview . Previw is fine
BUt the same iview from role is not displaying .
What could be the reason .
Help me with ur inputs
SurekhaHi Vinod,
From page properties,
This url is there
res://C:\WINDOWS\system32\shdoclc.dll/http_400.htm#http://golepdev.greatoffshore.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fGreatOffshore!2fTestRole!2f1111?InitialNodeFirstLevel=true&windowId=WID1277781418667
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
If you typed the page address in the Address bar, make sure that it is spelled correctly.
Open the golepdev.greatoffshore.com:50000 home page, and then look for links to the information you want.
Click the Back button to try another link.
Click Search to look for information on the Internet.
HTTP 400 - Bad Request
Internet Explorer
Surekha . -
KM Document Iview Error in 7.3
Hi All,
We have an External Link in our KM.We are usign KM Document iView pointing to this External link means in the Path to the document property we have given path of the external link.
-We use the same in 7.0 portal it works
-In 7.3 instead of external link if i give any doc,xls or image then it works
- Its not working for the External link alone in the 7.3
Anybody faced this issue?Anything changed with the KM document iview in 7.3?Please throw some light on this issue.
NagaHi Lorcan,
Thanks for your time,
so can you give us more details as to how exactly you have set this up?
Actually i have created a external lin in the KM using the option new->external link.i am usign this external link in the KM Document iVIew(Path to the document =path of the external link).
What is the name of the External Link? What is the path you specified in the KM Document iview?
I am usign the NWA of another federated system as a external link.I have specified the same path in the KM document iView.The same path we used in 7.0 there it was fine so i am very sure about the path.And also the permission of the particular KM folder and external link has been provided with everyone read.
What happens when you try it, are you getting an error?
When i try to preview the iView or when i use the iview in any role/page/workcenter its throwing error.
403
The requested operation is forbidden for this resource.
stack trace
com.sapportals.wcm.protocol.webdav.server.WDServletException
at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.handleRedirectCase(WDGetHandler.java:860)
at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.internalHandle(WDGetHandler.java:355)
at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.handle(WDGetHandler.java:280)
at com.sapportals.wcm.protocol.webdav.server.WDServlet.doGet(WDServlet.java:846)
at com.sapportals.wcm.protocol.webdav.server.WDServlet.service(WDServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:344)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.portal.prt.broker.ServletComponentItem$ServletWrapperComponent.doContent
Have you tried using different links?
I tried with the different external link but all in vain.same issue i am facing.More over i tried with the URL iview pointing to the external link that too causing the same problem.
Is there anything in your landscape which could be preventing access to this external link from the portal?
We are not sure about that,recently we have upgraded the portal from 7.0 to 7.3.After that only we are facign this issue.before that this scenario was fine.Moreover we have upgraded the producer system too.In producer system we tried the same there we could use the external link both in KM document iView and URL iView.
Naga -
Hi all,
I have created the Km Document Iview which contains an image.
Now the problem is image is very small and in page layout i have changed the hight property of iview.
but still in preview image is not full occupying the space . some blank border is still coming .
can somebody help me...
thanx
Sarang......Hi Sarang,
Don't know if is already too late to answer your question, but here I go anyway.
I notice this: when you use KM Document iView in order to display an image, there is an extra blank space surrounding the image. Well, that border is there because there is no other HTML code than the tag
<img>
If you want to delete that border, you can do this:
create a new HTML page in KM. Inside that, you will put this code:
<html>
<head></head>
<body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">
<img src="/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/YOUR_PATH/YOUR_IMAGE.JPG">
</body>
</html>
Change your KM Document iView and make it display your new HTML
Voilá! You got your image without that disgusting border.
Hope it helps. And if you want to give me some points, I'll be more than happy
Patricio -
Hi Everyone,
We have created a lot of document Iviews and we mention document path in the iview.
I get a lot of changes where we need to add a new document in the same location, I generally use to send the path and new document to basis and get it done.
I need to know more about this, where is physically the file saved. Basis team gave me a url like http://rrispdao1:50100/etc/etc/etc
now where is the file saved. I am unable to track this where i need to look .
how it save and how the iview opens
Please let me know on this??
Thanks,
RajHi,
KM document iviews are used to display any xml/html etc files in an iview. You can see the path of the document in KM document iview property 'Path to Document'
It will be something like '/documents/abd/xyz.html'
If you want to replace the xyz.html to pqr.html then
replace the path to document property from '/documents/abd/xyz.html' to '/documents/abd/pqr.html'
Go to Content Admin -> KM Content -> documents -> abd
and using Folder->New ->upload upload the pqr.html.
Hope it will help you.
Raghu
Maybe you are looking for
-
Unable to find imported files in music, even though they show up in playlists
I recently tried to import about 400 mp3s into iTunes so I can load them on my iPod. It went through the process of importing the files, and I didn't see any of the new songs in iTunes. I tried rebooting my computer, and they were still missing, howe
-
BED, E Cess and Secondary education cess not showing in MIGO
Dear Experts, i have created one PO with tax code , in the invoice tab all the BED,ED cess and secondary cess are showing properly, but when i am doing the MIGO, the same is not showing in item detail excise item tab, my tax procedure is TAXINN, plea
-
Mapping descrete values to childs of a complex type array
Hi all, I have the following flat XML file with descrete values as source: <MaterialRequest_MT> <number><b>number1</b></number> <shortdesc><b>shortdesc1</b></shortdesc> <projectname><b>projectname1</b></projectname> </MaterialRequest_MT> My pro
-
Picking List / Material issue slip
Kindly let me know the process of printing a Picking list / Issue Slip for a material issue from a DBM Service order.
-
What could be causing these strange WiFi networks to show up?
I have these odd random WiFi networks showing up when I scan for networks to connect to in my house on my MacBook Pro. They don't show up on my iPhone or iPad, just my MacBook Pro. The network named "Gunz" is my home network. The Roku one is a Roku H