Flexdatagrid within combobox issue?

hai friends,
      i am using dynamic datagrid . it include one of the  column include a dynamic combobox.
for example
that a dynamic combobox include like
1
10
50
100
200
then i retrive data like this its from db.
sec_rights_level ---> db field name
50   --- > first data
1     ---> second data
100   ---> 3rd data
10
200
i want selected value(50)  in first row cmbox then
i want selected value(1) in second row combobox.    i gave like this 
<s:combobox dataprovider={outdocument.cb_dynamiccb}   selected item={data.db field name}/>// output is not coming
give solution
thanks in advance
regards,
welcome canv

but id name not display  within script.check it .
my code is below:
<fx:script>
<![CDATA[
private  
function setSelectedItem():void { 
cb_combo.selectedItem = data.db field name;//  combobox id is not coming.i am getting error.
  <mx:DataGrid 
id="dg_curtainmanager" showHeaders="true" creationComplete="" variableRowHeight="true" wordWrap="true" dataProvider="{fileListArray}" rowCount="{fileListArray.length}" width="100%" >  
     <mx:DataGridColumn 
headerText="Rights Level" width="100" minWidth="75" sortable="true" >
<mx:itemRenderer >
<fx:Component>
<mx:HBox>
<mx:ComboBox id="cb_combo" dataProvider="{outerDocument.first.dataProvider}" labelField="sec_rights_level" creationComplete="setSelectedItem()" />
<mx:Label id="lbl_dfcprightlevel" text="{data.dfcp_sec_rights_level}" color="black" />
</mx:HBox>
</fx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:DataGrid>

Similar Messages

  • ComboBox issue

    So I am sure Jonathan groans when he sees my name pop up, but I found another ComboBox issue and I am looking for help finding a workaround.
    (I opened a JIRA - http://javafx-jira.kenai.com/browse/RT-27654)
    Seems that calling clearSelecion() on a ComboBox disallows selecting the same item that was selected when the clearSelection() was called. In my sample code, if you
    1) select 'a' - 'a' displays
    2) click reset button - 'a' disappears
    3) select 'a' - 'a' does NOT appear and it should
    The issue is major when the combobox only has a singe item
    package javafxapplication2;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.ResourceBundle;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.event.ActionEvent;
    import javafx.fxml.FXML;
    import javafx.fxml.Initializable;
    import javafx.scene.control.ComboBox;
    * @author user
    public class SampleController implements Initializable {
        @FXML
        private ComboBox<MyObject> cb;
            private ObservableList<MyObject> myList = FXCollections.observableList(new ArrayList<MyObject>());
        @FXML
        private void handleButtonAction(ActionEvent event) {
            cb.getSelectionModel().clearSelection();
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            MyObject a = new MyObject("a", "A");
            MyObject b = new MyObject("b", "B");
            MyObject c = new MyObject("c", "C");
            myList.add(a);
            myList.add(b);
            myList.add(c);
            cb.setItems(myList);
        class MyObject {
            String key;
            String Value;
            public MyObject(String key, String Value) {
                this.key = key;
                this.Value = Value;
            @Override
            public String toString() {
                return key;
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.util.*?>
    <?import javafx.collections.*?>
    <?import javafx.scene.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <AnchorPane id="AnchorPane" prefHeight="200.0" prefWidth="320.0" xmlns:fx="http://javafx.com/fxml" fx:controller="javafxapplication2.SampleController">
      <children>
        <ComboBox fx:id="cb" layoutX="82.0" layoutY="78.0" prefWidth="160.0">
          <items>
          </items>
        </ComboBox>
        <Button onAction="#handleButtonAction" layoutX="130.0" layoutY="137.0" mnemonicParsing="false" text="Reset" />
      </children>
    </AnchorPane>

    Hi. Here is a workaround.
    //Modified  initialize method.  Added a null object to the list:
      @Override
        public void initialize(URL url, ResourceBundle rb) {
            MyObject a = new MyObject("a", "A");
            MyObject b = new MyObject("b", "B");
            MyObject c = new MyObject("c", "C");
            myList.add(a);
            myList.add(b);
            myList.add(c);
            myList.add(null);   
            cb.setItems(myList);
          Modified handleButtonAction(ActionEvent event) method:
    private void handleButtonAction(ActionEvent event) {
             cb.getSelectionModel().selectLast();
             cb.getSelectionModel().clearSelection();
        }

  • ComboBox issue w/ imported swf assets

    I've imported a swf into my actionscript code which contains a combobox (instance name of "cb"). I'm having an issue with not being able to set the "prompt" property from within the code and also with the first item in the combobox always remaining blank.
    When I compile my project withing FlashDevelop, the combobox populates all the items properly, but always leaves the first item (item 0) blank. When I try to assign the "prompt" property to a string, it has no effect - the first item always remains blank. When choosing different items in the combobox, the chosen item does not appear in the combobox for the user to see she has chosen it - it just remains blank.
    **PLEASE help**
    Here is the condensed code:
    [Embed(source = "../../../../flash/as3/video_player.swf")]
    private var VideoPlayerAssets:Class;
    _xVideoAssetsLoader = new EmbeddedAssetSwfLoader(VideoPlayerAssets);
    _xVideoAssetsLoader.addEventListener(EmbeddedAssetSwfLoader.EMBEDDED_ASSET_LOADED, videoAssetsLoaded); _xVideoAssetsLoader.loadAssetSwf();
    _xVideoControlsSymbol = _xVideoAssetsLoader.getSymbolInstance("VideoControlsHome");
    _xVideoControlsSymbol.embedWindow.content.cb.prompt = "Choose a Size"; //THIS HAS NO EFFECT
    _xVideoControlsSymbol.embedWindow.content.cb.addItem( { label: "400 x 320", width:400, height:320, data:"400x320" } );
    _xVideoControlsSymbol.embedWindow.content.cb.addItem( { label: "480 x 384", width:480, height:384, data:"480x384" } );
    _xVideoControlsSymbol.embedWindow.content.cb.addItem( { label: "560 x 448", width:560, height:448, data:"560x448" } );
    _xVideoControlsSymbol.embedWindow.content.cb.addItem( { label: "640 x 512", width:640, height:512, data:"640x512" } );
    _xVideoControlsSymbol.embedWindow.content.cb.addEventListener(Event.CHANGE, sizeSelected);

    Unbelievable...
    So after two days of trying shorter animations, pouring over countless amounts of code, sifting through result after result of google searches, it all came down to a 2-second delay.
    When I imported the .swf into Catalyst, I set the delay to 2 seconds before playing the animation. I uploaded it to the test server, and the freezing went away. I tried several other swf files, and they all played perfectly! Granted, there's a tiny delay before the animation plays, but its better than having it play right off the bat then watching it hang.
    Is this a caching or buffering issue? I would think that, when the Catalyst swf loads, it would start pre-loading the animations before it played (unless if there's a way to do that on the original .swf, but I'm not that versed in AS3 to figure it out). That may be a feature worth having in future Catalyst versions.
    So, for anyone experiencing an issue where their animations hang (i.e.: an imported banner): when you import it into Catalyst and set it to play, place a 1 or 2 second delay on it before it starts playback. That should give it time to load up.

  • Kendo Combobox Issue

    Hi Experts,
    In My Project iam facing one problem with kendo Combo box actually my Application Requirement is Left Menu – Combobox Fields search has to Freeze on all inner frames but am facing problem with Cascade From when i kept  Cascade From in my code  Data
    whatever Presented Left Menu Combo box Fields are didn't Bind so how to resolve this problem
    Thanks & Regards
    Kiran  

    Hi. Here is a workaround.
    //Modified  initialize method.  Added a null object to the list:
      @Override
        public void initialize(URL url, ResourceBundle rb) {
            MyObject a = new MyObject("a", "A");
            MyObject b = new MyObject("b", "B");
            MyObject c = new MyObject("c", "C");
            myList.add(a);
            myList.add(b);
            myList.add(c);
            myList.add(null);   
            cb.setItems(myList);
          Modified handleButtonAction(ActionEvent event) method:
    private void handleButtonAction(ActionEvent event) {
             cb.getSelectionModel().selectLast();
             cb.getSelectionModel().clearSelection();
        }

  • Hyperlink within Composition issue

    In the attached page I have a PSD button hyperlinked to another page - see blue "FlatHat" button. It is placed inside a Composition. I cannot get this or any other hyperlink, when placed into a composition, to work on an iPad. Is there a way to fix this?
    http://www.clik-clikusa.com/products.html

    Try emptying the cache on your browser.
    Also if you didn't chose underline for the returning visits function, then it will not be underlined the second time you visit it with the browser.
    Sincerely, David

  • Issue management in Solution manager

    Hi,
    We are in design phase for Solution manager 4.0. The requirement is now that we want to Internally (250 Sap experts divided in functional groups) involve other support groups or employees to the support message.
    From the theories available I would say to use Issues (SLF2 or SLFI (4.0), linked to the support message (SLFN), eventual changes can be linked to this issue as well. within the issue it is possible to assign tasks to groups and(?)/or employees.
    When a change request is available, no issue is necessary to involve (assign tasks) to employees or groups?
    Another sound here is to use the "task" message in order to involve other people.
    I am wondering what would be the smartest solution and why. Please help.
    Jos

    Nadine the only pain that I see by using the Issues Management component for project issues is that people who wont normally log into Solution Manager (project managers, integration leads, org change leads, etc) will now need a SAP user ID and training on the system. Even though this is very minimal training, and its probably good for them to use the SAP interface, it isnt as quick as using Sharepoint, an E room or spreadsheets.
    But if it is project issues associated to business processes (thats how it sounds based on your other posts), this could be very useful. Again the functionality is mature enough to deploy according to your requirements, but prepared for some whining and pushback.
    Good luck

  • Updating single folio forces full download of issue

    Hi,
    Not sure if anyone else has experienced this or if anyone knows of a fix but when I update a single page within a published issue and run an updated to our branded viewer it occasionally forces the download of the entire issue again, instead of running a small update of the one page. No other pages have been updated within the issue.
    Does anyone know why this happens and how to avoid it?
    Thanks.

    No need to update to take in this fix, it's solely on the server side.
    Also, yes. If you update right away, we'll do the total update on that first one and subsequent updates will be selective.
    // James Roche
    // I was born lucky

  • Can I have a subreport within a subreport?

    hi -- I've found lots of information -- that's several years old -- indicating that Crystal does not support subreports within subreports. Is this still the case? (I'm running CR11.) From my experiments it looks like this is still true... but I want to make sure I'm not missing anything.
    If not possible, does anyone have any slick solutions?  I have some ideas, but they'll require a fair amount of redesign.
    Thanks,
    Carol

    hi Carl -- Well, when each of these reports were built, we were pulling data from 3 different Oracle tables:
    One table holds the title of the report; it returns a single row based on a report_id defined in the report. This subreport is in
    the report header.
    One view holds the main data to be displayed (monthly measurements taken at reservoirs); this data comprises the main report -- it's not a subreport.
    One view holds annotations for the data -- there could be multiple rows of annotations for a single report id. This subreport is in the report footer. 
    We actually no longer need to query a DB table for annotations; they're all manually entered into a text area in the subreport. And I can see how I can just include the report title table in the tables accessed by the main report -- it should be easy to get the join correct to display the title and the reservoir data details.
    The subreport within subreport issues comes up because we now need to combine all of about 60 reports (like those I describe above) into a single report -- for the purpose of simplifying the generation of a large, published report. Unfortunately we didn't know about this requirement from the start...
    So, I think I have a solution -- it just requires the redesign of about 60 reports. Yuck! I'm also not sure what sort of formatting (spacing/pagination) issues I might run into using text areas vs. subreports. I have a feeling it might be trickier to get it looking good, but hopefully I'm wrong.
    If you have other / better ideas, please let me know.  And I would like to get your take on how I could handle combining all 60 of these reports if I did still have to query an annotation table that might return multiple rows for the report -- I might have a similar situation in the future.
    Thanks so much,
    Carol

  • SSRS : Performance related question

    Hi Frineds,
    I have below scenario
    I have one master Driver report (rdl) which has 7 sub reports. I have put expression on the visibility of those reports.
    well reports are running slow.
    Example of one sub report:: in this i have one big rectangle, in that rectangle i have different regular stuff(tablix, textboxes and images).
    Instead of 7 sub reports i can take 7 big rectangle and put the similar expressiion on the visibility of those big rectangles.
    the benefit is, there will be only one report(the master driver report dont need to call any report).
    The question is,
    Will this new approach gives any performance benefit ???
    Thanks In advance,
    Parixitsinh

    Hi Parixitsinh,
    In Reporting Services, each subreport instance is a separate query execution and a separate report processing task. So there are some advantages and disadvantages of using subreports within performance issue. The details information is shown below:
    Do use subreports when there are just a few subreport instances.
    Do not use subreports inside a group when there are many group instances. For example, to display a list of both sales and returns for each customer, consider using drillthrough reports. Consider whether you can write the query to join the customer with
    sales and returns and then group by the customer ID.
    Do use subreports when the subreport uses a different data source than the main report. If performance is an issue, consider changing the dataset query in the main report by using one of the following mitigation strategies:
    • Collect data in a data warehouse and use the data warehouse as a data source for a single dataset.
    • Use SQL Server linked servers and write a query that retrieves data from multiple databases.
    • Use the OPEN ROWSET capability to specify different databases.
    For more information about the report performance, we can refer to the following document:
    http://technet.microsoft.com/en-us/library/bb522806(v=sql.105).aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Dump while setting a break point in ECC 6.0

    Dear Experts,
    In ECC 6.0, when I try to put a break point in the program to stop the control there. I am not able to do so, it is going to dump. The dump message is also not very clear. Do anyone of you are facing the same problem. Any idea why is this happening and how do I fix it.
    Can it be due to the improper installation? Please respond.

    First of all thanks to Mickey, Nitin, Anki, Sujit, Red, Madhu, Vibin for the quick response...To be honest I did not expect such a response as a new member to the SDN community...I am sorry I could not mention the detail about the dump initially...Here is the detailed description..
    Issue: In ECC 6.0, when I write a simple ABAP program (e.g. 'Hello World' program). When I try to keep the cursor on any abap statement and click on the 'session break point' icon in the tool bar to set the break point, i get a status message 'Compling SAPLBREA in separate task and finally i get the dump.
    Dump Detail :
    Runtime Errors: DBIF_REPO_SQL_ERROR
    Short Text : SQL error 1115 occurred when accessing program 'LNAVIDAT' part "SRC".
    Program: SAPLBREA
    Include: LBREATOP
    Row: 41
    There is a an include being called at line no 41, which is "Include LNAVIDAT".
    Now when I click on the 'debugger' icon in the dump...It points to a functional module "RS_SET_BREAKPOINT"
    Also, while double clicking on this include to see the code within, it issues an error message saying "SQL error occurred when accessing the table TRDIR".
                                    Or
    While trying to display the code of the include LNAVIDAT in se38 to see what is wrong with that i get another dump and this time it points to be SELECT query in the dump which is:
    SELECT SINGLE * from PROGDIR WHERE name = rs38m-programm
                                                              and  state = active.
    Thereafter, i keep getting dumps when i try to go to any T.codes (e.g. se11, se38 etc.). until i log off and log in again. Hope this helps you guys understanding the problem. Being new to SAP, I have no clue why is this happening and how to fix it. Thanks in Advance.

  • Multiple combo boxes cause application freeze

    I have an application that uses 3 combo boxes, they appear if
    the remoting service populates them.
    The actionscript is very simple, I only add items, removeall,
    and sort them by their label.
    If I use old MX combo box, my application works perfectly.
    If I use the Version 2 components, the application works when
    I select one of the combo boxes, but the second I touch the second
    combo box, it locks up the application and I get the message that a
    script is running, should I abort...
    I am using Flash 8 and want to stick with all V2 components,
    but...
    anybody experience this issue? I have a lot of other V2
    components on the application, all work, except this combobox
    issue.
    thanks
    Josh

    You can create a JavaScript array of the items and values to be set into the combo boxes and then use Acrobat's JavaScript's ''setItems()' method to load the fields.
    Get various fields (combo or list) and set items in the list using various techniques. 
    var l = this.getField("ListBox");
    l.setItems(["One", "Two", "Three"]);
    var c = this.getField("StateBox");
    c.setItems([["California", "CA"],["Massachusetts", "MA"],
    ["Arizona", "AZ"]]);
    var c = this.getField("NumberBox");
    c.setItems(["1", 2, 3, ["PI", Math.PI]]);

  • Transportable tablespaces with Logical Standby

    Does anyone know whether or not transportable tablespaces can be used in a Logical Standby environment? I know they can be used with a Physical Standby, and the documentation covers how to do this, but there's nothing about Logical Standby. This is Oracle 10.2.0.4/SLES 10.
    Thanks.

    Using transportable tablespaces to a logical standby environment. Actually, there is a paragraph in the 10.2 Data Guard Concepts and Administration manual. I will summarize:
    After creating the transportable tablespace export file on the source system, copy the datafiles to both the primary and logical standby systems.
    On the dataguard logical standby, within SQLplus, issue SQL> alter session disable guard;
    Import the tablespaces into the logical standby database
    SQL> alter session enable guard;
    Import the tablespaces into the primary database.
    In 10.1, we imported the tablespaces into an environment with a physical standby and then converted the physical standby to a logical standby.
    I tested the procedure for 10.2 and it seemed to work. Has anyone else done this and if so, are you aware of any issues? Like I said, the documentation is one very brief paragraph.
    Thanks.

  • Oracle OLAP multicube development

    Hi Experts,
    I am looking for a working example of using 'multicube' architecture for cube navigation. It should be good if its on GLOBAL schema, but any piece of code with supporting DDL should able to give me good idea. Can it be achieved by using AWM or is it mandatory to use OLAP DML for this?
    It would be great to have it here, but if its not possible, then it can be sent to my personal email ID - [email protected]
    I'll be really thankful to you for this.
    Kind Regards, Neelesh

    I assume you are doing this as a query performance optimization, correct? If so, you can expect that time series queries will be faster on average with the greatest improvements coming to the slowest queries. (That is, average query performance will improve somewhat, but the max query times should drop by quite a bit.) Cube builds/updates, however will likely take longer because you will be storing all data at each time level.
    A multi-cube design a pretty easy in 11.2.0.2. Also, in earlier versions you cannot manually set the $LOOP_VAR property which controls looping during query (which is very, very important to this design). If you are not using 11.2.0.2, I wouldn't bother with this approach because inefficient query looping will defeat the purpose of the multi-cube design.
    Here's the approach:
    1. Create one cube for each level (e.g. day, month, quarter, year). In these cubes create stored measures as needed (e.g., sales, quantity), set aggregation aggregation on the time dimension to no-agg and load data into the cube appropriate time level. Do not create calculated measures in these cubes.
    2. Create one cube to be used for reporting. That is, this is the cube you will query. Create calculated measures for each stored measure in the storage cubes (e.g., calculated measures for sales and quantity). The expression will use a CASE statement to refer to the appropriate measure in storage cubes. E.g.,
    CASE
    WHEN HIER_LEVEL("TIME") = 'DAY' THEN SALES_DAY_CUBE.SALES
    WHEN HIER_LEVEL("TIME") = 'MONTH' THEN SALES_MONTH_CUBE.SALES
    WHEN HIER_LEVEL("TIME") = 'QUARTER' THEN SALES_QUARTER_CUBE.SALES
    ELSE SALES_YEAR.SALES
    END
    You can create calculated measures in this cube as needed. These should refer to the calculated measures created in this step rather than the stored measures in the storage cubes.
    3. Set the $LOOP_VAR property on the calculated measures in the reporting cube that refer to the stored measures to ' ' (singe quote, space, single quote). This will cause the query engine to loop over the storage cubes, not the reporting cube. Using OLAP Workshop (accessible from within AWM), issue the SET_PROPERTY command. E.g.:
    call SET_PROPERTY('$LOOP_VAR', 'SALES_REPORTING_CUBE', 'SALES', ' ')
    As previously noted you will increase the overall processing time and storage, but you should see faster queries. To help minimize processing times, you should consider only creating storage cubes for some time levels (e.g., day, month and quarter, but not year). In this case, set aggregation in the time most cube to SUM (e.g., so that the cube will return data for quarter and year) and adjust the CASE expression as appropriate.

  • Scanning Wirelessy

    Hello,
    I am attempting to scan from my officejet6600 and need some help troubleshooting! It has previously been connectd to my paretns' laptop, but that isn't working. Is there anyway for me to connect mine without kicking theirs off? If not I will just do it anyway and then re-connect it. My computer is already connected to print, but I can't seem to figure out how to scan. It seems like a completely different process. Though, I am not sure that I have had any success printing anything either. Anyway, what I really need help with is scanning. Sorry for the lengthy message! 
    -Cassie 

    Hey  @Cassieru25 !
    Welcome to the HP Support Forum. 
    I understand you're having trouble scanning with your HP Officejet 6600 e-All-in-One Printer.  I would like to assist you with this.  I have some troubleshooting steps that may resolve your scanning setup.    
    For best results, it helps to have the full feature driver installed on your printer.  Before doing this, I recommend uninstalling your printer first:
    Hit the Windows key on your computer keyboard
    Type Control Panel at the start screen 
    Click on Control Panel from the list of options that appear
    Click on Programs and Features
    Select your printer's driver from the list and uninstall it
    Next, click here to download and install the latest HP Officejet Full Feature Software and Driver.    
    Follow the prompts to install your printer wirelessly to your computer.  Note that this should not interfere with the printer's functionality on your parents' laptop. 
    With the printer successfully installed, there should be an icon on your computer desktop named Officejet 6600 e-All-in-One Printer.  Double click on that to run the 'Printer Assistant.'   If you see the 'Scan to Computer' tab within your issue is now resolved. 
    Let me know how this works out for you - best of luck !
    E-roq
    I work on behalf of HP.
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Is Flex 3.6 going to ever become official?

    Is there any timeline for the release of the official 3.6 SDK? I know the amount of fixes is minimal but it would be nice to have an official release particularly for the ComboBox issue.

    Thanks Alex.
    I'd be curious to see what your stats for 3.5 downloads are. Maybe they aren't high, but that's only because there are a billion devs using it who don't need to re-download it
    Likely won't have enough of an incentive to go with 4.x until Hero when we'll see more Spark controls.

Maybe you are looking for

  • My iPod won't sync purchased songs.

    I get my music from both CD's and the iTunes store, but when i tried to sync my iPod yesterday it deleted all the songs i purchased from iTunes but the CD songs still remained. All my songs still show up in my music library on my computer but won't s

  • HT5139 Is this really the only way to back up service settings?

    Am I completely missing something here, or is Time Machine supposed to be the only easy way to back up service settings in Mountain Lion with Server.app? Is there really no way to export/import service settings anymore? It sounds to me from what I've

  • Cant hear sound...but i can

    I CAN hear sound from itunes and my computer but in all of my browsers (firefox, safari, explorer, mozilla) I cannot hear sound. I used to be able to but it just stopped working one day. Help!

  • Free object of a picture

    Dear Abapers , I made a report and in the selection-criteria screen i inserted an image . The problem is that when the reports runs the image can't disappear  and is visible in the output of the report . How can i delete when the reports is showing t

  • Not receiving contact requests, need help!

    Hi there, I am not receiving contact requests on skype, I kind of rely on getting them since my students try to respond to my ads and make a first contact. Any help here? Please add me, I am rapidiomas. Thanks for your help!