Strage behaviour of DefaultPanel/DefaultCtrl on localized panel

I am using the localization utility for a multilanguage application I am developing and faced a strange problem.
I can correctly display localized panels but if I happen to call DefaultPanel on the localized panel, all text messages return to original (untranslated); the same happens if I call DefaultCtrl on a text message. Control labels are not affected by this problem.
The problem happens both if I use LoadLocalizedPanel and if I call LoadPanel + LocalizePanel.
This behaviour is particularly annoying as I sometimes call DefaultPanel to revert all controls in a panel to their default value. Having observed this fact, I can only use as a workaround a loop on all panel controls to default all but text messages (haven't tested on rings on till now).
Tested on CVI2009SP1 and 2012SP1, on a Win7 machine. This happens both in the IDE and in the compiled executable.
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?
Solved!
Go to Solution.

Hi Roberto,
Unfortunately, this is a consequence of the localization library being a component that sits on top of the UI library, rather than part of the UI library. The UI library doesn't know anything about the localized strings and so when you call DefaultCtrl, the control's value reverts to what it was in the .uir file. And the translated strings were set by simple SetCtrlVal-type calls in the localization library -- undistinguishable, as far as the UI library is concerned, with your own SetCtrlVal calls in your own program.
This could also happen to controls other than text messages: strings and text boxes, for example. The only reason it doesn't happen with all control types is because in most cases, the translated strings are not part of the control's "value". Instead, they are simply attributes (the label text, for example). And DefaultCtrl / DefaultPanel affects only values, not attributes.
If you don't want to iterate through every control looking for controls that you can or can't call DefaultCtrl on, you should also be able to get around this limitation by calling DefaultPanel followed by LocalizePanel. Would that not work for you?

Similar Messages

  • Local panels files listed in reverse alpabetical order

    For some odd reason my current project now lists all the files and folders in reverse alphabetical order. Anyone any ideas please?

    Great, many thanks. Isn't it simple when you're shown? Pity wasn't in
    the Help files.

  • Strage behaviour while executing the Procedure

    Hi All,
    In Schema "Dwr_trade" we have one procedure Proc1. There is another schema
    " Dwr_trade_user " this schema has execute privilege on Proc1 of "Dwr_trade" schema.
    When we are executing the procedure Proc1 from "Dwr_trade" schema as follows
    Dwr_trade --- (Procedure is created here)
    Begin
    Exec procedure Dwr_trade.Proc1
    End;
    It gives error ,but when we are executing the same procedure after removing the prefix "Dwr_Trade" it is executing successfully.
    when we are executing the procedure from "Dwr_trade_user " then also is working fine.We are executing it as follows.
    Dwr_trade_user
    Begin
    Exec procedure Dwr_trade.Proc1
    End;
    Any pointer why this is giving error in 1st case.
    Many Thanks
    Dikshit

    Begin
    Exec procedure Dwr_trade.Proc1 <----Isnt Syntax prob
    End;
    SQL> CREATE OR REPLACE PROCEDURE mypro AS
      2  BEGIN
      3  null;
      4  END;
      5  .
    SQL> /
    Procedure created.
    SQL> EXECUTE PROCEDURE mypro;
    BEGIN PROCEDURE mypro; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge
    <a single-quoted SQL string> pipe
    SQL> EXECUTE PROCEDURE scott.mypro;
    BEGIN PROCEDURE scott.mypro; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge
    <a single-quoted SQL string> pipe
    The symbol "PROCEDURE" was ignored.
    SQL> EXECUTE mypro;
    PL/SQL procedure successfully completed.
    SQL> EXECUTE scott.mypro;
    PL/SQL procedure successfully completed.Khurram

  • Planning reverse engineering strange behaviour

    Hi
    When I try to reverse engineer a Planning application I get some strage behaviour. First time when I do it all my ODI UI's freeze. I have to close them from task manager. When I open the UIs again and go to Operator I see the reverse enigeering process still runs. But when I do reverse engineering second time it works fine. Reverse takes few seconds. Has anyone faced this issue before. Its happening only the first time I do.
    -app

    Hi,
    I have seen this when using the local agent, it never seems to happen when you create a new agent and use that.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Strange Behaviour with Oracle 10g

    i am seeing a strage behaviour in our 10g oracle.
    recently we upgraded our 9.2.0.5 version of oracle to 10.2.0.4. on sun solaris 5.10
    1) What ever sessions coming in to oracle not disconnecting even the user disconnects,
    2) Also for a single login i can able to see 2 sessions (one active and another inactive).
    3) Normally the session will time out if it idle for a particular amt of time. but in our case the sessions are not terminating even they are idle for a day.
    any one having any idea. please share... Thanks in advance.

    Can you give some evidence ? e.g from v$session
    What is the expire_time set to in sqlnet.ora ?
    What is idle_time set to in the DEFAULT profile ?

  • All accordion panels closed on page load?

    The default behaviour for a set of accordion panels is for
    the first one to open automatically when the page firsts loads.
    Is there a way to stop this happening and have them all
    closed by default?
    regards,
    Adrian

    Found the solution:
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html#AllPanelsCl osed

  • Why is my panel's preferred size changing as I resize the window?

    I have a JEditorPane inside a JPanel, which is wrapped in a JScrollPane. The JEditorPane contains a wide image and I expect to see horizontal scrollbars if the viewport is smaller than the minimum size needed to display the image.
    When my panel is displayed for the first time and the viewport size is smaller than the image, the horizontal scrollbars appear and the size of the scrollable area is set to the width of the image. This is the expected behaviour. When I resize the panel so that its is wider than the image and the scrollbars are no longer needed, the scrollbars disappear. However, when I shrink the panel back, the scrollbars appear at the correct "time" (when the edge of the image is reached), but the scrollable area is too wide, similar to the size I had stretched the panel out to.
    I am printing out the preferred size that the panel is returning (which will be used to set the scrollable area), and it seems to keep changing. The preferred size seems to grow with the panel's actual size, but it does not shrink back when I make the panel smaller.
    Anyone has any idea on what might be happening?

    Welcome to the Sun forums.
    >
    Anyone has any idea on what might be happening?>It probably has to do with the Java code used. Can you prepare an SSCCE that shows the behaviour?

  • Keyboard not working on front panel

    There must be something strange going on here, because this seems like a pretty weird problem.
    I have several numeric controls on my front panel and an event loop inside a while loop on the diagram. My numeric controls are located inside the while loop, but outside the event loop.
    When I start my VI, I lose the ability to change any numeric control values with my keyboard. I can't backspace, type numbers, delete, nothing. Even when I stop the VI, I still can't change any numbers with my keyboard. If bring the block diagram to the front, then bring the front panel back to the front, I can type in the boxes again.
    I have an IE ActiveX control on my front panel as well... could it be stealing keyboard focus?

    I'm not the only one with this problem then.  I just found this thread after spending several days tearing my hair out.  The keyboard focus is not switching from the embedded ActiveX control to the VI when the user clicks on the VI panel itself.
    I've attached a simple VI that illustrates the problem.  In my case I'm using the Adobe (Acrobat) Reader ActiveX control.  Clearly the problem is at the LabVIEW end, as we're all using different ActiveX controls.  Adobe Reader is required to run this VI.  I'm using Adobe Reader 8.1.0 and LabVIEW 8.20.
    The VI saves a small PDF file in your temp directory, then gets the Adobe Viewer to display it.  The PDF file is deleted on exit.
    To illustrate the problem, try this:
    Click on the PDF document then press F1.  The Adobe help is displayed.  Correct behaviour.
    Click on the VI panel outside of the Adobe control then press F1.  The VI's help dialog is displayed.  Correct behaviour.
    Click within the Find box at the top of the PDF document and type some numbers in.  Works correctly.
    Now click within the numeric control at the bottom left of the VI and try to type some numbers in.  The numbers appear in the Adobe control.  Not correct behaviour.
    I've found that if I press F1 after clicking on the VI or operate the boolean control with the mouse then the focus does correctly switch back to the VI.  I can then type numbers into the control following this.  However, after I've clicked anywhere on the ActiveX control I can click as much as I like on the VI panel or the numeric control and the focus will not switch to the VI's numeric control.
    I believe that the fault is that the keyboard focus does not leave the ActiveX control until a LabVIEW boolean control is operated.  This means my application doesn't work properly.
    I will submit a fault report for this, but any clever workaround would be very much appreciated.  I'm going to have a play with some of the events, e.g. mouse over the numeric and see if I can come up with anything.  I will report back if I get anywhere.
    Message Edited by Sean on 08-07-2007 11:27 AM
    Message Edited by Sean on 08-07-2007 11:29 AM
    Attachments:
    PDFView.vi ‏42 KB
    PDFView.jpg ‏32 KB

  • Panel height bug?

    Dear All,
    I've verified this strange panel behaviour on mac:
    I create a panel sized 71 (height) x 252 (width) pixels, save, export it (let's call it myPanel).
    I open Photoshop, open the panel and put in the middle of other (grouped) panels on the right side; my setup is, from top to bottom: actions, myPanel, adjustments, layers. It keeps its size, ok.
    I then collapse adjustments and layers (double clicking on their name, so they hide their content and show only the name), so myPanel gets very very tall. Not pleasing to see, but fine.
    At this point, if I close Photoshop and reopen it, myPanel can't absolutely be resized to its original height - it's around 200px tall and not 71, so it wastes a lot of monitor estate :-/
    I've tried to ungroup it from other panels (making it floating), but I can't make it smaller. The only workaround is to re-export the panel with a different name (same name: same behaviour), but messing around with panels (collapsing them) make it loose it's original height every time.
    Any info about this issue?
    TIA,
    Davide Barranca

    If you want reset your panel to your assigned size every time.
    There's an idea, maybe not a good idea.
    Find your path of "PanelSizeStore.sol", replace the path string below
    write a PhotoshopWithResetPanel.bat
    input lines like
    del "C:\Documents and Settings\<YourUserName>\Application Data\Macromedia\Flash Player\#SharedObjects\DHQTSCU9\localhost\PanelSizeStore.sol"
    "D:\adobe apps\Adobe Photoshop CS4\Photoshop.exe"
    Then all the panel will reset to initial size.

  • Localizing UI

    In CVI 5.5 is a fine tool UI localizer.
    In UI Localizer utility the panels and menu bars are localized ok.
    When I run the program panels are localized as they should be.
    But Menubars are still in default language.
    sample code:
    handle.logset=LoadPanel(0,"Logger.uir",LOG); // Loading panel
    LocalizePanel (handle.logset, "fi.lwl"); // Localizing panel
    /* Loading localized menubar */
    LoadLocalizedMenuBar (handle.logset, "Logger.uir", LSETUP, "fi.lwl",
    &menuHandle);
    also tried
    menuHandle = LoadMenuBar (handle.logset, "Logger.uir", LSETUP); //
    Loading menubar
    LocalizeMenuBar (menuHandle, "fi.lwl"); //
    Localizing menubar
    Has anybody use localized menubars? Should it work or is there a bug?
    Thanks,
    Kari
    NOKEVAL Oy HTTP: www.nokeval.com
    Kari Yli-Tuomi Tel. +358-3 342 4823
    Yrittäjäkatu 12 Fax. +358-3 342 2066
    37100 Nokia, Finland Email [email protected]

    Hi there, going through some old posts.... for my own learning.
    What I have learned over the last while...
    Javascript has function scope, so curlies on their own have no effect, like other languages...it makes no difference whatsoever.
    Functions are objects in javascript so they will contain variables within them, in their own scope that will not conflict.
    So you can use a function or an object. Either way the vars are better contained using a master parent function or object. Any sub functions are local to that script then, whether they are the same name as another or not.
    Hence people like Lloyd and Jeff have...
    theScript.data.string3= "blah";
    otherScript.data.string3="different";

  • Emulating rc.local

    I am trying to emulate the behaviour of the old rc.local. What I want is a systemd service file that is part of the multi-user.target and is run after everything else. I do not see how to implement this.
    Last edited by olive (2014-10-09 19:47:28)

    This appears to do the right thing:
    # /etc/systemd/system/rc-local.service
    [Unit]
    Description=Custom rc-local launcher
    DefaultDependencies=false
    After=multi-user.target
    [Service]
    Type=forking
    ExecStart=/etc/rc-local
    [Install]
    WantedBy=multi-user.target
    From the logs:
    Oct 16 09:54:10 fortuna systemd[1]: Starting Multi-User System.
    Oct 16 09:54:10 fortuna systemd[1]: Reached target Multi-User System.
    Oct 16 09:54:10 fortuna systemd[1]: Starting Custom rc-local launcher...
    Oct 16 09:54:10 fortuna systemd[1]: Starting Graphical Interface.
    Oct 16 09:54:10 fortuna systemd[1]: Reached target Graphical Interface.
    Oct 16 09:54:10 fortuna rc-local[545]: SUCCESS - running rc-local
    Oct 16 09:54:10 fortuna systemd[1]: Started Custom rc-local launcher.
    Oct 16 09:54:10 fortuna systemd[1]: Startup finished in 1.603s (kernel) + 17.810s (userspace) = 19.413s.
    The "DefaultDependencies=false" line breaks the ordering cycle caused by "After=multi-user.target" and "WantedBy=multi-user.target"
    *Edit* - changed "Type=oneshot" to "Type=forking" as advised below by amish.
    Last edited by branch (2014-10-16 19:31:28)

  • Panel resize event bug?

    I'm having a bit of hassle with a panel resize event.
    For reasons best known to me, I have some parallel loops monitoring certain UI behaviour and reacting appropriately.
    I have noticved that when a loop which is monitoring the "Panel Resize" event stops, (No dynamic registration) the next panel resize will freeze the VI.  It's as if the Event case is not releasing the handle to the "Panel resize" event.
    If I handle the "Panel Resize" event via a dynamic registration and subsequent release, everything works fine.
    This is in LV 8.2.1.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant
    Attachments:
    Freezes.vi ‏22 KB
    Doesnt freeze.vi ‏24 KB

    tst wrote:
    I think this has to do with LabVIEW locking the FP (as configured) even when the event structure should not execute any more. I actually created a simple example of it recently, but saved it in one my projects instead of where I would see it, so I forgot about it. I now dug it up and back saved it to 8.0. You can also simplify this example by removing the value change event and making the key down event lock the UI.
    Message Edited by tst on 11-10-2008 02:14 PM
    Sorry Yair,
    but this is not a bug!, it is explainable behaviour and expected behaviour.
    What happens, the front panel is locked on the second edit. (use exectuion high-lighting) The event structure is always listening for events where it is registered for, even if the event case will never execute, on the first edit (key down) the event is triggered and the VI is locked and unlocked. The second edit the event is triggered again and the FP is locked. Because the event structure can't execute the FP stays locked.
    Shane's behaviour is truly a bug.
    The same behaviour is seen with the 'Pane:size' event. (in 8.6)
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Choosing a highly-available, networked file system for VM images

    What's the consensus here on highly-available, networked file systems for VM disk images?
    HA-NFS seems difficult and overly-complicated.
    GlusterFS doesn't seem to be well-suited for this task.
    Ceph/RADOS seems popular but there isn't much information available.
    OCFS2 seem to be suitable but there also isn't much information available.
    Eric P.
    Truckee, CA

    Actually, I still would suggest taking a closer look at what I had mentioned in your other thread:
    [Use OCFS2 to Share Local Storage (DAS) Across OVM Compute Nodes|https://forums.oracle.com/forums/thread.jspa?threadID=2438632&tstart=0]
    I still think that this would also solve thus thread. In the end, there is no how-to on how to build that up and you probably will need some help from some experts. I for myself, also didnÄt configure all of that on my own - i left ASM/Cluster part for some contractor to setup and focused on the iscsi-target/initiator setup along with the multipath setup on m VM servers.
    Maybe I will do a little write-up, once we get it all sorted out, since we do experience some strage behaviour of our storages boxes, while ASM hammers ob them quite hardly, but I suspect the raid controllers to blame and not the concept… ;)

  • IPhone Notes: Accounts button disappeared...

    After upgrading my iPhone 3GS successfully to iOS 4.2.1 I managed to configure over-the-air notes syncing between my iPhone and my iMac running Mac OS X 10.6.5 without any problem:
    I just configured Mail on my iMac to create new notes and to dos in my MobileMe account and on my iPhone I verified under Settings > Mail, Calendar, ... that for my MobileMe account notes syncing was switched on. Finally I selected under Settings > Notes my MobileMe account as the default account for my iPhone for new notes.
    There are no other email accounts configured on my iPhone and notes sync is disabled in iTunes and in the MobileMe control panel on my Mac, because this is not needed for over-the-air syncing between only one iMac and one iPhone.
    There are no local notes neither on my Mac nor on my iPhone.
    As I said before: it worked immediately without any problem and it still does so today.
    But: all of a sudden the "Accounts" button in the Notes App on my iPhone disappeared and under Settings > Notes on my iPhone I can now only select the font for notes, but no longer the default account for new notes!
    Yes, all was set to MobileMe before and all is still working fine, but what if I want to switch back to local notes on my iPhone??? I cannot select "On my iPhone" in the Notes App (because of the missing Accounts button) and I cannot set the default account for notes to "On my iPhone" (because of the missing selection under Settings > Notes).
    Is this expected behaviour because there are no local notes on the iPhone/iMac, iTunes notes syncing is switched off and there is only one account (MobileMe) configured with over-the-air notes syncing switched on, so the number of relevant accounts is just one -> no need to show the Accounts button?
    Why could I see the empty "On my iPhone" notes account in the Notes App and under Settings > Notes before I switched everything to MobileMe?
    And how could I switch it back should I ever decide to do so?
    Thanks in advance for any helpfull hint...
    Michael

    Okay I figured this thing out. The accounts button is only there in one of two cases: 1) you have two email accounts that can also sync notes, for instance, Yahoo and MobileMe, or 2) if you created a note on your device BEFORE setting up a mail account with notes syncing and then subsequently set up say, a MobileMe account for instance.
    #2 is what what happened in my case. I had created a note on my device before I set up my MobileMe account. By default, this note was local on "On My iPhone". Then I set up my MobileMe account and all my notes created in Apple Mail were pulled down from the server to my device. Now I had the "Accounts" tab in the Notes app allowing me to view "All Notes" (the one local plus all my MobileMe network notes), notes "On My iPhone" allowing me to view the local note, and "MobileMe" that allowed me to view only the MobileMe network notes. Then I deleted the local note, and the Accounts tab disappeared, because now, by default, I only had MobileMe network notes on my device. Once the accounts tab disappeared, the only way for me to get it back was delete my MobileMe account and all it's data from my device, create a new local note, and then set up my MobileMe account again and pull down all my network notes and other data from the server again. Once I did that, the Accounts tab came back, and I had the choices again for "All Notes", "On My iPhone", and "MobileMe", and also had the option in settings to choose the default location for new notes in the Settings app.
    If you do not have an account set up on your phone that can sync notes OTA (over the air), then all notes you create will be local and the only way to sync them back to your computer will be when you connect the iPhone to your Mac with the USB sync cable, and have notes syncing turned on in iTunes under the "Info" tab in your iPhone settings.
    That's it.
    Message was edited by: McToast

  • Problem with READ Statement in the field routine of the Transformation

    Hi,
    I have problem with read statement with binary search in the field routine of the transformation.
    read statement is working well when i was checked in the debugging mode, it's not working properly for the bulk load in the background. below are the steps i have implemented in my requirement.
    1. I selected the record from the lookuo DSO into one internal table for all entried in source_packeage.
    2.i have read same internal table in the field routine for each source_package entry and i am setting the flag for that field .
    Code in the start routine
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
         and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp <> 3.
    delete it_zcam where end_dt initial.
    sort it_zcam by surce accno.
    endif.
    field routine code:
    read table it_zcam with key source = source_package-source
                                                 accno  = source_package-accno
                                                 binary search
                                                 transportin no fields.
    if sy-subrc = 0.
    RESULT  = 'Y'.
    else.
    RESULT = 'N'.
    endif.
    this piece of code exist in the other model there its working fine.when comes to my code it's not working properly, but when i debug the transformation it's working fine for those accno.
    the problem is when i do full load the code is not working properly and populating the wrong value in the RESULT field.
    this field i am using in the report filter.
    please let me know if anybody has the soluton or reason for this strage behaviour.
    thanks,
    Rahim.

    i suppose the below is not the actual code. active table of dso would be /bic/azcam_o1100...
    1. is the key of zcam_o11 source and accno ?
    2. you need to get the sortout of if endif (see code below)
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
    and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp 3.
    delete it_zcam where end_dt initial.
    endif.
    sort it_zcam by surce accno.
    field routine code:
    read table it_zcam with key source = source_package-source
    accno = source_package-accno
    binary search
    transportin no fields.
    if sy-subrc = 0.
    RESULT = 'Y'.
    else.
    RESULT = 'N'.
    endif.

Maybe you are looking for

  • Touch no longer read by computer

    i have had my touch for 8 months, today however my ipod is not getting read by the computer, the problem i think is to do with the ipod since the computer reads all other devices. i have two i pod connections but still the i pod is not being read by

  • How to split a condition value across line items with varying percentages?

    Hello, can anyone suggest how this can be resolved.  This is the scenario.  My client wants to be able to determine pricing for a sales document with a wide range of conditions.  One particular condition contributes to the total price of each sales i

  • New OD user no email account

    Hello, I have added a new user to OD. (2 server environment) I have applied the email server address under the mail tab. (yes the mail server IP resolves locally) However, upon inspection of the accounts tab of the mail service, I am not seeing the n

  • Flash Player Problem on Mac

    You appear to have found one problem with the update (13). My Mac is running 10.6.8 and was mfg. during the time frame yo noted. Please advise once this is fixed. I did load the older "12" version after running uninstall. Videos seem to be running co

  • Type Generation Problem

    Please help me understand. Problem 1: ========== I have following schema and am running autotype on it. Sample A works but Sample B doesn't. In case of Sample B, I do not get getStudentByNameResponse Object instead I get getStudentByNameResponseSeque