Responding to Xcontrol State Changes
I would like to use an event handler in the VI containing an XControl to respond to a change to that XControl's state. Is there an easy way to do this without continually polling the XControl's state using a property read and a Create/Generate Event approach?
Thank you!
Brian
Yes, that makes perfectly sense!
I think your question was stated wrong.
But the idea is still the same.
Add to you XControl's state a User event Ref with a string datatype.
Create the user event in the owning application and register a event structure to this user event.
With a custom property (set user event ref) you set the User event Ref in the Xcontrol's state.
If the alarm level is passed you generate a user event inside XControl and the owning VI will be triggered.
I you don't succeed please post an example as complete as can be.
Ton (I have done this several times)
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!
Similar Messages
-
So below is what I have so far. The menu is working perfectly, thanks to a few Youtube tutorials. And everything is linked correctly. But the only thing is that the "WORK" button doesn't respond to the state change that is set up for it. I tried applying the state change before I placed it in the trigger area, and after. Neither seems to make it work.
The goal state change is basically that the text "WORK" will turn white, and the white space within the teal stroke will also turn teal. So, the colors will reverse. I have a link next to it, "ABOUT" that is currently successfully doing it. I guess if it's not possible then I will have to figure out another design..but I'd like to see if there is a way to do it!I believe you are trying to get a color state for composition when its active ? please publish the site and provide the url to have a look.
Thanks,
Sanjit -
SkinnableComponent does not react to state changes
(Flex 4.5) I'm finding that SkinnableTextBase will change its styles according to the CSS file when it changes state, but SkinnableComponent won't. Why?
Here's what I do. I create a class which extends SkinnableTextBase like this:
public function MySTB() {
super();
states = new Array();
for each (var name:String in ["inactive", "active"]) {
var state:State = new State();
state.name = name;
states.push(state);
I create another class which is the same, but which extends SkinnableComponent.
In the CSS I tell them to have a green background when they are in the "active" state:
customLabel|MySTB:active, customLabel|MySCom:active {
content-background-color: #ccffcc;
And I give both of them basically the same skin.
When I call setCurrentState("active") on each of them, the SkinnableTextBase changes its background colour, but the SkinnableComponent doesn't. Why not? I would like to base a component on SkinnableComponent and need it to respond to state changes.Thanks Karl for the response. In this case the issue is not skin states but component states. It's rather confusing but there are two types of state and in fact the CSS states syntax as given above pertains to the component state. The skin has nothing to do with it.
There must be something in SkinnableTextBase which is not in SkinnableComponent which causes the css syntax to be applied; though in theory this should work in any component. (see last example here: http://cookbooks.adobe.com/post_How_to_use_the_new_CSS_syntax_in_Flex_4-15726.html). -
Item state change events - notification not recd when run on nokia phone
I have a Form which implements ItemStateListener and its registered to receive item state change events. The Form has a text field which needs to be enabled/disabled based on certain ChoiceGroup element being selected. The code works fine on emulator, however I don't receive event notification in itemStateChanged() on series 60 nokia devices when a new ChoiceGroup element gets selected. Has anyone faced a similar problem? Is there any solution for this? The profile used in my project is CLDC 1.1 and MIDP 2.0.
I faced a similar problem on Motorola ROKR E6. Turned out that ItemStateListener was working only as long as the first form to be displayed remained current -- once I setCurrent another Form, the app stopped responding to itemStateChanged.
The workaround I adopted was to remove Items from the Form and add new Items, giving the illusion of the next form being displayed. It would be interesting to know whether that works for you and whether anyone has faced the same problem with any other handset.
I have subsequently come to know that Motorola have marked my bug report as "solved" -- but have not offered me any option to update my handset with a bug-free version.
btw, calling setConstraints on a TextField can throw a NullPointerException. My workaround for that was to setText("") in the itemStateChanged in lieu of setConstraints (TextField.UNEDITABLE).
luck, db -
How can I initialize all TabNavigator Tabs upon a state change?
Here's the basic goal. I want to provide two views to the
user that display the same panels. I configured each view as a
separate state but I am having trouble initializing each of the tab
views since they are only created by Flex when the user first
selects it. I need them all created when the user changes to that
state so that I can insert my view objects. Does that make sense?
Ok, how about an example program. I define three view objects
in ActionScript which will be used in two different states. I use
AddChild to put them in the proper layout location. The problem is
with the Tab state. The AddChild operation only works for the first
tab because it is visible. The other two tabs don't get setup
properly. Can anyone help me resolve this?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical"
creationComplete="onCreationComplete()">
<mx:Script>
<![CDATA[
import mx.containers.VBox;
import mx.controls.Label;
[Bindable] public var view1:VBox;
[Bindable] public var view2:VBox;
[Bindable] public var view3:VBox;
private function onCreationComplete():void
var label1:Label = new Label();
var label2:Label = new Label();
var label3:Label = new Label();
label1.text = "This is view 1.";
label2.text = "This is view 2.";
label3.text = "This is view 3.";
view1 = new VBox();
view1.label = "View 1";
view1.addChild(label1);
view2 = new VBox();
view2.label = "View 2";
view2.addChild(label2);
view3 = new VBox();
view3.label = "View 3";
view3.addChild(label3);
currentState = "wizardState";
private function changeState():void
switch(stateBox.selectedItem.data)
case 0: currentState = 'wizardState'; break;
case 1: currentState = 'tabState'; break;
]]>
</mx:Script>
<mx:Panel id="mainPanel" title="Tab View Bug" width="400"
height="320"/>
<mx:ComboBox id="stateBox" change="changeState()">
<mx:dataProvider>
<mx:Object label="Wizard" data="0"/>
<mx:Object label="Tabbed" data="1"/>
</mx:dataProvider>
</mx:ComboBox>
<mx:states>
<mx:State name="wizardState">
<mx:AddChild relativeTo="{mainPanel}"
position="lastChild">
<mx:HBox width="100%" height="100%"
verticalAlign="top">
<mx:ToggleButtonBar id="wizardButtonBar" width="20%"
direction="vertical"
dataProvider="{wizardViewStack}"/>
<mx:ViewStack id="wizardViewStack" width="80%"
selectedIndex="{wizardButtonBar.selectedIndex}"/>
</mx:HBox>
</mx:AddChild>
<mx:AddChild target="{view1}"
relativeTo="{wizardViewStack}" position="lastChild"/>
<mx:AddChild target="{view2}"
relativeTo="{wizardViewStack}" position="lastChild"/>
<mx:AddChild target="{view3}"
relativeTo="{wizardViewStack}" position="lastChild"/>
</mx:State>
<mx:State name="tabState">
<mx:AddChild relativeTo="{mainPanel}"
position="lastChild">
<mx:TabNavigator id="tabViewStack" width="100%"
height="100%">
<mx:VBox label="Tab 1" id="tab1"/>
<mx:VBox label="Tab 2" id="tab2"/>
<mx:VBox label="Tab 3" id="tab3"/>
</mx:TabNavigator>
</mx:AddChild>
<mx:AddChild target="{view1}" relativeTo="{tab1}"
position="lastChild"/>
<mx:AddChild target="{view2}" relativeTo="{tab2}"
position="lastChild"/>
<mx:AddChild target="{view3}" relativeTo="{tab3}"
position="lastChild"/>
</mx:State>
</mx:states>
</mx:Application>Ok, here is an even simpler scenario. I take each view from
the default state and put them in the new tab view when the state
changes. If you compile and run this example, the only view that
makes it into the tabview is the one that was active when the state
changed. Why is that?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:Script>
<![CDATA[
private function changeState():void
switch(stateBox.selectedItem.data)
case 0: currentState = ''; break;
case 1: currentState = 'tabState'; break;
]]>
</mx:Script>
<mx:Panel id="mainPanel" title="Tab View Bug" width="400"
height="320">
<mx:HBox id="wizardView" width="100%" height="100%"
verticalAlign="top">
<mx:ToggleButtonBar id="wizardButtonBar" width="20%"
direction="vertical"
dataProvider="{wizardViewStack}"/>
<mx:ViewStack id="wizardViewStack" width="80%"
selectedIndex="{wizardButtonBar.selectedIndex}"
creationPolicy="all">
<mx:Canvas id="view1" label="Part 1" >
<mx:TextInput text="This is view 1"/>
</mx:Canvas>
<mx:Canvas id="view2" label="Part 2">
<mx:TextInput text="This is view 2"/>
</mx:Canvas>
<mx:Canvas id="view3" label="Part 3">
<mx:TextInput text="This is view 3"/>
</mx:Canvas>
</mx:ViewStack>
</mx:HBox>
</mx:Panel>
<mx:ComboBox id="stateBox" change="changeState()">
<mx:dataProvider>
<mx:Object label="Wizard" data="0"/>
<mx:Object label="Tabbed" data="1"/>
</mx:dataProvider>
</mx:ComboBox>
<mx:states>
<mx:State name="tabState">
<mx:AddChild relativeTo="{mainPanel}"
position="lastChild">
<mx:TabNavigator id="tabView" width="100%" height="100%"
creationPolicy="all">
<mx:Canvas label="Tab 1" id="tab1"/>
<mx:Canvas label="Tab 2" id="tab2"/>
<mx:Canvas label="Tab 3" id="tab3"/>
</mx:TabNavigator>
</mx:AddChild>
<mx:RemoveChild target="{view1}"/>
<mx:AddChild target="{view1}" relativeTo="{tab1}"/>
<mx:RemoveChild target="{view2}"/>
<mx:AddChild target="{view2}" relativeTo="{tab2}"/>
<mx:RemoveChild target="{view3}"/>
<mx:AddChild target="{view3}" relativeTo="{tab3}"/>
<mx:RemoveChild target="{wizardView}"/>
</mx:State>
</mx:states>
</mx:Application> -
Hi Gurus,
I have integrated Hyperion 11.1.2.3 with obiee 11g. Able to see obiee in workspace and Shared services. But suddenly we restarted the server. After that obiee link not working. It is showing Internet explorer could not open the web page. I have tried to start the bi services but the prompt ends with this error msg.
<Aug 14, 2013 9:26:44 AM MST> <Critical> <Security> <BEA-090402> <Authentication denied: Boot identity not valid; The user name and/or password from the boot id
entity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot id
entity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are enc
rypted.>
<Aug 14, 2013 9:26:44 AM MST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Auth
entication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have
been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first
time the updated boot identity file is used to start the server, these new values are encrypted.
weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (bo
ot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file wit
h the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:959)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
Caused By: javax.security.auth.login.FailedLoginException: [Security:090303]Authentication Failed: User epm_admin weblogic.security.providers.authentication.LDA
PAtnDelegateException: [Security:090295]caught unexpected exception
at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:251)
at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Truncated. see log file for complete stacktrace
>
<Aug 14, 2013 9:26:44 AM MST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Aug 14, 2013 9:26:44 AM MST> <Error> <WebLogicServer> <BEA-000383> <A criticalservice failed. The server will shut itself down>
<Aug 14, 2013 9:26:44 AM MST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
I have deleted password and username in boot.properties of Admin Server and bi_security1 folder but no use. Other option, i have deleted boot.properties then in the bi services prompt entered weblogic server username and password. Now also same issue.
please help me, to resolve this issue.
Thankswe need to change the Weblogic Username and Password which is saved in boot.properties file
Thanks,
Madhu -
Change the background color for HToggleButton as State changed
Hi , I want to change the background color of HToggleButton or HGraphicButton as its state changed as normal to focus and then focus to normal and same with actioned state .It is possible to change the image with different states but how can I do the same thing to change background color .I'll appreciate any help regarding this with thanks in adv.
Satya,
i_x denotes first column and not characctersitic 1.
Also I am not sure if the check is to be for IS_SUM.
Use Get_Cell_info class instance and then use the data returned by the same for checking IS_SUM and then change the cellstyle.
Another thing to look out for is , the required change might be needed on DATA_CELL and notcharacteristic_cell.
Arun
Assigning points is a way of saying thank you on SDN -
Canvas ID not being used when Canvas is created by State change
After logging into my app I do a State change, which adds a
few more buttons on a Linkbar and adds two more sections to a
ViewStack. For the initial Canvas sections, I have an ID associated
with each. Upon clicking a button, for example, I can alert on the
value associated with each ID.
However, for the new Canvases that are added, this is not
working, even though an ID is associated with the Canvas. Instead,
it is just telling me "Canvas355", where the number is different
every time the app is initiated.
Does anyone have any ideas about this?
Thanks.
ChrisHoepfully this will help. It's just the function to pop up
the help window, but I put in an Alert.show to test with for now.
private function helpWindow():void {
helpinfopop = helpinfo(PopUpManager.createPopUp(this,
helpinfo, false));
helpinfopop.title="Help";
helpinfopop.showCloseButton=true;
helpinfopop.hscreen=allinfo.selectedChild.name;
Alert.show(allinfo.selectedChild.name);
PopUpManager.centerPopUp(helpinfopop);
"allinfo" is the ID of the main ViewStack. What happens, if I
just talk about the Alert.show function, is that for the 3 primary
Canvases, it will show the ID I defined. For the new Canvases after
the State change, it shows the random name/number. If I review the
config, every single Canvas has an ID set.
Thoughts?
Thanks for all the help so far.
Chris -
Hello,
I am running SCOM 2012 R2 UR4. Is it possible to setup a Windows Server monitor to notify me when the state change goes from Healthy to Critical? I want to setup one alert to e-mail me regardless of the reason for the state change.Hi,
Monitor only alert you once when the state changes and no further alerts will be triggered until the monitor normalize either by auto resolve or going back to the healthy state.
If an alert is required every time a state change, you will have to configure a custom alert rule.
Blog: http://theinfraguys.com
Follow me at Facebook
The Infra Guys Facebook Page
Please remember to click Mark as Answer on the answer if it helps you in anyway -
Nexus 7010 bgp state change alert not triggered to NNM
Hi ,
BGP state change alert not triggered to NNM on Nexus -7010 for Monitoring.
Details of the Device:
Nexus 7010 :
Software
BIOS: version 3.22.0
kickstart: version 5.1(3)
system: version 5.1(3)
BGP neighbor status :
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.16.1.2 4 65505 5089234 5194515 51359 0 0 6w2d 391
172.16.1.3 4 65505 5044293 5146859 51359 0 0 30w4d 378
172.31.11.3 4 15404 120744 114811 51359 0 0 1w6d 1
172.31.42.3 4 65501 5261796 5264413 51359 0 0 2d06h 0
Snmp trap enabled:
snmp-server user admin network-admin auth md5 0x690c4ede8a88ba7f2de791dbe7a77f0a
priv 0x690c4ede8a88ba7f2de791dbe7a77f0a localizedkey
snmp-server host 172.30.0.55 traps version 2c xxxx
snmp-server enable traps bgp
Downloaded cisco-bgp4-mib version, bgp4-mib tried and performed snmpwalk as given below
nnmsnmpwalk.ovpl -c xxx 172.31.15.130 .1.3.6.1.4.1.9.9.187.0.6
Error : No MIB objects contained under subtree
nnmsnmpwalk.ovpl -v 2 -c xxx 172.31.15.130 .1.3.6.1.2.1.15.3.
No MIB objects contained under subtree
Kindly advise to resolve the issue
Regards
HariYou can set an alert for Warning State. This is feasible.
Juke Chou
TechNet Community Support -
State Change causing tree item to loss selected item highlight
I'm looking for some guidance on a situation i'm encountering. I've an application with a tree component which will be used as a report selector in all view states. The parent nodes are not selectable but the children are. Each child has a for a lack of a better term parameter classification. When a report item is selected in the tree then a state change occurs and displays the appropriate parameter selection view.
My issue is this. Upon clicking an item and displaying the new state for the first time, the selected item in the tree losses the visual representation or highlight around the selected item. But within the debugger it still shows which item is the selectedItem. Once the state has been displayed at least once...i.e. I select other items and then eventually back to initial tree item when the state changes it does not loss the highlight on the selected tree item.
Couple things I've tried to see if i'm in the right neck of the woods is use the currentStateChange and currentStateChanging handlers to do a bit of tracing and found that the tree item remains selected all the way through both currentStateChanging and then even in the currentStateChange...the redraw occurs just after which is when the tree item losses its highlight.
Does anyone have any ideas or even encounter this?Good question. Well you're right in asking. Just using a spark Label to show me the label of the selectedItem, upon the first time I click on the selection nothing populates the label's text BUT the state changes as its suppose to. Took me clicking on it a second time to get the item to be highlighted and the label to show me what had been selected.
My question here is...is there another event which is occurring after the changeState? -
Agent state changed to reserved but call is not ringing/landing for 30 seconds
Hi All,
we have IPCC 8.5, CVP 8.5, UCM 8.5, last few weeks we are facing
agents are facing intermittently, their state changed to reserved but call is not landing/ring for a while, and we have seen call is going to RONA in CVP logs.
We have cross checked the Device Target (4 CVP servers) its fine, Queue music is interruptable.
In Ingress/VXML gateway we have the dial-peer pointing to two subscribers with equal priority. Seems to be some call is not routing to agent phone (delay is there between voice gateway and ip phone) due to some reason. We dont use SIP proxy we use static routing to subscribers.
Please share your ideas.
with Regards,
ManivannaIn Ingress/VXML gateway we have the dial-peer pointing to two subscribers with equal priority.
The gateway should point to the Call Servers. The Call Servers should have static routes to the subscribers.
If the call is not getting to the agent even though they go into Reserved (the Call Router has selected them), ensure that the SIP trunks to the Call Servers and the agent phones are in compatible partitions/CSS. Examine the logs on the Call Server when the INVITE is sent to the agent phone. If the INVITE returns 404 (not found) or 503 (unavailable), then the setup is wrong.
Regards,
Geoff -
State change/transition fires addedToStage/removedFromStage events
Hi,
Not sure if this is intended behaviour, but I noticed that a state transition in my components actually triggers addedToStage/removeFromStage events for objects in that component.
i.e. I've got an application with two components and two states.
Changing states (in the application) has move transitions for both components (one component is like a drawer sliding out and the other makes way for it, but both components were already on the stage before the state change).
When switching between the two states the components that are moved actually also fire the addedToStage/removedFromState events.
Cheers
SkipHi Chet,
I just tried setting up a new project to demo this, but (surprise surprise) it seems to work fine now.
I still see it firing in my original project, but I guess that's got to be something I'm doing wrong there.
It'll probably take me some time to plough through it though as the project is pretty large, but will post if I find it (or if i can isolate to a demo project).
Thanks
Skip -
Is it possible to monitor State change of a .CSV file using powershell scripting ?
Hi All,
I just would like to know Is it possible to monitor State change of a .CSV file using powershell scripting ? We have SCOM tool which has that capability but there are some drawbacks in that for which we are not able to utilise that. So i would like
to know is this possible using powershell.
So if there is any number above 303 in the .CSV file then i need a email alert / notification for the same.
Gautam.75801Hi Jrv,
Thank you very much. I modified the above and it worked.
Import-Csv C:\SCOM_Tasks\GCC2010Capacitymanagement\CapacityMgntData.csv | ?{$_.Mailboxes -gt 303} | Export-csv -path C:\SCOM_Tasks\Mbx_Above303.csv;
Send-MailMessage -Attachments "C:\SCOM_Tasks\Mbx_Above303.csv" -To “[email protected]" -From “abc@xyz" -SMTPServer [email protected] -Subject “Mailboxex are above 303 in Exchange databases” -Body “Mailboxex are above 303 in Exchange databases"
Mailboxex - is the line which i want to monitor if the values there are above 303. And it will extract the lines with all above 303 to another CSV file and 2nd is a mail script to email me the same with the attachment of the 2nd extract.
Gautam.75801 -
In the video Create rollover effects with the State Button widget | Adobe Muse CC tutorials he says that he can have a state change if he hovers over the text. My question, how does he accomplish this? I have manually created a menu, and wanted the text to change on rollover and active states. Is there a way to accomplish this? I tried changing the states in the hyperlinks: text link styles, but those aren't working either. At this time I am using frames on the text box to accomplish this, but it's not what I had originally envisioned. Yabo Productions for reference.
Hi,
Kindly select the text frame that you want to change the state for, open the States panel (Window menu> States); and you make the desired changes, then.
Let me know if it is something else that you were looking for.
Regards
Sonam
Maybe you are looking for
-
Email Notification - ERROR: 530 5.7.1 Client was not authenticated
Hi People! I am receiving the follows error when I run scheduled task. Also, I used Javamail and I have the same problem. The problem: MAIL FROM isn´t authenticating. How can I solve it? Other question: How can I configure Email Notification in debug
-
How to get uneven distribution of blended lines
Is there a way to achieve uneven distrubution of blended lines in Illustrator CS5? There was one other post on the web asking a similar question to this, which was solved by changing the blend spline. This works great for objects, but not so much for
-
Does Hyperion/Essbase add-in works with Excel 2010?
Is this possibility and is performance enhanced/reduced? Thanks.
-
Replace broken Alltel phone and NOT extend old Alltel contract and NOT change to Verizon plan?
Hi, Can I get a replacement phone without extending the contract? I've read here that I can change to a Verizon phone without changing my old Alltel plan--many thanks to previous posters and answerers for this info!-- and I've been hanging fire on a
-
Required Client Deployments Never Kickoff On Time 2012 SP1
SCCM engineers, With other OSD tools, when you design a deployment to kick off at 8:00pm, you actually get that (or pretty close to it). With SCCM 2012 SP1, we've never had luck getting required deployments to start on time...which is a problem when