RE: Test the state of a fieldWidget

 

Xavier,
Create a method called GetWidgetState on your window which contains
the following:
GetWidgetState(w:fieldwidget):
if w.state = FS_USAGESTATE then
return w.GetStateForUsage(self.window.usage);
else
return w.state;
end if;
By default, a widget state equals FS_USAGESTATE(0) which is the
state set in the window workshop for the particular window usage.
Unless you specifically change the state, it will always be 0 and you
have to fetch the actual state using GetStateForUsage on the widget.
Hope this helps.
Peter
Hi every one
I'm looking for something to check the current state of the fieldWidget.
The State attribute (integer) determines how a widget reacts to user
actions and how it is displayed. It's a virtual attribute. No problem to
setting it with variable, but I don't find the way to test it like :
myFieldWidget.State <> FS_INACTIVE
(myFieldWidget.State & FS_INVISIBLE) <> 0
but this doesn't work
could you help me...?
Thank
Xavier Michel
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Get Free Email and Do More On The Web. Visit http://www.msn.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Similar Messages

  • How can i test the state of the connections in a pool

    Hi,
    I am trying to find a way to validate the connection state in a pool. I am using iAS 6.0 SP 4 on a solaris 8 with Oracle 8.1.6 as database and the third party (oracle) driver.
    Is there any way to detect iddle connections, or abandoned (not closed) connections?
    I have tried using the pool logs, but they don't help me, because they only show the state of the pool, not the connections state.
    Thanks
    Juan

    with HTML of course!
    if you want it in the center... do <center> appletcode </center>
    if you want it in the bottom right corner use tables to move it there.

  • Detecting the State of Caps Lock

    I have a rather interesting problem - to which so far there seems to be a surprising lack of information.
    I wish to determine the state of the CAPS LOCK key as well as the INSERT / OVERWRITE - and as I think these are pretty standard, there should be a platform independent way to test the state of these.
    I can find no clues however - any suggestions would be appreciated.

    Try using public boolean getLockingKeyState(int keyCode) which is in java.awt.Toolkit
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Toolkit.html#getLockingKeyState(int)

  • How to test the select statement.

    Hi All,
    How to test the select statement.
    Is there any Oracle sqlplus  or toad kind of tool to  test the query.
    thanks
    siva

    Use SQL Trace (ST05) and choose 'Explain one SQL Request'. Enter your SQL command as it should be executed in the underlying database. e.g. if the db is Oracle, the statement should be entered as:
    SELECT matnr,werks,lvorm,dispo
    FROM marc
    WHERE mandt = :a AND
                 matnr = :b AND
                 werks = :c
    In the above :a, :b and :c are place holders for the actual comparison values. You dont have to enter those values. When you choose 'Explain' button, you will find the 'Execution Plan'. The important parameter which denotes the efficiency of the SQL statement is the 'Cost'. The cost should be as low as possible. The table access should be through INDEX UNIQUE SCAN. If you get a FULL TABLE SCAN and higher cost, you need to fine-tune your statement by modifying the where clause.
    If you dont know Oracle SQL statements, execute the program in trace mode and go to the trace and you will find the underlying SQL statements issued to the database.
    Regards
    Suresh Radhakrishnan

  • How can I test the log in state from in side the Operator Interface code.

    From inside LabVIEW Full OI, I want to test if the operator logged in after the IApplicationMgr Start.
    Right after the IApplicationMgr ‘Start’ I have a loop that tests the IApplicationMgr ‘LoginLogoutRunning’ state and waits until the LoginLogout call back is done.
    I want to exit if the program if operator canceled the login and did not log in.
    I have tried “GetEngine” ref. From there get the “CurrentUser” ref but seems not to contain any information about the Current User.
    How can I test from my Operator Interface code logged in state of the application?
    Thanks
    Jim D.

    Try Engine.CurrentUserHasPrivilege
    For the string parameter 'privilegeName' enter Priv_UserLoggedIn or the string value "*".
    "Priv_UserLoggedIn–(Value: "*") Use this value with the Engine.CurrentUserHasPrivilege method to determine whether a user is logged in."
    Option 2: You could also setup a callback on application manager for UserChanged Event.  If the User is null then the login was canceled.  (see a copy of the help further down)
    From the teststand help for Engine.CurrentUserHasPrivilege method below...
    CurrentUserHasPrivilege Method
    Syntax
    Engine.CurrentUserHasPrivilege ( privilegeName)
    Return Value
    Boolean
    True if the current user has the privilege.
    Purpose
    Confirms whether the current user or any user group that the user is a member of has a specific privilege.
    Remarks
    Returns True when the privilege property is True, when the privilege property of any group that contains the privilege is True, or when privilege checking is disabled, StationOptions.EnableUserPrivilegeChecking is False. If privilege checking is disabled but StationOptions.RequireUserLogin is True, this function returns True only if there is a user currently logged on.
    Parameters
    privilegeName As String
    [In] Specifies the name of the privilege to check. You can specify the name of any privilege property. You can specify the full privilege path in the user privileges property tree, for example, Debug.RunSelectedSteps, or you can specify the base privilege name, RunSelectedSteps. If you specify only the base privilege name and more than one instance of the base privilege name exists, then the method returns the value of the first base privilege it finds with that name. Refer to UserPrivileges for more information.
    Teststand callback for UserChanged Event...
    UserChanged Event
    Syntax
    ControlName_UserChanged ( user)
    Applies To
    ApplicationMgr
    Purpose
    Occurs when the current user logged in changes.
    Remarks
    Use this event to update the parts of your user interface that depend on user permissions when the current user logged in changes.
    Parameters
    user As User
    [In] Current user. If this parameter is NULL, there is no user logged in.

  • How can i test the boolean state of button action?

    Hello,
    in as2.0, how can i test the boolean value if a button was
    pressed or not?
    I have a simple function im trying to work with like this...
    button_btn.onRelease = function (success:Boolean) {
    if (success) {
    trace("we pressed the button - value is true");
    else {
    trace("value is false");
    working with booleans in this way is new to me - any pointers
    will do - thanks!

    Well, I'm not really that familiar with using video in flash,
    but from what I understand of what you are going for, these are my
    suggestions:
    If the code within your button has scope of the variable you
    are testing for:
    _global.myInfoObject;
    button_btn.onRelease = function(){
    if( myInfoObject.code == (value your are testing for) ) {
    trace("value is correct);
    } else {
    trace ("value incorrect");
    if you aren't in scope you can always maybe forward the
    onRelease function to some handler that is in scope:
    var myInfoObject;
    var release = function(){
    //to do code here;
    button_btn.onRelease = release;
    I hope some of these ideas help a little.
    You can always send your .fla to my email at
    [email protected] and I'll take a look at it.

  • Tracking Memory usage on iOS using the Stats class

    I've been checking memory usage on an app I'm developing for iOS using the Stats class https://github.com/mrdoob/Hi-ReS-Stats ( http://help.adobe.com/en_US/as3/mobile/WS4bebcd66a74275c3-315cd077124319488fd-7fff.html#WS 948100b6829bd5a61637f0a412623fd0543-8000).
    I added the Stats class to my project and redeployed and, yikes, memory usage reported in Stats creeps up (pretty slowly) even when there's nothing happening in the app (just showing a loaded bitmap).
    To try and track down the issue I created a project with a test class that extends Sprite with just this single call in the constructor :-
    addChild( new Stats() );
    I deployed it to the device to check that it didn't gobble any memory.
    But I was Suprised to watch the memory usage creep up and up (to approx 5) before some garbage collection kicked in and takes memory back down. I left it running and then it crept up again to over 7.5 this time before being kicked back down to just below 3.
    So 2 related questions that I'd appreciate any feedback/observations/thoughts on :-
    1 - Is this normal (i.e. memory creeping up when there's nothing other than Stats in the project) ?
    2 - What is the best way to monitor memory usage within an app ? Is Stats good enough - is Stats itself causing the memory usage ?
    All the best guys !

    Also see thread (http://forums.adobe.com/message/4280020#4280020)
    My conclusions are :-
    - If you run an app and leave it idle, memory usage gradually creeps up (presumably as memory is being used to perform calcs/refresh the display etc)
    - Periodically the garbage collection kicks in and memory is brought back down
    - This cycle could be in excess of 5 mins
    Run with your real app and memory will increase and be released much more rapidly/regularly.
    - It's probably worth performing initial checks by running on your desktop to iron out any initial problems

  • Wireless test report states that wireless radio is not functioning - contact HP support. Who/how do

    C309a printer
    Wireless network test report states wireless radio is not functioning.  Contact HP support.  How/who do I contact?

    Hi,
    You may find the local HP Support Center phone number listed below:
    http://www8.hp.com/us/en/hp-information/summary/ww-contact-us.html
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Are we Beta testing the N97 for Nokia?

    Because if i was given this as a beta release i would have told them what i thought, the current launch version on the N97 with V10 firmware is barely an Alpha release, this phone was a rush job thrown out on the market to coincide with the launch of the iphone 3Gs.
    This is my fourth N series, N80, N95, N95 8gb (the best N series yet), and now this N97 what should be Nokia's flagship, but being stripped of apps and filled with Trial versions to please the accountants at Nokia.
    Day one and it locked up twice, corrupted my contacts when synced with OVI, and ran down to less than 4mb on the C drive, day 2 i found the GPS was not working, it was a joke, walking down the road under a clear sky and it could not hold a signal lock, driving was worse barely holding a signal for a few seconds and as for sitting spinning it round for an age to get the compass to work........forget it id rather be lost than look like a **bleep**.
    Deleting apps and reinstalling them on the mass memory frees up some space, but why should we have to do this, the whole phone is badly thought out and configured.
    Soon after the stylus supplied with the phone and attached to the phones only tie point scratched my screen, what was wrong with a rear cover with a bump and a thin PDA style stylus, no not good enough for Nokia, a fat thing on a string will do for them. 
    New Firmware release 4 days after UK launch and still not available to most users as it has not been network approved yet, 3 network say its Nokia's job and they are delaying things, Nokia say its the networks delay. Come on if it was needed that quickly why leave most of your customers waiting, or just get to work on a layered OS with a standardised core with a network layer, so everyone can have the updated without waiting.   
    4 weeks in on this phone, i too have the scratched camera lens, still No working GPS, and having some good negotiations with Three to try to reverse the contact upgrade, as i don't think another N97 will last any longer than this one.
    I see Nokia spending Millions on punting the N97, TV, Billboards, Net adds, why push so hard on what is a sub standard product, could you imagine Joe public trying to free off some memory by moving apps, tell the care centres to brace themselves the N97 flood will be coming their way.
    What next, well if 3 don't cancel the upgrade, then Nokia will have to fix my phone again and again and again untill it works as advertised, in the mean time i am off to get in touch with watchdog so they can let Joe Public know what to expect from an N97.
    Rob 
    Solved!
    Go to Solution.

    I don't believe we're beta testing the N97 for Nokia. Beta testing suggests it is in a state prior to production. Nokia's track record (at least to me) seems that leading edge phones never reach a stable plateau.
    What I believe happens is the phone is released and remains unstable until they sort of perfect the platform, then a new handset is released bringing a whole new world of bugs and problems and so the cycle continues.
    By the time the phone is suitable for every day use it is, by today's technological stance, ancient and the damage has already been done to the reputation.
    S40 phones seem to fare much better, mainly because it is much more widely used within Nokia. S60 is up against some fine competition from vendors who will rush fixes out.. Nokia only ever seems to rush phones out. It isn't the same and it shows (see their forcast for the next 6 months)
    I honestly would not be surprised if this flagship phone limps on in a partially functional state until it is superceeded by a budget blackberry clone.
    Sad? Very! Am I being cynical, or telling it like it is.
    I'd be real interested to know if any exec at Nokia used the N97 in the weeks before it was released.. Not that I'm a fan, but we all know Stevie J used an iphone long before it was released.. I kind of get the impression they must all use very basic "corporate" s40 handsets and assume their flagship product must be of the same calibre.
    Next release, why not give 100 people N97 for testing, real testing.  It seems Nokias quality assurance team is out of touch with what a $700 handset demands.. ooooh, I gasp in awe at your 30 MB of free capactity when you remove ALL the applications you can. (It's like having a 2TB hard drive in a computer and continuing to boot from a floppy)
    I appreciate there are product time lines to meet, but if Nokia were aiming to compete with the likes of the pre, iphone and the various android handsets (not even mentioning windows mobile) rushing out a phone like this was very wide of the mark. Concept wise, the N97 is a great design.. the implementation of both the hardware and software just isn't going to cut it in todays market.. 
    (but this is what they want? you'll get bored with the handset and buy a replacement! yeay!)

  • How to test the data

    Hi,,
    The below test data is for SD report which do the monthly batch transfer from Annexure to F-form
    Can you please help me how to test the data? and prepare the unit test case.
    1. Intra-plant movement of inventory between two plants with the same region Code -  In India there are two plants in the state of Maharashtra.
    Plant 8600 (Vendor 10999346) -> Plant 8601 - MM# 1003623 / 1013515 / 5214135 / 8788143
    NB PO# 6500002231 / ZU PO 4600000500
    2. Intra-plant movement of inventory from Plant 8650 - Goa to one Depot Plant
    Plant 8613 (Vendor 10999359) -> Plant 8618 - MM# 1003623 / 1013515 / 5214135 / 8788143
    NB PO# 6500002232 / ZU PO 4600000501
    3. Intra-plant movement of inventory between two Parts plants.
    Plant 8650 (Vendor 10999344) -> Plant 8601 - MM# 4908281 / 4908323 / 4908968 / 4922001
    NB PO# 6500002233 / ZU PO 4600000502

    Please  go thorugh this  ...
    eCATT stands for extended Computer Aided Test Tool (eCATT) which is built is testing tool to test SAP system. By using testing tool we can test the entire business process, and we can also use this tool with a third party testing tool (I am not covering this topic). Execution of every test script ends with a log, which explains the results of the test script. 
    By using eCATT we can do following operations,
    ·        Test transactions, reports, and scenarios
    ·        Call BAPIs and function modules
    ·        Test remote systems
    ·        Check authorizations (user profiles)
    ·        Test updates (database, applications, GUI)
    ·        Test the effect of changes to customizing settings
    ·        Check system messages
    For more information go to: eCATT::Extended Computer Aided Test Tool (sdn.com)
    Here I am discussing fundamentals about eCATT in detail. You can find very good documentation in sdn.com.
    To develop a test script in eCATT we need to follow the following steps,
    1. Creating Test Scripts.
    2. Creating Test Data Containers[16] .
    3. Understanding System Data Containers[17] .
    4. Executing Test Configurations.
    There is a very good web blog on eCATT in sdn.com which explains eCATT with necessary screen shots. To read document click here Blog on eCATT in sdn.com
    For  details  and the screenshots     please  see the  link
    http://www.erpgenie.com/sap/ecatt/
    Reward  points if it is  usefull ...
    Girish

  • How to test the UDA or Attribute of an ancestor member

    Hi everybody !I would like to know how to test the UDA or attribute (I can use both) of the ancestor (or the parent of the parent) of the current member please ?(the current member is on level 0 et the ancestor is on level 2).I tryed some syntax but any result :(Thanks very much for your help... JaspePS : Sorry for my "bad" english, i'm french...

    You can try using this IF conditional statement:if (@count (skipnone, (@uda (dimName, myUDA) and @ancest (@currmbr (dimName), -2))) == 1)where:dimName is the dimension of the level 0 member you are testingmyUDA is the UDA you are testingWhat this does is it counts the number of members that meet two criteria. First, it must have the UDA you specify and, second, it must be an ancestor of the current member at a specified level.If the current member has a level 2 ancestor with the UDA, it should return one member.

  • How can I test the running time of a method?

    c.What is the running time of your method smallest, as a function of n, the number of elements in the list? Use big-Oh notation.
    I quoated from a java problem..
    Anyone can tell me how I can test the running time? Thanks ! :D

    it depends on what is in the method. For example a for loop executed n times would have a O(n). A double for loop (each loopp run n times) will have O(n^2). Do this: determine how many times each loop in the method is run. This is the first term in your runtime equation. Do this for all other loops in the method and add them all together. Most other statements that are not iterative should have a constant runtime so O(1). For conditional statements, the runtime depends on the most time consuming portion of the statement. Once all these are added together, take the O(equation) which should just leave the biggest term. i.e. O(5n^2+3n+8) = O(n^2). Hope this helps.
    note: this does not apply to recursive methods

  • When the state change, my StyleableTextField html formatting is lost

    Hello,
    When the state change, my StyleableTextField html formatting is lost (mobile project)
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark"
              addedToStage="ats(event)">
              <fx:Script>
                        <![CDATA[
                        import spark.components.supportClasses.StyleableTextField;
                        protected function ats(event:Event):void
                                  StyleableTextField(txt.textDisplay).htmlText="<i>test</i>";
                        public function ok(e:Event):void{
                                  currentState = "state2";
                        ]]>
              </fx:Script>
              <s:states>
                        <s:State name="initialState" />
                        <s:State name="state2" />
              </s:states>
              <s:VGroup>
                        <s:TextArea width="100%" id="txt" includeIn="initialState, state2" skinClass="spark.skins.mobile.TextAreaSkin"/>
                        <s:Button label="add" click="ok(event);" includeIn="initialState, state2"/>
                        <s:TextArea width="100%" text="state2" includeIn="state2"/>
              </s:VGroup>
    </s:Application>
    Thanks

    How are you doing this?
    The text area of a web app has HTML encoding and is all fine.
    If you make a multiline custom text field the encoding remains.
    You need to provide a bit more information because the above do keep their encoding.

  • The state of retina support - want a clear and concise answer

    Adobe,
    I realize that digital publishing is probably a very complex and difficult business, and that you're all very busy to get things working properly, and easily, with the amazing Adobe tools we're all used to. However, I have noticed from the start that you're having a bit of an issue communicating with your customers. We're all paying customers - who rely, at least partly, on the DPS to make a living. The help documentation has always been, in my opinion, lacking, but you're getting there. Getting up and running isn't too much of a problem now (except when trying to do more advanced things, like implementing Newsstand - documentation on that is a bit sparse). However, it seems like there's no help documentation or communication at all on the state of retina support.
    I realize that somewhere here, buried in one of these threads, is probably an Adobe employee response that has some useful information. However, I don't want to - and shouldn't have to - scour the forums for this information. The only information I seem to be able to find about it is in the "version 19 release thread". Something about:
    "iOS rendition support
    The new HD iPad model was recently announced. When you use Viewer Builder to create a new app, you can specify icons and splash screens for alternate sizes. Renditions are enabled for iPad devices, letting you create folio renditions at an alternate size. Each iOS model downloads folios that best match the display of the tablet. Adobe will provide an update to the tools and Viewer Builder as necessary to support new devices. We’ll provide more guidelines once we’re able to test the new iPad model. See Create folio renditions."
    Am I to assume this means retina support is up and running? That's what it seems to say, to me. But from what I can tell we can build retina renditions of our issues, but can't build a viewer that actually support them? Anyway, the thread is full of people trying to build retina apps and failing.
    The new iPad has been out for a while now, and really, we should have all received an e-mail on the day it was announced (or at least, released), letting us know exactly where we stand. When retina support is coming, what we need to prepare, how to build retina apps, how the workflow is going to work, etc.
    At the very least I am now requesting an Adobe employee to please make a sticky thread that is maintened and updated with the latest information, regarding retina support and workflow. Please make a clear overview of what we need to support retina in our apps, which tools we need, what updates we need to apply, what kind of workflow we should use to support retina and non-retina iPads. I may be alone in this, I may not be, but I feel like this is much needed, and I feel like at least this much can be expected of you.
    I'm sorry if I'm coming across as rude or overly critical, I don't mean to be. I very much think Adobe is a great company, and I love your software suites. However, I'd prefer not to have to spent hours looking for the information I need buried in forum posts. Having a clear and concise overview of how retina is going to work would save me a lot of time and effort, make the whole experience more pleasant and would allow me to communicate with my customers on what to expect.
    With regards,
    Salomon Meij.

    Looks like I need to use the phrase "retina support" in the documentation. Here are some articles about using DPS to target the iPad 3:
    http://blogs.adobe.com/indesigndocs/2012/03/guidelines-for-creating-folios-for-ipad-3.html
    http://blogs.adobe.com/digitalpublishing/files/2012/03/DPS_iPad3_bestpractice.pdf
    http://help.adobe.com/en_US/digitalpubsuite/using/WS9293e1fb3b977c5c-2337961812e35738f56-8 000.html
    http://help.adobe.com/en_US/digitalpubsuite/using/WS9293e1fb3b977c5c-6e66370112f982025bb-7 fff.html#WS67cb9e293e2f1f60f5f54012e30daf910-8000

  • ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuc

    Hi All,
    I have exported a application and after that imported and tried to install it then i am getting this error:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 5, column 1: PLS-00306: wrong number or types of arguments in call to 'CREATE_REPORT_COLUMNS' ORA-06550: line 5, column 1: PL/SQL: Statement ignored <pre>declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=&gt; 29524721731534348 + wwv_flow_api.g_id_offset, p_region_id=&gt; 29524015959534345 + wwv_flow_api.g_id_offset, p_flow_id=&gt; wwv_fl
    History which happen:
    everything was working fine in my workspace but 2 days back one of team member created customer demo application in the same work space so login was also failing and after struggling oneday i got that my authentication function was get overwritten by the demo user authentication so again i chaned by my bakup function now authentication is working but when i export my new developed application and tried to replace the existing application then i am getting the erroe which i have mention before.
    1: I tried to replace by existing one
    2: i tried to assign new application id
    nothing is working so is it problem occues due to new demo application creation which i have deleted or other problem if other then how to solve if by demo then what i need to do .
    But all applications are working well not able to install which i need to do with new developed application.
    Please help me i am in tough situation.
    Thanks in advance,
    Amit

    Amit,
    The next useful test would be to run the file in SQL*Plus, connected as the application parsing schema. If it works, you will have imported the application. After that, please send me the file ([email protected]) and I'll figure out where the trouble is. If it fails in SQL*Plus, try to isolate the failing block. You'll get a pretty good idea by the prompts echoed to the output indicating the import progress.
    Scott

Maybe you are looking for

  • Sending mail from mail.app using multiple email addresses?

    I'm familiar with the strategy of going into the account settings and putting in another email separated by a comma. That works great and i've had much success doing that. The problem is when I compose a NEW message, it defaults to my...well...defaul

  • Select option in the report

    Hi All, i have a FICO AP  report  , in which i have vendor number as the variable , v can view the report based on the vendor number but now the user says since its difficult to remember the vendor number he should be able to key iin the vendor name

  • Current User in a BPA script

    How can I get the current user in a BPA script?

  • User unable to connect wireless network with errors APF-1-USER_ADD_FAILED

    there are many events logs related to user add failed today, can anyone please help to explain what is this error message about? Thanks. Sep 29 10:02:28.091 apf_ms.c:4776 APF-1-USER_ADD_FAILED: Unable to create username ASIA-PACIFIC\Surya_Dharamdass

  • Package synonym not working

    I'm calling a PL/SQL package from my APEX application. I created a synonym for the package as follows: create or replace synonym apex_ebs.dcrd_inv_common for dcrd_inv_common; However, i'm getting an error: 1 error has occurred •ORA-06550: line 10, co