Synchronize scrolling of two text items.

Forms 10g
I have two multiline text items with vertical scrollbars, and I need to keep the information contained in them aligned.
Is there a way to scroll two multiline text items with one scrollbar?

You could create a separate stacked canvas (with a large vertical size), place the two textitems (also very large in vertical) on that stacked canvas and use the scrollbar of the stacked canves to scroll both. Only disadvantage: You have to have a "maximum" vertical size

Similar Messages

  • Horizontal scroll bar on text item

    Hi,
    I have a text item. I have enabled Vertical Scroll Bar. I need to enable Horizontal Scrolling as well on the text item. How is this possible?
    Thanks

    Yes, you have to write a PJC that extends VTextArea, then add the following instruction in the init() method:
    this.setHDisplayPolicy(1);You have also to set the Forms Wrap type property to none.
    Francois

  • How to get only the filename and extension for a text item?

    Suppose there is a non-database text item called :myfilename
    :myfilename := 'C:\SomeFolder\SomePath\myfile.doc';
    I would like to get the file name only without the full path,
    i.e. myfile.doc
    and the file extension, i.e. 'doc', 'bat', 'java', 'xhtml' etc., i.e. the last few chars from the right to the period.
    Any help is welcome.

    Thanks for the hints.
    I defined the non-database Text Item called FULLFILENAME and another two text items called FILE_NAME, FILE_EXTENSION. The following can extract the file extension,
    select substr(:FULLFILENAME,instr(:FULLFILENAME,'.')+1) into :FILE_EXTENSION from dual;
    e.g.
    :FULLFILENAME := 'C:\MyFolder\AnotherFolder\file.doc';
    FILE_EXTENSION becomes 'doc'
    but I would also like to extract only the filename without path into FILE_NAME,
    i.e. file.doc
    Please give more hints. Thanks.

  • How can display date and time in text item ?

    Hello all,
    I have placed two text items (named text_item1,text_item2).
    I want to place the current date in one text item and place current time in another text item. how can i place this?

    Hi
    This depends on ur needs
    WHEN-NEW-FORM-INSTANCE > if u want to appear it on the very begining moment
    --=============
    u can use
    WHEN-VALIDATE-ITEM > on ur date fields
    Here is a link that may help u decide where to take off with this code...
    http://www.dotnetspider.com/resources/22433-Triggers.aspx
    http://www.slideshare.net/magupta26/oracle-forms-tutorial
    Hope this helps ,
    Regards,
    Abdetu...

  • How to display database records in text item

    hello friends,
    I'm using forms6i..
    I have text item named "username" in layout editor.I created this text item from data block wizard..I set Number of items displayed=3 in that wizard..
    In property palette of of "username" i have following changes
    Number of items displayed =3;
    When i click the button named "list_user" it should shows all user names in text item..
    my when-button-pressed trigger code is:
    declare
    cursor c1 is
    select Logid from log1 where logout_date is null;
    begin
    open c1;
    fetch c1 into :username;
    end;
    But my problem is when i run the form only one user displayed in text item..Remaining two text items are having no data..
    The result of the cursor query is :
    SQL> ed
    Wrote file afiedt.buf
    1 select logid from log1 where logout_date is null
    SQL> /
    LOGID
    104
    105
    106
    pls help me
    Edited by: Balraj on Feb 23, 2011 1:45 AM

    I have text item named "username" in layout editor.I created this text item from data block wizard..I set Number of items displayed=3 in that wizard..
    In property palette of of "username" i have following changes
    Number of items displayed =3;Its great that it is working fine, but seems your block is database block based on the same table log1, then why do you want to loop when form has better way.
    Secondly if you have set No of Records for a block then there is no need to set the No of Items displayed for the Item if it is the same as Records displayed for block.
    You can use No of Items displayed for an Item if you need to display no different then no of records else no need to change the default that is 0
    No of items displayed is usually used to display Summary Columns in a multi record block so that you will be able to display just 1 Item rather then as many as the No of records.
    Best Regards
    Arif Khadas

  • How to include text items in a block...urgent please.

    I have one form, basically at the first level, it in turns calls other forms too. However, I have add two columns i.e. sales_no, and date_closed at job level. The form is at project level. When the user apply ENTER_QUERY mode on project, then all the projects already closed should display sales_no and date_closed otherwise leave them bank. Project comes from project_master and sales_no, date_closed comes from job and both are linked via project_no, and entity. Could anyone help please?

    Hi Jhon,
    You have my thanks for your reply and then let me explain the stuff I am doing. The method you have suggested, I am already applying the same techniques. The items are there in the block along with other items. However, when I add my two text items which comes from another table which has relationship with the table being used by the block, though the block is couple of other inter-related tables too. Now when I add my text items I dont apply any triggers, but when I run the form it gives me error, invalid field item. My question is where I can add the triggers for the two items, and how can it be successfully embedded inside the block. I dont know if that makes sense. I'll appreciate your help in this matter. Thanks
    Zahir

  • How to disable copy option for a text item in oracle forms

    Hello experts,
                  I am using oracle forms 11g with weblogic server 10.3.5 at windows7.I have a text item in my oracle form and I have to disable to being copy from a text item in oracle forms.Actually I have to make two text item.First text item to type a password and another text item is also to type password.Here I want that the data from first text item should not be copy through the use of mouse or keyboard shortcut key.
    thank you
    regards
    aaditya

    Thank You To reply, Actually doing so as you said,My problem would not be solved.This would hide data in text item than I will not be able to copy that but in my case the data should not be concealed.Actually I have to make a Form to  User registration and here is a strictly boundation to have a right email address of user.There would two text items for this purpose as: N_User_Email------> to type email address in text item.Here user would not be able to copy text written from N_User_Email R_User_Email  ------> to type email address again as in N_User_Email.

  • Date format in text item-solved

    Two text item with data type date.I insert dates in the text item in the format for ex.
    01-jun-07 but the text item takes it as 01-jun-0007.
    how to correct the format?
    Message was edited by:
    user588306

    Hello,
    in the formate mask property of the text item write :
    dd-mon-rrrr or dd-mon-yyyy
    regards,
    Abdetu..

  • Scrollbar on text item

    i have a large data field that i need to display and i want to have a scrollbar for the user to scroll through the text item not the record set. is there anyway to do this?

    Set three properties in the field's property pallette. Multi-Line in the Functional group makes the text field display multiple lines. Height in the Physical group makes the text field larger so you can see multiple lines. Show Vertical Scroll Bar in the Physical group puts a scroll bar in the field if the text goes off the displayed area.

  • Help in inserting data to text item

    I have a database item, iterval, which is CHAR type and values consist of
    'SYSDATE+7','SYSDATE+1','SYSDATE+n/24'...where n is any number. I created a form with two text items, interval_l, which is a list item of CHAR type containing the values, EVERY WEEK, EVERY DAY, EVERY HOUR,etc. and I also have interval_num of NUM type which would contain n from interval. The problem that I am having is that I want to display the current value of interval, for example 'SYSDATE+5/24' as 'EVERY HOUR' in interval_l and '5' in interval_num. Do I need any triggers? I'm open to any suggestions.
    Thanks in advance,
    Kristine

    You use triggers to run when a specific event occurs. So I guess when you query your interval column from your DB table, then the right place to translate the value is in a post-query trigger on the block.
    All you need is some pl/sql code to parse the values of Interval:
    If substr(Interval,1,8) = 'SYSDATE+'
    and substr(Interval,-3) = '/24' then
    interval_l := 'EVERY HOUR';
    interval_num := substr(Interval,9, length(Interval)-11 );
    Else ...

  • MacBook Display - Text Glows or Fades When Scrolling with Two Fingers

    I am currently using an early 2008 MacBook Black, OS X 10.5.5, 2.4GHz Penryn, 4GB RAM (CAS 4), 250 GB HDD. I recently came into an Apple Store for a Genius Bar appointment because of a problem with the screen. When I use two finger scrolling and view text on a white background, the text appears to glow (especially blue text) or fade (black fades to an almost imperceptible gray. This behavior appears in Apple's Safari, Pages, Numbers; as well as, Safari. I have not tested beyond this yet.
    The Genius at the store had no answer for this behavior and the other early 2008 MacBooks in the Apple Store (Walden Galleria, Buffalo, NY 14225) also exhibit this behavior. The Genius admitted this was annoying when viewing text and it appears to be a driver or OS problem because this behavior is also exhibited on the late 2008 MacBooks and MacBook Pros.
    Suggestions?

    It's a characteristic of LCD response time. There is nothing to be done about it except maybe experiment with different colors of text or backgrounds. That's not always practical, I know. Basically, we all have to live with it.

  • Help with Scrolling Text Item.

    Hi , need help with making a text item scrollable.
    i.e. A field is 30 characters and i can only display 10
    characters, now what I would like is a scroll bar under the text
    item.
    Is this possible. I am using Forms 5.
    Thanx for any help.
    Pankaj Patel.
    null

    Petr Valouch (guest) wrote:
    : Pankaj Patel (guest) wrote:
    : : Hi , need help with making a text item scrollable.
    : : i.e. A field is 30 characters and i can only display 10
    : : characters, now what I would like is a scroll bar under the
    : text
    : : item.
    : : Is this possible. I am using Forms 5.
    : : Thanx for any help.
    : : Pankaj Patel.
    : Hi
    : You need that scrollbar under the item? You can set length
    of
    : text item and its size independently, so you can have text
    item
    : char(30) with size of 10 characters.
    An alternative is to declare the item as a multi-line text item
    with wrap set on. This would give you a vertical scroll bar on
    the item.
    Another option is to programmaticaly pop up an Editor, each time
    focus is moved to the item, or to actually change the width of
    the item when focus moves to it (and shrink it back when focus
    moves away.
    Simon Hedges
    Gloucester
    UK
    null

  • Difference between Two Date Should come into Text Item

    Dear All,
    i want to get difference between two date into text Item :P36_C in On Change java script.
    i have two Date Item :P36_A and :P36_B .i have extract these date value from table then difference comes into Text Field :P36_C.
    Now i want if i change Date into Item :P36_A or Item :P36_B then Defference between two date Should Come into Item :P36_C .
    So i have use Java Script Code to do this
    <script>
      function diffdat(){
        function getVal(item){
       if($x(item).value != "")
         return parseFloat($x(item).value);
       else
         return 0;
        $x('P36_C').value =
    getval((TO_DATE('P36_B', 'DD-MON-YYYY'))-
    getval(TO_DATE('P36_A', 'DD-MON-YYYY')))+1;
    </script>
    i have put this into Item HTML Form Element Attributes 
    onChange="javascript:diffdat();"it's not woring .
    How to work that Code with dates.
    Thanks

    You can always create your own difference function based on your own criteria. You can modify this to suit your needs.
    CREATE OR REPLACE FUNCTION CALC_OFFICE_DAYS(date1 DATE, date2 DATE)
    RETURN NUMBER
    IS
    v_begin_date DATE := date1;
    v_end_date DATE := date2;
    v_office_start_time VARCHAR2(10) := '09:30 AM';
    v_office_end_time VARCHAR2(10) := '06:30 PM';
    v_comp_begin_time DATE;
    v_comp_end_time DATE;
    v_days PLS_INTEGER := 0;
    v_hrs NUMBER := 0;
    v_ttltm NUMBER;
    BEGIN
    select trunc(v_end_date) - trunc(v_begin_date)
    into v_days
    from dual;
    select to_date(to_char(sysdate,'DD-MM-YYYY')||' '||to_char(v_begin_date,'HH24:MI'),'DD-MM-YYYY HH24:MI')
    into v_comp_begin_time
    from dual;
    select to_date(to_char(sysdate,'DD-MM-YYYY')||' '||to_char(v_end_date,'HH24:MI'),'DD-MM-YYYY HH24:MI')
    into v_comp_end_time
    from dual;
    select (v_comp_end_time - v_comp_begin_time)/24 into v_hrs from dual;
    IF v_hrs > 4 then
    v_ttltm := v_days + .5;
    ELSE
    v_ttltm := v_days;
    END IF;
    return v_ttltm;
    END;
    As has been noted, this question is best posted on the PL/SQL forum.

  • Chart and text items are not synchron

    hi all,
    i am a newbie in apex 4.0.
    i have two regions. the first shows a chart, based on pl/sql-code. second shows text items for possible filter an the current statement of the chart.
    when user clicks on a bar in the chart then
    1. i set the the first text item as filter,
    2. a pl/sql-code runs, build a sql statement, assign the sql statement string to the second text item and
    3. returns the statement for the chart.
    it works fine. the chart refresh. and the data i can see are correct.
    but the text items in the other region doesn't refresh.
    when i press "refresh"-button at browser level everything is fine. chart and text items fits together.
    what can I do to refresh all regions when the chart changes the sql-statment / User clicks?
    Is there any way to read out the current statement of a chart?
    thx in advance
    jogi
    Edited by: Jogi on 09.05.2011 12:31

    Bernd: the reason I asked about views is that you don't have any error messages. This might indicate that (a) you have no items in the view, or (b) there's something wrong with view-role-user assignment.
    To check for (a), please go to the published procurement catalog, and go to Views tab. Check that your View is Active. Click on your View ID link to display view details. You should see a list of characteristics assigned to your view in Assign Characteristics sub-tab (the list should not be blank!). Go to Assign Items sub-tab. Navigate in your schema to find items that are supposed to be assigned to your view. You should see "Yes" in the "Assigned" column for those products. If you don't, then you simply don't have any items in your view.
    Another thing I'd like you to check: when the user calls your procurement catalog for search, do you see the name of the catalog displayed just below the drop-down "Select Categories Hierarchically"?
    Cheers,
    Serguei

  • Links to text items in context

    When I carry out a custom search, the results displayed can be linked to via the display name or image link.
    However, when the user clicks on the display name link they are directed to a page which displays the text item alone - out of context from the page on which it would normally be found (ie minus normal template, style, layout). Is there a way (as on normal search engines) to be taken to the actual page on which the text item normally resides. I have used the page link on the result page to direct to attempt to replicate this but the page that is displayed when the page link is clicked is without the normal expected page template and is therefore not useful (ie it displays the text item on a blank page with the incorrect style and incorrect template). Is there any way around this so that the user is taken to the actual page or is there a way of changing the page template of the page onto which the user is directed to reflect the normal page templates?

    The search results are currently set to display in two tabs - pages and documents (both using standard search results one looking for items the other pages). The type or style of page result attributes could not be changed despite what is changed on the result option page of the wizard(you may be aware of this bug) so we are shown, in order, PAGE, CREATE DATE, PAGE GROUP and CATEGORY.
    When a user clicks on the Page link it is assumed that they would be taken to the complete page on which the result is based. However, this is not always the case. Each page in our page group consists of a navigation bar on the left and a header at the top with a multi-tabbed region below. There are two results that occur when the page link is clicked on: Either the user is navigated to the complete correct page on the site with the navigation page and other tabs in place (success) OR the user is taken to a page with a completely different style (Times new Roman even though there are no styles containing this font) and no navigation banner or other tabs. (disaster)In effect, it is showing just the content of one tab region in a blank template. This is no use to the user as they have then no way of navigating as they do not get the normal page setup.
    If I include PAGE as one of the attributes to be shown with the document results then you would assume that you could click on the pagelink to go to the page on which the document is shown. This is not the case and similar to the page results, the content of a single tab may be shown (not on the normal the page template) and the style is again times new roman (the page contents appearing without the other tabs, navigation banner and header).
    I hope this makes sense (as the logic of why it is happening doesn't seem to)

Maybe you are looking for