How to Set label of a button in arabic by writting code.
Hi,
I have created a button by writtin following code in controller.
OAButtonBean oasb = (OAButtonBean)createWebBean(oapagecontext, OAWebBeanConstants.BUTTON_BEAN, null, "Add");
if ( oapagecontext.getCurrentLanguage().equals("US"))
oasb.setText("Add Previous Objectives");;
else
oasb.setText("إضافة أهداف المرحلة السابقة");
Its creating a button with the given label. When i check from english login it shows label as "Add Previous Objectives" But when i check the same from arabic login it shows "???????????????"
Please suggest me how can i set arabic text for the same button.
Thanks in advance
Murali
Hi Murali,
It seems that the problem is with your browser where you are running your page. Check that the Arabic font is installed on your web browser and your system.
Regards,
Amit Kr. Singh
Similar Messages
-
How to set Shortcut keys for button in Apex
Hi
Could anyone help me on how to set shortcut keys for buttons in Apex.
I need to use say ALT + S to submit the page.
The following thread pertaining to HTML DB refered to use ACCESS key. but that couldnt work in my case.
Re: operation of the app. with the keyboard
Any pointers on achieving this would be helpful.
Thanks
VijayHi Vijay,
I’m afraid you must do it using javascript key listener. You can’t use action() on template based buttons because they are actually not HTML buttons but images with hyperlink.
Key listener checks which key has been pressed down and invoke some JS function. For example, write this code in page header:
<script>
document.onkeydown=keyCheck;
function keyCheck(e){
var KeyId = (window.event) ? event.keyCode : e.keyCode;
switch(KeyId){
case 113:
doSubmit('SAVE');
break;
case 118:
alert('Hello');
break;
</script>
This script will submit page with request 'SAVE' if you press F2 or will show alert message if you press F7. Modify it to your issue.
Regards,
Przemek -
How to set value for radio button in sap crm survey suite
Hi ,
I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
Thanks & Regards,
SeshuHi,
I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
Regards,
Seshu -
How to set ID to a button inside a ToggleButtonBar?
There's a ToggleButtonBar element, populated from a ViewStack. I need to set IDs to individual buttons (this is needed for QA automation).
How do I do this?Hi Ridcully,
Why do you require to set button ids for the ToggleButtonBar...?
If at all you want to get a reference to any button within the ToggleButtonBar you can get by using the getChildAt() method and you an perform the opertaions on it.
Say if your ToggleButtonBar id="selector" then you can get a reference to any button by using below kine of code...
var btn:Button = selector.getChildAt(index) as Button;
Check out the below example...In which I am getting a reference to the button clicked in ToggleButtonBar.
You can also see in the below example the name of button clicked coming in an Alert.
<?xml version="1.0"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.controls.Button;
import mx.events.ItemClickEvent;
// Event handler function to print a message
// describing the selected Button control.
private function clickHandler(event:ItemClickEvent):void {myTA.text=
"Selected button index: " + String(event.index) +
"\n" + "Selected button label: " + event.label;
var btn:Button = selector.getChildAt(event.index) as Button;Alert.show(selector.name);
]]>
</mx:Script>
<mx:Panel title="ToggleButtonBar Control Example" height="75%" width="75%"paddingTop="
10" paddingLeft="10" paddingRight="10" paddingBottom="10">
<mx:Label width="100%" color="blue"text="
Select a button in the ToggleButtonBar control."/>
<mx:TextArea id="myTA" width="100%" height="100%"/>
<mx:ToggleButtonBar id="selector" itemClick="clickHandler(event);">
<mx:dataProvider>
<mx:Array>
<mx:String>Flash</mx:String>
<mx:String>Director</mx:String>
<mx:String>Dreamweaver</mx:String>
<mx:String>ColdFusion</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:ToggleButtonBar>
</mx:Panel></mx:Application>
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari -
How to set target to Play button on begining DVD
Man you dont use this program for a few months and you gotta take a course on it all over again.
Ive completely forgotten how to set the PLAY button to activate at the beginning of the DVD. As in I was burning several DVDs and I tested them on my computer, and they worked fine. But the whole time I was using my mouse to navigate (I only put in one button "PLAY"). When at one point I happened to use the DVD navigator I realized I hadnt set it for a stand alone. So while if you watched it on a computer and were using your mouse you could hit the play button. But on a stand alone you cant get to it with a remote.
I remember it being a simply thing, but for the life of me I cant figure it out. HELP!So are you talking about moving between the buttons on a menu screen (i.e. navigation in the menu) or are you saying you can't get the button to activate any video? Or both?
The first issue is sorted out with the 'Settings' drop down box and choosing 'assign buttons now' or 'auto assign buttons' (but this slows down the menu creation and gets really frustrating at times). You should then be able to get to the menu (which will have the first button highlighted and ready by default) and then use the handset to move from button to button.
The second bit is setting the target for the button - where it goes to once you select and activate it. Open up your menu in DVDSP and click on the buttons in turn. Look in the property inspector for the 'target' and make sure that each button is going where you intend.
Alternatively, use the connections tab - this is far faster, IMO, but is slightly more abstract in concept...
If you have done these things and you still cannot get to the button using the remote control then there is something else wrong - it could be that you simply forgot to create a button but have the text there ready... without the button rectangle being drawn out over the text (or next to it) there will be no button and no way to activate anything. -
How to set print option for a Billing document using T-code VF02
Hi All,
Please suggest me the way to set print option for a Billing document for T-code VF02 and please let me know how to get print preview for any particular Billing document?
regards
Anand.Enter the billing documents detail
Goto Goto> Header>Output.
Check the status for your output type in this screen.
If it is green then come back to the VF03 screen.Enter the billing document number.
Click on Billing document-->Issue output to.
Press (CtrlShiftF1) or click on the icon beside "Print options".
Here you can see the print preview.
If the status is red then click on the processing log.Here you will get the error messages.
If the status is in yellow colour,then click on the "Further Data" button
Set "Dispatch time" as "4 Send immediately (when saving the application)"
Before the print preview option you should make sure you have added correct output type to the relevant billing document. To do that, go to transaction VF02.
Enter the billing document no
Go to Menu option -> Go to -> Header -> Output
In that screen you have to add relevant output type. (Standard output type is RD00)
Add that & press enter key
Highlight that line & press "Further Data" button
Set "Dispatch time" as "4 Send immediately (when saving the application)"
Press "Back" Button
again select that line & go to "Communication method" button
Set "Logical destination" as LOCAL"
Don't mark "Print immediately" & "Release after output" ticks. If you mark them, sa soon as you save the billing document, you'll get a print out.
Press "Back" Button
Save
Now form the initial "Change Billing Document" screen, Go to Menu option; Billing Document -> Issue Output to
You can see that output type line appear.
select that line & press "Print Preview" button or (CTRLSHIFTF1)
You can see the print preview.
Alternatively you can use VF31 to print multiple print outs at same time.
If you want to get PDF outputs of billing documents, go to your printer settings in the your computer from Control Panel.
Set PDF Writer as "Default Printer" (Right click & select "Set as Default Printer")
Then normal way, print the billing from SAP.
It'll automatically send to your PDF writer. You can save it to the path you want, -
How to set a specific starting time for the falling snow code snippet
Hi everyone
I want to use the falling snow code snipet but I don't want it it to start as soon the movie starts.
So how to set a specific time to start the falling snow?
Thanks
Patriciaput the code (that's not in a function body and excluding variable declarations and import statements) in a function body and call it using the timer class.
-
How to SET Focus on 'CONFIRM' button on Account identification page, CIC role?
Hello Expert,
Business role is CIC Agent.
Current Functionality-
1. CIC Agent gets a call
2. Search name of customer
3. If correct customer name found, CIC agent manually CONFIRM the account by clicking on CONFIRM button.
As per client requirement, AUTO_CONFIRM business partner is disabled from SPRO configuration.
Expected functionality -
1. CIC Agent get a call
2. Search name of customer
3. If correct customer name found, CIC agent manually press ENTER key to confirm the account.
So to get this functionality on ENTRY key (not on mouse click), BSP page element focus should be on 'CONFIRM' button, the moment SAP CRM Web UI frame work loads searched account detail. so that CIC agent once check and verify valid account and then press ENTER key to confirm.
Different Java script code already been tried on SingleObjectViewSet.htm and HiddenView.htm but couldn't achieve the Page focus on confirm button.
Your expertise in resolving issue would be very helpful.
Regards,
GhanshyamHi,
tabs have a "disclosed" property that you can set with a ExpressionLanguage reference to a managed bean method. If the managed bean is in session scope then whatever this method returns for a tab will define whether or not it is displayed
Frank -
How to set focus on a button that I created dynamically
Hi everyone,
Code :
lc_view_ctrl = wd_this->wd_get_api( ).
lc_window_ctlr = lc_view_ctrl->get_embedding_window_ctlr( ).
l_window = lc_window_ctlr->get_window( ).
l_window->set_button_kind( button_kind = if_wd_window=>co_buttons_okcancel ).
How do I focus on the OK button ?
Thanks.
RegardsI aswered my question :
When you subscribe to the event, write :
l_window->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = lv_button_text
tooltip = lv_tooltip
action_name = 'CONFIRM_DATA'
action_view = lc_view_ctrl
is_default_button = abap_true -
How to set Save and Apply button to disabled
Hi all
i need to disable the save and apply buttons according to some action the user is doing, when the user changes some LOV value the save button should be disabled
the following code i am using is not working to disable the button,
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) {
String val = "";
String message = "";
int statusVal = 0;
try {
super.processFormRequest(pageContext, webBean);
if ("empPositionChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) {
OAMessageChoiceBean rGBean1 = (OAMessageChoiceBean)webBean.findIndexedChildRecursive("Status");
if (rGBean1 != null) {
val = (String)rGBean1.getValue(pageContext);
statusVal = Integer.parseInt(val);
if (statusVal == 1) {
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject vo1 = (OAViewObject)am.findViewObject("WOCreateUpdateVO");
vo1.reset();
if (vo1 != null) {
vo1.next();
OARow row = (OARow)vo1.getCurrentRow();
String ReasonCode = (String)row.getAttribute("Attribute1");
//message = message + ReasonCode;
if (ReasonCode == null) {
OASubmitButtonBean savebBean = ((OASubmitButtonBean)webBean.findChildRecursive("Save"));
if (savebBean != null){
savebBean.setDisabled(true);
OASubmitButtonBean applybBean = ((OASubmitButtonBean)webBean.findChildRecursive("Apply"));
if (savebBean != null){
applybBean.setDisabled(true);
catch(Exception exception){
throw new OAException("Error in Staffing Query: "+exception, OAException.ERROR);
please any one had this issue.
any help??
Regards,i am using this code in the processRequest
public void processRequest(OAPageContext pageContext, OAWebBean webBean){
super.processRequest(pageContext, webBean);
OAMessageChoiceBean mcb = (OAMessageChoiceBean)webBean.findIndexedChildRecursive("Status");
FireAction firePartialAction = new FirePartialAction("empPositionChange");
mcb.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
as for tracking the error it is giving me nullpointerexecption on the OASubmitButtonBean savebBean = ((OASubmitButtonBean)webBean.findIndexedChildRecursive("Save")); -
How to set column in radio button?
hi
HtmlSelectOneRadio radio = new HtmlSelectOneRadio();
radio.setId("oneRadiolId");
radio.setBorder(0);
radio.setImmediate(immediate);
radio.setReadonly(true);
radio.setConverter(new IntegerConverter());
UISelectItems items = new UISelectItems();
ArrayList arr = new ArrayList();
arr.add(new SelectItem("one"));
arr.add(new SelectItem("two"));
arr.add(new SelectItem("three"));
items.setValue(arr);
radio.getChildren().add(items);
i am tring to dispay in single column but it is diplaying in single row , how to display children in single column.please any one help me...radio.setLayout("pageDirection");Also see:
HtmlSelectOneRadio API doc: http://java.sun.com/javaee/5/docs/api/javax/faces/component/html/HtmlSelectOneRadio.html
h:selectOneRadio TLD doc: http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/selectOneRadio.html -
How to set/change spell value after button is pressed
Hi All,
I have a requirement, I need to change the spell value(Boolean) dynamically based on the sitution. (say for eg. If i click search spell (ReadOnly) variable shouldbe set to TRUE.like that ..
I have create a dummy VO and in that VO I have created spell variables.
Can some one help me how to do this when a button is pressed, I wrote code after buttton pressed it's throwing the below error.
if(pageContext.getParameter("Create")!=null)
OAViewObject disvo = (OAViewObject)am.findViewObject("XxafpEepStageRebateValidateVO1");
OARow row1 = (OARow)disvo.first();
row1.setAttribute("ItemProperty", Boolean.FALSE);
row1.setAttribute("ReadOnly", Boolean.TRUE);
call another page..
Error(102,6): class OAViewObject not found in class xxafp.oracle.apps.qp.pricelistrebate
Thanks,
MaheshHi Mahesh
Seems you have not imported OAViewObject Class in your controller..Do the following in the import section of your controller..
import oracle.apps.fnd.framework.OAViewObject;AJ -
How to set the HOME link from two frame jsp page to no frame main page?
Hi all,
i have one main jsp page named as main.jsp.
From the main.jsp, i can click the button and link to the twoFrame.jsp.
This twoFrame.jsp have another two different jsp inside the frame called Aframe.jsp and Bframe.jsp.
i try to put HOME in the Aframe.jsp(one of the page inside twoFrame.jsp) but only the Aframe.jsp manage to link to main.jsp but the Bframe still there.
My question is: How to set the HOME link button from this twoFrame.jsp to the main.jsp? what i want is from twoFrame.jsp(two frame) to main.jsp(no frame).
rgds,
Bryan523No offense, but this is basic HTML. You shuold look into learning HTML before getting too deep into JSP. Try this: http://www.w3schools.com/html/default.asp
But as a more specific answer, you have to set a target for the link to the _parent of your frame:
<a href="main.jsp" target="_parent">Home</a> -
Hi,
I want to set a field as mandatory. It we didn't give any data in a field and save it should not accept the null value how to set it.
Regards,
MadhaviHi David,
I wrote that code but the error comes where oSBO and bmt_Short comes. What should i do for that.
And i gave a code for combo Mandatory
Dim oForm2 As SAPbouiCOM.Form
Dim oCombo As SAPbouiCOM.ComboBox
oForm2 = SBO_Application.Forms.Item(pVal.FormUID)
oCombo = oForm2.Items.Item("cbocate").Specific
If oCombo.Selected.Value = "" Or oCombo.Selected.Value = Nothing Then
BubbleEvent = False
oCombo.Active = True
SBO_Application.SetStatusBarMessage("Category Code should not be left blank")
End If
Its working but an error come 'Object Reference Not added to the Instance of an Object'
But the same code is working for EditText without any error -
How to set proxy for client-server socket connection?
Hi,
I'm using the code found on the following page to create a client (mobile) to server (pc) connection and send a text message.
http://javafaq.nu/java-example-code-503.html
This works with mobile operators without proxy, but does nothing when the operator uses a proxy. The question is, exactly how to set the proxy and port values for using that code.
Any help is greatly appreciated, thanks,It's part of the cellular settings, and is usually set up by your 3G provider. You can't choose your own proxy server
Maybe you are looking for
-
Like the question says, I have synced many many times over the almost two years I've had this phone, and I have never had this problem. Help?
-
Spaces disappear from folder name when opened thrugh Web Client
Hi, I am opening a pdf or word document through method EXECUTE of class CL_GUI_FRONTEND_SERVICES. Now if there are more than one space in the path (ex. D:tes t.pdf ) then file gets opened sucessfully if I log in through WIN client in SAP. But if i
-
ICloud mail never stops trying to get new mail
Running 10.7.2 on my MacBook Air, the whirling symbol indicates that the iCloud account never stops looking for new mail. Other accounts do not do this. This does not occur on my MacPro, my I pad or my iphone, either. Is there anything I can do to st
-
Difference between oracle join syntaxes and ANSI join syntaxes
What is difference between oracle join syntaxes and ANSI join syntaxes ? why oracle is having different syntaxes for joins than ANSI syntaxes ? Also Join syntaxes are different in some oracle vesrions ?
-
IMac running slow and windows partition not showing
I have an iMac 12.1, 2.5 ghz, i5, 4 gb ram, 500 gb hd (41 gb used) running 10.7.4. We installed windows parallel and windows 7 about three months ago. We rarely used windows and now windows doesn't work, although the icons are there. I tried to uni