How to show tooltip in data grid

I have a data grid .in that for showing toolti i have make showDataTips =true, it shows tooltip at every cell, but i need to hide the tooltip if cell is blank 

This is very easy.  IN your status field in your internal table, you simply write the icon to it.  Make sure that the status field is defined as a character field with a length of 4.  Then write the icon to it.
Type-pools: icon.
    write icon_green_light as icon to itab-status.
Then when filling the field catalog, set the ICON flag.  This puts the icon in the center of the cell in ALV.
  xfc-icon     = 'X'.
  append xfc to ifc.
Regards,
Rich Heilman

Similar Messages

  • How to show muliti language data correctly using webi reports

    Hi ,
    Can you please suggest me how to show multi language data correctly in webi reports .
    Do we need to install any lang pack in both server and client machine ?
    Thanks & Regards
    Venkat

    you mean using translation manager? or data from DB? or both.
    You need to make sure that your DB is already configured for multiple languages.
    Enable the OS for multi languages
    On XIR3.1, you will need to install language packs on the processing servers.  then you can utilize translation manager.
    Installation of Language Packs are a pain to install and update.

  • In the Alarm & Event Query VI how to show the alarm data

    In the Alarm & Event Query VI how to show the alarm data in the front pannel using the table or multicolumn listbox .thank you very much!!!

    Hi,
    Most likely there is something wrong with your specific database or your LabVIEW DSC installation. I just used the Alarm & Event Query.vi in my machine and it seems to work fine, I can see all the alarms as well as events containned in the database.
    You may considerer generate another database (change the logging directory) and see if the behavior goes away. Also, make sure you have alarms and events on that database.
    I could run the Alarm & Query.vi by just openning its front panel and placing the correct database in the appropriated control.

  • CProjects - How to show purchase order dates in the Gantt chart

    We link several types of procurement objects like a purchase order or a production order
    out of our ERP system to several cProjects tasks.
    As described in the SAP help we specify the date type in the user settings, e.g. to
    Basic Dates.
    With the production order everything is ok, a separate bar appears.
    But the bar for the purchase order is missing.
    Is it possible to choose a date type, which shows the scheduled dates for purchases
    and production orders both? Which one?
    Kind regards, Mafi

    HI,
    Did you mean that your issue was on PO's creator on the top on the Po screen ?
    If yes, I think that some issue existed in your system. In the standard system, the system will show full name of PO's creator if the SAP account is available on SAP system ( existed on check SU01 tcode). Otherelse, system will show the SAP account ID on the Po screen if SAP account was deleted.
    Hope this usefull for you.
    Otherelse, Please specify ur problem  more clearly?
    regards,
    Alex Vo.

  • How to show field Posting Date (FB60)

    Hi All...
    I have some problem with my SAP testing,
    when i try to created some testing with AP Invoice transaction FB60 @ SandBox Client 200, i can found field Posting Date.
    but when i try to create testing with FB60 @ SandBox Client 300, i can't found field Posting Date,
    does any body can give me the solution, how to display field Posting Date @ my client 300 ??
    Regards
    Ferry

    Hi,
    There must a screen varient activated for tcode FB60 in yuor 300 clent to suppress the PD field.
    In standard system it will always shown.
    Please check with your ABAPer for the screen varient activated to it or not.
    Thanks,
    Srinu

  • How to show the Current Date in the Screen as default

    Hi all,
    This is may be simple to u all, but i need the solution for this,
    I want to show the Current date in the Screen, i am using the structure. but the calendar control showing when i run the program. But i want to show the current date as default.
    Thanks
    Shankar

    Is this a screen or a report?
    If its a report, try assigning DEFAULT sy-datum (to the parameter/select-option name)
    If its a screen field, try writing this in the PBO:
    IF fieldname IS INITIAL.
    fieldname = sy-datum.
    ENDIF.
    Hope this helps.
    Sudha

  • How i use java applet data grid i have many record i need show in grid

    hi master
    sir i have many record i want show all record in applet grid how i use grid in applet
    please send me sample code of java class how send many record to grid and applet code how use applet grid
    thanks
    aamir

    Duplicate post:
    how use the jtable in java applete
    Aamir,
    If you use JApplet then you can use JTable. Just do an Internet search for "JTable" and "applet".
    Good Luck,
    Avi.

  • How to show double byte data in a Flex application

    Hi
    I am looking for a way to show UTF-8 formatted data in a Flex
    application. I have a Java app in the backend that generates an xml
    file. Some attributes in the file are encoded in UTF-8 (when data
    is Japanese or Chinese...). My Flex app is showing box characters.
    I have XSLT app that generates html based off this xml file. The
    browser i showing the Japanese characters fine.
    I am wondering what the trick is to get Flex app show this
    data.
    Thanks
    Videoguy

    It turned out to be my XP that didn't have the the right lang
    sets installed. I have two PCs. On one everything showed up fine. I
    was able to view arabic, chinese data from xml just fine. On the
    other one, same swf didn't show them. There is MS knowledgebase
    article on how to enable east asian languages etc. I didn't give it
    a try. I am using other pc for my dev now.

  • How to Show Day and Date

    In the upper right of the display screen, it shows "Wed 8:13 AM EDT." How can I get it to add the date also so I don't have to click on it to see the date? Thanks.

    For 10.4 & 10.5, a minor hack using only cut & paste & the existing OS software works for this.

  • How to show User Auditing data in dashboard/reports in MS CRM 2013 online?

    HI,
    I am having requirement to show user auditing details like user last logged in date/ session spent time in MS CRM 2013 online.
    I did not found any option to query user Auditing data.
    I found the Audit summary View but don't know how to use it.
    Could any one suggest me how to achieve this.
    Thanks
    Baji Rahaman

    Please try this 
    Public Function Decompress(ByVal arr As Byte()) As Byte()
            Dim s As Byte()
            Dim notCompressed As Boolean
            notCompressed = False
            Dim MS As System.IO.MemoryStream
            MS = New System.IO.MemoryStream()
            MS.Write(arr, 0, arr.Length)
            MS.Position = 0
            Dim stream As System.IO.Compression.GZipStream
            stream = New System.IO.Compression.GZipStream(MS, System.IO.Compression.CompressionMode.Decompress)
            Dim temp As System.IO.MemoryStream
            temp = New System.IO.MemoryStream()
            Dim buffer As Byte() = New Byte(4096) {}
            While (True)
                Try
                    Dim read As Integer
                    read = stream.Read(buffer, 0, buffer.Length)
                    If (read <= 0) Then
                        Exit While
                    Else
                        temp.Write(buffer, 0, buffer.Length)
                    End If
                Catch ex As Exception
                    notCompressed = True
                    Exit While
                End Try
            End While
            If (notCompressed = True) Then
                stream.Close()
                Return temp.ToArray()
            Else
                Return temp.ToArray()
            End If
        End Function
    Thanks & Regards Manoj

  • How To Populate An Advanced Data Grid In Flex With An XML Document Created In JAVA

    Flex Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="856" height="698" initialize="onInitData()">
        <mx:RemoteObject destination="utilityUCFlexRO" id="utilityUCFlexRO">
            <mx:method name="updateStationDetails" result="handleUpdateStationDetailsResult(event)" fault="handleUpdateStationDetailsFault(event)"/>
        </mx:RemoteObject>
        <mx:RemoteObject id="uniqueIdMasterUCFlexRO" destination="uniqueIdMasterUCFlexRO">
            <mx:method name="readByCustomerName" result="handleReadByCustomerNameResult(event)" fault="handleReadByCustomerNameFault(event)"/>
            <mx:method name="getCustomerAcDetails" result="handlegetCustomerAcDetailsResult(event)" fault="handlegetCustomerAcDetailsFault(event)"/>
        </mx:RemoteObject>
        <mx:Script>
            <![CDATA[
                import mx.events.ListEvent;
                import mx.collections.ItemResponder;
                import com.citizen.cbs.model.UniqueIdMaster;
                import mx.managers.PopUpManager;
                import mx.controls.ProgressBarMode;
                import mx.effects.Fade;
                import mx.controls.ProgressBar;
                import com.citizen.cbs.CitizenApplication;
                import mx.core.Application;
                import mx.messaging.messages.ErrorMessage;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.collections.ArrayCollection;
                import mx.controls.Alert;
                private var moduleCloseFlag:Boolean=false;
                private var v:UniqueIdMaster;
                [Bindable]
                private var customerDetails:ArrayCollection;
                [Bindable]
                private var branch:int=0;
                [Bindable]
                private var XMLDocument:XML;
                [Bindable]
                private var acDetails:XMLList;
                private var _progBar:ProgressBar = new ProgressBar();
                private function showLoading(e:Event = null):void
                    _progBar.width = 200;
                    _progBar.indeterminate = true;
                    _progBar.labelPlacement = 'center';
                    _progBar.setStyle("removedEffect", Fade);
                    _progBar.setStyle("addedEffect", Fade);
                    _progBar.setStyle("color", 0xFFFFFF);
                    _progBar.setStyle("borderColor", 0x000000);
                    _progBar.setStyle("barColor", 0x6699cc);
                    _progBar.label = "Please wait.......";
                    _progBar.mode = ProgressBarMode.MANUAL;
                    PopUpManager.addPopUp(_progBar,this,true);
                    PopUpManager.centerPopUp(_progBar);
                    _progBar.setProgress(0, 0);
                private function onInitData():void
                    utilityUCFlexRO.updateStationDetails(CitizenApplication.menuParameters["modulecode"]);
                private function handleUpdateStationDetailsResult(event:ResultEvent):void
                    if(moduleCloseFlag==true)
                        Application.application.unloadModule();
                private function handleUpdateStationDetailsFault(event:FaultEvent):void
                    var errorMessage:ErrorMessage = event.message as ErrorMessage;
                    Alert.show(errorMessage.rootCause.message);
                private function onSearch():void
                    if(txtName.text=="" || txtName.text==null)
                        Alert.show("Enter a name for search");
                        return;
                    if((txtName.text).length < 4)
                        Alert.show("Search should contain more than 3 alphabets");
                        return;
                    var d:String = txtName.text;
                    branch = CitizenApplication.initInfo.registeredUser.branchDetails.bdBranchNo;
                    uniqueIdMasterUCFlexRO.readByCustomerName(d,branch);
                    showLoading();
                private function handleReadByCustomerNameResult(event:ResultEvent):void                //In handle if record does not exists, dsiplays error message and resets the field
                    customerDetails =ArrayCollection(event.result);
                    PopUpManager.removePopUp(_progBar);
                    if(customerDetails.length==0)
                        Alert.show("Record Not Found, Enter Proper Name ");
                        onReset();
                private function handleReadByCustomerNameFault(event:FaultEvent):void
                    Alert.show(event.fault.faultDetail + " -- " + event.fault.faultString + "handleReadByCustomerNameFault");
                private function onReset():void
                    customerDetails=new ArrayCollection();
                    txtName.text="";
                private function onCancel():void
                    utilityUCFlexRO.updateStationDetails("MM0001");
                    moduleCloseFlag=true;
                private function btnBackClick():void
                    view1.selectedIndex=0;
                private function btnBackClick1():void
                    view1.selectedIndex=1;
                private function onItemClick( e:ListEvent ):void
                    if(dgCustDetails.selectedItem == null)
                        Alert.show("Select Proper Record");
                    else
                        lblId.text = e.itemRenderer.data.uimCustomerId;
                        lblName.text = e.itemRenderer.data.uimCustomerName;
                        var custId:int = Number(lblId.text);   
                        uniqueIdMasterUCFlexRO.getCustomerAcDetails(custId,branch);
                        showLoading();           
                private function handlegetCustomerAcDetailsResult(event:ResultEvent):void               
                    //XMLDocument = event.result as XML;
                    acDetails = new XMLList(event.result.menu);
                    //Alert.show("Name: "+event.result.@name);
                    PopUpManager.removePopUp(_progBar);
                    view1.selectedIndex=1;
                    //adg1.dataProvider=acDetails;
                private function handlegetCustomerAcDetailsFault(event:FaultEvent):void
                    PopUpManager.removePopUp(_progBar);
                    Alert.show(event.fault.faultDetail + " -- " + event.fault.faultString + "handlegetCustomerAcDetailsFault");
            ]]>
        </mx:Script>
        <mx:ViewStack height="688" width="856" id="view1">
            <mx:Canvas>
                <mx:Panel x="51" y="25" width="754" height="550" layout="absolute" title="Customer Search Page">
                    <mx:HBox x="174" y="26" horizontalAlign="center" verticalAlign="middle">
                        <mx:Label text="Enter Name:"/>
                        <mx:TextInput id="txtName" width="228"/>
                        <mx:LinkButton label="Search" click="onSearch()"/>
                    </mx:HBox>
                    <mx:Label text="--" id="lblId" x="40" y="194"/>
                    <mx:Label text="--" id="lblName" x="40" y="226"/>
                    <mx:DataGrid dataProvider="{customerDetails}" id="dgCustDetails" allowMultipleSelection="false" editable="false"
                        showHeaders="true" draggableColumns="false" width="718" height="373" itemClick="onItemClick(event);" x="10" y="61">
                        <mx:columns>
                            <mx:DataGridColumn headerText="Customer Id" dataField="uimCustomerId" width="150"/>
                            <mx:DataGridColumn headerText="Customer Name" dataField="uimCustomerName"/>
                        </mx:columns>
                    </mx:DataGrid>
                    <mx:ControlBar>
                        <mx:Button label="CANCEL" click="onCancel()" width="80"/>
                        <mx:Button label="RESET" click="onReset()" width="80"/>
                    </mx:ControlBar>
                </mx:Panel>
            </mx:Canvas>
            <mx:Canvas>
                <mx:TitleWindow x="10" y="10" width="836" height="421" layout="absolute">
                    <mx:AdvancedDataGrid x="6.5" y="10" id="adg1" designViewDataType="tree" variableRowHeight="true" width="807" height="278" fontSize="14">
                        <mx:dataProvider>
                              <mx:HierarchicalData source="{acDetails}"/>
                        </mx:dataProvider>
                        <mx:groupedColumns>
                            <mx:AdvancedDataGridColumn headerText="Type Of A/c" dataField="@Name" width="150"/>
                            <mx:AdvancedDataGridColumn headerText="Details Of A/c"/>
                        </mx:groupedColumns>
                        <mx:rendererProviders>
                            <mx:AdvancedDataGridRendererProvider id="adgpr1" depth="2" columnIndex="1" renderer="AcDetails1" columnSpan="0"/>
                        </mx:rendererProviders>
                    </mx:AdvancedDataGrid>
                    <mx:ControlBar height="56" y="335">
                        <mx:Button label="BACK" width="80" click="btnBackClick()"/>
                        <mx:Spacer width="100%"/>
                        <mx:Button label="EXIT" click="onCancel()" width="80"/>
                    </mx:ControlBar>
                </mx:TitleWindow>
            </mx:Canvas>
        </mx:ViewStack>
    </mx:Module>
    XML File Generated In JAVA:
    <?xml version="1.0" encoding="UTF-8"?>
    <menu>
    <AcType Name="Savings">
    <SavingAcDetails AcName="Mr. MELROY BENT" AccountNo="4" ClearBalance="744.18" ProductID="SB" TotalBalance="744.18">
    <SavingMoreAcDetails AcStatus="OPERATIVE" AcType="NORMAL" FreezeCode="No Freeze" ModeOfOper="AnyOne Single Or Survivor"/>
    </SavingAcDetails>
    </AcType>
    <AcType Name="TermDeposit">
    <TDAcDetails AcName="Mr. BENT MELROY" AccountNo="1731" ProductID="TD">
    <TDMoreAcDetails AcStatus="OPERATIVE" AcType="NORMAL" FreezeCode="No Freeze" ModeOfOper="Either or Survivor"/>
    </TDAcDetails>
    <TDAcDetails AcName="Mr. BENT MELROY" AccountNo="2287" ProductID="TD">
    <TDMoreAcDetails AcStatus="NEW" AcType="NORMAL" FreezeCode="No Freeze" ModeOfOper="Self"/>
    </TDAcDetails>
    <TDAcDetails AcName="Mr. BENT MELROY" AccountNo="78" ProductID="TD">
    <TDMoreAcDetails AcStatus="OPERATIVE" AcType="NORMAL" FreezeCode="No Freeze" ModeOfOper="Self"/>
    </TDAcDetails>
    </AcType>
    </menu>
    Tried Alot Of Examples Online But In Vain....
    Need Help....
    Thanks In Advance....

    Please help me !!!! I have been stuck up with this issue for the past two days and I need to atleast figure out if this is possible or not in the first place.

  • How to show icons in ALV grid ...

    Hi guyz ,
      A lill query ....
      In an ALV gird ,if i need to display icons in one of the columns , say i have
      a field called Status , where i need show some icons like green , yellow and
      red circles , depending on some other fileds say invoice reciept date .
      So can i get icons in ALV colums.
      Please advise .
    Thanks
    Jahan

    This is very easy.  IN your status field in your internal table, you simply write the icon to it.  Make sure that the status field is defined as a character field with a length of 4.  Then write the icon to it.
    Type-pools: icon.
        write icon_green_light as icon to itab-status.
    Then when filling the field catalog, set the ICON flag.  This puts the icon in the center of the cell in ALV.
      xfc-icon     = 'X'.
      append xfc to ifc.
    Regards,
    Rich Heilman

  • How to show a table data into an excel sheet

    Hi
    I have  a requiremet of generate an excel sheet with the data that is there in the table...
    I have an inputfiled ..if i enter data and clicks search the data related to it is displayed in table.here i want to generate an excel sheet with the data that is there in the table
    Regards
    Padma

    Hi Rekha,
    i have a dout in  Exporting Table Data Using On-Demand Streams - SAP NW 7.0 which is the subdivision (B) .
    In this he created Excel node with Resource--type(Resource)
                                                      ResourceOnDemandStreamCal--type(com.sap.tc.webdynpro.programmodel.api.IWDInputStream)
    1)i went to LocalDictonaries and in that com.sap.ide.webdynpro.UiElements--In that i dont have Resource
    2)i typed com.sap.tc.webdynpro.programmodel.api.IWDInputStream in native type
    but nothing is comm
    how to get these types
    Regars
    Padma

  • How to show ToolTip on FocusGained event

    Situation is like following:
    A JTextField has some ToolTip associated with it, I want to show that ToolTip on FocusGained event of that JTextField.

    Here it is (note that resource is simply a class file that contains color and font settings -- nohting mysterious):
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class ToolTip extends Canvas {
       protected String tip;
       protected Component owner;
       private Container mainContainer;
       private LayoutManager mainLayout;
       private boolean shown;
       private int VERTICAL_OFFSET,HORIZONTAL_OFFSET,X,Y;
       private final int HORIZONTAL_ENLARGE=10;
       private FontMetrics fm;
       public ToolTip(String tip, Component owner, Container mc, int bp, resource res) {
          this.tip=tip;
          this.owner=owner;
          this.mainContainer=mc;
          setBackground(res.ToolTipBGColor);
          setForeground(res.ToolTipFGColor);
          setFont(res.ToolTipFont);
          fm=getFontMetrics(getFont());
          X=owner.getLocationOnScreen().x;
          Y=owner.getLocationOnScreen().y;
          int w=owner.getSize().width;
          int h=owner.getSize().height;
          if (bp==0) {                         // top
             HORIZONTAL_OFFSET=3;
             VERTICAL_OFFSET=h;
          } else if (bp==1) {                  // left
             HORIZONTAL_OFFSET=w;
             VERTICAL_OFFSET=0;
          } else if (bp==2) {                  // right
             HORIZONTAL_OFFSET=-fm.stringWidth(tip)-HORIZONTAL_ENLARGE;
             VERTICAL_OFFSET=0;
          } else {                             // bottom
             HORIZONTAL_OFFSET=3;
             VERTICAL_OFFSET=-fm.getHeight();
          owner.addMouseListener(new MAdapter());
       public void paint(Graphics g) {
          g.drawRect(0,0,getSize().width,getSize().height);
          g.drawString(tip,3,getSize().height-3);
       private void addToolTip() {
          mainContainer.setLayout(null);
          setSize(fm.stringWidth(tip)+HORIZONTAL_ENLARGE, fm.getHeight());
          setLocation(X-mainContainer.getLocationOnScreen().x+HORIZONTAL_OFFSET,
             Y-mainContainer.getLocationOnScreen().y+VERTICAL_OFFSET);
          if (mainContainer.getSize().width<(getLocation().x+getSize().width)) {
             setLocation(mainContainer.getSize().width-getSize().width, getLocation().y);
          mainContainer.add(this,0);
          mainContainer.validate();
          shown=true;
       private void removeToolTip() {
          if (shown) {
             mainContainer.remove(0);
             mainContainer.setLayout(mainLayout);
             mainContainer.validate();
          shown = false;
       class MAdapter extends MouseAdapter {
          public void mousePressed(MouseEvent me) {
             if (me.getModifiers()==4) {
                mainLayout=mainContainer.getLayout();
                addToolTip();
                me.consume();
          public void mouseReleased(MouseEvent me) {
             if (shown) removeToolTip();
    }If you have problem modifying the code, noah.w is an expert in the GUI stuff, maybe he can help you.
    Hope this helps!
    ;o)
    V.V.

  • How to create PDF from data grid selected row records and save in local PC

    ok now i am need another help ;
    i am having one datagrid and one button outside the grid ,
    i   am having one datagrid in that i am having 5 records if i click a   record from the datagrid then click that button means that particular   record will save as PDF in my local PC.
    How to do that,
    Any suggession or examples.
    Thanks in advance
    B.venkatesan.

    <cfdocument>
    Usage is described in the cfml reference manual.  If you don't have one, the internet does.

Maybe you are looking for

  • Automatic updation of amount of wage type in infotype 0008 for all live emp

    Hi, Please note that I want to upadate one wage type (9001 - bonus) amount from Rs.2000 to Rs.1950 in infotype 0008 for all the live employees.   If I do the following way - Payroll: India  -- > Reimbursements, Allowances and Perks  -->  Maintain Pay

  • Why does my live site have formatting errors?

    I have uploaded my site, made changes, re-uploaded, and then did that several times.  Now, all of a sudden, the appearance of my fonts when I publish the amended site looks different than it does on iWeb - and not in a good way.  How can I fix these

  • Cue Point - navigateTourl question

    Ok, this is what I need to do, I have an flv inside an swf. when the flav gets to either 22:00 or a certain frame I need an invisible button to appear ONLY after the cue point where the flv will display a click here graphic and the invisible button w

  • Invenotory management

    Dear SAP experts, Can you help me how to implement inventoty management from basic level, beacause i am new to inventory management concept. As every one knows ingeneral when we are implementing inventory management for BW , we need concentrate speci

  • When printing a VI as a PDF on MacOS that has system controls, the system color turns into a nasty yellow

    The subject line says it all.  Happens on multiple Macs--in fact, the problem was reported by a customer.  When printing on a Mac, one of the options available instead of sending the output to a printer is to create a PDF file.  For some reason, the