Oct
14

MAX is coming and we'll be there

9 comments Posted by: Nahuel Foronda

Yes, we'll be going to the MAX conference and also tomorrow we'll be going to LAFlashapaloozastock. If you are planing to go just say Hi :)

With the alpha release of Zorn aka Flex Builder 2 and all the talks about Flex I think that we will have a big amount of things to absorb.

BTW I filled the intro card to be in touch we the attendees

Category: Miscellaneous |

9 Comments so far

Write yours
Neil Bailey
1. Neil Bailey wrote on October 15, 2005 at 10:43 AM
Off topic, but I gotta ask; I have been having a LOT of trouble finding documentation that is on-point, dealing with cfFormGroups that are of type "repeater". Can I only have radio button groups that are of type repeater? We have a series of select boxes - the boxes themselves get built from a query (for example, we might have a select box a, select box b, select box c, etc), and then the options within each box get built from a different query.

Can we do this w/ a repeater? Currently, we bit the bullet, and just had a query that we looped through and used coldfusion code to create the cfselects, but we would really rather use a repeater, as this would signifigantly decrease the time it takes for the form to load (it wouldn't have to re-compile each time).

Does anyone have an example of anything like this? Can it be done, or are repeaters basically just used for radio buttons and/or checkboxes?

Thanks in advance...
Nikita
2. Nikita wrote on October 16, 2005 at 4:23 AM
I found you promissed to clarify something that I really need to know :)

"Can anyone tell me if we can change the dataprovider for a repeater, like w/ a cfgrid?
Posted By Neil Bailey / Posted At 8/24/05 9:29 AM

Neil,
yes, you must set it as:
theNameOfTheQuery.dataProvider = results;

the name of the query is the query that populates the repeater.
I will make an example of that when I get a minute.
Posted By Laura / Posted At 8/24/05 3:25 PM"


would be great to hear.. thanks alot, your site is very usefull though I did not post anything here so far

Neil Bailey
3. Neil Bailey wrote on October 16, 2005 at 5:34 PM
Can anyone tell me how to dynamically set a radio button with actionscript? I KNOW I am doing this somewhere, but can't find it for the life of me. We have a series of questions with two radio buttons - YES and NO. We are loading past questionaires, and I need to be able to "remember" what you selected for question X in the past, and then set the radio button for question X to that value.

Anyone...?

Thanks in advance!
Neil Bailey
4. Neil Bailey wrote on October 16, 2005 at 5:39 PM
I found it:

radioButtonName.selectedData = 'SOME_VALUE';

I was looking under RADIOBUTTON in the docs. I found what I needed under RADIOBUTTONGROUP.

Doh!
Neil Bailey
5. Neil Bailey wrote on October 16, 2005 at 8:26 PM
Yet another question!

I can return a structure from a remoting CFC, and select the appropriate selection from a drop down box. No problem.

However, what if I need to select MULTIPLE items in the select box. I did find a property called selectedData, but was wondering if anyone had seen an example anywhere on how to use it? Laura, Nahuel, have you had any experience doing something like this?

Thanks guys..
Neil Bailey
6. Neil Bailey wrote on October 17, 2005 at 10:27 AM
I found the answer (or at least, ONE answer) to dynamically (via remoting) selecting multiple items in a multiple select box. The way I finally got it to work was via the selectedIndices property. This is an array that holds the selected indexes, for example an array containing [1,7,3,8] would select the second, eigth, fourth and ninth elements in the drop down box (the order that they are listed in the array appears to be irrelevant).

I hope this helps SOMEONE, as it took me hours to figure out :)

Jason
7. Jason wrote on October 17, 2005 at 11:41 AM
Sounds interesting, an example will be much appreciated. Thanks Neil.
Neil Bailey
8. Neil Bailey wrote on October 17, 2005 at 11:52 AM
Please keep in mind that my AS skills are very young :)

I have a select box, with a list of items and UUID's (the UUIDs are obviously the values). The select box (there are actually several, but I deal with one at a time) has a height of 3, and can accept multiple selections.

I call a CFC via remoting to pull up any past form submissions that the current user may have entered (its an online employment application). I needed to be able to "remember" any selections that the user may have submitted in the past for this select box.

The CFC returns a structure, one of the elements is an array containing the previously selected items for this select box.

With me so far? This is the code that goes through, determines what items SHOULD be selected, and then selects them

if (_root.sel_experienceManagement.length > 0 && results.management_experience.length > 0) {

var aTempHolder:Array = [];
for (var x:Number = 0;x <= _root.sel_experienceManagement.length;x++){
for (var y:Number = 0;y <= results.management_experience.length;y++) {
if (_root.sel_experienceManagement.getItemAt(x).data == results.management_experience[y]) {
aTempHolder.push(x);
}
}
}

Again, there may be an easier way to do this (this is the standard disclaimer I use for ALL of the AS posts I put here :), but this is the way I got to work after MUCHO research.

If anyone can improve it, please let me know. I appreciate it, and hope that this helps anyone who was having the same problem I was.
WayneG
9. WayneG wrote on October 19, 2005 at 10:20 PM
Pls help...Perhaps Neil you have the answer?

How do you submit datagrid changes via remtoing to a CF CFC? I dont know the action script or how to loop corectly to get the required column data that has been edited.

I get it to work with a submitForm(), to CFC. Need flash remoting to do the work without having to build the flash form again...

Pls help... thanx

Leave your comment

Comment etiquette: As a gesture to those subscribed to this post, please keep your comments relevant to the post.

Your email address will never be displayed.
Email is gravatar enabled.Gravatar are the pictures you see next to the comments. If you like to have one, visit gravatar



Allowed tags:

<code>
All other tags will be shown as such, when in doubt, use the preview.

Leave this field empty:


Preview:

Refresh Preview
1. You wrote on