Unable to set tooltip for item (sap.ui.core.Item)
sap.ui.core.Item does not have the property 'tooltip'. But it borrows 'tooltip' property and setTooltip( ), getTooltip( ) methods from sap.ui.core.Element.
Still, if I set the tooltip for item, it is not reflected. What might be wrong?
Consider the following piece of code for example:
var item = new sap.ui.core.Item({text:'Item'});
item.setTooltip('tooltip');
var oCollection = new sap.ui.ux3.Collection({ items: item
var oCollectionInspector = new sap.ui.ux3.CollectionInspector({
'fitParent' : false,
'collections' : [
new sap.ui.ux3.Collection({
'title' : 'My Accounts',
'items' : [ item]
oCollectionInspector.placeAt('content');
Tooltip is applied on the Item, but it seems Collection Inspector set its own tooltip for the Item. You can do something like this to set your own tooltip,
var item = new sap.ui.core.Item("myItem",{text:'Item'});
var oCollectionInspector = new sap.ui.ux3.CollectionInspector({
'fitParent' : false,
'collections' : [
new sap.ui.ux3.Collection({
'title' : 'My Accounts',
'items' : [ item]
oCollectionInspector.placeAt('content');
oCollectionInspector.onAfterRendering = function(){
sap.ui.ux3.CollectionInspector.prototype.onAfterRendering.apply(this,arguments);
$('#myItem').attr('title','My Tooltip');
Similar Messages
-
Problem with setting tooltips for items of a JCombobox
hi guys,
I want to set tooltips for items of JComboBox & the code that i have written is given below , but the tooltip text is set for all the items of Nonitindustrycombo but the tooltips remain the same even for Nonitdesgcombo's items.
Is that we need to refresh the ComboboxRenderer every time ?
I am not able to trace out the exact reason for this,please if anyone can suggest me something regarding this would be of great use to me.
class Searchpanel extends JPanel {
String[] str = null;
public SearchPanel(){
Nonitindustrycombo.addItem("--Select--");
ArrayList NonITindus = ERPModel.getAllNonitIndustry(); //gets all the items(strings) for Nonitindustrycombo
for (Iterator iter = NonITindus.iterator(); iter.hasNext();) {
String str = iter.next().toString();
Nonitindustrycombo.addItem(str);
SetTooltip(Nonitindustrycombo,NonITindus);
Nonitdesgcombo.addItem("--Select---");
ArrayList desg = ERPModel.getAllNonitDesg(); //gets all the items(strings) for Nonitdesgcombo
for (Iterator iter = desg.iterator(); iter.hasNext();) {
Nonitdesgcombo.addItem(iter.next());
SetTooltip(Nonitdesgcombo,desg);
class MyComboBoxRenderer extends BasicComboBoxRenderer
public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected,
boolean cellHasFocus)
if (isSelected)
setBackground(list.getSelectionBackground());
setForeground(list.getSelectionForeground());
if (0 < (index))
list.setToolTipText(str[index - 1]);
else
setBackground(list.getBackground());
setForeground(list.getForeground());
setFont(list.getFont());
setText((value == null) ? "" : value.toString());
return this;
private void SetTooltip(JComboBox combo,ArrayList arr){
str = (String []) arr.toArray (new String [arr.size ()]);
combo.setRenderer(new MyComboBoxRenderer());
public static void main(String[] args){
new SearchPanel();
Thanks ,
vishal1) You where given a working example in your last posting on this topic. Compare your code with the working code to see whats different and fix it.
2) The code you posted doesn't compile.
3) You didn't use the "Code Formatting Tags" when you posted your code so it not readable. -
Unable to set Labelfield for child element in List
Hi All,
Below is code I am trying to execute
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" verticalGap="0" xmlns:local="*" height="500" creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{list.dataProvider=arr;
]]>
</mx:Script>
<mx:List variableRowHeight="true" wordWrap="
true" id="list" labelField="
chidren.lastName" /></mx:Application>
I basically want to access the children.lastName on my List. Please let me know how exactly can I do it.
labelFunction is the best way to do this. The attached code also shows how to do it with an itemRenderer, though that would not be as efficient.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{
list1.dataProvider=arr;
list2.dataProvider=arr;
private function createLabels(item:Object):String{
return item.children.lastName;
]]>
</mx:Script>
<mx:List variableRowHeight="true"
wordWrap="true" id="list1">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.children.lastName}"/>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:List variableRowHeight="true"
wordWrap="true" id="list2"
labelFunction="createLabels"/>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services
labelFunction is the best way to do this. The attached code also shows how to do it with an itemRenderer, though that would not be as efficient.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{
list1.dataProvider=arr;
list2.dataProvider=arr;
private function createLabels(item:Object):String{
return item.children.lastName;
]]>
</mx:Script>
<mx:List variableRowHeight="true"
wordWrap="true" id="list1">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.children.lastName}"/>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:List variableRowHeight="true"
wordWrap="true" id="list2"
labelFunction="createLabels"/>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services
system Windows2003
database Oracle 9
disk space : C(50G)D(80G)E(40G)
"Copying file C:/DOCUME1/ADMINI1/LOCALS~1/Temp/SAPinst/bootstrap_keydb.1.xml to: C:/SAPinst ORACLE SAPINST.
INFO 2014-01-26 16:22:47
Copying file C:/DOCUME1/ADMINI1/LOCALS~1/Temp/SAPinst/bootstrap_keydb.xml to: C:/SAPinst ORACLE SAPINST.
INFO 2014-01-26 16:22:47
Copying file C:/DOCUME1/ADMINI1/LOCALS~1/Temp/SAPinst/CONTROL.DTD to: C:/SAPinst ORACLE SAPINST.
ERROR 2014-01-26 16:22:47
FSL-02010 Unable to set time for file C:/SAPinst ORACLE SAPINST/CONTROL.DTD.
ERROR 2014-01-26 16:22:47
FJS-00012 Error when executing script."
who can help me ..please.....
Hello Matthew,
You should also change your temp directory to something woth no spaces, something like C:\temp.
Sapisnt sometimes has problems with the spaces in the temp path, and the Universal Installer nearly always
has a problem with this.
Regards,
David
Setting tooltip for columns in a JTable
Hi!
I have a JTable inside a JScrollPane. How do I set tooltip for each columnheader of the JTable?
I have noted that if I don�t have the JTable within the JScrollPane, the columnheaders are not shown.
Regards
Johan
1) You need to set the tooptip text on the renderer for the column (yourTable.getColumnModel().getColumn(...).getHeaderRenderer()).
2) The header is a separate component to the table. When you add a table to a scroll pane it automatically adds the header to the scroll pane too. You can get the component (yourTable.getTableHeader()) and add it to your own container if you wish.
EIS error - "Unable to set locale for GlobalC"
Hello all!
I'm working with Oracle Performance Scorecard and Oracle Integration Services to generate an Essbase cube. I'm not able no generate my cube from HPS even it doesn't showing any error in the screen but in the HPS log it shows the error message "Unable to set locale for GlobalC". So, i've noticed that the problem isn't with HPS, but EIS. I decided start the EIS shell (olapicmd.exe) and the same error message was showed in the cmd prompt. Could anyone help with this issue?
Regards,
Rafael
Hello!
I've opened a SR on Oracle support. They said that EIS doesn't work on 64 bits machine
At.
Rafael
Please help: unable to set preferences for planning from workspace.
Hi Experts,
unable to set preferences for planning from workspace.(file--->preferences----->planning), when doing this task prompts " An Error occured" preferences works fine with other components IR, FR, WEB ANALYSIS.problem is only with the planning.
1) i restarted the workspace and planning services but even then the same issue.
Please help me out on this issue.
Thanks.
Hi,
Do you get the same problem if you access planning directly ? http://<planningmachine>:8300/HyperionPlanning/
Just trying to understand if it related directly to planning and maybe you will get a different error message.
Cheers
John
http://john-goodwin.blogspot.com/
Unable to set count for Select Query for BizTalk SQL receive port
Hi All,
Iam using BizTalk server 2009 classic SLQ adapter (using XML clause)for my integration to pull records from DB in to my application.
As per the DB values iam unable to set the record count as this started giving me error below (first it worked for 820 records with select Query.and then 400 and going down with respect to multiple runs).Kindly help .
Thanks in advance.
Hi Abhishek,
iam still getting the same error for 1000 records.
after turning off PreserveBOM aswell in send pipeline.
There was a failure executing the receive pipeline: "Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "Pipeline " Receive Port:
"SQLPort" URI: "SQL://XXXXX/OneC_DB/" Reason: An error occurred when parsing the incoming document: "'
', hexadecimal value 0x0B, is an invalid character. Line 188, position 3944.".
SMLets Beta 3: Unable to set DateTime for DateTime property using SetSCSMObject
Hello,
I need to set dateTime for my custom fields for Incidents. I wanted to use Set-SCSMObject for that. But it doesn't work. For other field types it is working fine.
May be I'm doing something wrong, but I don't see it. It would be great if anybody is able to help.
This is the command I'm trying to run: (I used CreatedDate for my tests)
Get-SCSMObject -Class (Get-SCSMClass System.WorkItem.Incident$) -Filter "ID -eq IR495" | Set-SCSMObje
ct -Property CreatedDate -Value [datetime]"06/08/2011 14:08"
Set-SCSMObject : String was not recognized as a valid DateTime.
At line:1 char:104
+ Get-SCSMObject -Class (Get-SCSMClass System.WorkItem.Incident$) -Filter "ID -eq IR495" | Set-SCSMObject <<<< -Proper
ty CreatedDate -Value [datetime]"06/08/2011 14:08"
+ CategoryInfo : ObjectNotFound: ([datetime]06/08/2011 14:08:String) [Set-SCSMObject], FormatException
+ FullyQualifiedErrorId : Could not assign date ,SMLets.SetSMObjectCommand
Thank you
Oliver
Hello,
You must temporary change locale in your script.
In begin of script you must change locale in "En-Us":
$OldCulture = [System.Threading.Thread]::CurrentThread.CurrentCulture
$OldUICulture = [System.Threading.Thread]::CurrentThread.CurrentUICulture
$culture = New-Object System.Globalization.CultureInfo("en-US")
[System.Threading.Thread]::CurrentThread.CurrentCulture = $culture
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
And return locale after script body:
[System.Threading.Thread]::CurrentThread.CurrentCulture = $OldCulture
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldUICulture
This has solved my issue. You have no idea how much this has made my day.
I'm in Australia trying to update/create/close incidents to a canadian server. Nothing else has worked so far, except this. The rest of the support/forums on this issue have been crap to say the least.
It would be nice if MS mainlined the SMLets into SCSM and start actually making their product useful
Set classpath for java in fedora core 1?
i am new to programming java on linux and im having trouble finding out how to set classpath in the shell, permenently. i have the sdk installed and tried the usual "hello world" test and failed. the response i would get a message telling me javac is not a bash command. i have no clue how to set classpaths in linux so i would much appreciate it if someone would show me thanks
Ok, there is two ways to achieve this. Either by setting it globally for all the user, or only for your self. If you are working on your own station and have super user access, you can set it up for all th eusers, if not, just set it for your self. How ??
for all the users, modify the file /etc/profile and include this:
PATH=$PATH:/path/to/jdk/bin:.
CLASSPATH=$CLASSPATH:/path/to/jdk/lib/tools.jar:/path/to/jdk/lib/rt.jar
export PATH CLASSPATH
If you want to add it only for ur self then, modify the lsame line in ~/.bash_profile
hope this helps
Setting ToolTips for items which are disabled.
Folks,
No offence meant if this is a repeat.
I have a JPopupMenu with Action as its components.
1) I have disabled certain menu items to false.
2) I would like to use a ToolTipText to show a message 'You have no permission'
when the user hovers over the menu items which are disabled/set to false
3) I wrote my own ToolTipText,but what is happening is that I am getting the tool tip text
for all menu items.
Please can anyone help me in how to get tooltiptext for menu items which are enabled to false?
Help much appreciated
// JPopupMenu
JPopupMenu pm = new JPopupMenu();
// Add Action
pm.add(new GraphAction());
pm.add(new DescendantsAction());
pm.add(new DebugAction()).setEnabled(false);
ToolTipTextForMenuItems.setToolTipForIndividualItem(pm.getComponent()) // Does not display any Tool Tip.
pm.add(new ResetAction()).setEnabled(false);
ToolTipTextForMenuItems.setToolTipTextForMenuItem(pm); // Shows ToolTipText for all menu items (disabled and enabled)
ToolTip Code
public class ToolTipTextForMenuItems {
private static final String TOOL_TIP_TEXT = "You have no permission";
public static void setToolTipTextForMenuItem(JPopupMenu popupMenu){
for (int i=0; i<popupMenu.getComponentCount(); i++){
Component c = popupMenu.getComponent(i);
if (c instanceof JComponent) {
((JComponent)c).setToolTipText(TOOL_TIP_TEXT);
public static void setToolTipForIndividualItem(Component c){
if (c instanceof JComponent) {
((JComponent)c).setToolTipText(TOOL_TIP_TEXT);
}
Yes,I have looked at the Abstract Action code sent in
I have not used Action and Abstract Action before,hence if you can/could just
modify this as per my requirement,then I can enhance on this.
No offence meant for the above
Thanks
Unable to set CLASS_PATH for j2ee.jar
Hello all,
I have a peculiar problem. I have included the j2ee.jar path in my XP Home Edition environment variable, but javac is unable to get packages from there. I have echo-ed the CLASS_PATH in DOS command prompt and it reports the correct path of j2ee.jar. What's amazing is that when I type the full javac command with -classpath option (javac -classpath ____/j2ee.jar *.java) everything compiles well. I am lost here. Does someone here has a solution to this?
Thanks for your help in advance.
With XP, I had the same problem even if I had CLASSPATH. AFter lot of headbreaking I realized my J2EE_HOME and JAVA_HOME were part of user variables in the environment. But CLASSPATH I defined in the System variables and CLASSPATH was set with %J2EE_HOME%\lib\j2ee.jar which was the culprit. Once I moved the J2EE_HOME from user variables to system variables ..lo behold ..it was working and I did not have to substitue the j2ee.jar on the command line.
Unable to set parameters for "Act as Prox" in OBI11g
Hi Gurus,
following Mark Rittman's blog I was able to set parameters and I could use this feature in OBI10g.
However, in OBI 11g I was not able.
1. In the init block of Proxyblock I am not able to add SET_RUNAS to Execution Precedence
The Add button is inactive.
2. In the init block of Proxylevel I am not able to add Proxyblock to Execution Precedence .
Only the SET_RUNAS available.
What to do?
Any ideas and help are appreciated!
Thanks
Laszlo
Hi Laszlo,
Check this,
Re: Unable to select Connection pool when creating init block for current_month
Regards,
Dpka
Unable to set permissions for archiving
Using G5 iMac, OS 10.4.11 with iDVD 6. I have followed the instructions 1 thru 3 in help for setting permissions to archive a dvd project without any problem. However the last instruction is "Click Apply to enclosed items". I can not find anywhere to do this. Any help will be greatly appreciated. Regards from Ireland.
You are right. There is no place to "click apply to enclosed items". Just ignore that instruction, as it seems to be unnecessary. You already set your permissions by doing steps 1-3.
Unable to set status for subscreen
Dear Experts,
In my subscreen, I want to set the fct code for enter.
I am not able to set the status so that i can provide the fct code under the standard function keys.
In my subscreen I have a list of input screen fields, when i enter the first input field and press enter i want to move to the next field.
Please provide me an alternative so that i can set the status and write the relavant code using set/get cursors.
Thanks and Regards,
Kawish.
hi Kawish
You only need set a status for main screen at the output event. In this status, you need assign a function code to 'Function Keys'-> this first function button, it`s 'Enter'. you can debug to see it.
the PAI event of subscreen also will response this function code, then you can control your cursor in PBO, blow code is module of subscreen:
module status_0101 output.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
set cursor field 'LGORT'.
if lv_flag eq 'X'.
set cursor field 'WERKS'.
endif.
endmodule. " STATUS_0101 OUTPUT
*& Module USER_COMMAND_0101 INPUT
* text
module user_command_0101 input.
case sy-ucomm.
when '&ENTER'.
lv_flag = 'X'.
endcase.
endmodule. " USER_COMMAND_0101 INPUT
hope can help you.
regards,
Archer
Maybe you are looking for
-
hi,when ı work on photoshop suddenly my computer restart but i have saved my project before restart.and when ı want to open my psd , photoshop alert me with this messagge ;Could not complete your request because the file is not compatible this versi
-
I recently got an iPad and want to use it in the classroom toad in teaching history and geography, any suggestions on how to get started?
-
Last night my phone was nearly dead but I placed it on charge. Through the night am guessing one of my dogs knocked the plug out. This morning I woke up the phone was dead. I placed it on charge and I got a solid red light from the led but its not tu
-
I have copied code from one set of files that work and pasted them into another set of files and they do not work. The site I am developing is for an artist. You choose your medium and a field of pictures appear. When you choose an image it enlarg
-
REplication of Material Master from ECC to CRM - NO_STRUCT_DEFINITION Error
HI CRM Experts, I am trying to replicate master data for material from ECC to CRM. I have done the required customizing downloads. Done with downloading of DNL_CUST_PROD0 and DNL_CUST_PROD1. I have got the Material types in CRM with categories R3PROD