Change htmlb:button height ?
Hello,
is it possible to change the htmlb:buton height ??
I want the buttons "bigger"
For HTMLB/DESIGN2003.
<a href="javascript:void(0);" onclick="if(!sapUrMapi_Button_checkClick('htmlb_button_1',event)){return true;};return htmlbSL(this,2,'htmlb_button_1:myClickHandler')" onkeypress="if(!sapUrMapi_Button_checkClick('htmlb_button_1',event)){return
true;};return htmlbSL(this,2,'htmlb_button_1:myClickHandler')" class="urBtnStd urV" style="height:40px;" id="htmlb_button_1" ct="Button" style="white-space:nowrap;">Press Me</a>
Raja T
Message was edited by:
Raja T
Similar Messages
-
Change login button height on login screen
Hi,
I would like to know how can i change the height of the login button on the login screen?
Thanks,
NoaNoa,
1. Logon with Administrator id and go to System Administration -> Support -> Portal Runtime -> Browse Deployment.
2. Now go to ROOT/WEB-INF/deployment/pcd and download the com.sap.portal.runtime.logon.par.bak file. When you download the file it will give name as com.sap.default.browse or something like that. Don't worry about that.
2. Open the file with Winrar and extract the com.sap.portal.runtime.logon.par.bak to your desktop/ folder.
3. Remove the .bak extension and open the file once again in Winrar.
4. Now locate the umLogonpage.jsp under PORTAL-INF folder.
5. You will find below code for Logon button
<!-- logon button -->
<tr>
<td colspan="2">
<input style="height:3ex;" class="urBtnStd" type="submit" name="<%=SAPMLogonLogic.uidPasswordLogonAction%>"
value="<%=logonLocale.get("LOGON")%>">
</td>
</tr>
6. Remove the class urBtnStd so that the css is not applied and modify it as per your needs. I have done as follows:-
<!-- logon button -->
<tr>
<td colspan="2">
<input style="height:3ex;font-size:18px" type="submit" name="<%=SAPMLogonLogic.uidPasswordLogonAction%>"
value="<%=logonLocale.get("LOGON")%>">
</td>
</tr>
7. Save your changes and verify if it is reflected in the jsp file.
8. Login to Portal with administrator id and goto System Administration -> Support -> Portal Runtime -> Administration Console. Browse your par file and click on upload.
9. Verify the change on Login page.
Chintan -
Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
Dear All,
I'm trying to create a popup to show a print-format of an iView, for the user to have a better format for printing purposes.
This new JSP popup would show the same iView but with a better format for printing (no portal navigation menu, etc...)
My question is: Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
Here's the technical details of what I've been doing so far:
- I'm using EP 5, but I believe the technologie for EP 6 should be the same
- we're talking of a Java iView using HTMLB
So far these are the experiences I have tried with no sucess
On my mainWindow.jsp I have this piece of code, but it doesn't work:
(etc...)
<%
ResourceBundle res = componentRequest.getResourceBundle();
IResource rs = componentRequest.getResource(IResource.JSP, "printFormat.jsp");
String JSP_URL = rs.getResourceInformation().getURL(componentRequest);
%>
(etc...)
<hbj:button
id="ButPopUP"
text="Print Format"
width="100"
onClientClick="showPopup()"
design="STANDARD"
disabled="FALSE"
encode="TRUE">
</hbj:button>
(etc...)
<script language="Javascript">
function showPopup(){
mywindow = window.open ("<%=JSP_URL %>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1,
resizable=1, width=600,height=400");
htmlbevent.cancelSubmit=true;
</script>
(etc...)
Thank you very kindly for your help.Hi Kiran,
sorry for the late reply.
Thank you so much for your JAR file.
Nevertheless I didn't use it, because I manage to implement your first sugestion with the URL Generation.
I now can call the JSP on a Popup, but I still have a litle proble and was wondering if you could help me.
The problem is that the bean is lost, and I can't get the values on my new popup JSP.
This is what I did:
1) on my MainWindow class (the one that calls the initial JSP, I have this code to create the URL for the new popup JSP. This is the code:
IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
IPortalUrlGenerator portalGen = null;
ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
if (specUrlGen instanceof IPortalUrlGenerator) {
portalGen = (IPortalUrlGenerator) specUrlGen;
try {
String url = null;
url = portalGen.generatePortalComponentUrl(request, "Forum_IS.popvalues");
myBeanDados.setPopupURL(url);
} catch (NullPointerException e) {
log.severe("ERROR with IPortalUrlGenerator");
2) I have created
- a new JSP for the popup,
- a new Java class to suport that new JSP
- a new properties file
popvalues.properties with the following code:
ClassName=MyPop
ServicesReference=htmlb, usermanagement, knowledgemanagement, landscape, urlgenerator
tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
MyPop is the new class that is associated with the new JSP popup.
The problem now is that the bean was lost.
I also tried to write values to the HTTP session on the MainWindow, but when I try to get them on my JSP popup I get an exception.
How can I pass the values (or beans) to my new popup JSP ?
Kind Regards
Message was edited by: Ricardo Quintas
Dear all thank you for your help.
I have managed to solve the problem I had.
Here's the problem + solution sumary.
I have to remind you that we are talking of EP 5, PDK 5 (Eclipse version 2.1.0), with JAVA JDK 1.3.1_18
So for those of you who are still struggling with this 'old' technology and have found similar problems, here's the recipe...
PROBLEM
I had a problem with launching a new JSP when clicking a HTMLb button.
I wanted to create a JSP to present a 'print-format' of an iView.
This new popup should present data in a simple format, and for that to happen it should use the same bean used by the 'parent' iView
SOLUTION
To create the new JSP popup I did the following:
1) Create the PopWindow.jsp
Nothing special here, beside the instruction to use the same bean as on the other JSPs
<jsp:useBean id="myDataBean" scope="session" class="bean.DataBean" />
2) Create the associated JAVA class
MyPop.java. This class will be used to call the PopWindow.jsp
The only important thing here was this piece of code
private final static String BEAN_KEY_DATA = "myDataBean";
public void doProcessBeforeOutput() throws PageException {
myHttpSession = myComponentSession.getHttpSession();
myDataBean = (DataBean) myHttpSession.getAttribute(BEAN_KEY_DATA);
myComponentSession.putValue(BEAN_KEY_DATA, myDataBean);
this.setJspName("PopWindow.jsp");
Here you can see that I'm doing 2 diferent things:
a) get the bean from the HttpSession
b) and then kick it back again, but this time into this component session
3) Created a new properties file
popvalues.properties. This file contains the follwing code:
ClassName=MyPop
tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
Contrary to some opinions on this discussion,
you can't call a component in EP 5 by using ComponentName.JSPname.
Or at least that didn't work for me.
You nee to use an aproach like this one ComponentName.NewProperiesFileName
4) On my main class MainClass.java (for the parent iView) I haded the following code on the event doInitialization:
IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
IPortalUrlGenerator portalGen = null;
ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
if (specUrlGen instanceof IPortalUrlGenerator) {
portalGen = (IPortalUrlGenerator) specUrlGen;
try {
String url = null;
url = portalGen.generatePortalComponentUrl(request, "MyMainApplication.popvalues");
myDataBean.setPopupURL(url);
} catch (NullPointerException e) {
etc...
The idea here was to build dinamicaly a URL to call the popup.
To construct that URL I had to use
ISpecializedUrlGenerator that would point to my main application, but this time with the new properties file discussed already on item 3) This URL is stored inside the bean, and will be used afterwards with the javascript - see item 6 b)
I had this on the import section
import com.sapportals.portal.prt.service.urlgenerator.IUrlGeneratorService;
import com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator;
import com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator;
5) Then I had to solve the problem of how to pass the bean from the parent iView to the popup.
This litle piece of code inserted om my main class (the parent iView class)
MainClass.java solved the problem:
import javax.servlet.http.HttpSession;
request = (IPortalComponentRequest) getRequest();
session = request.getComponentSession();
session.putValue(BEAN_KEY_DATA, myDataBean);
myHttpSession = session.getHttpSession();
myHttpSession.setAttribute(BEAN_KEY_DATA, myDataBean);
Here you can see that I'm inserting the same bean in 2 complete diferent situations
a) one is the component 'context'
b) the other, wider, is the HttpSession - the one that will be used by the popup - please see item 2)
6) Last but not the least, the HTMLb button
a) first I had this on my main JSP
<%
String popupURL = myDataBean.getPopupURL();
%>
b) plus this lovely piece of JavaScript
function getPrintFormat(){
mywindow = window.open ("<%=popupURL%>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1, resizable=1, width=600,height=400");
htmlbevent.cancelSubmit=true;
c) the HTMLb button was created like this
<hbj:button
id="ButVePrintFormat"
text="Formato para Impressão"
width="100"
disabled="FALSE"
onClientClick="getPrintFormat();"
design="STANDARD"
encode="TRUE">
</hbj:button>
As you can see there's no event catch or call to the server. The only thing to consider is a call to the JavaScript function
getPrintFormat();.
Está todo lá dentro.
That's all there is to it. -
HTMLB + htmlb:button
Hello Friends,
I have a problem in using HTMLB, button in view of BSP page. Actually the problem is that I want to call the main contrller when user click on the button. But as in view there is not Event Handler, so while "onClick="event_1"/>, how I can handle this event!
here is a bit of code segment!
<htmlb:button width="10" onClick="event_1"/>
Does it work ?? like this if I call controller direct ??
<htmlb:button width="10" onClick="main.do"/>
With Regards,
Haider Syed.So, after making a small mistake in my last post (corrected now), I will try to bring some light into this situation:
First, summarize all the options you have:
Each form has a "target" (<b><form action="target_controller.do"></b>) which the browser will submit the form data to.
Note that this is different from the actual target-attribute (<b><form target="_blank"></b>), which is used to specify the location where the server-response will be displayed - you can let it be shown in a new window here.
Then, for form elements, you have the option to set client-side javascripts, using the <b>onClientClick</b> attribute. It's best if you just call a javascript function here, and define this function somewhere else in your code (javascript-file-include for example).
<htmlb:button ...
onClientClick="yourFunction();" />
You can access your HTML elements (also form elements) using javascript, so changing the target or action parameter from within your function is possible!
To finish this post, there is the server-side event, specified by the <b>onClick</b> attribute, which is usually checked for in DO_HANDLE_EVENT (in case of MVC) or in OnInputProcessing (for non-MVC BSP pages, like Craig mentioned). But remember, this is server-side event!
So, with this info, you should be able to specify in more detail what you call "for each button a new event" - whether you mean server-side or client-side event ... maybe thinking about this alone will almost solve your problem.
Regards,
Max -
Hello,
i want to change the color of a disabeld HTMLB Button.
Changing the color of a active buttton is no problem with setting the CSS in an include file:
.urBtnSml { color: #FFFAF0;
background-color: #FFFAF0;
border-color: #FFFAF0 #FFFAF0 #FFFAF0 #FFFAF0; }
But using the same way for a disabled button
.urBtnSmlDsbl { color: #FFFAF0;
border-color: #FFFAF0 #FFFAF0 #FFFAF0 #FFFAF0;
background-color: #FFFAF0;
it doesn't work. What's the problem??
Thanks a lot,
Andithat means that you are changing the color of a wrong button. i did change the color for both the disabled and active buttons. may be you are changing the wrong values in that element or the eleemnt itself is not the one you are looking for.
-
How to change the button size of Calendar prompt
I want to change the button size in Calendar prompt. How to change it?
Thank you!I think it is not necessary to modify the Calendar button size.
The Calendar button actual size is 20X20.
But the gif file which is used by Calendar button is not filled by icon.
It seems that the height is smaller than the other buttons.
Edited by: user12291797 on Dec 3, 2009 12:59 AM -
Hi
I am developing an Iview that shows buttons corresponding to files in a km directory.
when button pressed it will open the file.
the button text is as the resource name .
I would like to change the button background .
I would also like to change the gridLayout background color.
Can any of u write me how do I do this.
Thanks
NitsanLook at the below code..
<htmlb:button id = "b_excel"
text = "<span style='background-color: #FF6600;font:normal 10pt Arial;'> Download to Excel </span>"
encode = "false"
disabled = "false"
onClick = "onInputProcessing(b_excel)" />
Raja T -
Hello,
Iam trying to understand the htmlb Button.
can anybody explain what is wrong with the following code:
<b>button.java</b>
package com.sap;
import com.sapportals.htmlb.Button;
import com.sapportals.htmlb.event.Event;
import com.sapportals.htmlb.page.*;
import com.sapportals.portal.htmlb.page.*;
import com.sapportals.portal.prt.component.*;
public class button extends PageProcessorComponent {
public DynPage getPage(){
return new buttonDynPage();
public static class buttonDynPage extends JSPDynPage{
IPortalComponentResponse response = (IPortalComponentResponse) this.getResponse();
private button_bean myBean = null;
public void doInitialization(){
IPortalComponentSession componentSession = ((IPortalComponentRequest)getRequest()).getComponentSession();
Object o = componentSession.getValue("myBean");
if(o==null || !(o instanceof button_bean)){
myBean = new button_bean();
componentSession.putValue("myBean",myBean);
} else {
myBean = (button_bean) o;
public void doProcessAfterInput() throws PageException {
IPortalComponentSession componentSession = ((IPortalComponentRequest)getRequest()).getComponentSession();
myBean = (button_bean) componentSession.getValue("myBean");
public void doProcessBeforeOutput() throws PageException {
this.setJspName("button_display.jsp");
public void ProcessConfirm(Event event) throws PageException{
Button b = (Button) this.getComponentByName("OrderConfirm");
myBean.setMessage("Clicked");
b.setText(myBean.getMessage());
<b>button_display.jsp</b>
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean id="myBean" scope="application" class="com.sap.button_bean" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<hbj:button
id="OrderConfirm"
text="Confirm"
width="125px"
tooltip="Click here to confirm order"
onClick="ProcessConfirm"
disabled="false"
design="STANDARD"
/>
</hbj:form>
</hbj:page>
</hbj:content>
<b>button_bean.java</b>
package com.sap;
import java.io.Serializable;
public class button_bean implements Serializable {
private String message;
public String getMessage(){
return message;
public void setMessage(String string){
this.message = string;
<b>
Iam getting the button displayed perfectly but clicking on it won't do any good.
Appreciate your time</b>
Message was edited by: Robert DraterHi Robert,
Change your button_display.jsp as follows:
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean id="myBean" scope="application" class="com.cop.button_bean" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<b><hbj:button
id="OrderConfirm"
width="125px"
tooltip="Click here to confirm order"
onClick="ProcessConfirm"
disabled="false"
design="STANDARD"
>
<% OrderConfirm.setText(myBean.getMessage()); %>
</hbj:button></b>
</hbj:form>
</hbj:page>
</hbj:content>
This should solve your problem.
Ranjith
Also change your button.java as follows:
<b>public void ProcessConfirm(Event event) throws PageException{
Button b = (Button) this.getComponentByName("OrderConfirm");
myBean.setMessage("Clicked");
IPortalComponentSession componentSession = ((IPortalComponentRequest)getRequest()).getComponentSession();
componentSession.putValue("myBean",myBean);
//b.setText(myBean.getMessage());
}</b>
Message was edited by: Ranjith Vijayan
Message was edited by: Ranjith Vijayan -
I am working on a series of tutorials and quizzes for our
client, I want to change the text on the "Next" button on the
quizzes. It appears easy enough, in the options, Next button text
field, I have entered what I want, but it still appears as "Next"
when I publish it. Am I an idiot?
Please help.This may be a stupid question, but did you save the file
before you published? I have sometimes had instances of not saving
and publishing first and my changes are not reflected.
Also, if the buttons were already on the screen with the text
"Next" when you decided to change the button text, you'll need to
delete those buttons and then add them again. The text does not
update dynamically.
Worst comes to worst, you can manually change the button text
with a double-click or through properties...
Hope that helps. -
Hide Change Layout Button in ALV report o/p for MB52 Tcode
Hi,
Is it possible to Hide Change Layout Button in ALV output for Report MB52 using authoriztaion.
We have created a layout in which we are hiding some coloumns which the user should not see.
But if the change layout button is active then the user can add those coloumns to output.
Is this possible through authorizations. I want to avoid doing any chnages to the std sap program.
Thanks & Regards,
FawazCheck the object S_ALV_LAYO
-
Why miss change layout button in ALV report
Hello Experts,
I have strange problem, I run the same transaction two times, one I have the change layout button but another I miss it...
Anything control this button?
thanks a lot for your help!Hi,
Is this standard Tcode or customized Tcode?
If it is standard tcode, what is the tcode?
If it is customized tcode, can you post some code for us to analyse?
Thanks.
Regards,
Keng Haw -
Possible to override the remotes "change audio" button?
I'm creating a DVD that has multiple audio tracks for a single video track. I'm also programming in subtitles for the same track(French). The two audio tracks have different versions of dialogue. So, that means that I need two subtitle tracks – one for each audio. I understand how I can use stories and scripts to associate the proper subtitle track with the corresponding audio track,
BUT
my problem is this: it is necessary to allow the user to switch back and forth between the audio tracks whenever they want. So, if a French user is watching with subtitles on, and switches the audio using their remote mid-stream, then I need a way to change the subtitles to match the now-active audio.
The best way I can think of to do this would be to hi-jack the functionality of the "change audio" button on the remote, and make it run a script that changes audio, then checks subtitle settings and changes them as well, if appropriate.
Can this be done in DVDSP? I've found promising entries in the advanced connections display, but they don't respond to my initial attempts.
Thanks for any help.
PatrickHey. Thanks. I hit a ton of pages searching, but missed that thread post. It's exactly the same problem. I suppose my only hope is, fingers-crossed, more DVD players support the targeted scripting of remote buttons these days???
Well. I noticed there were several other programs mentioned in that thread, which I'm going to look up now, but it seems that this is a "supported by DVD players" problem rather than a "my program can't do that" problem.
Something occurs to me. Is this a problem that could be circumvented by going to Blu-ray? DVD SP has a lot of buzz about supporting Blu-ray projects, would Blu-ray players be more likely to support this remote-based scripting???
P
Message was edited by: poltrain -
How to move/remove/change RSS-button location from next to refresh sign as I'm wasting alot of time everytime when trying to hit that refresh button?
I know I can use keyboard to refresh a webpage, but I really like the easy to use stop/refresh button a-la Firefox (after combining them) in the left side next to the "previous/next page" buttons, and I really hate that RSS appearing on all those websites which provides RSS. I don't use RSS and I don't want to see it when browsing and using Safari.
I hope there is a way to doing that, otherwise I have no choice but switching back to Firefox..
Thanks!Thanks Carolyn,
but the "debug" menu doesn't appear after running "defaults write com.apple.Safari IncludeDebugMenu 1" command in terminal. I have Safari 4.0.4
But the idea is great: now I only want to disable RSS. -
cannot operate my i tunes account properly i am english and have a french bank account
if i change the button at the bottom and put in english then i go onto i tunes i cannot log in it answers in french
and it keeps rejecting my password even if i go to i tunes and change it
in other words i want my account in english and to pay with my french bank account but it will not it seems allow me to do thisFYI ..
Your credit or debit card credentials must be associated with the same country where you reside.
"Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
From here > The Complete Guide to Using the iTunes Store | iLounge Article
Billing policy is the same for both the iTunes and Mac App Stores. -
Get Info "Change All" button doesn't keep the proper "Open With" app
I have a small but annoying problem that appears in Leopard 10.5.2 (been there since original 10.5.0 install) that I have tried to troubleshoot but can't solve.
The problem is:
-With some of my file types, the wrong "Open With" application is displayed when I view a Get Info for that file type. So to fix this, I open a Get Info window on one of those types of files, and choose the PROPER default application in the "Open With" slot. This works, and then the new proper application name now shows in that slot. So then I click the "Change All" button and apply to all files of that file type. I receive the warning that I will be changing ALL files of that type. I choose "continue" because that is what I desire.
However, once I do that, (click Change All, then Continue button), the old, wrong application name jumps back the Open With slot! So the new, correct application choice doesn't "stick".
Oddly enough, it sort of DOES work, because if I then re-click in the Open With slot, although the old, the wrong application is back listed again, if I look up above that name, then my actual desired application is listed in a list, and it has the word (Default) beside it.
So if I do actually now double click any file of that type, then the proper application DOES launch and open the file.
But why does the Get Info window still display the wrong, non-default application in Open With? And furthermore, this causes all file types of that kind, to display the WRONG icon in any Finder window. They of course display, the icon of what is in the Open With slot list.
I am having this problem only with two file types and apps. (Cubase and Pro Tools---DAW audio apps). All of my Cubase files display a Pro Tools icon, and show as Open With: "Pro Tools" when of course it should display Open With: Cubase. As stated in the Open With list, Cubase is indeed there among other programs and it has the word (Default) beside it. So it sort of works when launching files. But I still cannot get Cubase to "stick" and stay in Open With after Change All!
Can anyone offer any tips on what might cause this and what fix is needed?
Thanks so much in advance!
WadeWell, I tried rebuilding the Launch services with the command listed but still no luck. After having no luck with that and deleting caches, etc....I also, went to my home (user) directory and in Preferences, I deleted the com.apple.launchservices.plist file. I restarted and checked and still the same result.
Also, I want to emphasize again that the file type I am discussing DOES actually launch with the correct application. (Cubase files in my example).
But it is just annoying that ALL of my Cubase files display the Pro Tools application icon, and in Get Info they are listed to open with Pro Tools. But they actually do launch Cubase if double clicked.
And one other VITAL note....if I open Get Info for one of these files, and change the Open With from Pro Tools to Cubase....then that choice DOES "stick" and retain. (if I "don't" also click Change All)
It's only when I click "Change All" that it DOESN'T stick and the list selection jumps back to Pro Tools. I hope that may offer some clarity.
Thanks for the tips but I am still back at square one.
Wade
Maybe you are looking for
-
How to Play MPG videos in Flex web app?
Hi, I would like to play MPG file in my flex app. Video player available in flex plays only .flv file. Is there any way of doing this?? can somebody post an example of this?? Any help wud be highly appreciated. Regards, khushboo
-
Application events in ALV Grid Control
Hello, Since SET_REGISTERED_EVENTS cannot be used for ALV Grid Control, how do I register a system event (data_changed) as an application event, so that PAI is processed. I am using ALV grid not tree. Thanks
-
LR 3.3 Import Dialog - Can imports be filtered by file type?
I sometimes use a Canon S95 point and shoot and a workaround to have RAW images AND a certain aspect ratio (such as square) is to shoot with the RAW + JPEG setting. This allows me to shoot in any aspect ratio with out cropping in post. For this reaso
-
I want some of my apps to use the location services & to be able to turn it off, but it's all greyed out. Same with my Cloud. I read thru the entire manual, with no luck. Could someone give me a little advice? My iPhone 4S is from Verizon Thanks!
-
I just want Adobe Reader 11