Read up on creationPolicy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason B
Sent: Saturday, July 05, 2008 12:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] cant reference datefield or alert it within
another tab ?

 

in my code i cant seem to clear or even alert the datefield its called
id="test" and I get errors if i try to reference it or attempt to alert
it in any way, yet if i move the datefield to the same tab it works?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> "
layout="absolute">
<mx:Script source="virtualfitness.as"/>

<mx:HTTPService id="http_search" result="default_result(event)"
url="/admin_dev.php/admin/searchuserinfo" method="POST">
<mx:request xmlns="">
<username>
{search_username.text}
</username>
<email>
{search_email.text}
</email>
<userid>
{search_userid.text}
</userid>

</mx:request>
</mx:HTTPService>

<mx:HTTPService id="http_usergridclick" result="default_result(event)"
url="/admin_dev.php/admin/detailuserinfo" method="POST">
<mx:request xmlns="">
<user_id>
{usersearch_grid.selectedItem.USER_ID}
</user_id>
<workoutdate>
{test.text}
</workoutdate>
<navigation>
{navigation.text}
</navigation>
</mx:request>
</mx:HTTPService>

<mx:HTTPService id="http_nextday"
url="/admin_dev.php/admin/detailuserinfo" method="POST"
showBusyCursor="true">
<mx:request xmlns="">
<workoutdate>
{test.text}
</workoutdate>
</mx:request>
</mx:HTTPService>

<mx:TabNavigator x="10" y="45" width="1059" height="625"
id="tabnav">
<mx:Canvas label="User Search" width="100%" height="100%"
click="disableothertabs();">
<mx:DataGrid x="10" y="155" width="1037" height="427"
itemClick="Alert.show(test.text); userdetailclick(event); "
dataProvider="{http_search.lastResult.RESULTS}" id="usersearch_grid">
<mx:columns>
<mx:DataGridColumn headerText="User ID"
dataField="USER_ID"/>
<mx:DataGridColumn headerText="Email Address"
dataField="EMAIL"/>
<mx:DataGridColumn headerText="User Username"
dataField="USER_USERNAME"/>
<mx:DataGridColumn headerText="Full Name"
dataField="FULLNAME"/>
<mx:DataGridColumn headerText="Level"
dataField="LEVEL"/>
<mx:DataGridColumn headerText="" dataField=""/>
</mx:columns>
</mx:DataGrid>
<mx:Button x="249" y="103" label="Search"
click="http_search.send();"/>
<mx:TextInput x="99" y="27" width="132"
id="search_username"/>
<mx:TextInput x="99" y="51" width="132" id="search_userid"/>
<mx:TextInput x="99" y="79" width="132" id="search_email"/>
<mx:Label x="19" y="81" text="Email" width="84"/>
<mx:Label x="19" y="27" text="Username" width="72"/>
<mx:Label x="19" y="53" text="User ID" width="84"/>
</mx:Canvas>

<mx:Canvas label="User Detail" width="100%" height="100%"
id="userdetailtab">
<mx:Label x="38" y="107" text="Signup Date" width="74"/>
<mx:TextInput x="151" y="103" id="signupdate"
enabled="false" width="269">

<mx:text>{http_usergridclick.lastResult.RESULTS.SIGNUPDATE}</mx:text>
</mx:TextInput>
<mx:Label x="38" y="79" text="Email" width="74"/>
<mx:TextInput x="151" y="75" id="email"
text="{http_usergridclick.lastResult.RESULTS.EMAIL}"/>
<mx:TextInput x="151" y="163" id="level"
text="{http_usergridclick.lastResult.RESULTS.LEVEL}" width="269"/>
<mx:Label x="38" y="23" text="User ID" width="74"/>
<mx:TextInput x="151" y="19" editable="false" id="user_id"
text="{http_usergridclick.lastResult.RESULTS.USER_ID}" width="269"/>
<mx:Label x="38" y="51" text="Username" width="74"/>
<mx:TextInput x="151" y="47" id="username" width="269">

<mx:text>{http_usergridclick.lastResult.RESULTS.USER_USERNAME}</mx:text>
</mx:TextInput>
<mx:TextInput x="151" y="133" editable="false"
enabled="false" text="{http_usergridclick.lastResult.RESULTS.LASTDATE}"
width="269"/>
<mx:Label x="38" y="137" text="Last Set Schedule"
width="116"/>
<mx:Label x="38" y="165" text="Level" width="105"/>
<mx:Button x="355" y="193" label="Update"/>
</mx:Canvas>
<mx:Canvas label="User Schedule" width="100%" height="100%"
id="userscheduletab">
<mx:TabNavigator x="10" y="19" width="1006" height="563">
<mx:Canvas label="Resistence" width="100%"
height="100%">
<mx:DataGrid x="10" y="62" width="942" height="227"
editable="true" id="exercise_grid"
dataProvider="{http_usergridclick.lastResult.RESULTS.EXERCISEGRID}">
<mx:columns>
<mx:DataGridColumn headerText="Exercise
Name" dataField="EXERCISENAME" editable="false"/>
<mx:DataGridColumn headerText="Graphic"
dataField="EXGRAPHIC"/>
<mx:DataGridColumn headerText="Sets"
dataField="SETS"/>
<mx:DataGridColumn headerText="Reps"
dataField="REPS"/>
<mx:DataGridColumn headerText="Weights"
dataField="WEIGHTS"/>
<mx:DataGridColumn headerText="Circuit"
dataField="CIRCUIT"/>

</mx:columns>
</mx:DataGrid>
<mx:Button x="450" y="32" label="Next Day"
click="navigation.text='next'; http_usergridclick.send();" height="22"/>
<mx:Button x="195" y="32" label="Previous Day"/>
<mx:Button x="833" y="297" label="Remove Row"/>
<mx:Button x="316" y="297" label="Clone Date to
Date" width="142"/>
<mx:Panel x="39" y="341" width="698" height="113"
layout="absolute" title="Add Exercise to Grid">
<mx:Button x="570" y="36" label="Add Row"/>
<mx:Label x="10" y="10" width="76"
text="Graphic"/>
<mx:ComboBox x="10" y="36"
id="add_exgraphic"></mx:ComboBox>
<mx:Label x="199" y="10" text="Sets" width="53"
textAlign="center"/>
<mx:Label x="282" y="10" text="Reps" width="53"
textAlign="center"/>
<mx:Label x="360" y="10" text="Weights"
width="53" textAlign="center"/>
<mx:Label x="450" y="10" text="Circuit"
width="53" textAlign="center"/>
<mx:TextInput x="199" y="36" width="53"
id="add_sets"/>
<mx:TextInput x="282" y="36" width="53"
id="add_reps"/>
<mx:TextInput x="360" y="36" width="53"
id="add_weights"/>
<mx:TextInput x="450" y="36" width="53"
id="add_circuit"/>

</mx:Panel>
<mx:DateField x="305" y="32" width="110"
textAlign="center" id="test" enabled="true" editable="false"
formatString="YYYY-MM-DD" change="http_usergridclick.send();" 
dataProvider="{http_usergridclick.lastResult.RESULTS.WORKOUTDATE}" />

<mx:DateChooser x="305" y="53" showToday="true"
enabled="true" visible="false" id="workoutdatechooser" />
<mx:TextInput x="588" y="32" id="navigation"/>
</mx:Canvas>
</mx:TabNavigator>
</mx:Canvas>
</mx:TabNavigator>
<mx:Style source="main.css"/>

</mx:Application>

 

Reply via email to