NOT function wrong behaviour

HI everyone,
I have been trying to get the opposite value of a binary channel using NOT function and i don't get the right values.
i'm extracting bits from a word with GetB
then i have to use CTNV to clean the NOVALUE data because of the malfunction of the GetB (already corrected for Diadem 2012 but not for my 10.2)
and at last i will like to get the invert value so: 0 will be 1 and 1 will be 0
These is the code that i'm using and the results:
Call ChnCalculate("Ch(""[1]/CHFS Bit 0"")=GetB(Ch(""[1]/CH 2 CHFS""),0)")
Call ChnCalculate("Ch(""[1]/CHFS Bit 0"")=Ch(""[1]/CHFS Bit 0"")+CTNV(Ch(""[1]/CHFS Bit 0"")>1)")
Call ChnCalculate("Ch(""[1]/CHFS Bit 0_a"")=NOT (Ch(""[1]/CHFS Bit 0""))")
Results:
1 = -2
0 = -1
i can correct with an offset but will be more time for process the data... and if is a malfunction like in GetB is important to correct too...
I'm doing something wrong or is a real malfunction ?
Thanks in advance
Rafael
Solved!
Go to Solution.

Hello Rafael,
the problem here is the assumtion that true is equal 1.
This is not true. In VB true is -1 and in general there is only one real assumtion for bool true which is "true is not false".
MsgBox CInt(true)
==> -1
MsgBox CInt(false)
==> 0
So after changing your formula to
Call ChnCalculate("Ch(""[1]/CHFS Bit 0_a"")=NOT CBool((Ch(""[1]/CHFS Bit 0"")))")
 Your results will go to 0 and -1 which is true and false.
But now your case. Why does NOT 1 result in -2.
Thats easy because its a logical operation to every single bit in the integer number
1 = 00000000000000000000000000000001
-2 = 11111111111111111111111111111110
You can validate this with the Programmer View of Microsfts calc.exe
NOT 1 also results in -2
So everything is working well. Even if its a little bit unexpected.
Call ChnCalculate("Ch(""[1]/CHFS Bit 0_a"")=Abs(NOT CBool((Ch(""[1]/CHFS Bit 0""))))")
 Results in what you want.
greetings from rainy germany
Andreas

