Problem setting Index value on ComboBox

I am running into a problem with setting the index on a
dropdown box. I will try to give as much detail as possible. From
what I can tell, it should be working and does, but only for one
item. If anyone can suggest a different group to post to, let me
know. I can not find a solution anywhere.
I have the following code to show a combobox. The data is
derived from a XML config file. The combobox itself works fine and
does in fact show all of the data from the XML config file.
<mx:HBox>
<mx:Label text="Status" width="55"/>
<mx:ComboBox id="uxstatus" dataProvider="{_xmlVulnStatus}"
labelField="status"/>
</mx:HBox>
The part of the XML config file that is used to populate the
combobox.
<mainconfig>
<vulnstatus>
<status>Open</status>
<status>In Progress</status>
<status>Closed</status>
</vulnstatus>
</mainconfig>
Now, when a user selects an item from a separate datagrid, on
change I have it run the following function. The function reads in
the data, parses it and compares the "status" value from the
datagrid info with the "status" options in the XML config file.
When it matches, it sets the index number for the combobox so it
shows the right data. My problem is below the function.
public function parseMSVulnStatus(evt:Event):void {
var xmlMSV:XML = XML(msdetailed.selectedItem); //the host
dataProvider item
//trace ("MS Vuln status = "+xmlMSV.status);
for ( var MSVi:Number=0; MSVi<_xmlVulnStatus.length();
MSVi++ ) { //loop over the items in the dataProvider
var sDataValueCurMSV:String =
_xmlVulnStatus[MSVi].valueOf(); //get the current item.data value
if ( sDataValueCurMSV == xmlMSV.status ) { //compare desired
value to current item.data value
mx.controls.Alert.show("match found - MS Vuln status =
"+xmlMSV.status +" and MSVi = " +MSVi);
msstatus.selectedIndex = MSVi; //set the seletedIndex of the
combo box
else {msstatus.selectedIndex = -1}
if (msdetailed.selectedItem.falsepos=='Y')
{msfalsepos.selected=true;}
The problem. If the value from the datagrid is "Closed", it
shows the index as being "2" and sets the combobox index
appropriately and displays "Closed". The alert box is displayed
(for testing) to show the values.
If the value from the datagrid is either "Open" or "In
Progress", it does show the proper index as being either 0 or 1,
respectively and shows the alert box. However, the combobox appears
to be set to -1. I have verified the data is set properly in the
database (which is what populates the datagrid).
Any thoughts on this? Based on my alert box, it appears that
the data is seen properly and that it knows how to set the index of
the combobox.... it's just not happening (unless it's "Closed").
Thanks in advance.
Chris

you could force a selected index using something like
mydatagrid.selectedIndex=0 or 1 try this pos i made for someone
beacause if you want to cange the value of field based on selection
this could be simpler by using an xml file with all the value for
each record in one object
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1273227&CF ID=48614795&CFTOKEN=89f80916a77a7788-F5418AD3-F360-8283-2DCCA603D0E18DCF&jsessionid=48307b ef3fdf5663544a

Similar Messages

  • Problem setting initial value for LOV

    Hello, everyone. This seems like it should be simple, but it's giving me lots of problems. I am trying to create my first LOV. I have a messageLovInput item called PFedFilingStatus. From the Property Inspector, I can set an Initial Value of "02", which displays when I run the page, and lets me change it and validate it using the associated LOV.
    What I would rather do is set the initial value programmatically, but here are my problems:
    If I set the value like this:
    OAMessageLovInputBean lovText = (OAMessageLovInputBean)pageLayout.findIndexedChildRecursive("PFedFilingStatus");
    lovText.setText("02");
    then the field displays properly at run time, but can't be changed. The LOV runs, but any value I select flips back to "02"
    If I set the value like this:
    lovText.setDefaultValue("02");
    then nothing seems to happen at run time. The value is not displayed at all.
    Can anyone tell me what I am doing wrong? Thanks for your help.
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, that helps a bunch. Now can you tell me where that is set?
    Thanks so much.
    --Dave                                                                                                                                                                                       

  • Problem setting the value of a substitution variable in a calc script

    Hi, All.
    I'm trying to update the value of a substitution variable inside an IF statement and I'm having trouble.
    Here's the code:
    *"Jan"(*
    IF  (LoopCounter = 1) &varEntity = "100";
    ENDIF;)
    the error I get back from EAS is:
    Error: 1200336 Error parsing formula for [Jan] (line 54): [(] without [)]

    I know CL knows a lot about HBR, if he's around today... LOL
    As a matter of fact, I just used an HBR (not using Calc Manager till I have to)'s macro functionality to drive fx for different Scenarios in a Planning app. Here's how I call the macro:
              /*     Call the macro mcrFxCoreOutYears for the four fx rate types for ALL 12 months of the year.     */
              FIX(&BudYear)
                   %mcrFxCoreOutYears(Constant)
                   %mcrFxCoreOutYears(Comparable)
                   %mcrFxCoreOutYears(Estimate)
                   %mcrFxCoreOutYears(Actual)
              ENDFIXI pass the Scenarios Constant, Comparable, Estimate, and Actual to the macro mcrFxCoreOutYears. You can apply HBRs against Essbase.
    I believe (I can't remember what exactly -- is it that templates don't accept parameters? That seems hard to believe. Looking at a CM template, that does seem to be the case. Bummer if I'm right.) that Calc Manager BRs have less functionality wrt templates, but I haven't worked with CM for over a year.
    It works really well -- a single place to maintain code and no appreciable performance cost.
    You cannot launch a HBR from a MaxL script but HBRs can be launched from command lines -- this may constrain where you place your automation (it basically has to run off of whatever the EAS server is. You may end up shelling out of MaxL to execute the HBR or even execute scripts across servers -- that does get more complicated.).
    Anyway, if you have any more questions, ask away -- it really is a very powerful component. I will have to look at CM more closely (sooner or later I will lose the HBR vs CM argument and at least need to know if templates support parameters) to see if I'm right on what I wrote above.
    Regards,
    Cameron Lackpour
    P.S. You cannot define an ARRAY in an HBR macro because ARRAY arrayname[value] gets read as a parameter. I ended up declaring the array in the calling HBR.
    P.P.S. I really need to write up the fx approach in a blog post -- it is wicked fast and really easy to use. Too many other posts in the queue already.
    Edited by: CL on Aug 24, 2011 1:48 PM

  • Setting field value from antother field

    I am having problems setting the value of a field depending on the entry of a previous drop down field.
    I am creating some wizard pages. On one page i wish a drop down list to populate another field. The drop downlist is unbound. (I have tried doing this with bound field aswell). To do this I have the Depends on Item of the target field to depend on the dropdown list field, so that the appropriate values are updated. (i have tried with the target field being bound and unbound aswell not that it should matter).
    I have then updated the VO (view object) adding transient fields when the fields are unbound. Then i updated the view row class. The setter of the drop down field was used to set the value of the target field. (Using the setter of target field). I added system.out.println and the fields are called and set accordingly. ie getters and setters are correct.
    However when i run the screens the target field value is not set with the value within the getter of target field.
    Could you advice if this is a bug or whether i should be coding this in a different manner. (if it is a bug and you tell me when it is likely to be fixed and any alternative work arounds).
    Cheers
    Alan

    Alan,
    Not really a bug, but "missing functionality". The problem is that ADF Faces will only refresh a UI Component value from the underlying model binding value when you submit the request with immediate="false", OR when you explicitly call resetValue() on the component.
    We have added a new boolean item-level property "Clear/Refresh Item When Depends-On-Item Changes" in the latest build.That property will do the trick for you: it will clear the value and call resetValue on the UI Components of the dependent items, BEFORE the depends-on-item model value is updated. So, in your case, the setter method of your depends-on-item attribute will update your dependent item after JHS cleared the item, and you will see the new value right away because UIComponent.resetValue() was called as well.
    Steven Davelaar,
    JHeadstart Team.

  • Problem setting a hidden item value when button clicked with dynamic action or pl/sql process

    Apex 4.1
    Oracle 11g
    I have a page that consists of a main region and several sub regions.  I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
    Three subregions have a contional display where P400_DISPLAY = STORE.  This works in hiding the sub regions.
    Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
    I tried creating a dynamic action for on click of the add button but get the following error:
    The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
    I went to the templates and found:
    Substitution Strings
    Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
    Substitution String
    Referenced
    From
    Description
    #LINK#
    Yes
    Template
    To be used in an "href" attribute
    #JAVASCRIPT#
    No
    To be used in an "onclick" attribute
    #LABEL#
    Yes
    Template
    Button Label
    #BUTTON_ATTRIBUTES#
    No
    Button Attributes
    #BUTTON_ID#
    No
    Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
    I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed.  The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
    Suggestions please on how to fix the template or change the P400_DISPLAY value?

    The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
    So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
    What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
    Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
    Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
    Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
    See the problem?
    Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
    I bet it is the first issue but, take a look at these.
    Cheers,
    -Joe

  • To set default value as blank  in drop down by index

    Hi Experts ,
    I'm using Adaptive RFC model to get data from SAP and I've to create DropDownByIndex  and populate it with the data.
    I am getting data in the drop down but when my screen is displayed , I contains one of the values from the Drop down as default . But I want default value as blank .
    How to set blank value as default.
    Thanks in advance

    Hi
    U shuld Make the Node that Is Bound to the DropDown By Index Ui Element Selection Property as 0..1 and Not 1-1 which says that that it can hold even zero instance
    oh Sorry Valery i did not check ur Post
    Wishes
    Krishna kanth
    Message was edited by: krishna  kanth

  • Problem While Defining  "VALUE SET"

    Dear All,
    I am finding problems while defining "Value Set".
    I wanted to select "DISTINCT" Column from a particular Table.
    It is not allowing me to select distinct Column.
    Is there any other alternative ??

    Hi Tarak,
    Create a view selecting distinct values and then use this view as a table in your value set.
    Vishal

  • Cisco IP SLA - RTTMON MIB - Problem setting values

    Hi,
    I am trying to use Cisco IP SLA to monitor QOS for voice data. I want to create a SLA operation from my NMS. I am using the RTTMON-MIB for this purpose. I was testing it out by creating an ICMP Echo operation, and I set the below values
    rttMonCtrlAdminRttType.1 -Integer 9
    rttMonEchoAdminProtocol.1 -Integer 27
    rttMonEchoAdminTargetAddress.1 -OctetString "172.22.202.12"
    rttMonEchoAdminTargetPort.1 -Integer 8000
    rttMonEchoAdminInterval.1 -Integer 20
    rttMonEchoAdminNumPackets.1 -Integer 100
    rttMonCtrlAdminStatus.1 -Integer 4
    rttMonScheduleAdminRttStartTime.1 -TimeTicks 1
    rttMonScheduleAdminRttLife.1 -Integer 2147483647
    I have set these values for an INDEX 1, using snmpset_requests. Can anyone tell me as to how do I go about with the indexing. I just chose 1 for the above eg and set the values. But I see the  rttMonCtrlAdminIndex oid has not been updated with the new entry. Neither am I able to set the value of index as 1 for this oid using snmpset.
    Can anyone please tell me how the indexing is done? Should I set the value of the index?
    The other question is the format for the target ipadress? This OID accepts IP address as an Octet String. So '172.22.202.24' is ok? or should I convert it into some other format.
    Regards
    Roycey

    The admin index is a random number which you must generate.  It can be between 1 and 2147483647.   Use your management station's pseudo-random number generator to pick an initial value.  Then test it by polling rttMonCtrlAdminStatus for that index.  If a row exists, pick a new index.
    Yes, the IP address is of type OCTET STRING.  You are setting it correctly.

  • "Memclock Index Value" setting in Bios

    What the heck is this one??
    I thought that everything runs accordingly to FSB freq X HT multiplier
    e.g.
    200 FSB X 5HT = 1000 MHz Hypertransport
    So is the "Memclock Index Value" setting in Bios meaning that someone can independently overclock hypertransport bus from
    memory bus???...
    confused 
    Markoul

    Memclock index value is the rate from where memory speed and divider is calculated .
    You have to calculate what divider is being used , see examples.
    FSB is the value where th hypertansort speed and cpu clock speed is calculated .
    Eg 1.
    HTmultiplier (HTm) = 4x
    FSB= 250
    multiplier = 10
    Memory Index = 200
    Result=
    HT channel = HTm*FSB = 4x250 = 1000mhz or 2000MT/s
    CPU speed = multiplier*FSB = 10x250 = 2.5ghz
    Memory divider = multiplier x 200/Memory Index = 10 * 200/200 = 10 ( in this case divider is always eq. to cpu multiplier and some calls this 1:1)
    Memory speed = Cpu Speed / Memory divider = 2500/10 = 250mhz or DDR500
    Eg 2.
    HTmultiplier (HTm) = 4x
    FSB= 250
    multiplier = 10
    Memory Index = 166
    Result=
    HT channel = HTm*FSB = 4x250 = 1000mhz or 2000MT/s
    CPU speed = multiplier*FSB = 10x250 = 2.5ghz
    Memory divider = multiplier x 200/Memory Index = 10 * 200/166,67 = 12
    Memory speed = Cpu Speed / Memory divider = 2500/12 = 208mhz or DDR416
    Eg 3.
    HTmultiplier (HTm) = 4x
    FSB= 250
    multiplier = 10
    Memory Index = 133
    Result=
    HT channel = HTm*FSB = 4x250 = 1000mhz or 2000MT/s
    CPU speed = multiplier*FSB = 10x250 = 2.5ghz
    Memory divider = multiplier x 200/Memory Index = 10 * 200/133,33 = 15
    Memory speed = Cpu Speed / Memory divider = 2500/15 = 166mhz or DDR333

  • Problems setting up an NFS server

    Hi everybody,
    I just completed my first arch install. :-)
    I have a desktop and a laptop, and I installed Arch on the desktop (the laptop runs Ubuntu 9.10). I had a few difficulties here and there, but I now have the system up and running, and I'm very happy.
    I have a problem setting up an NFS server. With Ubuntu everything was working, so I'm assuming that the Ubuntu machine (client) is set-up correctly. I'm trying to troubleshoot the arch box (server) now.
    I followed this wiki article: http://wiki.archlinux.org/index.php/Nfs
    Now, I have these problems:
    - when I start the daemons, I get:
    [root@myhost ~]# /etc/rc.d/rpcbind start
    :: Starting rpcbind [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-common start
    :: Starting rpc.statd daemon [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-server start
    :: Mounting nfsd filesystem [DONE]
    :: Exporting all directories [BUSY] exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.1/24:/home".
    Assuming default behaviour ('no_subtree_check').
    NOTE: this default has changed since nfs-utils version 1.0.x
    [DONE]
    :: Starting rpc.nfsd daemon [FAIL]
    - If I mount the share on the client with "sudo mount 192.168.1.20:/home /media/desktop", IT IS mounted but I can't browse it because I have no privileges to access the home directory for the user.
    my /etc/exports looks like this:
    # /etc/exports: the access control list for filesystems which may be exported
    # to NFS clients. See exports(5).
    /home 192.168.1.1/24(rw,sync,all_squash,anonuid=99,anongid=99))
    /etc/conf.d/nfs-common.conf:
    # Parameters to be passed to nfs-common (nfs clients & server) init script.
    # If you do not set values for the NEED_ options, they will be attempted
    # autodetected; this should be sufficient for most people. Valid alternatives
    # for the NEED_ options are "yes" and "no".
    # Do you want to start the statd daemon? It is not needed for NFSv4.
    NEED_STATD=
    # Options to pass to rpc.statd.
    # See rpc.statd(8) for more details.
    # N.B. statd normally runs on both client and server, and run-time
    # options should be specified accordingly. Specifically, the Arch
    # NFS init scripts require the --no-notify flag on the server,
    # but not on the client e.g.
    # STATD_OPTS="--no-notify -p 32765 -o 32766" -> server
    # STATD_OPTS="-p 32765 -o 32766" -> client
    STATD_OPTS="--no-notify"
    # Options to pass to sm-notify
    # e.g. SMNOTIFY_OPTS="-p 32764"
    SMNOTIFY_OPTS=""
    # Do you want to start the idmapd daemon? It is only needed for NFSv4.
    NEED_IDMAPD=
    # Options to pass to rpc.idmapd.
    # See rpc.idmapd(8) for more details.
    IDMAPD_OPTS=
    # Do you want to start the gssd daemon? It is required for Kerberos mounts.
    NEED_GSSD=
    # Options to pass to rpc.gssd.
    # See rpc.gssd(8) for more details.
    GSSD_OPTS=
    # Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
    PIPEFS_MOUNTPOINT=
    # Options used to mount rpc_pipefs filesystem; the default is "defaults".
    PIPEFS_MOUNTOPTS=
    /etc/hosts.allow:
    nfsd: 192.168.1.0/255.255.255.0
    rpcbind: 192.168.1.0/255.255.255.0
    mountd: 192.168.1.0/255.255.255.0
    Any help would be very appreciated!

    Thanks, I finally got it working.
    I realized that even though both machines had the same group, my Ubuntu machine (client) group has GID 1000, while the Arch one has GID 1001. I created a group that has GID 1001 on the client, and now everything is working.
    I'm wondering why my Arch username and group both have 1001 rather than 1000 (which I suppose would be the default number for the first user created).
    Anyway, thanks again for your inputs.

  • How to set the value of an array element (not the complete array) by using a reference?

    My situation is that I have an array of clusters on the front panel. Each element is used for a particular test setup, so if the array size is three, it means we have three identical test setups that can be used. The cluster contains two string controls and a button: 'device ID' string, 'start' button and 'status' string.
    In order to keep the diagrams simple, I would like to use a reference to the array as input into a subvi. This subvi will then modify a particular element in the array (i.e. set the 'status' string).
    The first problem I encounter is that I can not select an array element to write to by using the reference. I have tried setting the 'Selection s
    tart[]' and 'Selection size[]' properties and then querying the 'Array element' to get the proper element.
    If I do this, the VI always seems to write to the element which the user has selected (i.e. the element that contains the cursor) instead of the one I am trying to select. I also have not found any other possible use for the 'Selection' properties, so I wonder if I am doing something wrong.
    Of course I can use the 'value' property to get all elements, and then use the replace array element with an index value, but this defeats the purpose of leaving all other elements untouched.
    I had hoped to use this method specifically to avoid overwriting other array elements (such as happens with the replace array element) because the user might be modifying the second array element while I want to modify the first.
    My current solution is to split the array into two arrays: one control and one indicator (I guess that's really how it should be done ;-) but I'd still like to know ho
    w to change a single element in an array without affecting the others by using a reference in case I can use it elsewhere.

    > My situation is that I have an array of clusters on the front panel.
    > Each element is used for a particular test setup, so if the array size
    > is three, it means we have three identical test setups that can be
    > used. The cluster contains two string controls and a button: 'device
    > ID' string, 'start' button and 'status' string.
    >
    > In order to keep the diagrams simple, I would like to use a reference
    > to the array as input into a subvi. This subvi will then modify a
    > particular element in the array (i.e. set the 'status' string).
    >
    It isn't possible to get a reference to a particular element within an
    array. There is only one reference to the one control that represents
    all elements in the array.
    While it may seem better to use references to update
    an element within
    an array, it shouldn't really be necessary, and it can also lead to
    race conditions. If you write to an element that has the
    possibility of the user changing, whether you write with a local, a
    reference, or any other means, there is a race condition between the
    diagram and the user. LV will help with this to a certain extent,
    especially for controls that take awhile to edit like ones that use
    the keyboard. In these cases, if the user has already started entering
    text, it will not be overwritten by the new value unless the key focus
    is taken away from the control first. It is similar when moving a slider
    or other value changes using the mouse. LV will write to the other values,
    but will not rip the slider out of the user's hand.
    To completely avoid race conditions, you can split the array into user
    fields and indicators that are located underneath them. Or, if some
    controls act as both, you can do like Excel. You don't directly type
    into the cell. You choose w
    hich cell to edit, but you modify another
    location. When the edit is completed, it is incorporated into the
    display so that it is never lost.
    Greg McKaskle

  • How to set default value to relationship filed(ess~my~fam)new child

    Hi Experts,
    i have a standard ESS Application for Family members/dependents for Malaysia(essmyfam)-->New child
    When i click on new child a view gets opened withcontains relationship field with dropdown.Kdsvh is the field that is binded to dropdown.By default downdown is empty,when i click on dropdown it contains some values(Legitimate,adopted,others).
    my problem is node binded to dropdown(selectedinfotype) contains many attributes.so how can i set default value as others from values that dropdown contains.
    Code i tried
    In wdinit of Vcperfamilymydetail component
    wdContext.currentSelectedInfotypeElement().setKdsvh(wdContext.nodeSelectedInfotype().getSelectedInfotypeElementAt(3).getKdsvh());
    Error: Indexoutofbond exception
    Reply is Highly appreciated..
    Thanks
    Shikore
    Edited by: kishore shikore on Aug 18, 2009 6:09 PM

    Hi Kishore,
                    you can set the lead selected value while adding the vales to drop down. let say u are getting the data from model node say "Test".
    use the below code in doinit method:
    int size = wdContext.nodeTest().size();
    for (int i-0;i<size;i++){
    ITestElement test = wdCOntext.nodeTest().getTestElement(i);
    ISelectedInfotypeElement element = wdContext.nodeSelectedInfotype().createSelectedInfotype();
    element.setKdsvh(test.getKcsvh());
    wdContext.nodeSelectedInfotype().addElement(element);
    if("Others".equals(test.getKdsvh())){
    wdContext.nodeSelectedInfotype().setleadSelection(element.index());
    Hope it helps
    Thanks and Regards

  • How to get UI5 Chart selected data set index

    Hi experts,
    I am facing problem with ui5 bar chart. i am not able to get the selected data set index of selected bar on the chart.
    I am using below method, but not getting any result from this method.
    ObjectName.getChartObject().getSelectedDataSetIndices()
    please suggest any methods are avaliable to get selected index?
    Thanks & Regards
    Venkat

    Hi Venkat,
    You can get the legend index and y-value by using the below code in the event handler that you have registered for ChartSelectionEvent:
         var meaureIndex = event.srcElement.__data__.ctx.path.mi + 1;
         alert(meaureIndex); //hack for getting legend index
         var selPoint = c.getChartObject().getSelectedPoint();
         alert(selPoint); //selected bar index
         var yValue = c.getChartObject().getYDataValueAt(meaureIndex,selPoint);
         alert(yValue);
    Using the legend index you should be able to get the legend name.
    Please note that parts of the above code for getting legend index is a hack (not in i5Chart documentation/reference)
    Hope this helps!
    Regards,
    Ria

  • Fetch the value from combobox

    we have two jsp files:-
    1. fundtrans.jsp
    2. update.jsp
    in file 1 we used 2 combobox and 1 textbox, we retrieved values in comboboxes from database.Now user select any value from both combobox and we want to send that value in next jsp page. After submitting values in both combobox and textbox , the database table updates.
    my problem is that we are not able to use the selected value in combobox on next jsp page

    Get the values and put it in the session (in your action class), then using session.getAttribute, get the values back in your another jsp.
    OR
    Put the selected values in the hidden field (do it in the javascript), using getter and setter method get the value back.

  • How to use cfloop index value as part of another variable

    Hello,
    I have a RATE form that first asks "how many rates will you
    be adding?" that answer generates a series of form elements based
    on the answer. You then have a form grid to populate, 3 values for
    each rate (price, code, name).
    This part works fine. The issue is now I need to INSERT the
    values into the table, so I need to use the INDEX value of the
    cfloop to recreate the amount (and names) of the fields in the
    INSERT statement. How do I escape, or re-create the evaluated form
    elements ( in which their count is #i# as the loop goes) when I
    need to evaluate for #i# AND evaluate for #form.sku_i_name# at the
    same pass?
    I am passing, for example, #form.sku_2_Name# where that might
    equal "Half Page". The number 2 in that variable was assigned
    during the form creation by the current index of a cfloop. Since my
    action (insert) page does not know how many (out of 50 possible)
    sku's are coming, how do I use the skuCount (another hidden value
    passed as well) to create a proper INSERT SQL command when I need
    to eval the form element and the index at the same time?
    Obviously #sku_#i#_Name# does not work, and #sku_i_Name# does
    not either... I know this can be done, and that I am just doing it
    wrong.
    Thanks for any help!

    bigbrain28 wrote:
    > Thank You, cfsearching! I don't quite understand 100%
    how it works
    As all three of us indicated you use array notation for this
    type of
    requirement. In ColdFusion you can use array notation or dot
    notation
    to access structure data. Almost all data in ColdFusion is
    now some
    type of structure.
    I.E. #Form['myField']# is the same as #Form.myField#.
    The advantage is that with array notation you can do things
    you can not
    do with dot notation. You can reference elements that have
    keys that
    are illegal variable names such as one with a space.
    I.E. #url['my field'] is allowed, #url.my field# would fail
    or course.
    And you can concatenate the key string as we did with your
    example.
    I.E. #Form['aString' & aVariable]#
    There are many powerful things one can do with this
    knowledge. One can
    access record sets with array notations. This can allow for
    very
    sophisticated parsing of a record set.
    I.E. #myQuery['column'][row]#
    You can dynamical call a variable. Thus creating dynamic code
    that does
    not even need to know what variables exist until run time.
    I.E. #variables[anyName]#
    This just scratches the surface.

Maybe you are looking for

  • New planned goods issue date during delivery creation due to changed route

    Hello All, I have defined 2 routes with different values for transit time and transporation lead times. I have configured routes such that in order creation - route A is determined and while delivery creation due to weight group - delivery B is deter

  • Assign Custom URL to Apple Server Wiki Page

    I am running OS X Server 10.9 Wiki Service and Web Service.  I want to be able to expose a particular Wiki outside my firewal with a custom url.  So for example I want to point https://planning.XXX.net to https://www.xxx.net/wiki/projects/planswiki/P

  • Regarding File to Idoc Scenario

    Dear Friends,         I am performing File to Idoc Scenario in XI 3.0. Here I got struck, I am not able to see my sender file in SXMB_IFR. It is saying that no messages availabe for selection. The file was picked up successfully from the souce. Pleas

  • Blocking Movement Types using MB01

    When processing goods receipt against a PO (txn MB01), is it possible to block certain movement types (or only allow some movement types) for PO type exchange orders? How? Thanks in advance!

  • Would formatting the C drive trigger a "full" factory reset?

    Hello! I have a T510i with windows 7. I ran a factory reset from the F11 menu, but it didn't really reset everything and now my windows udates doesnt work anymore. All of them fail, but i keep getting new ones. My question is, if I format the C drive