Convert Display Item to LOV

We have an application made with Developper 2000. In a block
associated to a view I have 4 display items. When leaving the
result of a query (made with a previous block) they leave me too
many registrations for what takes a long time a lot to arrive to
the registrations of the end when using the scroll bar. As I can
convert one of the items (is a Display Item) in a LOV to get
directly to the selected registration?

I am working on a solution that consists to send an image from a BLOB column to a Java Bean through Forms via the Set_Custom_Property().
Unfortunately, I encounter a strange problem. 5 characters are bad interpreted, so the final image is totaly ugly.
I get the chunk of image like this:
FUNCTION Get_Chunk RETURN VARCHAR2
  IS
    LN$amt  NUMBER := GN$Chunk ;
    LR$raw  RAW(32000);
  BEGIN
    LN$amt := GN$Chunk ;
    -- Read the BLOB
    dbms_lob.READ(GL$Blob, LN$amt, GN$Pos, LR$raw);
    GN$Pos := GN$Pos + LN$amt;
    LN$amt := GN$Chunk;
    RETURN utl_raw.cast_to_varchar2(LR$raw) ;
  EXCEPTION
    WHEN OTHERS THEN
        RETURN NULL ;
  END Get_Chunk ;The chunks are sent to the bean that rebuild the binary image with the getBytes() methods.
For an unknown reason, 5 characters are misunterpreted:
129
141
143
144
157
Francois

