How to eliminate leading space in menu item.
Hello,
I'm using JDeveloper 11.1.1.4.0.
I have created menu dynamically, using RichCommandMenuItem in my bean class. Menu gets generated and works as per requirement.
Menu items however, display some leading space as seen in 'Screenshot(s)' section on the link given below.
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_commandMenuItem.html
I am required to remove this leading space from menu items.
Options that I tried:
1. Override CSS classes in skin
2. use setInlineStyle("") method of RichCommandMenuItem. I passed an empty string.
Neither of these gave me required results.
Perhaps I should pass some specific string such as "::icon:none".
Appreciate your suggestions.
Amar
Hi,
I hope you can remove leading white space as inlineStyle="margin-left:-10px;" for menu items.
Edited :check
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/menuBar.jspx?_afrRedirect=63726517039949
Similar Messages
-
How to avoid leading space -char(160) in Apex items
Hi
I'm getting a leading space in one of my apex item (text area).
Further check reveals that it is char(160).
Could any one help me in this to avoid leading space in the item.
Many Thanks
--VijayHi Vijay,
Try:
TRIM(:<Item_Name>)In the Post Calculation Computation section of the item.
Hope this helps.
Regards
Kamo -
How to un-checked the sub-menu items in the active document?
Can anybody let me know, how to make the "checked" sub-menu items in "Window" menu to "un-checked" through scripting. More clearly, i need to open a document alone without showing the tools bars, Document info, etc. Kindly help me the possiblities via scripting(vbscript / javascript). I am using illustrator cs3.
Thanks...With vb you could call an action that changes the workspace. I do this with AppleScript but its only any use for in-house stuff where I know the actions and workspaces are saved.
-
How to create a cursor in menu item???
Hi,
How to create a cursor in menu item??? and process data inside the SQL Editor of Menu Item>????
Regards,ok, you mean: When the form is starting you want to disable some menues.
create a WHEN-NEW-FORM-INSTANCE-trigger in your form and then do the loop over the menu-item
what is ENTITIES? The name of a table ? -
How to remove leading zeros for an item number within quickviewer
how to remove leading zeros for an item number within quickviewer. Pls help
ask your abap guy to do it. not portal guys business.
-
How to disable and hide the menu items of 'copy From' button of Goods Recei
hi expert,
I am new in SAP B1. so please help me.
Q:How to disable and hide the menu items of 'copy From' button of Goods Receipt PO form?
Regards
sanojHi Sanoj,
Try This.....
If pVal.FormType = "143" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE And pVal.BeforeAction = False Then
oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, "1")
Dim oitem As SAPbouiCOM.Item
oitem = oform.Items.Item("10000330")
'To Disable the button
oitem.Enabled = False
'To hide the button
'oitem.Visible = False
End If
Thanks
Shafi
Edited by: shafi_sunshine on Sep 15, 2011 7:35 AM -
How to make the spacing between menu items equal with varied menu item sizes
If the title isn't clear, what I mean is how do you make the space between each of the items in a horizontal the same when some of the menu items are up to double the size of others. Currently I am using the margin property and the space between the larger items is smaller than between the smaller items.
If you need more information just ask.Screenshots don't tell the whole story which is contained in your HTML and CSS code.
Without a link to your test page or a look at your code (all of it) the best we can provide is wild guesses.
Help us help YOU by providing a link.
HOW IMPORTANT IS CODE? A Plea to new posters.
http://forums.adobe.com/thread/691654?tstart=0
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Equal Space between Menu Items and Drop Down Menü left aligned not possible?
It seems like I can either have equal spacing between the horizontal menu items and the drop down menu will show up centered , or I say the menu items should be of equal size, and then drop down will be left aligned. Is there any way of having equal space AND left aligned drop down???? Thanks in advance!
Hello Anjum,
Thank you for reporting the issue. It seems to be a Bug and we have logged the same. Hopefully it will get fixed in coming releases.
As of now we do not have any workaround for same. However once we have some workaround, we will definitely share it with you.
Regards,
Sachin -
How to Remove the 'Bookmarks Toolbar' menu item in Firefox 8?
I have Firefox 8 on my Windows 7 machine, and I'm trying to get rid of the 'Bookmarks Toolbar' Menu Item. I'd found a way, way back, to do that in an earlier version of Firefox on my XP PC, but I couldn't find anything on the web on how to do this in this release of Firefox.
I'm also having trouble getting rid of "Subscribe to this page" menu item.
Thanks for any help.
AlexHi
Try using '&otherparams=usesdi=yes' in your URL...this could solve your problem....good luck :)
Regards
Thobula Ramulu Rakesh -
How to put separator lines in menu items in a gui status ?
Hi,
I have created gui status for my z transaction
I need the separator lines in the menu items like it is seen in std transactions
For example, in any screen , in the Help menu, we can see the following.
Application Help
SAP Library
Glossary
(line)
Release notes
(line)
SAP Service Marketplace
could you please help me how to put the lines ?
thanksHi,
Goto Your GUI status.click on your MENU bar.
under the menu bar you will have your own menu items.
where ever you want separator line do the following way.
you will have 2 columns under menu bar
1) code
2) text.
under code dont put anything.
but under text column you put dashes and enter or select right click there and choose separator line.
you will get separator line.
activate and run the ztcode.you will get .
code text
Application Help
SAP Library
Glossary
Release notes
SAP Service Marketplace
Thanks
Parvathi -
How to invoke a plug-in menu item via Javascript?
Hi, I installed a plug-in on my Acrobat Pro v11, it shows a plug-in menu, and there's one menu item in this plug-in menu dropdown. I can manually select that menu item and it does what it's designed to do.
My question is, how do I use javascript to invoke it, to achieve the same result as when I manually select that menu item?
I tried using this "app.execMenuItem("name-of-menu-item");" under my click event of a button on the PDF form, but it didn't work.
What have I done wrong? How to make it work?
TIAThanks to all those who responded.
Actually I got it working soon after I posted the question.
However, I don't know, my trial&error way seems to be a little different from all those documents I read.
So, I am not exactly sure if it's the correct way to do this sort of thing or not.
It certainly is not very end-user friendly IMHO.
I will describe what I did below, if you know of a better way, please let me know, thank you.
First, I put a folder-level script in the Acrobat install folder, the so-called "app" level;
because when I used the getPath("user", "javascript") call, it returned an error without giving me the user-level path.
Anyway, my script (the .js file) looks like this:
xyz = app.trustedFunction(
function() {
app.beginPriv();
app.execMenuItem("ADBE:myxyz");
app.endPriv();
return;
Then, on my form's button-click event, I make a call
xyz();
and that got it to invoke the menu item "myxyz" successfully.
But... I can't say I like my solution:
1) I don't like the .js file, because I'll have to put it in all my users' Acrobat install folders.
Extremely inconvenient.
Is there a way to make it work without using the folder level script???
2) The script itself, I am not sure if it makes sense or not.
I can't say I understand all these trustFunction and Security stuff;
it just so happened that it worked for me, but I don't know why.
so, maybe there could be a simpler script that can also work?
3) If I put the "beginPriv()" , "execMenuItem()" and "endPriv()" lines directly in the Button-click event,
I got an error message in the Acrobat console, something like: "your security settings does not allow....";
in fact, I tried many many different ways to write this Button-click script, none of them worked without the folder-level .js file.
But I hope somebody could come up with a way to make it work without the folder-level script file....
Is there a way to change the "security settings" without using the .js file?
4) The execMenuItem is also a headache, sorry about complaining... but... sometimes it just silently exited without doing anything,
and without returning any error messages... how am I supposed to know what went wrong when it's so quiet?!
Furthermore, why does it insist on taking the full name of the menu item? I mean, why do I must put the "ADBE:" part in there?
there's no other menu item named "myxyz", right?
I remember Adobe's founders once said that "making our customers' lives easier" was what drove them to work everyday.
execMenuItem() certainly didn't listen to what they said. -
How to control leading spaces exchnage rate value
Hi
We have issue,when user is given the rate value with leadeing spaces in spread sheet,after upload spread sheet, rate is upload as 0.Please advise me how to control this in spread sheet
Thanks
AnjireddyHi,
what about if you format this cell as number? In this case the leading space will be ignored as soon as you press enter or navigate out of the cell.
does this help?
kr, Volker -
How to have some top level menu items not be hyperlinks
I have a navigation band where 5 of the 6 top level items need to NOT be hyperlinks but simply "category titles" that you mouseover to display the submenu - which are the links to web pages.
An example of this is on the Amazon.com home page - the items under "Shop All Departments" has categories that are not clickable, but when you mouseover display the clickable submenu.
Is it possible to customize some but not all of the top menu items and how?
What do I need to modify in the CSS so that the top "category title" looks/behave the submenu (same font color/bgcolor changes) but no active hyperlink?Here is a link to my pagewhere I am testing the navigation. Currently there is only this one page and I have <a href="#"> for the links.
The only menu item that should be clickable in the top level is "Contact"
Everything in the second and third level (Events > Research >...) needs to be clickable
Everything is working as I want except that "Research" needs to be clickable
- and I would like to have the clickable item text be underline when in the hover state but I want to get the base navigation working first
The closest matching code I found in the CSS is:
#MenuBar1 li .MenuBarItemSubmenu,
#MenuBar1 li ul li .MenuBarItemSubmenu {
cursor: default;
If I remove this, all the top level items become clickable. Let me know if there is other information you need. I super appreciate your help with this! -
How to add leading spaces to af:table column
Hi,
I'd like to display leading spaces in af:outputText located in table column. Value property is bound to backing bean property, where I add custom leading text.
However, if I add , the & nbsp; text "& nbsp;" is displayed, not rendered by the browser. Any ideas?
Regards
Jernej
Message was edited by:
Jernej Kase
Message was edited by:
Jernej KaseHi,
since you didn't mention how you solved it, here is the approach i would have taken
- use skinning to add padding. This way you don't have to mess with the display data
Frank -
Unwanted space under menu item
When hovering over a menu item, the item turns red. However, you can still see a little bit of the yellow background along the bottom. Can anyone tell me what I need to fix to get the red box to fill the space? Thanks.
@charset "UTF-8";
/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
LAYOUT INFORMATION: describes box model, positioning, z-order
/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
margin: 0;
padding: 0;
list-style-type: none;
cursor: default;
width: 960px;
font: bold;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: inherit;
cursor: pointer;
width: 160px;
float: left;
border: 0;
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 160px;
position: absolute;
left: -1000em;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
left: auto;
text-align: left;
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
width: 160px;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: auto;
top: 0;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
display: block;
cursor: pointer;
background-color: #f6ead6;
padding: 0.5em 0.75em;
color: #333;
text-decoration: none;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
background-color: #80290e;
color: #FFF;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
background-color: #80290e;
color: #FFF;
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-image: url(SpryMenuBarDown.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarDownHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarHorizontal li.MenuBarItemIE
display: inline;
f\loat: right;
background: #FFF;Looks like it was just a minor bit of extra coding. Remove the line height here. Seems to fix it for me.
a:hover, a:active, a:focus {
line-height: 1.2; text-decoration: none;
Maybe you are looking for
-
[Solved]How to create ADF interface View
Hi All, I have a design problem that I need some help with. In one of the pages in our application, we have two drop down boxes one with account type and another with account name (label) and account number (value). The account types are Escrow, Cred
-
Transfer balance from one recon account to another one
Hi Guru One vendor was assigned by wrong recon account but 4 postings happened in MIRO with out changing the recon account in that vendor . After this they changed the recon account and reversed those 4 documents(which is posted in wrong recon accoun
-
How do you delete a form?
How do you delete a form?
-
1. I go to Firefox 2. I go to hotmail 3. I sign in BUT 4. Firefox will not let me sign in shows '''sign in''' at top left hand corner only& will not go any futher therefore section where I normally sign in & put password does not appear 5. Tried all
-
Setting up PPPoE: Not working ??
Hi, Linksys BEFW11S4 ver 2.6 I currently have Verizon DSL. When I got the self-installation kit many years ago, the Linksys installation disc installed the Wireless Connection under My Network Places. The Verizon installation disc installed a "dial-u