Similar Messages

  • I just downloaded Photoshop Elements 13 and IMPORT is not functional.    What is wrong?

    I just downloaded Photoshop Elements 13 and IMPORT is not functional.    I reinstalled the printer /scanner and still not functional.   My computer is recognizing the printer.   What is wrong?

    I guess the first thing you now need to do is to get the latest drivers for your printer because as you say you uninstalled it from your machine and now reinstalled it again.  I don't know why you thought printer should have been uninstall;led but anyway, please reinstall the driver and then see if it is recognized by your operating system and try scanning something as a test from outside the PSE13 before going back to PSE13 and trying to scan your real image.
    Please post back so that Barbara or R_Kelly can help you as I don't use Apple Mac.

  • Officejet Pro 8500 A909g (all in one) wireless radio not functioning

    Ran network test report and received an Error message: Officejet Pro 8500 A909g (all in one) wireless radio not functioning.
    the menu screen says its on and the blue light is on, but no connection.
    Appears to be a hardware problem, any ideas.
    Thanks

    Hello Minabird4
    Welcome to the HP Forums, I hope you enjoy your experience!
    I understand that your wireless radio is not working on your HP Officejet 8500. This could be a hardware issue if the wireless card has failed completely, but I would like you to try the HP Support document: Performing a Partial Reset of the All-in-One. If resetting the printer as the document gets you to do does not fix the issue, it would be recommended that you contacted HP technical support for repair options.
    US support link to contact options for laptops purchased in the US.
    http://h10025.www1.hp.com/ewfrf/wc/contacthp?cc=us&lc=en
    Outside of US support link to contact options for laptops purchased outside the US.
    http://www8.hp.com/us/en/contact-hp/ww-contact-us.html
    I would like to thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Drop Down Menu not functioning

    I'm very VERY new to dreamweaver/fireworks but have been making small changes to multipul websites for a company. They have asked me to come up with a totally new design for their primary webpage and I'm having an issue with the drop-down menu.
    I'm created the menu in fireworks using the hotspot tool and it "previews" just fine in both fireworks and dreamweaver. I went through the export process in fireworks and exported the hotspots/images and html code into my primary folder for the website. I pasted the html-code in the location that I wanted on the webpage.
    When I upload the page and go to view it the drop-down-menu does not function properly. I have to add an <div> after my .jpg banner for the images of the dropdown to appear. Even then the pull-down-menu does not show up properly.
    *Side note* the page also loads VERY SLOWLY now, not sure why. In an attempt to start over I access the "remote view" of the webpage through dreamweaver and deleted all but the "Admin" folder which it did not allow me to delete? Did I majorly mess something up here?
    I'm also attachin and image that is a screenshot of what the menu/root folder looks like in dreamweaver
    www.greatermichiganpmc.org <--page
    Code for drop-down:
    <div id="container">
      <div id="header">
        <div align="center">
          <p align="center">
            <!-- end #header -->
            <img src="index-banner.jpg" width="700" height="223" /></p>
          <div id="FWTableContainer1508856550"> <img name="indexpulldown" src="indexpulldown.gif" width="699" height="32" border="0" id="indexpulldown" usemap="#m_indexpulldown" alt="" />
              <map name="m_indexpulldown" id="m_indexpulldown">
                <area shape="rect" coords="601,6,691,26" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(100);"  onmouseover="MM_menuShowMenu('MMMenuContainer0914133643_0', 'MMMenu0914133643_0',601,26,'indexpulldown');"  />
                <area shape="rect" coords="503,6,593,26" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(100);"  onmouseover="MM_menuShowMenu('MMMenuContainer0914133421_1', 'MMMenu0914133421_1',503,26,'indexpulldown');"  />
                <area shape="rect" coords="404,6,493,28" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(100);"  onmouseover="MM_menuShowMenu('MMMenuContainer0914133324_2', 'MMMenu0914133324_2',404,28,'indexpulldown');"  />
                <area shape="rect" coords="304,6,394,26" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(100);"  onmouseover="MM_menuShowMenu('MMMenuContainer0914133237_3', 'MMMenu0914133237_3',304,26,'indexpulldown');"  />
                <area shape="rect" coords="206,6,295,28" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(100);"  onmouseover="MM_menuShowMenu('MMMenuContainer0914133022_0', 'MMMenu0914133022_0',206,28,'indexpulldown');"  />
                <area shape="rect" coords="106,6,196,26" href="http://www.greatermichiganpmc.org/news.html" alt="" />
                <area shape="rect" coords="6,6,97,28" href="http://www.greatermichiganpmc.org" alt="" />
              </map>
              <div id="MMMenuContainer0914133643_0">
                <div id="MMMenu0914133643_0" onmouseout="MM_menuStartTimeout(100);" onmouseover="MM_menuResetTimeout();"> <a href="http://www.greatermichiganpmc.org/uastar.html" id="MMMenu0914133643_0_Item_0" class="MMMIFVStyleMMMenu0914133643_0" onmouseover="MM_menuOverMenuItem('MMMenu0914133643_0');"> UA Star </a> <a href="http://greatermichiganpmc.org/uatraining.html" id="MMMenu0914133643_0_Item_1" class="MMMIVStyleMMMenu0914133643_0" onmouseover="MM_menuOverMenuItem('MMMenu0914133643_0');"> UA Training </a> </div>
              </div>
            <div id="MMMenuContainer0914133421_1">
                <div id="MMMenu0914133421_1" onmouseout="MM_menuStartTimeout(100);" onmouseover="MM_menuResetTimeout();"> <a href="http://www.greatermichiganpmc.org/links.html" id="MMMenu0914133421_1_Item_0" class="MMMIFVStyleMMMenu0914133421_1" onmouseover="MM_menuOverMenuItem('MMMenu0914133421_1');"> Links </a> <a href="http://www.greatermichiganpmc.org/buyersguide.html" id="MMMenu0914133421_1_Item_1" class="MMMIVStyleMMMenu0914133421_1" onmouseover="MM_menuOverMenuItem('MMMenu0914133421_1');"> Buyer's Guide </a> <a href="http://www.greatermichiganpmc.org/career.html" id="MMMenu0914133421_1_Item_2" class="MMMIVStyleMMMenu0914133421_1" onmouseover="MM_menuOverMenuItem('MMMenu0914133421_1');"> A Career </a> <a href="http://www.greatermichiganpmc.org/training.html" id="MMMenu0914133421_1_Item_3" class="MMMIVStyleMMMenu0914133421_1" onmouseover="MM_menuOverMenuItem('MMMenu0914133421_1');"> Training </a> <a href="http://www.mitripartite.com/survey.htm" id="MMMenu0914133421_1_Item_4" class="MMMIVStyleMMMenu0914133421_1" onmouseover="MM_menuOverMenuItem('MMMenu0914133421_1');"> MTC Survey </a> </div>
            </div>
            <div id="MMMenuContainer0914133324_2">
                <div id="MMMenu0914133324_2" onmouseout="MM_menuStartTimeout(100);" onmouseover="MM_menuResetTimeout();"> <a href="http://www.greatermichiganpmc.org/officers.html" id="MMMenu0914133324_2_Item_0" class="MMMIFVStyleMMMenu0914133324_2" onmouseover="MM_menuOverMenuItem('MMMenu0914133324_2');"> Officers </a> <a href="http://www.greatermichiganpmc.org/members.html" id="MMMenu0914133324_2_Item_1" class="MMMIVStyleMMMenu0914133324_2" onmouseover="MM_menuOverMenuItem('MMMenu0914133324_2');"> Members </a> </div>
            </div>
            <div id="MMMenuContainer0914133237_3">
                <div id="MMMenu0914133237_3" onmouseout="MM_menuStartTimeout(100);" onmouseover="MM_menuResetTimeout();"> <a href="http://www.greatermichiganpmc.org/meetings.html" id="MMMenu0914133237_3_Item_0" class="MMMIFVStyleMMMenu0914133237_3" onmouseover="MM_menuOverMenuItem('MMMenu0914133237_3');"> Meetings </a> <a href="http://www.greatermichiganpmc.org/community.html" id="MMMenu0914133237_3_Item_1" class="MMMIVStyleMMMenu0914133237_3" onmouseover="MM_menuOverMenuItem('MMMenu0914133237_3');"> Community </a> </div>
            </div>
            <div id="MMMenuContainer0914133022_0">
                <div id="MMMenu0914133022_0" onmouseout="MM_menuStartTimeout(100);" onmouseover="MM_menuResetTimeout();"> <a href="http://www.greatermichiganpmc.org/tsr.html" id="MMMenu0914133022_0_Item_0" class="MMMIFVStyleMMMenu0914133022_0" onmouseover="MM_menuOverMenuItem('MMMenu0914133022_0');"> TSR </a> <a href="http://www.greatermichiganpmc.org/histroy.html" id="MMMenu0914133022_0_Item_1" class="MMMIVStyleMMMenu0914133022_0" onmouseover="MM_menuOverMenuItem('MMMenu0914133022_0');"> History </a> <a href="http://www.greatermichiganpmc.org/staff.html" id="MMMenu0914133022_0_Item_2" class="MMMIVStyleMMMenu0914133022_0" onmouseover="MM_menuOverMenuItem('MMMenu0914133022_0');"> Staff </a> <a href="http://www.greatermichiganpmc.org/awards.html" id="MMMenu0914133022_0_Item_3" class="MMMIVStyleMMMenu0914133022_0" onmouseover="MM_menuOverMenuItem('MMMenu0914133022_0');"> Awards </a> </div>
            </div>
          </div>
        </div>
      </div>
      <div id="sidebar1">
        <h3><img src="index-side.jpg" width="200" height="581" /></h3>
      <!-- end #sidebar1 --></div>
    Any and all help is appreciated. Thank you in advance

    Firstly, the link to the imported stylesheet is wrong - it appears to be pointing to your hard drive:  that needs to be fixed and if it relates to the menu, likely the reason why the menu isn't visible.
    @import url("../../../../../../../../S|/All Users Documents/Graphics/Chris/Greater Michigan PMC/indexpulldown.css");
    Are you working in a defined DW site?  It's very important that you are - it's the way that DW keeps track of all the links and paths.
    Define a site:
    http://kb2.adobe.com/cps/140/tn_14028.html
    Next:  Those FWs exported dropdowns are atrocious, there was a reason the functionality was removed from the latest FWs and DW.   Even though a CSS version is available, it may be ok to use for protyping for certainly not for live production sites.
    POP UP MENUS - why not to use them:
    http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
    http://apptools.com/rants/jsmenu.php
    http://apptools.com/rants/menus.php
    There are much better ways to build a dropdown menu, one of them is the Spry Menu available in CS3 and CS4.  They too, can cause issues, but at least the links throughout your site are inside the html code, not in the javascript.
    Spry  Menus: - already included with CS4
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WS8B985763-4DFA-4415-B242-B2C 2D7DED657a.html
    http://www.adobe.com/devnet/dreamweaver/articles/first_cs4_website_pt5_03.html
    Better Ways to create CSS dropdown menus  (user friendly and search engine friendly):
    CSS Dropdown menus by Suckerfish:
    http://www.htmldog.com/articles/suckerfish/dropdowns/
    As for this:
    *Side note* the page also loads VERY SLOWLY
    now, not sure why. In an attempt to start over I access the "remote
    view" of the webpage through dreamweaver and deleted all but the
    "Admin" folder which it did not allow me to delete? Did I majorly mess
    something up here?
    I'm not really sure what you mean and which folders you deleted from where  ;-)

  • Web Photo Gallery - Contact info not functional?

    When I build a web gallery, using the Flash Gallery (default) in the 'Template Browser', no matter what info I put in the 'Contact info' and 'Web or Mail link' boxes (under Site Info), it does not work.
    Example, under 'Contact info' I put the word 'Contact'....in the 'Web or Mail Link' I put 'mailto: [email protected] (I have not put my actual email here for purposes of this forum, and yes my email address is valid and will both send and receive in Outlook).
    So anyways, when I upload the new web gallery using Dreamweaver CS3, or if I just simply preview it using the 'Preview in Browser' button, well the word 'Contact' appears in the upper right corner of the web page (photo gallery - as it should since that is what I put as word in the 'Contact info' box, but yet when I click on the word 'Contact' it it does nothing. Actually when I click on the word 'Contact' the first time, there is a line that appears below (as if to identify a link). But as I say it does nothing, opens no email window, nada! Except for when I click on the word 'Contact' subsequently, there is no more line underneath as if the link had become inactive???
    I tried using another email address of mine, which is also shorter, but it does not work either....I also tried putting my main homepage address into the ''Web or Mail link' box and still nothing happens...it's as if the link is not functional...?
    Has anybody else experienced this? Am I doing something wrong? Is it maybe just a Flash Gallery bug? (Because I have not tried using other type galleries i.e Blue Sky)

    I have the exact same problem, step by step in Lightroom 2.4. I'm using Vista Ultimate SP2 and Internet Explorer 8.
    Have anyone found a solution to this problem or is it just the two of us?

  • Rpt-files do not function anymore after deploying to a different database

    first: I use CR. 10.2.3600.0 and Asp.NET with Visual Studio 2005
    I developed my reports against a Develepment-Database and everything worked fine.
    Then, I published my Website with the reports.
    Also I made a backup of my Develepment-Database to become the Productive-Database.
    All pages of my website function well (database-queries etc.), but when I try to call one of my reports a queerish error message occurs:
    "This field name is not known. Error in File C:\WINDOWS\TEMP\...\{...}.rpt: Error in formula. '{xyz.ds_id} = {?@ds_id} and '."
    I mean, the database is the "same" as before?!?
    (BTW: the logon to the database is set at runtime and is ok.)
    Why do the reports not function anymore?
    The only workaround I found is to open the report in Visual Studio 2005 again and select  "Crystal Reports/Databases/Check Database" against the Productive-Database.
    After that the report works! BUT THIS COULD NOT BE THE SOLUTION, this means that I cannot publish my website to a different database on a customers network!!!

    I tried this:
    Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
            Dim myTables As Tables = myReportDocument.Database.Tables
            ' Get Location of Database from web.config
            Dim Location As String = String.Empty
            Try
                For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
                    Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
                    myTableLogonInfo.ConnectionInfo = myConnectionInfo
                    myTable.Location = myConnectionInfo.DatabaseName & ".dbo." & myTable.Location.Substring(myTable.Location.LastIndexOf(".") + 1)
                    myTable.ApplyLogOnInfo(myTableLogonInfo)
                Next
            Catch ex As Exception
                Me.LabelError.Text = "(SetDBLogonForReport) " + ex.Message
            End Try
        End Sub
    and get the error:
    ex.Message     "Fehler beim Laden der Datenbankinformationen.
    Details: Die Datenbank-DLL 'crdb_query.dll' konnte nicht geladen werden.
    Fehler in der Datei C:\DOKUME~1\MSCHAE~1\LOKALE~1\Temp\RzpReport {748C95B6-70EC-45B9-953D-64DA215BD9DC}.rpt:
    Fehler beim Laden der Datenbankinformationen"
    which means in english:
    ex.Message     "Error while loading database information.
    Details: the databse-dll 'crdb_query.dll' could not be loaded.
    Error in file C:\DOKUME~1\MSCHAE~1\LOKALE~1\Temp\RzpReport {748C95B6-70EC-45B9-953D-64DA215BD9DC}.rpt:
    Error while loading database information"
    I debugged the code and recognized that the error appears while setting the .Location property...?!?
    My DatabaseName is "Rezepturverwaltung".
    Example 1 with a command:
    Befor setting the Location of mytable the value of the prpperty is e.g. "command".
    After setting the value like in code above the value changes to "Rezepturverwaltung.dbo.command"
    Example 2 with a stored procedure:
    Befor setting the Location of mytable the value of the prpperty is e.g. "sp_GetData".
    After setting the value like in code above the value changes to "Rezepturverwaltung.dbo.sp_GetData"
    What`s going wrong furthermore???
    Edited by: Markus Schfer on Aug 31, 2009 9:56 AM

  • Search with "Current Node + All Subfolders" not functioning correctly

    Hi,
    We are having an issue with the search function of SCCM 2012 Admin Console. We have built multi-level folder structure to SCCM which matches our organizational unit structure in AD.
    The issue occurs when trying to search with "Current Node + All Subfolders" option in a folder to get listing of all collections nested in the structure. As a result we get incomplete list of collections and majority of them are not showing
    up. Sometimes the console even crashes when trying to do this kind of search. Note that this behaviour only occurs when searching inside a folder, not in the device collections root node.
    We managed to trace the SQL query in the above situation from SMSProv.log, and it is as follows:
    select  all SMS_Collection.SiteID,SMS_Collection.CollectionType,SMS_Collection.CollectionVariablesCount,SMS_Collection.CollectionComment,SMS_Collection.CurrentStatus,SMS_Collection.HasProvisionedMember,SMS_Collection.IncludeExcludeCollectionsCount,SMS_Collection.IsBuiltIn,SMS_Collection.IsReferenceCollection,SMS_Collection.LastChangeTime,SMS_Collection.LastMemberChangeTime,SMS_Collection.LastRefreshTime,SMS_Collection.LimitToCollectionID,SMS_Collection.LimitToCollectionName,SMS_Collection.LocalMemberCount,SMS_Collection.ResultClassName,SMS_Collection.MemberCount,SMS_Collection.MonitoringFlags,SMS_Collection.CollectionName,SMS_Collection.PowerConfigsCount,SMS_Collection.RefreshType,SMS_Collection.ServiceWindowsCount from vCollections AS SMS_Collection  where (SMS_Collection.SiteID
    in (select  all Folder##Alias##810314.InstanceKey from vFolderMembers AS Folder##Alias##810314 
    where (Folder##Alias##810314.ObjectTypeName = N'SMS_Collection_Device'
    AND Folder##Alias##810314.ContainerNodeID in
    (16777237,16777374,16777384,16777385,16777375,16777376,16777377,16777378)))
    AND SMS_Collection.CollectionType = 2) order by SMS_Collection.CollectionName
    From this we noticed that not all ContainerNodeIDs are searched, but a list of only 8 ContainerNodeIDs. These ContainerNodeIDs remain the same if the search is done again in the same folder. The same behaviour repeats also in other folders with a different
    list of ContainerNodeIDs.
    For clarification I'll attach a picture which shows our folder structure with ContainerNodeIDs and ParentContainerIDs. We have also marked the containers which were present in SQL statement. From this you can clearly see there should have been far more ContainerNodeIDs
    than listed in the SQL query. Is this a bug in the admin console or could this be a problem with our site database? Is anyone else experiencing similar issues? We have written a custom
    powershell script that reads containers from SMS_ObjectContainerNode WMI-class recursively and is able to return complete list of folders and their subfolders, so we assume that our site database and WMI on site server is functioning correctly.
    We noticed this on CU2 (could have been present also earlier) and updating to CU3 did not fix the problem. Currently we are running SCCM 2012 SP1 CU3 with one primary site. All components besides distribution point is running on the site server. Distrubution
    point is running on a separate server. Our SQL server is running on the site server.
    Best Regards,
    Juha-Matti

    Sorry for the very long delay. I created the ticket in the autumn of last year and just received the final verdict to this issue.
    Microsoft support said they were able to reproduce the problem and that they contacted the product group about this issue. It turns out that this behaviour is by design (wait, what?) and since it is by design there is nothing they
    can/will do about it.
    So the only choice is to request a tailored customization for SCCM2012, which probably in this case (as it is by design) would cost.
    I feel a bit puzzled: how can it be by design if it clearly does not work?

  • My headphone are not functioning correct

    Ok, recently i just found this forum and im glad to post my problem here. I am using SB Li've! 4., everything is working fine except my headphones. It's like only my Right side is working and my left side is not working when i plugged the plug into the GREEN output. I am using it for gaming and since only right side is working it really affect my game play and i have been changing from Surround speakers to Stereo Headphones but still only RIGHT side is working and left side is not working at all, i tried with my ear piece yet, only my right side is working and left side is not working. But if i pushed a little hard on my HEADPHONE's plug sometimes both side is working fine and if i let go of my finger it becomes right side working and left side not working. So what is the problem? My headphone and ear piece are new, yet both got same problems. Please help me.
    Silver279

    I did use on other devices, the only one i used on is my computer. Is it something wrong with my soundcard, settings or what? I had the latest drivers, and some upgrading softwares on it and also i changed every settings I could see on the Sound settings and tested with different outputs and they are not even working at all. The only solution is sometimes i pressed very hard on the plug it only work awhile but then no more if i let go of it. I bought a new headphone a few hours ago and its the same still, and I go to Sound settings and change from Surround speakers to Stereo Headphones and then to Surround speakers and to Stereo Headphones again and again like 20-30 times repeatly and it worked fine. But after i rebooted my PC it became the same, One side can be heard and the other side is not functioning at all, I might need to switch repeatly again in Settings to make it work again.. so.. its really annoying and after sometime my headphone maybe will get affected by mass-mass-switching.. please help me thanks !

  • Wrong behaviours with TableCellRenderer

    Hi.
    I implemented my tablecellrenderer for dates. The problem is that the values of the column I rendered are not visually selected when I click on them.
    Moreover:
    when I click on a cell, sometimes it changes its content, according to the row I was selecting before.
    if three rows have the same date value, all three are selected.
    I tried using setOpaque (true) but this selected all the rows in that column.
    Here is my renderer..thanks for any little help
    public class DateTableCellRenderer extends JLabel implements TableCellRenderer {
    Timestamp curDate;
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int rowIndex, int vColIndex) {
    if(value!=null){
    if (value instanceof Timestamp) {
    curDate = (Timestamp) value;
    SimpleDateFormat a = new SimpleDateFormat("dd/MM/yyyy", Locale.ITALY);
    String text = a.format(curDate);
    this.setText(text);
    if (isSelected) {
    this.setOpaque(true);
    setForeground(table.getSelectionForeground());
    setBackground(table.getSelectionBackground());
    } else {
    this.setOpaque(false);
    setForeground(table.getForeground());
    setBackground(table.getBackground());
    return this;
    }

    You're right. I forgot using the code tags to format my class. Here is my situation:
    I have a dinamic JTable to which I added a TableSorter. In the model I added object like BigDecimal, Strings and Timestamp and I created a TableCellRenderer for each type I can have inside the table. The wrong behaviours are those described in the previous post.
    Any help?
    Thanks camickr, but I think that the link you gave me is wrong

  • Reg:pojo datacontrol not functioning wehn exposed as proxy for webservice.

    Hi ,
    I have a class which sets the request and header part and for this data control is created and hence works fine when worked by dragging to page.
    Sample :
    Class1{
    function setheader (){  ....  }
    function setrequest() { .... }
    function invokeservice(){
    Class1 objClass = new Class();
    objClass .setheader();
    objClass .setrequest();
    } ----------- this works fine.
    But when I use setters in different class, that works through normal run(executingjava class). But not functioning when exposed as data control.
    Class1{
    function invokeservice(){
    Class2 objClass = new Class();
    objClass .setheader();
    objClass .setrequest();
    Class2{
    function setheader (){  ....  }
    function setrequest() { .... }
    This doesnt function. I want to know the reason for not working, because by this only we can edit the validations of data control attributes , which is not possible in the earlier one.
    Regards,
    Dinesh Vishnu Kumar C.

    I didn't clearly understand the question. If the question is , both Class1 and Class2 are exposed as data control and used in a page, and then you want to update Class2 properties from Class1 then the approach you took is wrong
    You cannot instantiate data control instance of Class2 as you are trying, rather you may need to use binding API to set the value or to get hold of the instnace. See the code snippet given here http://biemond.blogspot.in/2009/03/some-handy-code-for-backing-beans-adf.html
    If you have some method to initialize the properties and this method is added page def as method action ,then following will work
    // get the binding container
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    // get an Action or MethodAction
    OperationBinding method = bindings.getOperationBinding("someMethodAction");
    Map paramsMap = method.getParamsMap();
    paramsMap.put("param1","value1") ;
    paramsMap.put("param2","value2") ;
    method.execute();

  • Flash swf from Flash CS4 not functioning in Director

    I  am building an app in Shockwave and am using a Flash swf as the navigation bar to change screens etc. I created the initial swf in Flash MX 2004  published for Flash 6.0 and Actionscript 2.0. This worked fine. I then needed to add some more screens and since  I now have Flash CS4 Pro I decide to use this to make the changes published for Flash 6.0 and Actionscript 2.0. I created the changes, tested the movie, everything runs fine in Flash The published swf works fine when executes from the desktop. When I import into Director, the swf does not function. Is there some step that I am missing?
    What am I doing wrong?

    Well nothing is working, no rollover buttons , no changing screens, nada.
    The Code worked when published with Flash MX 2004. I brought the file into
    Flash CS4 Pro, made my additions, published. Tested the swf alone. But when
    I import into Director MX version 9.0 it is not functioning.

  • Menubar shortcut not functional if focus is on string control

    Dear All,
    I am wondering if this is the expected behavior or if I am doing something wrong:
    On a panel I have a string control; on double clicking I open a file select box to select a file, the file name then is displayed on this string control. After this action, this string control is the active control, indicated by the grey frame.
    I also have a menu bar with some shortcut keys defined, such as F2. It appears that F2 is not functional as long as the  focus is on the string control. This is inconvenient because a typical user action is selecting a file and then pressing Fx. To solve this problem the user needs to click somewhere on the panel to move the focus to another control. Of course this could be done programmatically, but this extra effort is not necessary say for ring controls or numeric controls. Also in numeric controls I can change the numbers, but even if a numeric control is the acitve control because of editing the value F2 immediately works.
    Help is appreciated.
    Thanks,
    Wolfgang
    Solved!
    Go to Solution.

    I just tried in a project of mine and had no problems in calling a menu function with its shortcut key while the focus is on a string control with a callback attached: maybe the problem lies in the string control callback, which is possibly trapping the keypress event before it is sent to the panel.
    I tested both with "regular" shortcut keys (such as Ctrl + P) and with F2 only as the shortcat. My callback is not trapping EVENT_KEYPRESS event.
    EDIT: I tried by swallowing keyboard presses with     if (event == EVENT_KEYPRESS) return 1;  but I am still able to operate on menus with shortcut keys. Seems the reason lies elsewhere: you can try progressively excluding parts of control callback and see when menus return responsive.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • HCPL0631 is not functioning properly please help!!

    To adminitrator,
    I am trying to use the HCPL0631 optocoupler for my simulation. However, this optocoupler will not function properly and will not give me a good result.
    I have attached the circuit diagram in the attachment, please let me know what is wrong with my circuit causing the components to fail.
    thank you for your kind attention
    Message Edited by justinycc on 04-11-2009 06:40 AM
    Message Edited by justinycc on 04-11-2009 06:41 AM
    Solved!
    Go to Solution.
    Attachments:
    circuit1.PNG ‏69 KB

    Actually, never mind about that, the model for the HCPL0631 isn't very good. It doesn't actual have a open collector output. It also has a built in VCC of 5V, so the power supply that you are attaching isn't really being used. Your problem is grounding. Multisim constructs mesh current and node voltage equations for simulation and can't do it accurately if you don't specify the ground for your circuit.
    Try adding a ground to the GND terminal of the optoisolator. You should also have a ground attached to the cathode of the optoisolator or neutral wire of the function generator. The GROUND component is in the Master Database in the Sources group and in the POWER_SOURCES family.
    Yi
    Software Developer
    National Instruments - Electronics Workbench Group

  • ICal invitations not functioning properly

    My invitations in iCal are not functioning properly; perhaps it's something I'm doing wrong.
    I have ticked all of the relevant boxes in both iCal and Mail to ensure that the invitations are automatically added to iCal. Here's the problem: According to the Apple instructions, you're supposed to tick on the invitation in iCal, then tick on the mail icon in the lower left corner to view your choices in the Notification area. That's supposed to allow you to accept, decline or tentatively accept an invitation. On my iCal, I don't see any of these options in the notification area. The odd thing is that if I retrieve the inviations via email through Entourage, all of these options are presented within the email itself, which doesn't happen in either Mail or Thunderbird. I prefer Mail and am looking forward to ridding my mac of Microsoft software, so I don't want to have to keep it hanging around just for that one item.
    Could someone please point me in the right direction? I can certainly follow instructions, if given.
    My thanks to everyone for their assistance in this matter.
    Respectfully,

    I'm having the same trouble! Help!

  • After updating to OS 10.8.3 java does not function.  I've validated the most current version of Java is installed.  Has anyone else had this issue?

    After updating to OS 10.8.3 java does not function.  I've validated that the most current version of Java is installed and active in Safari.  Has anyone else had this problem?

    Yes indeed.  See this thread - I have found a fix, but I am hoping once the engineers see this (Bug filed) that someone has an easier method, or a patch.
    Something went wrong with the update in certain instances and it kills the Java plugin.  Give this a shot - it takes a bit of time, but worthwhile.
    https://discussions.apple.com/message/21528056#21528056
    medward wrote:
    After updating to OS 10.8.3 java does not function.  I've validated that the most current version of Java is installed and active in Safari.  Has anyone else had this problem?

Maybe you are looking for

  • Videos and pics not showing up in the apps

    any pics or videos i take using my playbook or any i upload do not show up in the built-in video and picture viewing apps that come with the playbook? older pics/vids do show up though. help please? Solved! Go to Solution.

  • Customer-specific attributes (properties) for processes?

    Hello community, I already know how to define customer-specific attributes (properties) for documents stored in Solution Manager using the Document Modelling Workbench. For documents, everything works fine, so far. But: I also want to define customer

  • IOS 7.0.4 sound bug

    Help please No vibration or sound except ringtone in settings Sound works when headset plugged in Tried rebooting to resetting

  • Script to smart form,migration

    How to migrate from Script to smartforms

  • Olap & Mining Query

    Please Provide Olap & Mining related sql & Pl-sql Statement