Automatically showing the data

hi everyone,
I have a table with
ID------->pk
sentence
I got a jsp that retrieves the ID from the table and shows it to the user in selection and there is a text area next to id. Would it be possible for user to select the id and the saved sentence comes up automatically(e.g if one is selected the sentence for one comes up etc)? if yes how?
ps I would appreciate if you showed an example!!!
thanks alot

yes its possible.
Option 1:
when displaying the ID's store the sentences in a hidden field , on selecting the ID copy the value from the matching hidden field to the textarea.
Option2:
When displaying the ID's store the sentences in hidden textareas and make those vissible /invisible on selecting the ID
Option3
On selecting the ID submit and filll the value for the textaera on the server and display it
Option4 use ajax to query the DB depending on the ID and to fill the Textarea with the result

Similar Messages

  • How to set the filter on a report to show the data for the Current Month

    Hi all,
    I am working on a report, which currently has this filter: Date First Worked is greater than or equal to 10/01/2010. This reports show the data for the current month, so at the beginning of each month we have to remember to change the date on the filter.
    Does anyone know what the criteria should say, so that it automatically changes and shows the information for the current month, without us having to go in and change anything?
    Any help would be greatly appreciated!
    Thanks,
    AA

    You need to add a session variable to date fir worked assuming that this is a date field.
    To do this open up the filter on the field then at then press add Variable then "session" and enter the following CURRENT_MONTH into the Server Variable section.

  • System automatically truncating the data

    hi Friends,
    i am using jdeveloper 11.1.1.6.0.
    i have created field called price it's length is Number(22,12) . whenever user is giving more than 22 digits system is truncating the 22 digit to fractional number.
    ex:user input: 1234567980123456789012
    system showing: 1.234567980123 .
    is there any solution for the above problem.

    Hi Johon,
    1. Change in your vo query to fetch the price column once more time like price1
    2. Change the type from number to string
    I think my adf concept are good.
    The idea behind this approach is that he has already tried your intelligent suggestion but not working.
    I have already faced this problem and solved the same using the technique I shared over this forum.
    Please read this to know why system automatically truncating the data
    3.1 n-bit Unsigned Integers section
    n      Minimum      Maximum
    8      0      (2^8)-1 (=255)
    16      0      (2^16)-1 (=65,535)
    32      0      (2^32)-1 (=4,294,967,295) (9+ digits)
    64      0      (2^64)-1 (=18,446,744,073,709,551,615) (19+ digits)
    and your trying to save 22 digits.How it is possible?
    Got it?
    http://www.ntu.edu.sg/home/ehchua/programming/java/DataRepresentation.html
    Edited by: 812903 on Mar 21, 2013 11:32 PM
    Edited by: 812903 on Mar 21, 2013 11:43 PM

  • Is there a way to have movies always show the date?

    I am using Premiere Elements 10 to create home movies and burn them to blu-ray discs.  I want all scenes to show the date the scene was shot in the lower right hand corner, at all times.  Is there an easy way to do this automatically, or do I have to go to each clip and custom make a title?  The dates are all placed in the exif info by the camera I am using.  Thanks for any help!

    This is not an automatic function of Premiere Elements. Sorry.

  • Numbers cell keeps showing the date

    I find that Column A in Numbers (List style) keeps showing the date. I don't want to show the date. I want this column to show just a number. How do I prevent this column from turning numbers I type in there as a date?

    select the column and set the format to "Automatic":

  • Not showing the Data in VC application

    Hi I have developed the application in VC.
    It is showing the data some times , it is not showing the data. Can u please let me know what is the problem.
    when i checked using the Test Data service . It is showing the data. Then i have developed step by step, in between the time i use to run the application , it was showing the data. finally i have assigned to some role and user id. then also it is showing the data.
    Next day after i run the application , it is not  showing the data. displaying the message .
    "No Data Found".
    But when i run  the BAPI at the back end R/3 it is giving the data properly.
    Can u tell me what might be the problem
    REgards
    Vijay

    Hi Krishna,
    check the logs in the NWA. It seems that your connection is broken down sometimes, maybe a timeout. How many records does your data service return?
    Check it with external debugging of the BAPI, when you can reconstruct the error.
    Best Regards,
    Marcel

  • Import option is not showing the Data Source created using ODBC

    Hi all,
    I'm new to OBIEE, just installed OBIEE 10g in my system with the help of some reply from this Forum (thanks to Kalyan for this).
    Now when I tried to create new rpd, the Import option is not showing the Data source I have created. I have created new Datasource in the SystemDSN tab of the ODBC Administrator window,I have tried this by creating the Datasource in the UserDNS tab as well.
    Mine is Windows 7 Ultimate. The new data source which I have created through the ODBC Administrator window is to connect to SQL 2008 (I'm trying to get some table from SQL 2008 database), I don't have Oracle data base.
    While creating the Data source ODBC Administrator is showing only two drives (SQL Server and SQL Server Native Client 10.0 ) , so I have created the Data source using the SQL Server Native Client 10.0 drive.
    Can some one help me to understand the issue and to solve it.
    Thanks,
    Mithun

    By calling your cellular data provider.

  • How do I get pages 5.2 to automatically update the date - use 10.9.2

    How do I get pages 5.2 to automatically update the date in my documents - before the update I could do this. Does anybody have the knowledge or a workaround.
    If not I will dump pages 5.2 and use my old version!!! this feature is important for any and all businesses using pages??
    Any advice on how to achieve this is greatly appreciated
    I use a number of macs all using OSX
    10.9.2

    I have the same problem.
    What confuses me is that all the apple provided templates in pages seem to auto update their time and date upon opening.
    So there MUST be a way to do it... Ive been unable to work out how...
    Amnon

  • Automatically update the date on opening a document in Pages 5

    I can't find how to automatically update the date on opening a document. I could in Pages 4.

    Indeed. That seems to be the only answer to all the "improvements". At least now I can do a word count with or without spaces. Phew. (Note the sarcasm)

  • Why does iCal automatically change the date of the entry i am making to the day before??

    why does iCal automatically change the date of the entry i am making to the day before??
    for example, when i am attempting to make a 'all-day' appointment on october 2nd 2011, it automatically shifts it to october 1st.
    but if i am doing a timed appointment for only a few hours, it will allow me to put it on that day.
    i am trying to put in travel dates so any help on how to fix this, would be greatly appreciated.

    alsdman,
    Quit iCal, and try removing the com.apple.iCal.plist file from your Macintosh HD/Users/yourusername/Library/Preferences Folder. Since that Library is now hidden, you have to use the Finder>Go Menu>Depress the "Option" key>Library. Drag the .plist file to your desktop, and log out/in or restart and check iCal for functionality.
    Also go to System Preferences...>Language & Text>Formats>Region: and set/re-set the appropriate "Region."

  • Client automatically cache the data got from cache server?

    Hi expert,
    I have 2 questions about the client local cache. Would you please help to give me some suggestion?
    1. Will client automatically locally cache the data got from cache server the first time and automatically update the data in local cache when getting the same data from cache server again? I go through the API reference but cannot find any API to query the data currently cached in the local cache.
    2. If client will automatically cache the data got from cache server. Is there any way for a client to get the data event that happens to its local cache, such as entry created in local cache, entry deleted from local cache and entry updated in local cache? In my opinion, when getting an entry from cache server the first time, the MapListener's entry create event should be triggered. When getting the same entry again, the entry update event should be triggered.
    However, I have tried a client with replicated cache, a client with partitioned cache, an extend client with remote cache and a client with local cache(front cache part of near cache), the client (the NamedCache object has been set the MapListener) cannot get any event notification after getting data from cache server. By the way, my listener is OK since when putting data the entry create event and entry update event will be triggered.
    Your suggestion is very appreciated. :)

    Hi
    If I were you I would read this http://download.oracle.com/docs/cd/E14526_01/coh.350/e14510/toc.htm
    and particularly the section about Near Caching here http://download.oracle.com/docs/cd/E14526_01/coh.350/e14510/nearcache.htm#CDEFEAJG
    which is what you are asking about in your question.
    Near Caching is how Coherence stores data in the locally - which is the answetr to your first question. How Near Caching works is explained in the documentation.
    Events, which you ask about in your second question are explained here http://download.oracle.com/docs/cd/E14526_01/coh.350/e14510/delivereventsjava.htm#CBBIIEFA
    It might be that ContinuousQueryCache is closer to what you want. This is explained here http://download.oracle.com/docs/cd/E14526_01/coh.350/e14510/queryabledatafabric.htm#sthref38 A ContinuousQueryCache is like having a sub-set of the underlying cache on the local client which you can then listen to etc...
    JK

  • Imported ical from outlook and the date across the top of the weekly view all show the date i imported..

    imported ical from outlook and the date across the top of the weekly view all show the date i imported..

    I'm confused, what does iCal have to do with this, it seems as though you went from Outlook to Entourage, is that correct?

  • How to show the data of one query since Forms9i using to Report built-in on

    Hello!!!, I have Developer 9i (Forms and Reports), the OCJ4 and repserver90 are running, now, I attempt to run one report from Forms9i, and only it appears an empty page HTML. I don't understand why doesn't show the data of query?
    Please, give me a solution for this problem, thanks for your help.
    PD: I am using the below code.......
    PROCEDURE bring_report IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := find_report_object('Q_DATA1');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://172.16.2.18:8888/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;

    Alex,
    the code does look good. maybe the Reports query does not produce an output. You can trace this ny adding a header on top of teh Reports (e.g. a date or just saying "Hello World"). So instead of an empty page this should now show the text strings. If you don't see the string then there is something else going on. Since you are not getting any error message I assume that the Reports itself executes fine.
    Frank

  • How do I get it to show the date & time.

    How do I get it to show the date & time at all times. I don't want to have to click on the day & time to get the date. In the OS 10.4 I could at least get it in the "analog" format. Under leopard it just show a little clock that can't be read.
    I just want to see the time and date at all times in the upper corner on the screen

    Please see my post in your first posting at http://discussions.apple.com/thread.jspa?threadID=1237022&tstart=0
    David

  • Textbox cannot showing the Data Binding

    Dear All, I have a problem about showing data to textbox. I have a class i call it itemCategoryFormController.java here the code:
    public class ItemCategoryFormController extends GenericForwardComposer {
        @Autowired
        private DatabaseManager databaseManager;
        @Autowired
        private SessionManager sessionManager;
        @Autowired
        private SecurityService securityService;
        @Autowired
        private MasterService masterService;
        private WebUtil webUtil;
        private DataBinder binder;
        private Paging itemGroupPaging;
        private Combobox filterCBox;
        private Listbox itemGroupLBox;
        private Bandbox itemGroupBd;
        private Integer totalItemGroup = 0;
        private String locationPath;
        private Map<String, Object> params;
        private ItemCategory selectedItemCategory;
        private ItemCategory selectedTemp;
        private ItemGroup selectedItemGroup;
        private List<ItemCategory> itemFilters = new ArrayList<ItemCategory>();
        private List<ItemGroup> itemGroups = new ArrayList<ItemGroup>();
        public ItemCategory getSelectedItemCategory() {
            return selectedItemCategory;
        public void setSelectedItemCategory(ItemCategory selectedItemCategory) {
            this.selectedItemCategory = selectedItemCategory;
        public ItemGroup getSelectedItemGroup() {
            return selectedItemGroup;
        public void setSelectedItemGroup(ItemGroup selectedItemGroup) {
            this.selectedItemGroup = selectedItemGroup;
        public List<ItemCategory> getItemFilters() {
            return itemFilters;
        public void setItemFilters(List<ItemCategory> itemFilters) {
            this.itemFilters = itemFilters;
        public List<ItemGroup> getItemGroups() {
            return itemGroups;
        public void setItemGroups(List<ItemGroup> itemGroups) {
            this.itemGroups = itemGroups;
        @SuppressWarnings("unchecked")
        @Override
        public void doAfterCompose(Component comp) throws Exception {
            super.doAfterCompose(comp);
            this.self.setAttribute(Constants.CTRL, this, false);
            webUtil = new WebUtil(comp);
            params = (Map<String, Object>) Executions.getCurrent().getArg();
            AppProgram program = securityService.getAppProgramByUrl(sessionManager.getUrlAddress());
            locationPath = program.getFileName();
            selectedUserLogin = sessionManager.getAppUser();
            setControlPermission(program);
            binder = new AnnotateDataBinder(comp);
        public void onCreateWin(Event event) {
            if(isMessageMode()) loadMessage();         
            selectedItemCategory = (ItemCategory) params.get(Constants.PARAM_ITEMCATEGORY);
            init();
        private void init() {
            String action = (String) params.get(WebUtil.PARAM_ACTION);
            if(action.equals(WebUtil.ACTION_NEW)) {
                if(selectedItemCategory != null){
                    selectedItemCategory.setActive(true);
                    selectedItemCategory.setLastUpdated(databaseManager.getDateServerNow());
                    selectedItemCategory.setLastUpdater(sessionManager.getAppUser().getUserId());
                    selectedTemp = selectedItemCategory;
                    selectedItemCategory = new ItemCategory();
                }else{
                    selectedItemCategory = new ItemCategory();
                    selectedItemCategory.setActive(true);
                    selectedItemCategory.setLastUpdated(databaseManager.getDateServerNow());
                    selectedItemCategory.setLastUpdater(sessionManager.getAppUser().getUserId());
            } else {
                if(selectedItemCategory == null) selectedItemCategory = selectedTemp;
            loadItemGroup();
            viewMode = action.equals(WebUtil.ACTION_VIEW);
            editMode = action.equals(WebUtil.ACTION_EDIT);
            if((action.equals(WebUtil.ACTION_EDIT) || action.equals(WebUtil.ACTION_VIEW))) {
                checkPrevNext();
            binder.loadAll();
        private void loadItemGroup() {
            totalItemGroup = masterService.countItemGroup();
            itemGroupPaging.setTotalSize(totalItemGroup);
            selectedItemGroup = masterService.getitemGroupByNo(selectedItemCategory.getItemCategoryGroupNo());
            itemGroups = masterService.getitemGroups(0, itemGroupPaging.getPageSize());
            doPaging(itemGroupPaging, Constants.PARAM_ITEMGROUP);
        public void onChanging$filterCBox(InputEvent event) {
            Integer sizeOfFilter = Integer.valueOf(Labels.getLabel(Constants.I3_PAGESIZE_FILTER));
            itemFilters = masterService.getitemCategorysByFilter("%" + event.getValue() + "%", 0, sizeOfFilter);
            binder.loadComponent(filterCBox);
        public void onChanging$itemGroupFilterTb(InputEvent event) {
            itemGroups = masterService.getitemGroupsByFilter("%" + event.getValue() + "%", 0, itemGroupPaging.getPageSize());
            itemGroupPaging.setTotalSize(masterService.countItemGroupByFilter("%" + event.getValue() + "%"));
            itemGroupPaging.setActivePage(0);
            binder.loadComponent(itemGroupLBox);
        @SuppressWarnings({ "unchecked" })
        private void doPaging(final Paging paging, final String param) {
            paging.addEventListener("onPaging", new EventListener() {
                @Override
                public void onEvent(Event event) throws Exception {
                    PagingEvent pEvent = (PagingEvent) event;
                    int pageNo = pEvent.getActivePage();
                    int first = pageNo * paging.getPageSize() + 1;
                    int last = first + paging.getPageSize() - 1;
                    redraw(param, first, last);
        protected void redraw(String param, int first, int last) {
            if(param.equals(Constants.PARAM_ITEMGROUP)) {
                itemGroups = masterService.getitemGroups(first, last);
                binder.loadComponent(itemGroupLBox);
        public void onClick$itemGroupClearBtn(Event event) {
            selectedItemGroup = null;
            binder.loadComponent(itemGroupBd);
            itemGroupBd.close();
        private void clearForm() {
            selectedItemCategory = null;
            selectedItemGroup = null;
    I have a zul file that call form.zul Here i want show itemgroups data:
    <bandbox id="itemGroupBd" width="30%" onfocus="itemGroupBd.open=true" autodrop="true" readonly="true" value="@{ctrl.selectedItemGroup, converter='com.cynergy.web.converter.NameObjectConverter' }" disabled="@{ctrl.viewMode }"> <bandpopup>
    <vbox>
    <hbox>
    <image src="/images/icons/icon-filter-16.png"/> <label value="${c:l('label.filter.value')}"/>
    <textbox id="itemGroupFilterTb"/> <space width="5px"/>
    <button id="itemGroupClearBtn" label="${c:l('button.clear.value')}"/>
    </hbox>
    <listbox id="itemGroupLBox" model="@{ctrl.itemGroups }" width="400px" onselect="itemGroupBd.close();" rows="${c:l('label.pageSize.bandbox.value')}" selecteditem="@{ctrl.selectedItemGroup }" emptymessage="${c:l('message.list.data.empty')}">
    <listhead sizable="true">
    <listheader width="30%" label="${c:l('label.code.value')}"/>
    <listheader label="${c:l('label.name.value')}"/></listhead>
    <listitem self="@{each=itemGroup }">
    <listcell label="@{itemGroup.itemGroupNo }"/>
    <listcell label="@{itemGroup.itemGroupName }"/>
    </listitem>
    </listbox>
    <paging id="itemGroupPaging" detailed="true" pagesize="${c:l('label.pageSize.bandbox.value')}" sclass="paging-border"/>
    </vbox>
    </bandpopup>
    </bandbox>
    There are no error showing, but textbox not showing the data. Textbox only showing:
    com.procits.app.master.model.ItemGroup@6924b697
    I'm new in java programming i hope you can help me.
    Best regards,
    Surbakti

    cvsSpecMapping is a resource and not a property so you should set the DataContext using the StaticResource markup extension instead of Binding:
    <StackPanel Orientation="Horizontal" Margin="0, 5" DataContext="{StaticResource cvsSpecMapping}">
    Also, the Source property of a CollectionViewSource is supposed to be set to a collection:
    private void Window_Loaded(object sender, RoutedEventArgs e)
    sm = new Models.SpecimenMapping();
    var cvsSpecMapNames = (CollectionViewSource)(this.FindResource("cvsSpecMapping"));
    cvsSpecMapNames.Source = new List<Models.SpecimenMapping>() { sm };
    You may also want to set a default value of the HL7SpecimenTypeName property to confirm that the binding actually works after you have done the above changes:
    public class SpecimenMapping : INotifyPropertyChanged
    private const int MAX_HL7SPECIMENTYPENAME_LEN = 250;
    #region class properties
    private string _hl7SpecimenTypeName = "def....";
    public string HL7SpecimenTypeName
    get { return _hl7SpecimenTypeName; }
    set
    if (value != _hl7SpecimenTypeName)
    _hl7SpecimenTypeName = EnforceMaxLength(value, MAX_HL7SPECIMENTYPENAME_LEN);
    NotifyPropertyChanged();
    Hope that helps.
    Please remember to mark helpful posts as answer to close your thread and then start a new thread if you have a new question.

Maybe you are looking for

  • Invalid cursor. dont understand why

    i keep getting invalid cursor near the fetch. i dont understand why. appreicate any help. declare   -- Local variables here   o_errorcode NUMBER;   o_errortext VARCHAR2(1000);   i_CustomerLoop NBK.Pkgcommon.T_CUSTOMERLOOPTYPE;   o_loopid number;   FU

  • UTF-16 in labview 8.5

    hi, some body help me, i want to use 16 bit character set in labview.Actully i want to send a wild character which code is above 8 bit means greater then 255. After too many search ,i could not find any vision to use unicode character like theta in m

  • How to check iPhone 6 order status

    Just pre-ordered and got an order number.  But connection dropped before completed carrier selection.  Impossible to get back to the order!  Help!

  • Change column width in report

    After creating a report using table 'dept', I have updated that dept table and increased the width of the column dname from 14 to 20. I would like to know how to change the width of the dname column in the report that I created earlier so that it can

  • Can't play .MOV files in Quicktime after upgrading to OSX 10.6

    Recently upgraded from OS X (10.5) to OS X (10.6).  .MOV files played fine in Quicktime before the upgrade.