Selecting Widgets in ArrayF
TransCanada PipeLines P.O. Box 1000, Station
M
Calgary, Alberta, T2P
4K5
Telephone: (403)
267-6100
FAX: (403) 267-6444/5/6
Corporate Head Office
Reply: Selecting Widgets in ArrayField
Hi,
Is it possible to select (ie. have hilited) a row in an Array Field even though the column you click on has a state of Drag?
Also, if I have an ArrayField consisting of DataFields and ToggleFields, is it possible to hide the toggle field widgets for those rows in the ArrayField that don't have corresponding rows in the array variable? I have an Array field that has 5 visible rows, but only two rows are actually in the array. The problem is that Forte displays the toggle fields for the last 3 rows even though there aren't any rows in the corresponding array variable.
Thanks in advance for your help,
Brendan Duddridge
These widgets work best when you have a strong internet connection. You could try reloading the widgets by pressing Command-r.
Similar Messages
-
Filtering A Dataset Using the Spry Validation Select Widget
Given the code below, how can I filter the rows in the
ds_BestConvertingByCategory dataset (in the spry:repeat area) that
match the product category (prodcat_id) selected in the Spry
Validation select widget?
// product categories table: columns - prodcat_id,
prodcat_desc
var ds_ProductCategories = new
Spry.Data.XMLDataSet("category_qry2xml.php", "product/category",
{useCache:false});
// has prodcat_id column
var ds_BestConvertingByCategory = new
Spry.Data.XMLDataSet("product_qry2xml.php", "special/deals[type =
'Best Converting']", {useCache:false});
// Spry regions inside a TabbedPanel
<div class="TabbedPanelsContent">
<form id="formOffersByCategory" class="frmsprysel"
name="formOffersByCategory" method="post" action="">
<strong>Select a Product Category: </strong>
<span spry:region="dsProductCategories"
id="spryselectProductByCategory">
<select spry:repeatchildren="ds_ProductCategories"
name="offersByCategory" id="offersByCategory"
onChange="ds_ProductCategories.setCurrentRowNumber(this.selectedIndex);">
<option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
value="{prodcat_id}"
selected="selected">{prodcat_desc}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
value="{prodcat_id}">{prodcat_desc}</option>
</select>
</span>
</form>
<div id="offersbycategory"
spry:region="ds_BestConvertingByCategory"
class="SpryHiddenRegion">
<table id="offersByCategoryTbl" width="100%">
<tr class="colhdr">
<th width="50%">Offer</th>
<th width="50%">Code</th>
</tr>
<tr spry:repeat="ds_BestConvertingByCategory">
<td width="50%">{displaytext}</td>
<td width="50%">{offer_code}</td>
</tr>
</table>
</div>
</div>
// Spry validation select widget
var spryselectProductByCategory = new
Spry.Widget.ValidationSelect("spryselectProductByCategory");Hi flipone01,
To do this, make your region depend on both
ds_ProductCategories and ds_BestConvertingByCategory, then use the
spry:test attribute in conjunction with spry:repeat to weed out
items that don't have the same product id:
<div id="offersbycategory"
spry:region="ds_BestConvertingByCategory ds_ProductCategories"
<tr spry:repeat="ds_BestConvertingByCategory"
spry:test="{ds_BestConvertingByCategory::productcat_id} ==
{ds_ProductCategories::productcat_id}">
</div>
Remember that if you make a region depend on more than one
data set, you need to switch to using fully qualified data
references as the example above does (using the :: notation). If
you don't do that the data references default to the first data set
in the spry:region attribute.
--== Kin ==-- -
Spry validation select widget problem
Dreamweaver CS3
Im using spry validation for my form but the two spry validation select widgets I am using are not working. When I test them I keep getting errors that nothing has been selected when something has in fact been selected. I've used spry validation before with no problems but this is the first time using the spry validation select widget.
My code:
<tr>
<td valign="top">Page in Question*</td>
<td valign="top"><span id="spryselect1">
<label>
<select name="select1" id="select1">
<option selected="selected">Home</option>
<option>About Us</option>
</select>
</label>
<span class="selectRequiredMsg">Please select an item.</span></span></td>
</tr>
<tr>
<td valign="top">Which Internet Browser do you use?*</td>
<td valign="top"><span id="spryselect2">
<label>
<select name="select2" id="select2">
<option selected="selected"> </option>
<option>Internet Explorer</option>
<option>Firefox</option>
<option>Safari</option>
<option>Opera</option>
<option>Google Chrome</option>
<option>Other</option>
</select>
</label>
<span class="selectRequiredMsg">Please select an item.</span> </span></td>
</tr>
Appreciate the help.Hi Daniel,
Im having the same problem, can you please tell me what you did? I understand you found the problem?
Thank you! -
Confusing documentation for Validation Select widget
On the website
http://livedocs.adobe.com/en_US/Spry/1.4/index.html
there's a page titled "Validation Select widget overview and
structure." The article is confusing because the example is a
pull-down menu of states, e.g., Alabama, Alaska, etc. But then
"states" also means valid, invalid, required value, etc. This
double meaning makes the documentation difficult to understand. The
documentation should use an example of, for example, cities or
countries.
Also this widget has name different names. In Dreamweaver
it's called "Spry Select." But on
http://livedocs.adobe.com/en_US/Spry/1.4/index.html
it's called "Validation Select." Both names are misleading, it
should be called "Pull-Down Menu Validation."Hi Daniel,
Im having the same problem, can you please tell me what you did? I understand you found the problem?
Thank you! -
How to populate the dropdown in selection widget from a file?
i am using a cq:widget of xtype selection and type select. I got lot of values as my options.i want a simple procedure to populate them. They have mentioned that they can be populated from a json response. Can you explain how to do the same? or is ther any other method for the same
Steve,
You can check OOTB List component at below location.
/libs/foundation/components/list/dialog/items/list/items/displayAs
Here dispalyAs tab having cq:widget of xtype selection in which values are populating through displayoptions.json.jsp which is referenced by options property set on displayAs tab.
Regards
Briejsh Yadav. -
Selecting widgets: why is there a spash affect on
Ok,
I was at the Apple Store today, just looking at some things, and I noticed someone click the Dashboard icon to add a new widget. When it first appears on the screen, it has a "spash" affect. I have never seen this on my PPC G4 Powerbook. Is this spash affect some cool thing that you have to enable??Is there a way to turn that effect off?
Band_Geek = Rubik's Cube Master -
How to create widget Dynamically at run time using action script
i have created widget's in my application . but in the main page i want only selected widgets to be displayed..
lets say i have 3 categories of users for which i've created 3 widget groups i.e. search , update , report. with in these groups i have number of widgets. if user belongs to searchUser category only search widget group has to be displayed in my main page, if user belongs to updateUser group i want to display search and update widget group in my main page and so on..
thanxAssuming these widgets are always on your main page, you could bind the visible parameter of the widget to variable, and then set that variable depending on the users group. So you could mark your groups search =1, update =2, report =3. Have a Bindable variable that you can set corrisponding to the group of the current user
[Bindable]private var groupLevel:int;
then in your search widget tag, set the visible parameter like so visible={(groupLevel>=1)?true:false}
user widget would be visible={(groupLevel>=2)?true:false}
and report widget visible={(groupLevel==3)?true:false}
that should allow the widget so appear for the appropriate group. -
Using spry select on multiple forms in same page
Greetings-
My apologies if this has already been answered but after a few searches I've not found my solution....
I have a web page with 2 different forms (completely different open form and close form tags) that I'm trying to get the Spry Select Widget to work in.
Both forms' Spry Select widgets interact as expected with the user with one exception; the second form continues to submit to the action page even if the user is trying to submit an invalid value (the docs suggested using the value of -1 so that's what I'm using). The appropriate error gets displayed to the user but the form continues to submit, which I don't want. Is there a limitation that I missed regarding the use of multiple forms in the same web page with the Spry Select Widget?
FWIW, I'm running the app on ColdFusion and even the cfform/cfselect won't work with the Spry Widget.... I've named and id'd all forms and form elements and still no luck.
Any ideas?
Thanks in advance,
RichHi Brad,
The preamble looks reasonable. I would like to make sure you are clear on the process.
The data needs to be rendered twice (i.e. a 2 step job). In the first step you create a trace file with the page count for each document in it...\trace"^define User:PageCountForTrans_@:TransCount. @$page.@LF."."
In the second step, that trace file is brought back in as a preamble file.
Please confirm that you are in fact passing the data twice.
cheers
Chris -
Using the States Example how can I set Selected to Maryland Without RowNumber
Let's use the states example for the sake of everyone having
the code in front of them. If I am returning a value from the
database that I am writting out to the application like this
<%out.write("STATE_NAME"); %>
how can I set the selected value to that without knowing what
the row number is, here is my try but I get a few error messages:
<option spry:if="{name} == '<%out.write("STATE_NAME");
%>'" value="{name}" selected
="selected">{name}</option>
<option spry:if="{name} != '<%out.write("STATE_NAME");
%>'" value="{name}" >{name}</option>
I get double the states and the following in the debug box:
Caught exception in Spry.Data.Region.prototype.processTokens
while evaluating: Alabama == Exception:[object Error]
Caught exception in Spry.Data.Region.prototype.processTokens
while evaluating: Alabama != '' Exception:[object Error]
This goes on for as many records as I have in the DB,
Please let me know how it could be done if it could be done?I believe what you guys are looking for is the
Set
Default Row Based on Specific Column sample that is on the
Spry
Samples Page.
The problem of using a spry:if="{name} ..." approach is that
it only makes sure the form select widget is set to what the server
thinks is the current row in the data set, but it doesn't actually
set the current row in the data set to reflect this, so the cities
select is out of sync cause it is defaulting to displaying the
cities for the first row in the states data set.
Checkout the sample I mentioned above, it will show you how
to set up an observer where you can query for the correct row
immediately after the data is loaded, and then set the current row
so that everything is as expected.
--== Kin ==-- -
Validation Select works on FF not on IE
Hi guys!
Made a few tweaks on the site today, and I just realized that
my Validation Select Widget was not working on IE 7 (!). I'm
completely puzzled. It works fine on Firefox, as always... could
someone shed some light?
Here's the page:
http://www.cosmicollective.org/archive.html
What am I missing?
Thanks in advance.
TomasHi Cristian,
Thank you very much for your reply. I fixed the errors you
pointed out, and I also realized I didn't quite understand what the
problem was:
I completely removed the Validation Select script, because,
as you said, there are no forms on the site. The problem is that
the changes on the selection form do not reflect the
spry:detailregion that is supposed to display the selected item on
the list. The problem should be within the drop-down list code,
which has the "spry:setrow" function.
Again, this problem is for IE only (and Safari, which does
not load any data, but that's a different forum post). Firefox and
Opera change the post accordingly.
Note that on FF the page loads with both master and detail
region set on the same row, but on IE the drop-down list displays
the first item, and the detail region displays the last - they seem
to be completely unrelated.
Does this clarify the problem? Again, I appreciate a lot your
help, and thank you in advance.
Best regards,
Tomas -
Widgets Won't Work but Dashboard opens
I can open the dashboard and select widgets but if I try to open a widget or drag it onto the desktop, it automatically closes the dashboard and widgets fall off the screen, I think maybe somehow I've lost the original default settings and have disabled it? I really want to use my widgets, please advise
Hello Starman,
I am experiencing exactly the same symptoms on a brand new iMac 24" 2.8GHz / 2GB RAM :
- fresh full reinstall of MacOS 10.5.1 + QT 7.3.1 + Security Update 2007-009 v1.1
- no other widget installed than Apple standard ones
- I have 3 users created on my iMac : 1 admin, 1 for normal use + 1 for the kids
(no parental control activated)
- widgets have been working OK for 48h, and without any explanation, they are gone ?
I mean :
- when I launch Dashboard, I obtain a "grey" screen, without any widget at all appearing ;
- the "+" is available in the lower-left corner of the screen, and allows me only to select
the very first "Widgets" management tool : any other widget simply refuse to be selected ;
- any other action when Dashboard is active sends me back to the main Desktop window...
I deleted all related Pref files, tried the Terminal trick to deactivate then reactivate Dashboard, I even downloaded the Onyx Beta version for Leopard to clean all caches and then rebuild the authorizations on my startup disk, no way - still no Widgets
Any clue, pliz ?
Apple is not very optimistic in their note <http://docs.info.apple.com/article.html?artnum=307022>, let's hope a clear solution will be found rapidly.
Thanks,
Didier -
Dashboard stopped showing my widgets - I get nothing
When I go to my dashboard using the corner I selected in preferences, I get a dimmed screen as if I am starting from scratch. I tried to do just that by using the + symbol and selecting widgets, and it all works like it's supposed to. But the widget does the liquid look and then just disappears. No widgets I used to have active are showing up anymore.
I use Virtue Desktops as a fake "Spaces" on Tiger, and I wondered if this was part of the problem? Although when Virtue Desktops is off, I am still unable to access them, and I do remember using the widgets and the desktops at the same time with no problem. Figured it'd be smart to mention it, though in case you think it's the cause.
Any suggestions on troubleshooting? I have been having issues with my Mac lately, and recently quarantined a virus called "downloader" through Norton, which occurred when I upgraded to 10.4.11. I still have issues opening some apps as a result. (This is a topic in another discussion, but the more you know, the more you might be able to help...I hope?)
I appreciate your time and your suggestions.
Best,
ChrisThanks for the reply:
I've done that using the Disk Utility program and also did it off the start up disk, and it has done nothing to fix the issue. Weird, huh? -
Persistent thick black selection outline on screen
I have a sort of permanent thick black outline around selected widgets on the current window. If the outline is for a text entry box then it sometimes stays in the one place on the screen as I scroll the page. It is quite annoying.
This only occurs for one user account on the machine the other is fine. I am not sure what caused it but I suspect it might have been a virtual desktop application called Desktop Manager. I have stopped using that app but the visual problem still occurs. I have no idea how to cure this problem without removing the user account and recreating it.
This seems to be some sort of configuration thing but I am new to Macs and have no idea how to find what is causing this.
MacBook with osx 10.4.10.That was it! Thanks. I had a look at those settings but "voiceover" didn't suggest a thick black highlight to me.
Most appreciated. -
Widget option does not appear when trying to add Firefox home screen widget
E mail suggested the method of holding empty space on home screen, then select "widgets" and add Firefox widget. Unfortunately my nexus 7 only offers wallpapers, android messenger and 1 other. Please advise, thanks Allan
Thanks for trying to help.
On the main computer, per "Part 3: Connect your other computer to your Sync account", there remains no indication of being signed in, no Manage Account button and no Add a Device link when I click on the Sync icon in Options (accessed like this: Firefox menu, Options menu, Options menu item, Sync tab).
The account has, however, been set up and I can sign into it to manage it at https://services.mozilla.com/ and after following the procedure at the "I don't have the device with me" link my iPod Touch and laptop both reported that Firefox Sync had been successfully set up. However, experimenting to see if it is working, adding a new bookmark on the desktop PC does not result in it being replicated in Firefox Home on the iPod Touch after tapping Settings, Refresh (although I am shown as signed in on the iPod Touch).
Am I missing out some step regarding having the account "active" on the desktop PC? -
Spry Select Firefoxs/Safari
Hi All,
Need help, the below spry select widget is not passing the
select elements value after selection in Firefox and Safari... It
works fine on IE and just realized its not working in
Firefox/Safari...
So this isn't a obvious spry functioning problem, the spry
works fine... But rather the select element and it's value is not
being passed when the form is submitted.
When the user selects a state it then loads a dataset to
select a town... Below is the State select form element.
<span id="spry_Search_State" spry:region="StatesXML">
<label>
<select name="Search_State" id="Search_State"
onchange="document.frm_Search.Seach_Town.disabled = false;
document.getElementById('Seach_Town').style.background = '#FFFFFF';
document.getElementById('Search_Title').style.color = '#000000';
StatesXML.setCurrentRowNumber(this.selectedIndex); "
spry:repeatchildren="StatesXML" class="forminput">
<option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
value="{url}" selected="selected">{name}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
value="{url}">{name}</option>
</select>
</label>
</span>It's hard to diagnose your problem if we can't see your
setup. As an alternative, I whipped up this simple form, and it
seems to work just fine. Does it work for you?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Spry Submit Test</title>
<script type="text/javascript"
src="SpryAssets/xpath.js"></script>
<script type="text/javascript"
src="SpryAssets/SpryData.js"></script>
<script type="text/javascript">
var StatesXML = new Spry.Data.XMLDataSet("states.xml",
"/states/state");
</script>
</head>
<body>
<form action="foo.html">
<span id="spry_Search_State" spry:region="StatesXML">
<label>
<select name="Search_State" id="Search_State"
onchange="StatesXML.setCurrentRowNumber(this.selectedIndex);"
spry:repeatchildren="StatesXML" class="forminput">
<option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
value="{url}" selected="selected">{name}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
value="{url}">{name}</option>
</select>
</label>
</span><input name="myTF" type="text"
value="myTFValue" />
<input name="" type="submit" value="submit" />
</form>
</body>
</html>
--== Kin ==--
Maybe you are looking for
-
Adobe Creative suite 5.5 design standard-student teacher license error
Trying to add my adopt creative suite 5.5 design standard-student teacher to my new computer since my old one crashed, but the new computer has no CD Drive. We transferred the files to an SD card, moved to desktop but it won't load. I also tried to
-
I have made several attempts at creating a slideshow and each time the photos lose their edge and appear out of focus when played. All photos were processed in Photoshop CS2 and imported into Encore through Adobe bridge. I have tried both JPG and PSD
-
Yesterday, my iMac froze and started beeping. Turned it off and back on, and then today it did the same thing again. System Info says the RAM is OK, and an extended hardware test says that no problems were found in any of the hardware. So, I really d
-
Radio Stations and CD in drive does not display tracks in iTunes
My iTunes will not display the stations when I open the radio and when I insert a cd there is no text. Itunes recognizes the cd however nothing is displayed. I have had this problem once before and someone had me delete a registry file. Can anyone as
-
HT4009 someone has used my account to buy a product how can i get a refund
someone has used my account to buy a product how can i get a refund