Bind user generated info to DataGrid & edit with comboboxes

In my app, the user enters data which gets stored into a
class. I then wish to display this info in a DataGrid with three
columns corresponding to the data entered (2 strings and 1 number).
Is there an easy way to get this into the DataGrid by using binding
or do I have to do manual insertion of the data?
Also, I'd like to let the user edit the DataGrid. But I don't
want him to be able to just type whatever he wants, I'd rather give
him a pop-up or combobox with the relevant options.
Any suggestions about this approach?

When you say the data gets stored in a class, do you mean an
object? One way would be to store the data in a user data value
object and then bind the object parameters to your DataGrid. If
there are multiple users, you could put the object in an
ArrayCollection and bind that to your DataGrid.
You could then use an itemRenderer or itemEditor for each
column that would allow the user to update the values with
comboBoxes and the updates would be reflected in the stored object.
Vygo

Similar Messages

  • Custom DataGrid problems with Comboboxes

    I am using a custom datagrid with comboboxes and
    colorpickers. I found this code on the web and adapted it to work
    with my code. The only problem is that if you pull down a combobox
    and then click somewhere outside without selecting anything, it
    seems to erase the data in the dataprovider arraycollection and so
    'value' in the set data method becomes null.

    This is not a bug if I understand you properly. I believe most people would wish anything which is obtained via the tv to be backed up, which is why the content is transferred. If you want it to remain available on the tv you will need to sync it back to it.

  • Adobe edge generated text is not editable with dreamweaver or notepad ++ is there a work around?

    How can I enable a client to update there text regularly via code editor on their server (not wysiwyg)? Want to be able to update text that was originally generated within Adobe Edge.
    Edge appears to convert the text to some kind of symbol, as when the text is changed in notepad++ the actual text content does not change on the finished file, and only the original text is viewable on the browser.
    Is there some way to do this?
    With flash it was easy to edit a .txt file via text field var - is there something similar with Edge?
    been trying to work this out for several months now.
    any working examples would be appreciated.
    thanks

    Hi alayna,
    Here's a link to the example file:
    https://creative.adobe.com/share/dcbe9fc1-845b-476a-838a-8379f556872e
    It's pretty straightforward - it's a .js file containing only variables that gets saved in the same directory as the Edge Animate HTML file:
    Then add a script tag to the HTML file generated by EA pointing to the path of the .js file:
    Finally, add a handler to the Stage creationComplete event, which sets each text field to a separate variable:
    That's all there is to it!
    hth,
    Joe

  • Faces issue when selecting 'edit with CS4' (or any other external editor)

    Ok, so I have a work flow where I effectively use Nik Plugins. I have the complete set so that i can use them in Aperture and CS4. I correct exposure and white balance and crop in Aperture but then have automators set up in CS4 to apply Nik plugin effects via a batch change process ie no manual adjustments needed, start the batch and come back 20 mins later. Anyway thats somewhat irrelevant....
    Once stage one is done in Aperture I select faces and see that all looks fine. Suggestions appear over faces etc as you'd expect. BUT if I then select edit with CS4 (via right click) on that image it creates a duplicate image (as its non-destructive) and opens it in CS4. Fine. But if you go in to Aperture the faces on this duplicate image are now all messed up. They are not at all over peoples faces but seemingly in random places. Right click and selecting detect faces does nothing. So in summary if I edit anything with CS4 and hit save so that the changes appear in Aperture then hit faces to tag people I have to effectively start from scratch and delete all the faces (not over peoples faces) and add new faces.
    The best way to illustrate this is with screenshots. See this link for 2 screenshots of the issue. http://adamlewis.zenfolio.com/screenshot
    Can someone else confirm they have this issue at all first off to see if it is a specific issue to myself or a generic Aperture issue?
    After that I guess we can proceed with troubleshooting and solutions.
    PS I have repaired my library and rebuilt it and have upgraded Aperture to the latest 3.2.2 (released today / yesterday but note the issue was found under 3.2.1 so its not a 3.2.2 specific issue).

    Maybe I should have made it clearer in my original post. The 1st paragraph was just for colour. The fact of using Nik has nothing to do with the issue. The below quote is the issue:
    "Suggestions appear over faces etc as you'd expect. BUT if I then select edit with CS4 (via right click) on that image it creates a duplicate image (as its non-destructive) and opens it in CS4. Fine. But if you go in to Aperture the faces on this duplicate image are now all messed up. They are not at all over peoples faces but seemingly in random places."
    Thus the issue is generated by merely selecting Edit with CS4. ie no editing done in CS4 and not even saved in CS4. Just selecting edit with CS4 in Aperture creates the duplicate image in Aperture (and sends it to CS4 but lets assume we do nothing with it there at all) but creates a duplicate with face tags in the wrong places.
    After further investigation I changed my external editing software option in preferences to Pixelmator and the same issue occurs.
    So to replicate the issue in my place there are 2 simple steps that I need to make (and would like tested by someone else):
    1. Tag some peoples faces in an Aperture image
    2. Select edit with (any external editor)
    Then go back in to Aperture (immediately) and select faces on the duplicate image created and see if the faces are in the correct position.
    Note I have my external editor set to TIFF 8 Bit 300dpi using Adobe RGB colour space.
    Thanks for your time.
    Message was edited by: loobola

  • Editing with a DataGrid and validating user input

    Editing
    with a DataGrid Tutorial
    How to edit the information in a Flex 2 DataGrid directly,
    without data binding TextInputs to it.
    Uses a Remote Object, a CFC, and a Microsoft Access database
    to demonstrate how.
    Uses Actionscript to validate the data the user types into
    the DataGrid.

    We created an itemEditor for our dataColumn that was a
    mx:TextInput. Then we used the textInput event to capture keys as
    they are typed. You get a TextEvent from that which you can cancel
    if it something you don't want the user entering. We used regexs
    for are validation here. I'm not sure if this is the best way to
    handle this sort of thing, but it worked.

  • To install Remote Desktop Services User CAL on Windows Server 2008 R2 Enterprise Edition with SP1

    Dear Sir,
    Presently we have installed Windows Server 2008 R2 Enterprise Edition with SP 1. And now i would like to install Remote Desktop Services User CAL on this server. I have 25 digit product key of Windows Server
    2008 R2 Remote Desktop Services User CAL (20). Downloaded this product key from our MSDN Subscriptions.
    Kindly suggest me how to install (CAL server with product key that i have) and configure remote desktop services on my above existing server also how to point other server with my CAL server.
    Thanks

    Hi,
    1. Install Remote Desktop Session Host and Remote Desktop Licensing Role Services using Server Manager.
    2. Open RD Licensing Manager (licmgr.exe), Activate your server, then install your license
    3. In RD Session Host Configuration (tsconfig.msc), set the Licensing mode to Per User and Specify your RD Licensing server name (itself).  If you want you may configure these two settings via group policy setting instead.  The path of the
    group policy settings is Computer Configuration\ Administrative Templates\ Windows Components\ Remote Desktop Services\ Remote Desktop Session Host\ Licensing
    4. You may point other RDSH servers to your RD Licensing server using RD Session Host Configuration or via group policy as mentioned above.
    5. Optionally you may consider installing other Remote Desktop Role Services such as RD Gateway, RD Web Access, RD Connection Broker, etc.
    -TP

  • How can the info block be assigned with the view and assign view to users.

    Dear Friends,
    Anyone could plz tell me how can the info block be assigned with the view and assign view to users.  Also how can the info block in sale summary be assigned with a view and how to assign this view for user.
    Regards,
    Ashima

    Hi,
    To define view and to make it default
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Define Reporting Views (Tcode:OVCD).
    To assign default user to the view.
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Assign Default View To User (Tcode:OVCC).
    To assign Elements of SAPScript "SD-SALES-SUMMARY" to information Blocks To A View use
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Assign Information Blocks To A View (Tcode:OVCB).

  • I want to bind my client certificate with machine certificate in order to bind user with dedicated one machine. Kindly help

    I have created one dedicated root CA for domain and auto enrollment has been enabled through Group Policy.
    I want to bind my client certificate with machine certificate in order to bind user with dedicated with one machine. In order to prevent duplicate logins

    Hi,
    How about using
    User Rights Assignment?
    You can deny all other users’
    log on locally right on the machine.
    User Rights Assignment
    http://technet.microsoft.com/en-us/library/cc780182(v=WS.10).aspx
    Best Regards,
    Amy Wang

  • Users are not able to edit projects even with right permissions

    Hello,
    We have a weird issue. Your help or inputs is appreciated.
    A user is not able to edit projects in SAP PPM 50 unless 1)the project is created by the user and 2)user has access to ACO_SUPER auth object. For the projects, the user is trying to edit, we made sure user has write ACL access in the administration tab of the project.
    Obviously, we can't give all users ACO_SUPER access. Please advise how to proceed.
    Thanks in advance

    Hi Pranith,
    You are right..ACO_SUPER is not recommended for all users, it's an super user access.
    In PPM-Project management, there are two authorizations
    1) General Authorizations
    2) Project Specific authorizations
    General authorizations:
    This is provided to user using a backend PFCG roles like 'SAP_CPR_USER' which contains business partner view access and other similar roles are assigned for project creation, template creation etc.,
    Project Specific authorizations:
    This authorizations are provided using ACL 'Authorizations' tab within the project and here you have different authorisation activities like admin, write, read & none.
    As you said, the user who creates the project will get 'Admin' authorization and after that if you want give access to other users, then you need to add manually users in the project definition-authorisation tab or you can provide default authorization through project role type.
    Have you added the users manually in authorisation tab?
    Regards,
    Ravi

  • [svn] 3867: Add new user-agent info to the sample services-config.xml file.

    Revision: 3867
    Author: [email protected]
    Date: 2008-10-24 07:13:10 -0700 (Fri, 24 Oct 2008)
    Log Message:
    Add new user-agent info to the sample services-config.xml file.
    Modified Paths:
    blazeds/trunk/resources/config/services-config.xml

    Resolved! The problem was in the php code the wizard had generated as an example and that I had edited in Dreamweaver. I had tried to start a session and set session objects in the php code. I developed if() { statements} to check the session variable before executing the function in some of my data services. Apparently the wizard does not like this. I removed all references to session. I reconfigured the input types and the return types for each service. With the code now clean the wizard created the example code and placed the proper package in the scr.services package. I still have custom php code and it executes.
    Things I learned:
    If the php code stops when a session variable is not available in the if statement and the data service is refreshed, the wizard will not "look" beyond the if statement.
    Functions downstream of a session variable misshap will show in the data services window but the functions will have a circle icon to the left of the function name and each variable to be passed to the php code will be declared as type = Object in Flashbuilder. The input types and return types will have to be reconfigured for each non-functioning function. Simply commenting out a portion of the php code and attempting a refresh will not make it work again.
    When the wizard is unable to refresh properly because of a stop in the php code it stops working completely so additional refreshes or creation of code is not carried out.
    I decided to create a My SQL table for user and other identifiers rather than attempting the session object again.
    Sorry, I did not make screen shots as I solved this problem. I hope the solution is not hard to visualize.
    Thanks for looking and considering how to help me. I hope my solution works for you.

  • How to generate a second csv file with different report columns selected?

    Hi. Everybody:
    How to generate a second csv file with different report columns selected?
    The first csv file is easy (report attributes -> report export -> enable CSV output Yes). However, our users demand 2 csv files with different report columns selected to meet their different needs.
    (The users don't want to have one csv file with all report columns included. They just want to get whatever they need directly, no extra columns)
    Thank you for any help!
    MZ

    Hello,
    I'm doing it usually. Typically example would be in the report only the column "FIRST_NAME" and "LAST_NAME" displayed whereas
    in the csv exported with the UTL_FILE the complete address (street, housenumber, additions, zip, town, state ... ) is written, these things are needed e.g. the form letters.
    You do not need another page, just an additional button named e.g. "export_to_csv" on your report page.
    The csv export itself is handled from a plsql procedure "stored procedure" ( I like to have business logic outside of apex) which is invoked by pressing the button "export_to_csv". Of course the stored procedure can handle also parameters
    An example code would be something like
    PROCEDURE srn_brief_mitglieder (
         p_start_mg_nr IN NUMBER,
         p_ende_mg_nr IN NUMBER
    AS
    export_file          UTL_FILE.FILE_TYPE;
    l_line               VARCHAR2(20000);
    l_lfd               NUMBER;
    l_dateiname          VARCHAR2(100);
    l_datum               VARCHAR2(20);
    l_hilfe               VARCHAR2(20);
    CURSOR c1 IS
    SELECT
    MG_NR
    ,TO_CHAR(MG_BEITRITT,'dd.mm.yyyy') AS MG_BEITRITT ,TO_CHAR(MG_AUFNAHME,'dd.mm.yyyy') AS MG_AUFNAHME
    ,MG_ANREDE ,MG_TITEL ,MG_NACHNAME ,MG_VORNAME
    ,MG_STRASSE ,MG_HNR ,MG_ZUSATZ ,MG_PLZ ,MG_ORT
    FROM MITGLIEDER
    WHERE MG_NR >= p_start_mg_nr
    AND MG_NR <= p_ende_mg_nr
    --WHERE ROWNUM < 10
    ORDER BY MG_NR;
    BEGIN
    SELECT TO_CHAR(SYSDATE, 'yyyy_mm_dd' ) INTO l_datum FROM DUAL;
    SELECT TO_CHAR(SYSDATE, 'hh24miss' ) INTO l_hilfe FROM DUAL;
    l_datum := l_datum||'_'||l_hilfe;
    --DBMS_OUTPUT.PUT_LINE ( l_datum);
    l_dateiname := 'SRNBRIEF_MITGLIEDER_'||l_datum||'.CSV';
    --DBMS_OUTPUT.PUT_LINE ( l_dateiname);
    export_file := UTL_FILE.FOPEN('EXPORTDIR', l_dateiname, 'W');
    l_line := '';
    --HEADER
    l_line := '"NR"|"BEITRITT"|"AUFNAHME"|"ANREDE"|"TITEL"|"NACHNAME"|"VORNAME"';
    l_line := l_line||'|"STRASSE"|"HNR"|"ZUSATZ"|"PLZ"|"ORT"';
         UTL_FILE.PUT_LINE(export_file, l_line);
    FOR rec IN c1
    LOOP
         l_line :=  '"'||rec.MG_NR||'"';     
         l_line := l_line||'|"'||rec.MG_BEITRITT||'"|"' ||rec.MG_AUFNAHME||'"';
         l_line := l_line||'|"'||rec.MG_ANREDE||'"|"'||rec.MG_TITEL||'"|"'||rec.MG_NACHNAME||'"|"'||rec.MG_VORNAME||'"';     
         l_line := l_line||'|"'||rec.MG_STRASSE||'"|"'||rec.MG_HNR||'"|"'||rec.MG_ZUSATZ||'"|"'||rec.MG_PLZ||'"|"'||rec.MG_ORT||'"';          
    --     DBMS_OUTPUT.PUT_LINE (l_line);
    -- in datei schreiben
         UTL_FILE.PUT_LINE(export_file, l_line);
    END LOOP;
    UTL_FILE.FCLOSE(export_file);
    END srn_brief_mitglieder;Edited by: wucis on Nov 6, 2011 9:09 AM

  • Table names in generated stored procs are qualified with sa schema name

    I am using OMW 9.2.0.1.2 with the 9.2.0.1.3 SQL Serevr plugin to help with a SQL Server 7 to Oracle 9.2.0.1 migration on NT.
    As is common with SQL Server databases, the dbo is sa. I don't want my Oracle schema to be called sa. I have succesfully gotten around this by renaming the sa user in the Oracle model in OMW.
    However, the stored procedure code that OMW generates has table names qualified with sa as the schema (the tables names in the original T/SQL procs were not qualified).
    How can I stop OMW from generating table names qualified with sa?
    Thanks.

    Hi,
    this is a bug in the OMWB. As a workaround, you can generate the migration scripts (see reference guide and user guide for more information) from the OMWB Oracle Model and then edit these scripts to ensure that the 'sa' prefix does not appear in the text of the stored procedures. Then use these scripts to generate the schema in your database.
    An alternative is to migrate the stored procedures, schema and data over to the Oracle database using OMWB and then open each procedure in Enterprise Manager, remove the references to the 'sa' prefix and re-compile the procedure.
    I will keep you updated on the release this fix will appear in.
    I hope this helps,
    Tom.

  • Display an XML file Content as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013

    Hello everyone,
    Within a list form, user has to select a value amongst a huge number of availables options.
    Instead of using something like a dropdown list, which would be very boring to parse, I would like to display possibles values in a treeview.
    To do that, I tried to use an <Sharepoint:SPTreeView bind to a SharePoint:SPXmlDataSource who read data from an XML File.
    <SharePoint:SPXmlDataSource runat="server" DataFile="../../SiteAssets/App_Data/myfile.xml" AutoSave="True" XPath="" ID="myDataXml"></SharePoint:SPXmlDataSource>
    <SharePoint:SPTreeView runat="server" ID="MyTreeView" DataSourceID="myDataXml" />
    But when I try to display the form in my web browser, an error occurs.
    Therefore, my question is : Is it possible to display the content of an Xml file as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013 ?
    If the answer is yes, how ? Which are the required properties for "SharePoint:SPXmlDataSource" tag and "SharePoint:SPTreeView"  tag ?
    What are the requirements to use thoses tags ?
    Regards,
    Florian.
    Ps : I dont have access to the server side of the SharePoint site I am working on.

    Assuming that https://fullsitename is a new URL address did you make sure to update your browser to include it in the Trusted Sites zone?  The message you are quoting is exactly the one you get if you don't have it in Trusted Sites.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Can I Use Oracle DB 11g Express Edition with Atomikos  Transactions.

    Hi,
    Any Help is appreciated.
    Im able to use Oracle 11g Standard/Enterprise Edition with Atomikos for XA transactions.(XADMS).
    My question is Can I Use Oracle DB 11g Express Edition with Atomikos for XA Transactions.
    Thanks,
    kensuser

    Hi,
    Thanks for the answer.What jdbc drivers should I use. Because still Im getting exception when using Oracle 11g XE.
    But the same application runs with Oracle 11g Standard/Enterprise Edition.
    Here is my Exception trace: Sorry, I'm a first time user, so pasting the exception as it is, will find out how to format the same, as use this forum. ant help is appreciated. Thanks in Advance
    SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UIToolAdminkit': Invocation of init method failed; nested exception is com.atomikos.datasource.ResourceException: XA resource 'EXXADBMS': resume for XID '3139322E3136382E35352E31382E746D30303030313030313937:3139322E3136382E35352E31382E746D31' raised -3: the XA resource detected an internal error
         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:135)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1437)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
         at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)
         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
         at org.apache.catalina.core.StandardService.start(StandardService.java:525)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: com.atomikos.datasource.ResourceException: XA resource 'EXXADBMS': resume for XID '3139322E3136382E35352E31382E746D30303030313030313937:3139322E3136382E35352E31382E746D31' raised -3: the XA resource detected an internal error
         at com.atomikos.datasource.xa.XAResourceTransaction.resume(XAResourceTransaction.java:500)
         at com.atomikos.datasource.xa.session.BranchEnlistedStateHandler.<init>(BranchEnlistedStateHandler.java:57)
         at com.atomikos.datasource.xa.session.NotInBranchStateHandler.checkEnlistBeforeUse(NotInBranchStateHandler.java:66)
         at com.atomikos.datasource.xa.session.TransactionContext.checkEnlistBeforeUse(TransactionContext.java:85)
         at com.atomikos.datasource.xa.session.SessionHandleState.notifyBeforeUse(SessionHandleState.java:176)
         at com.atomikos.jdbc.AtomikosConnectionProxy.enlist(AtomikosConnectionProxy.java:204)
         at com.atomikos.jdbc.AtomikosConnectionProxy.invoke(AtomikosConnectionProxy.java:138)
         at $Proxy13.prepareStatement(Unknown Source)
         at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
         at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
         at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
         at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)
         at org.hibernate.loader.Loader.doQuery(Loader.java:696)
         at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
         at org.hibernate.loader.Loader.doList(Loader.java:2228)
         at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
         at org.hibernate.loader.Loader.list(Loader.java:2120)
         at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:935)
         at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
         at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
         at org.springframework.orm.hibernate3.HibernateTemplate$30.doInHibernate(HibernateTemplate.java:921)
         at org.springframework.orm.hibernate3.HibernateTemplate$30.doInHibernate(HibernateTemplate.java:1)
         at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
         at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
         at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:912)
         at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:904)
         at com.kensho.common.UIbundlDAOImpl.findAll(UIbundlDAOImpl.java:13)
         at com.kensho.common.UIbundlDAOImpl$$FastClassByCGLIB$$6f2db14b.invoke(<generated>)
         at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
         at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
         at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
         at com.kensho.common.UIbundlDAOImpl$$EnhancerByCGLIB$$8797972a.findAll(<generated>)
         at com.kensho.common.UIToolKitAdminBBean.getAllBundleItems(UIToolKitAdminBBean.java:37)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346)
         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:299)
         at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:132)
         ... 29 more

  • Datagrid editable row

    Hi,
    I would like to know if there is a way to make an entire row in a datagrid editable when that row is selected.  Currently when a user selects a cell of the row, only that cell becomes editable.  I would like to have that entire row become editable.  Is there a way of accomplishing this?  Thanks in advance.

    Hi,
    Just gave your code a try and, although I did not implement the ITEM_EDIT_END yet, the editor does not do anything in terms of clicking on a row and "enabling" the textfields for that row.  Below is my code along with yours:
    package
        public class TestBean
            [Bindable] private var _processDefName:String;
            [Bindable] private var _processGroupName:String;       
            [Bindable] private var _processSomeName:String;
            public function get processDefName():String {
                return _processDefName;
            public function set processDefName(value:String):void {
                _processDefName = value;
            public function get processGroupName():String {
                return _processGroupName;
            public function set processGroupName(value:String):void {
                _processGroupName = value;
            public function get processSomeName():String {
                return _processSomeName;
            public function set processSomeName(value:String):void {
                _processSomeName = value;
    package
    import flash.events.FocusEvent;
    import mx.controls.Alert;
    import mx.controls.DataGrid;
    import mx.controls.TextInput;
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.controls.dataGridClasses.DataGridListData;
    import mx.controls.listClasses.BaseListData;
    import mx.controls.listClasses.IDropInListItemRenderer;
    import mx.controls.listClasses.IListItemRenderer;
    import mx.core.UIComponent;
    import mx.managers.IFocusManagerComponent;
          Two TextInput Editor for DataGrid
    public class DataGridMultiFieldEditor extends UIComponent implements IListItemRenderer, IDropInListItemRenderer, IFocusManagerComponent
         private var dgOwner:DataGrid;
         private var textEditors:Array = []
         public function DataGridMultiFieldEditor()
              super();
         public function get fullValue():String
              dgOwner = owner as DataGrid;
              var colInd:Number = dgOwner.editedItemPosition.columnIndex;
              return TextInput(textEditors[colInd]).text;
         private var _data:Object;
         public function get data():Object
              return _data;
         public function set data(value:Object):void
              _data = value;
              invalidateProperties ();
         private var _listData:BaseListData;
         public function get listData():BaseListData
              return _listData;
         public function set listData(value:BaseListData):void
              _listData = value;
         override public function setFocus():void
         override protected function createChildren():void
              dgOwner = owner as DataGrid;
              super.createChildren ();
            var child:TextInput;
              textEditors = new Array();
            var n:int = dgOwner.columns.length;
            for (var i:int = 0; i < n; i++)
                child = new TextInput();
                textEditors.push(child)
                addChild(child);
         override protected function commitProperties():void
              dgOwner = owner as DataGrid;
              super.commitProperties();
            var n:int = dgOwner.columns.length;
            for (var i:int = 0; i < n; i++)
                  var dgColumn:DataGridColumn = dgOwner.columns[i];
                  var value:String = data[dgColumn.dataField];
                  TextInput(textEditors).text = value;
         override protected function updateDisplayList(w:Number, h:Number):void
              dgOwner = owner as DataGrid;
              super.updateDisplayList(w, h);
            var n:int = dgOwner.columns.length;
            var xx:Number = 0;
            for (var i:int = 0; i < n; i++)
                 TextInput(textEditors).move(xx, 0);
                var ww:Number = dgOwner.columns.width;
                 TextInput(textEditors).setActualSize(ww, h);
                xx += ww;
         private function keyFocusChangeHandler(event:FocusEvent):void
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="absolute"
        creationComplete="init();">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable] private var col:ArrayCollection = new ArrayCollection();
                private function init():void {
                    var tbA:TestBean = new TestBean();
                    tbA.processDefName = "A";
                    tbA.processGroupName = "Group A";
                    tbA.processSomeName = "AAAAAAAA";
                    var tbB:TestBean = new TestBean();
                    tbB.processDefName = "B";
                    tbB.processGroupName = "Group B";
                    tbB.processSomeName = "BBBBBBBB";
                    col.addItem(tbA);
                    col.addItem(tbB);               
            ]]>
        </mx:Script>  
        <mx:VBox>
            <mx:DataGrid editable="true" id="dg" dataProvider="{col}" width="300">
                <mx:columns>
                    <mx:DataGridColumn width="100" editable="true" dataField="processGroupName" headerText="NAME" editorWidthOffset="200" itemEditor="DataGridMultiFieldEditor" editorDataField="fullValue"/>
                    <mx:DataGridColumn width="100" editable="true" dataField="processDefName" headerText="TYPE" editorXOffset="-100" editorWidthOffset="200" itemEditor="DataGridMultiFieldEditor" editorDataField="fullValue" />
                    <mx:DataGridColumn width="100" editable="true" dataField="processSomeName" headerText="MISC" editorXOffset="-200" editorWidthOffset="200" itemEditor="DataGridMultiFieldEditor" editorDataField="fullValue"/>
                </mx:columns>
            </mx:DataGrid>
        </mx:VBox>
    </mx:Application>

Maybe you are looking for

  • How do I write a letter to print on my MacBooK?\

    tUsing my MacBook Air,where do I go to write a letter to print and mail? What do I click on to get started? Thanks from a 71 year old (young).

  • Can't get correct Print Dialog options when installing Epson 3800

    Hi, I am certainly not an expert at Mac OS. I have exhausted all my options on getting the Epson 3800 driver installed correctly. I am very thankful for any help since I have been working on this issue for 4 days. I connected my Epson 3800 to my Powe

  • Agent

    Hi, Iam new to ODI.Please explain me how to config agents and setup a schedular agent. Thanks, Maddy

  • Credit Block Release

    Hi People, Scenario : 1. I am using Simple Credit Check with Delivery Block(Credit Check Limit - C). 2. Delivery is being blocked for the credit limit. 3. After releasing the Credit Block for the Sales Order using T. Code VKM3, when i do the delivery

  • T420 wireless radio switch is ON but software insists it is off

    My machine can't find my wireless network. When I run the troubleshooting it says "wireless radio switch must be turned on" and shows me a little diagram of the switch.  It always has been on, I never turn it off. I switched it on and off, then resta