Similar Messages

  • Displaying item value on basis of pop up lov value

    Hi ,
    I have created a form on which i have a pop up lov item whose values are getting displayed on basis of a table column.Now my requirement is that when a user select a value(for ex: say an code i.e 123) from pop up lov then on basis of this value an another value pops up which shows the description related to this code.I have this description in another column of same table from which i have displayed pop up lov values.
    I tried to implement this by creating a display only item on form and taking source value of this item from sql query returning single value as code is primary key but I am unable to fetch value.I have written the following query:
    select model_code from BL_VEHICLE_ENGINE_NAME where catalog_code=:p9_catalog_code
    Here p9_catalog_code is the item displaying pop up lov.
    when i am specifying a particular value rather than bind value as (select model_code from BL_VEHICLE_ENGINE_NAME where catalog_code=123) then the description corresponding to this value is getting displayed through display only item.
    How can i fetch value from pop up lov and utilize that value to display required description.Is displaying description through display only item correct or is there any other way around through which this description could be displayed more effectively.
    Thanks
    Abhi

    Hi Abhi,
    Instead of pop up lov you can use cascade lov ie when u have data like say if u select code from ur table 123 and it has more than one description then u can use cascade lov it will query upon the first lov what u required.
    Or coming to ur problem
    for code pageitem say p1_code u are using pop lov (you can try select list instead of pop up lov )
    and for description u r using display column.
    and give the source as return single query only
    select descp from table where code=:P1code.
    Hopes this helps you
    Thanks & Regards
    Srikkanth.M

  • LOV with display Items

    Hello,
    i am very much New to Forms 6i
    Please tell me that, can we attach a LOV with a 'Display Item' ..??

    1) Create a display item named DISPLAY_EMPID and set the data type according to EMPLOYEE_ID.
    2) Create LOV using LOV wizard and include any columns you want to see in the list. You may use query like below.
      SELECT employee_id, name FROM YourTable3) In LOV wizard, click the "Lookup Return Item" button and select :YourBlock.DISPLAY_EMPID and FINISH.
    4) Create a button just beside the text item.
    5) Write below code behind the WHEN-BUTTON-PRESSED trigger.
    DECLARE
      vtemp BOOLEAN;
    BEGIN
      vtemp := SHOW_LOV('NAME_OF_YOUR_LOV');
    END;It should return the selected value from LOV to the DISPLAY_EMPID.

  • How do I get a web part to display items from a dropdownlist?

    I have a DropDownList that am filling with items from a list. The part of my code that am using to read the list and populating the drop down works just fine. I am now trying to figure out how to display the contents of the drop down on a web part. I know
    it sounds like a straight forward and easy thing to figure out, but I have blanked out. Does anyone have a snippet I can take a look at? This is how I am currently reading from a list to create the drop down...
    protected override void CreateChildControls()
    string title = string.Empty;
    EditorChoices = new DropDownList();
    string siteUrl = "mySite";
    using (SPSite site = new SPSite(siteUrl))
    SPWeb web = site.RootWeb;
    SPList list = web.Lists["testList"];
    SPQuery testQuery = new SPQuery();
    testQuery.Query = "<Query><Where><Geq><FieldRef Name='Title'/>" +
    "<Value Type='Number'>10</Value></Geq></Where></Query>";
    foreach (SPListItem item in list.GetItems(testQuery))
    title = Convert.ToString(item["Title"]);
    EditorChoices.Items.Add(title);
    Controls.Add(EditorChoices);
    base.CreateChildControls();
    ChildControlsCreated = true;
    I basically want to display the items returned from the query, which are now in the dropdownlist, to be displayed on my custom webpart. I really appreciate the help.
    Thanks
    UPDATE: My dropdownlist is a web part property. So when editing the web part, the drop down control appears in the web part property. Now that part is working just fine. The part am having an issue with is, the second part of my requirement is that I want
    to display that same information within the drop down on the web part. Not as another drop down, but just to display them as a vertical text list on the web part.

    Hello,
    >I want to be able to display all the entteries in the dropdown,
    Could you please provide more information? as per your description fisrt part is done, which was filling data in dropdown list. So what is next?
    If you want to get selected value from dropdown or filter value then you may try this link:
    http://bilbrobloggins.com/sharepoint/dropdown-list-box-filter-web-part-in-sharepoint-ndash-part-three/
    http://tmullenssharepoint.wordpress.com/2013/04/12/sharepoint-custom-web-part-properties-from-sharepoint-list/
    Correct me if i misunderstood
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Problem Displaying Value of LOV

    I have a drop down on one of my edit screens that gives a list of Regions. On the screen the user can select the correct value and click Apply Changes and the database gets updated. The problem is that if I click to edit that record again it shows thate field as NULL. It will not display the value.
    The data is correct in the database but I cannot see it on the edit screen. I have APEX 3.2

    It's a pretty straight forward sql and the list of values does appear when creating the item.... but I have a read only condition on this field so it is read only once the record has been created as the user is not allowed to change the value on update. I just tried changing the Read Only "display item normally" and now it works. So looks like the issue is trying to make the field display/read only once the value is set.
    one solution that comes to my mind is to have two fields on the page... the POP LOV display only when the P5_LE_LOC_ID is null, then have a read only text field that displays when P5_LE_LOC_ID is not null... but seems silly to have to do this
    select facility || ' ' || fac_desc d, facility r
    from XXC.XXC_GL_DIV_REG_FAC
    where nvl(LOCATION_INACTIVE_DATE,to_date('01/01/1901','mm/dd/yyyy')) = to_date('01/01/1901','mm/dd/yyyy')
    and fac_desc not like 'CLSD%'
    and fac_desc not like 'CNXL%'
    and fac_desc not like 'ACQ%'
    and fac_desc not like 'HOLD%'
    and fac_desc not like '%Remote'
    order by 1
    Edited by: Kristina on Jun 11, 2010 1:10 PM

  • ITunes store displays items in 'Recent Bestsellers'order by default-can I change it?

    I'm a new convert to the iPhone and iTunes world and generally I find things are easy to use and it's easy to get answers to questions
    if I get a little confused,however I do have one question that I can't seem to find an answer to.
    I am a big comedy fan and lately I have been downloading episodes of my favorite shows from the iTunes store but one thing I find
    annoying is that if I go to the store,click on tv shows,then comedy,iTunes displays items available in 'Recent Bestsellers' order by default,
    I can click the arrow in the corner and it will display them in alphabetical order for me but if I click on an item to view the synopsis of the
    particular episode then use the back arrow to return to the category iTunes has changed it back again!
    Is there any way that I can change it to display items alphabetically by default? I can't seem to find any option for doing so but maybe
    I wasn't looking hard enough,may seem a trivial issue but if I want to find an episode of a series that isn't that popular I have to go looking for it.
    Anyone able to help?
    Cheers
    N'oz

    Hi rodtheprod,
    I apologize, I'm a bit unclear on the issue you are describing. If a movie from the iTunes Store supports multiple languages, they can usually be changed as outlined in the following article:
    iTunes: Language settings for video
    http://support.apple.com/kb/HT5562
    If this is not possible and no changes have been made to the country settings for the iTunes Store, you may want to try redownloading the movie (if it is still available):
    Download past purchases
    http://support.apple.com/kb/HT2519
    Regards,
    - Brenden

  • Display a database item on display item

    please i have a varchar database item and i want to display the last item in this field on a display item what should i do and i used the row id to get the last value but it didn't work

    Still not clear what you are trying to achieve...
    it is just a non database item that i want to view the data in the database item in itIf it a "non database item", how can it have a relationship with a database value?

  • ALV report i want to display in each P.O , i want to display item details

    Hi all,
    in alv report i want to display in each P.O , i want to display item details. is it possible without hierarchical display.

    hi,
    once you retrive po number from ekko then retrive data from ekpo and loop at ekpo and append all the item details to your internal table.

  • Portlet Item Attr: "Link That Displays Item in New Browser Window"

    I have been searching the forums for a similar experience, but haven't found anything quite like this:
    I have a couple of portlets. One is a Discoverer Portlet, the other is something more basic: The "Developer News" portlet from the 9iAS Community portlet provider.
    After defining the portlets and looking at them, I edit the page and click the Edit button (little pencil) to edit the attributes.
    There are radio buttons for Display Options.
    One option is: "Link that Displays Item in New Browser Window."
    When I select this, OK, and then go back to the page, **the portlet doesn't show at all any more! There is no link, no nothing. Note that I have defined a Display Name, which should be the text for the link.
    It would seem that this feature flat out doesn't work.
    This technique for a popup works fine for an "Item" defined in an item region.
    Anyone?

    Yes -- I did do that after reading an article on metalink about such issues.
    This actually changes the problem.
    When I add the "Display name and image link" attribute to the region, I now do get a link.
    However, clicking it brings up an undefined Discoverer portlet.
    It works great for non-Disco portlets. For instance, I was able to pop up the "Developer News" portlet from the Oracle 9iAS Community portlet provider.
    I think the problem is that the link that Disco produces does not provide enough information to bring up the particular portlet. For instance, the URL does not have the workbook name, the worksheet name, the parameter values, etc.
    If anyone uses Disco w/ the portal, I would be curious to hear if anyone can reproduce this apparent bug / limitation.

  • Displaying items in a single line in ALV grid using  ALV_TOP_OF_PAGE.

    Hello Guys,
    I am having a problem in displaying items in a single line in the ALV Grid using event ALV_TOP_OF_PAGE.
    My requirement is to group items on a single line i.e. in the example below, Vendor code and posting date are on the same line. The next line the prints Vendor Name and Document no.
    Vendor Code: 123123                               Posting Date : 01.01.2011
    Vendor Name: ABCD                                 Document No: 152246598.
    Here is my code in subroutine 'ALV_TOP_OF_PAGE', 
      wa_list_comments-typ = 'S'. 
      wa_list_comments-key = ''.
      wa_list_comments-info = 'Vendor Code'.
      APPEND wa_list_comments TO it_list_comments.
      wa_list_comments-typ = 'S'. 
      wa_list_comments-key = ''.
      wa_list_comments-info = 'Posting Date'.
      APPEND wa_list_comments TO it_list_comments.
    The above code prints in the following format i.e one below the other,
    Vendor Code: 123123                              
    Posting Date : 01.01.2011.
    I also tried using HTML_TOP_OF_PAGE, but it didn't work.
    Can anybody please help me out with this.
    Regards,
    Danish.

    Hi Danish,
    Your problem is with the alignment and you need some fix positions .
    The solution i feel is u can use as below :
    In CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    use 
    i_callback_html_top_of_page       = 'HTML_TOP_OF_PAGE'.
    Now on calling routine call use cl_dd_document class :
    FORM html_top_of_page USING document TYPE REF TO cl_dd_document .
    data : doctable TYPE REF TO cl_dd_table_element,
              col1_t1 TYPE REF TO cl_dd_area,
              col2_t1 TYPE REF TO cl_dd_area,
              col1_t2 TYPE REF TO cl_dd_area,
              col2_t2 TYPE REF TO cl_dd_area.
    add quick table with five columns
        CALL METHOD lw_document->add_table
          EXPORTING
            no_of_columns               = 2
            border                      = '0'
         cell_background_transparent = ' '
            width                       = '100%'
          IMPORTING
            table                       = doctable.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '40%'
          IMPORTING
            column = col1_t1.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '60%'
          IMPORTING
            column = col2_t1.* Filling columns in row
    Call method doctable->new_row.
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '40%'
          IMPORTING
            column = col1_t2.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '60%'
          IMPORTING
            column = col2_t2.
    *Now adding the texts
    lw_text1 = 'your first text'
    CALL METHOD col1_t1->add_text
          EXPORTING
            text = lw_text.
    *Similarly add text for other columns
    *Adujust % in width to adjust the column as required
    Endform.
    Hope this will solve your problem .

  • How to add a display item like the one in 'Invoices screen' please ?

    The label operating unit is in a folder like feature . Is this a display item/ a folder ? I need to add the same thing as label . Thanks .

    twinklin_girl wrote:
    I figured out it's a folder. How to add folder functionality to a customized form please ?Please see the following docs/links -- Search for "APPFLDR"
    Customization in Oracle Applications [ID 743490.1]
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T302936.htm#d0e750
    http://docs.oracle.com/cd/E18727_01/doc.121/e12900/T458979T458984.htm#I_bx2Dlib
    Folder Functionality in custom form
    https://forums.oracle.com/forums/search.jspa?threadID=&q=APPFLDR&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Multi-Line Display Item

    I need to populate a multi-line display item in Forms 6i.
    The problem that I am having is the actual assignment to the display item.
    For example:
    :DISPLAY_ITEM := '10';
    :DISPLAY_ITEM := '11';
    This makes the display item show the value '11' only.
    I need '10' on the first line and '11' on the second line, etc.
    Thanks in advance,
    Patrick

    well, you can write:
    go_block('BL_BLK');
    first_record;
    :display_item:=10;
    next_record;
    :display_item:=11;
    but for this- 1. block should have one navigable item. 2. display_item should not be the first item of the block.
    Otherwise you will need to create a non-databse text_item with width 0 on the canvas for that block.
    Hope this helps.
    Regards
    Mona

  • Error in converting Web Items from 3.x to 7.0

    Hi
    We are converting web items created in 3.0 to 7.0 using the program RSZW_ITEM_MIGRATION_3X_TO_70. It is converting all items, but the items that are not assigned to a library in 3.0 are not getting assigned to a role, although I am using the check box - 'Put unassigned items to role' and giving an existing role. I can see the converted item using the 'Find' functionality.
    And maybe because the web items are not assigned to a role, when I am trying to convert a web template, it says that these web items need conversion.
    Please let me know if there is any solution to the problem.
    Best Regards,
    Rajib

    Hello Oscar,
    Every workbook that was created with the BW 3.x system, when you open it in the new BI 7 system, the system will prompt that message for migration.
    But only after you save the workbook (that you open with BI 7) in the BI 7 Analyzer is the workbook really saved. If you don't save it, it will continue to show that message and you'll continue to have it in version 3.X
    Also be aware that after you migrate (save in BI 7 version) the workbook will no longer be executed any more in the BW 3.x version, only in BI 7.
    Diogo.

  • Convert list item attachment from docx to pdf using Word Automation Services

    I have been trying to convert List Item attachments from docx to pdf using word automation services, it works in a normal document library but when I use the list attachment it throws a null reference error.
    var settings = new ConversionJobSettings();
    settings.OutputFormat = Microsoft.Office.Word.Server.Conversions.SaveFormat.PDF;
    var conversion = new ConversionJob("Word Automation Services", settings);
    conversion.UserToken = SPContext.Current.Site.UserToken;
    var wordFile = SPContext.Current.Site.RootWeb.Url + "/" + wordForm.Url;
    var pdfFile = wordFile.Replace(".docx", ".pdf");
    conversion.AddFile(wordFile, pdfFile);
    conversion.Start();
    Using reflector I was able to see my problem lies in Microsoft.Office.Word.Server.FolderIterator.cs where it uses SPFile.Item which returns NULL
    internal void CheckSingleItem(SPFile inputFile, SPFile outputFile)
    Microsoft.Office.Word.Server.Log.TraceTag(0x67337931, Microsoft.Office.Word.Server.Log.Category.ObjectModel, Microsoft.Office.Word.Server.Log.Level.Verbose, "OM: FolderIterator start a single item: source='{0}'; dest='{1}'", new object[] { inputFile.Url, outputFile.Url });
    Stopwatch stopwatch = Microsoft.Office.Word.Server.Log.StartPerfStopwatch();
    try
    this.CheckInputFile(inputFile.Item);
    this.CheckOutputFile(outputFile.Url);
    Is there any way to get around this?

    Hi Qfroth,
    According to your description, my understanding is that when you use word automation service to convert Word to PDF for list item attachment, it throws the null reference error.
    I suggest you can create an event receiver and convert the word to memory stream like below:
    private byte[] ConvertWordToPDF(SPFile spFile, SPUserToken usrToken)
    byte[] result = null;
    try
    using (Stream read = spFile.OpenBinaryStream())
    using (MemoryStream write = new MemoryStream())
    // Initialise Word Automation Service
    SyncConverter sc = new SyncConverter(WORD_AUTOMATION_SERVICE);
    sc.UserToken = usrToken;
    sc.Settings.UpdateFields = true;
    sc.Settings.OutputFormat = SaveFormat.PDF;
    // Convert to PDF
    ConversionItemInfo info = sc.Convert(read, write);
    if (info.Succeeded)
    result = write.ToArray();
    catch (Exception ex)
    // Do your error management here.
    return result;
    Here is a detailed code demo for your reference:
    Word to PDF Conversion using Word Automation Service
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Display item visual attribute

    Hello.
    Is there a way to use set_item_instance_property on display item?
    Or change font color of disabled text item?
    Thanks.

    Set_item_instance_property is the new built-in. Don't use the old display_item. Help says: "Maintained for backward compatibility only."
    Use the new one. There are all properties in the built-in you need for changing the visual attributes.
    try it
    Gerd

Maybe you are looking for