J2ME custom items reply soon

I am new to J2ME.
i have created one form by using high level UI. filled color to the form by using custom item class. i want to append high level UI components such as choice group , string item etc into that coloured rectangular area into the form. how can i append? Is this possible? Also i need code for this plz reply.
Is there any other method available to change the back ground color without canvas?

Did you ask Google? You'd be surprised how much it knows.
Also, this is the wrong forum for asking J2ME API questions...
And, any forum is the wrong place to spam the same question repeatedly.
John

Similar Messages

  • Producing Virtual Keypad on Custom Items

    Hi Everyone,
    I have developed a midlet with some custom items. When midlet starts it shows the login screen with the custom designed USERNAME and PASSWORD fields. When user enters letters/numbers through the keypad on the device, they get displayed in the selected custom item. I have managed to give the same effect as like of actual standard TextField.
    But it requires keypad on the device. It wont work on the full touch screen phones, as there is no way to enter letters/numbers on the full touch screen devices.
    On full touch screen, if I touch on the standard TextField [not custom designed], application produces virtual keypad on the screen. In the same way, What should I do so that application can produce the virtual keypad when user touches the custom item?
    Best Regards

    Thanks db,
    The link you have provided is my own thread which I have posted in BlackBerry Forum. But if you see the reply in it, it suggests me to use RIM class.
    Is there any class in J2ME MIDP API [lcdui] which can be used to open a virtual keypad so that I will not need to use device specific virtual keypad? If there is any such class, my application will run on any device. But if I use the BlackBerry dependent class i.e. RIM class, I'll loose platform independence.
    If there is any such class in lcdui, how can I attach it to my Custom TextFields?
    Regards

  • Display of Custom Item in Emulator and Nokia Phone are different

    I'm creating a Custom Item which will either display text or image depending on the parameter. I tried with both displaying of text and image on the emulator and it looks reasonably well. However, when i install in my Nokia 6210, the display is not the same. The longer text (more than 30 characters including space) appears to be truncated as the Nokia 6210's screen width seems to be smaller. Then, i increased the minimum height in my code and break the texts to 2 lines to be displayed. Again, it's displayed well in the emulator but on the phone, the 2 lines of texts are overlapping.
    For image, i can position the image by changing the anchor of the image and x & y in g.drawImage. Again, it's displayed correctly on the emulator but it's not well aligned on the phone and the image looks to be smaller with the background rectangle of the Custom Item.
    What i want to achieve is to display the texts or image well aligned horizontally and vertically in various J2ME devices. Can anyone give me some clues like what parameters to change or to take note?
    Below are my code:
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    public class BCItem extends CustomItem implements ItemCommandListener {
        private MyMidlet midlet;
        private String linkURL;
        private boolean isText;
        private String bannerText;
        private Image image;
        private final static Command CMD_OK = new Command("Visit Ads", Command.ITEM, 1);
        private String [] displayText;
        private String displayTextPart;
        private int displayableWidth;
        public BCItem (String title, MyMidlet midlet, String linkURL, boolean isText, String bannerText, Image image) {
            super(title);
            this.midlet = midlet;
            this.linkURL = linkURL;
            this.isText = isText;
            this.bannerText = bannerText;
            this.image = image;
            displayableWidth = midlet.getWidth();    
            setDefaultCommand(CMD_OK);
            setItemCommandListener(this);
         public int getMinContentWidth(){
        return 240;
      public int getMinContentHeight(){
        return 20;
      public int getPrefContentWidth(int width){
        return displayableWidth;
      public int getPrefContentHeight(int height){
        return getMinContentHeight();
      public void paint(Graphics g, int w, int h){
          if (isText) {
              g.setColor(0x000000);
              g.setFont(Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_UNDERLINED, Font.SIZE_SMALL));
                g.drawString(bannerText,1, 1,
                       Graphics.LEFT| Graphics.TOP);
          else {
               try {
                g.drawImage(image, getMinContentWidth()/2 + 20, 1, Graphics.RIGHT| Graphics.TOP  );
            catch (Exception e) {
                e.printStackTrace();
      public void commandAction(Command c, Item i) {
          if (c == CMD_OK) {
              try {
                  System.out.println(linkURL + " visited");
                  if (midlet.platformRequest(linkURL)) {
                      System.out.println(linkURL + " visited");
              catch (Exception e) {
                  e.printStackTrace();
    }

    This forum isn't the complaints department, it's a place where users help each other. Obviously a fellow user cannot help you to resolve this.
    What you need to do is call nokia care in India and ask for the official complaints address. You will then need to write a polite letter (not an email) detailing your issues. They will respond to you and try to resolve the situation.

  • Oracle Text and Custom item type

    I have a custom item type defined that has custom attributes. With Oracle Text disabled, I can use a custom search to find these items either by their standard attributes (name,description, etc.) or their custom attributes. However, as soon as I enable Oracle Text (and allow the indexing process to complete), I can no longer locate these items in a search.
    I assume that I need to do something to tell Oracle Text to index these types of items, but could not find anything in documentation. Any assistance would be appreciated.
    Also, assuming we get around the above issue, if I have Oracle Text enabled, does this mean I will not be able to find these items after they are created until the next scheduled index update? Is there away around this besides killing Oracle Text?
    Rgds/Mark M.
    Portal 9.0.2.6

    The indexes need to be synchronised for the items to be searched and returned. Hence until the next scheduled index update, the item will not be returned. To explicitly udpate the indexes, run the procedure in the portal database connected as the schema owner.
    SQL> exec wwv_context.sync();

  • Can I work in Hindi and other Indian languages on macbook laptop? Please reply soon talking in Hindi so that I can buy one quickly.

    Can I work in Hindi and other Indian languages on Macbook? Please reply soon in Hindi so that I can buy it quickly and tell my friends. -R. Kumar, Mobile No. ******
    <Personal Information Edited by Host>

    The support and inclusion of Hindi in the newest OS X 10.10 Yosemite appears to be available.
    Within the setup and installation process of OS X various language options exist in the Installer;
    and regional support for the computers to be set-up with a default language is possible. You
    may find this to be the case, through a local authorized reseller, to buy an Apple product that
    already runs in a local language. The OS X includes more than 20 languages, in the system
    setup. The availability of matching keyboard input devices with a local language may vary.
    •Multi-lingual Mac: recent language addition info
    http://m10lmac.blogspot.com/
    •examples where inference of Hindi support in Mac OS 10.10 appears in articles:
    https://www.google.com/?gws_rd=ssl#q=Mac+OS+10.10+Hindi+language+supported
    As of Lion OS X 10.7, there were 22 languages included in the system, via setup installation.
    More have been added since. You may need to contact regional or local authorized reseller
    of Apple products for specifics and availability of certain items there.
    A historical overview, some details missing, can be read here:
    http://en.wikipedia.org/wiki/OS_X
    You could use the Locator page to find Country, then use City/country and product to see
    the nearest authorized reseller and service businesses along with address & contact info.
    •Apple - Find Locations - Country Selector:
    https://locate.apple.com/country
    The Locator can also be used to find non-Apple branded authorized regional resellers &
    associated service companies; in some cases, they may exist but be difficult to find. These
    usually show in the locate map, with phone number, street address & other contact info.
    Hopefully this may help find the product & service you need.
    Good luck & happy computing!

  • GetItemData integration api: unable to read data for custom item

    Hello,
    I am trying to retrieve the data of an custom item via the getItemData api but i am gett the error message
    "Not implemented for this item type"
    I checked the api documentation, the list of supported item types include custom methods.
    Is there any thing that i need to maintain for the custom method so that i can read the data stored by it using the getItemData api.
    or is it simply not possible to read custom item data.
    Thanks for the help,
    Regards,
    Saurav

    Hi Ruediger,
    Thanks for the reply.
    To test the getItemData API i have implemented the hello world custom method example (java script).
    I created an item using the UI and edidted the content.
    when i try to read the saved data using the api i am getting the message
    encountered an error:
    Server returned HTTP response code: 400 for URL: https://streamwork.com/v1/items/5EXAbr-TgVCJV1qgL8-g1W/item_data?
    <?xml version="1.0" encoding="UTF-8"?>
    <error>
      <http_status>400 Bad Request</http_status>
      <message>Not implemented for this item type.</message>
    </error>
    When i try to read the data of a text item using the same API I am getting the correct response
    <text_item>
       <text_content><p>Hello testing</p></text_content>
    </text_item>
    So i was wondering how i can implement the getItemData for my custom method.
    Thanks and regards,
    Saurav.

  • Traversal of custom item menu icons in form

    Here is one doubt for me
    me created one menu design with customitem subclass creating background image with sprite class and menu icons over it as in mobile(grid view) using default method paint() g.drawImage();
    and then appended this customitem to form. Now the problem is how to traverse among the custom item menu icons.
    i am aware of traverse() and traverout() methods, but don't know how to enable it
    Pls suggest me expecting a positive reply
    Thanks
    charles v c

    this is the code that i use
    import java.util.Vector;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import java.io.*;
    public class IconsTester implements CommandListener, ItemStateListener {
    private Display display;
    private Form mainForm;
    private ChoiceGroup optionsGroup;
    private int itemNum;
    private Command CMD_NEXT= new Command("Next", Command.ITEM,
    2);
    private Command CMD_BACK= new Command("Back", Command.BACK,
    1);
    private Image newApp = null;
    private Image viewApp = null;
    private Image cancelApp = null;
    public IconsTester(Display d, Form backF)
    display = d;
    mainForm = new Form("Appointments");
    mainForm.append("Choose an action to be performed: ");
    Image[] imageArray = null;
    try {
    newApp = Image.createImage("/success.png");
    viewApp = Image.createImage("/search.png");
    cancelApp = Image.createImage("/time.png");
    imageArray = new Image[] { newApp, viewApp, cancelApp };
    catch (java.io.IOException err) {
    System.out.println(err);
    mainForm.append(new Spacer(40,40));
    mainForm.append(newApp);
    mainForm.append(new Spacer(40,40));
    mainForm.append(viewApp);
    mainForm.append(new Spacer(40,40));
    mainForm.append(cancelApp);*/
    mainForm.addCommand(CMD_BACK);
    mainForm.addCommand(CMD_NEXT);
    mainForm.setCommandListener(this);
    mainForm.setItemStateListener(this);
    display.setCurrent(mainForm);
    public void commandAction(Command c, Displayable s) {
    if (c == CMD_BACK) {
    display.setCurrent(Login.list);
    else
    mainForm.setItemStateListener(this);
    public void itemStateChanged(Item item)
    if( item.equals(newApp))
    {    itemNum = 0;
    new NewAppointment(display, mainForm);
    else if( item.equals(viewApp))
    {    itemNum = 2;
    new NewAppointment(display, mainForm);
    else if( item.equals(cancelApp))
    {    itemNum = 1;
    new NewAppointment(display, mainForm);
    }

  • Report FBL1N with flag Customer items

    Hello,
    When I set the flag "Customer Items" in the selection screen of the report FBL1N I can display the vendor items and also the related custome items.
    The problem is that I can display the list of all the vendors and below the list of the customers with the total balance.
    I'd like to display the vendor items with the balance  of the vendor invoices then the related customer items with the balance of the customer invoices and then the balance of the vendor and customer invoices.
    Is it possible?
    Please let me know.
    Thanks a lot in advance
    Kind Regards,
    Emanuela

    Hello,
    Thanks for your answer.
    My problem is another one.
    I have two vendors:
    - Vendor A
    - Vendor B
    This to Vendors are linked to the following Customers:
    - Customer A
    - Customer B
    If I execute the FBL1N with the falg customeer items, I can display:
    1) List of Vendor A invoices and total amount
    2) List of Vendor B invoices and total amount
    3) List of Customer A invoices and total amount
    4) List of Customer B invoice sand total amount
    5) Balance of Vendor (A + B) and Customer (A+B) invoices
    I'd like to find a way to modify the sequence because I need to have:
    1) List of Vendor A invoices and total amount
    2) List of Customer A invoices and total amount
    3) Balance of Vendor A and Customer A invoices
    4) List of Vendor B invoices and total amount
    4) List of Customer B invoices and total amount
    5) Balance of Vendor B and Customer B invoices
    Only in this way I can display properly the result of compensation for each couple of Vendor/Customer.
    In the standard display the result has no meaning.
    Thanks a lot for your help
    Cheers,
    Emanuela

  • Fbl5n: The printer provides me only one customer items for each page...

    Hi all,
    launching t.code FBL5N, and printing the repost list, the printer provides me only one customer items for each page...
    I'd like obtaining more customer items for each page...
    What to do?
    Thanks

    Hi Umberto..
    Thats how the standard report works..
    To meet your requirement, you would probably need to look at another standard report.
    In case you need further clarification, please feel free to write to me..
    Good Luck!
    Lucid-Mind...

  • Customer Item Open Interface Validation

    Hi Folks,
    I have to write package for customer item open interface ,
    can anyone let me know what are the validation required or if any one have package written ,please share it with me .[email protected]
    Waiting for your kind response.
    Thanks in advance....
    Regards
    RP

    Hi
    Please find the code below for Customer Item Interface
    HTH
    Dinesh
    declare
         ex_not_ok     exception          ;
         Cursor      cur_cust_item  is
         select     b.*,rowid from btl_cust_item b      ;
         rec_cur_cust_item     cur_cust_item%rowtype;
         vc_rowid          varchar2(50);     
         vc_error_desc          varchar2(2000);
         vc_org_code          varchar2(20)     :='F02';
         vc_org_id          varchar2(20)     ;
         vc_inv_item          number          ;
         vc_cust_id          varchar2(50)     ;
         vc_create_by          number;
         vc_last_updated_by     number;
         vc_user_name          varchar2(100);
         vc_login_name          varchar2(30)     := '&1';
         vc_master               number;
    begin
         vc_org_id := &2 ;
      vc_master := &3;
         begin
              select      user_id          ,last_updated_by      ,user_name 
              into     vc_create_by     ,vc_last_updated_by     , vc_user_name     
              from      fnd_user
              where      user_name = vc_login_name;
         end;
         open     cur_cust_item;          -- open cursor
         loop
              begin 
              fetch     cur_cust_item
              INTO     rec_cur_cust_item;
              vc_rowid     := rec_cur_cust_item.rowid;
              exit when cur_cust_item%NOTFOUND;
              -- perform the mandatory validations
              -- 1. Check the validity of the customer
              begin
                   select      count(*)
                   into     vc_cust_id
                   from      ra_customers
                   where     upper(customer_number) = upper(rec_cur_cust_item.customer_number);
                   if      vc_cust_id > 0 then
                        null;
                   else
                        vc_error_desc := rec_cur_cust_item.customer_number||' '|| rec_cur_cust_item.customer_name ||' - Customer Number  Does not Exist in Ra_customers';
                        raise     ex_not_ok;
                   end if;                
                   exception
                        when no_data_found then
                        update      btl_cust_item
                        set     process_flag = 'E',
                             error_message = 'XREF-  Customer Does not exist '||vc_error_desc
                        where     rowid     = vc_rowid;
              end ;
              -- 2. Check that the Customer Item Is not Null
              begin
                   if     rec_cur_cust_item.customer_item_number is not null then
                        null;
                   else
                        vc_error_desc := rec_cur_cust_item.Customer_Number ||' - '|| rec_cur_cust_item.customer_item_number || ' - Customer Item has no value    ';
                        raise ex_not_ok;
                   end if;
              end;
              -- 3. Validate the Inventory Item
              begin
                   select      count(*)
                   into     vc_inv_item
                   from      mtl_system_items  a, org_organization_definitions b
                   where     a.organization_id            = b.organization_id
                   and     rec_cur_cust_item.inventory_item = segment1
                   and     a.organization_id             = vc_org_id;
                   if     vc_inv_item != 0 then
                        null;
                   else
                        vc_error_desc := 'Inventory Item '|| rec_cur_cust_item.inventory_item ||'  is not valid/exist in mtl_system_item ';
                        raise ex_not_ok;
                   end if;
              end;
        rec_cur_cust_item.commodity_code := 'MISC';
              insert into mtl_ci_interface (               
                        PROCESS_FLAG          ,
                        PROCESS_MODE          ,
                        TRANSACTION_TYPE     ,
                        CUSTOMER_NUMBER          ,
                        CUSTOMER_NAME          ,
                        CUSTOMER_ITEM_NUMBER     ,
                        ITEM_DEFINITION_LEVEL     ,
                        COMMODITY_CODE          ,
                        INACTIVE_FLAG          ,
                        LOCK_FLAG          ,
                        LAST_UPDATE_DATE     ,
                        LAST_UPDATED_BY          ,
                        CREATION_DATE          ,
                        CREATED_BY          ,
                        --LAST_UPDATE_LOGIN     ,
                        ERROR_CODE          ,
                        ERROR_EXPLANATION               
              values
                        '1'                                ,     --PROCESS_FLAG
                        '1'                                ,     --PROCESS_MODE
                        'CREATE'                     , -- TRNASACTION_TYPE
                        rec_cur_cust_item.customer_number     ,     --CUSTOMER_NUMBER          
                        rec_cur_cust_item.customer_name           , --CUSTOMER_NAME          
                        rec_cur_cust_item.customer_item_number, --CUSTOMER_ITEM_NUMBER     
                        '1'                          , --ITEM_DEFINATION_LEVEL
                        rec_cur_cust_item.commodity_code      , --COMMODITY_CODE
                        '2'                          , --INACTIVE_FLAG
                        'N'                          ,     --LOCK_FLAG
                        sysdate                      , --LAST_UPDATE_DATE
                        vc_last_updated_by                    , --LAST_UPDATED_BY
                        sysdate                          , --CREATION_DATE
                        vc_create_by                     , --CREATED_BY
                        --'10'                          , --LAST_UPDATE_LOGIN
                        'N'                          , --ERROR_CODE
                        ' '                             --ERROR_EXPLANATION
              Insert into mtl_ci_xrefs_interface (
                        PROCESS_FLAG          ,
                        PROCESS_MODE          ,
                        TRANSACTION_TYPE     ,
                        CUSTOMER_NUMBER          ,
                        CUSTOMER_NAME          ,
                        CUSTOMER_ITEM_NUMBER     ,
                        ITEM_DEFINITION_LEVEL     ,
                        INVENTORY_ITEM          ,
                        MASTER_ORGANIzATION_ID     ,
                        PREFERENCE_NUMBER     ,
                        INACTIVE_FLAG          ,
                        LOCK_FLAG          ,
                        LAST_UPDATE_DATE     ,
                        LAST_UPDATED_BY          ,
                        CREATION_DATE          ,
                        CREATED_BY          ,
                        --LAST_UPDATE_LOGIN     ,
                        ERROR_CODE          ,          
                        ERROR_EXPLANATION
              Values
                        '1'                    ,      --PROCESS_FLAG          
                        '1'                    ,      --PROCESS_MODE          
                        'CREATE'               ,      --TRNSACTION_TYPE          
                        rec_cur_cust_item.customer_number,     --CUSTOMER_NUMBER          
                        rec_cur_cust_item.customer_name     ,      --CUSTOMER_NAME          
                        rec_cur_cust_item.customer_item_number, --CUSTOMER_ITEM_NUMBER     
                        '1'                    ,     --ITEM_DEFINATION_LEVEL     
                        rec_cur_cust_item.inventory_item,     --INVENTORY_ITEM
                        vc_master               ,      --MASTER_ORGANISATION_ID
                        '1'                    ,     --PREFERENCE_NUMBER
                        '2'                    ,     --INACTIVE_FLAG     
                        'N'                    ,     --LOCK_FLAG     
                        sysdate                    ,     --LAST_UPDATE_DATE     
                        vc_last_updated_by          ,     --LAST_UPDATED_BY          
                        sysdate                    ,     --CREATION_DATE          
                        vc_create_by               ,     --CREATED_BY          
                        --'10'                    ,     --LAST_UPDATE_LOGIN     
                        'N'                    ,     --ERROR_CODE                    
                        ' '                         --ERROR_EXPLANATION     
    --dbms_output.put_line( ' Inserting into reference table - done');
              exception
                   when ex_not_ok then
                        update      btl_cust_item
                        set     process_flag = 'E',
                             error_message = 'XREF-'||vc_error_desc
                        where     rowid     = vc_rowid;                    
              end ;
         end loop;
         commit;
         begin
               dbms_application_info.set_client_info(' ');     
         end;
         dbms_output.put_line ( ' End time ' || to_char( sysdate, 'DD-MON-YYYY HH24:MI:SS'));
         exception
              when others then
                   dbms_output.put_line( Sqlcode || ' ' || Sqlerrm );
    end ;
    /

  • Customer Item Open Interface

    Does anyone know what the Lock_flag is for the customer item open interface and what it should be set to when creating customer items? It is a required field but it is not explained in the 11.5.9 documentation.

    Hi
    I didn't find this flag in TRM of 11.5.10. In what table did you find it?
    Regards,
    Ricardo Cabral

  • Data provider problem in custom item renderer

    I have a complex, custom item renderer for a list. I add
    items that I extracted from an xml to the data provider using the
    IList interface. But when displaying the list, the items are all
    screwed up. Each rendered item has some parts which are initialized
    as different components depending on the values from the xml. This
    initialization is called in the item renderer for the
    creationComplete event.
    The weird thing is that when I output the dataProvider to
    check its values, some of the items have internal uids sometimes
    and sometimes they don't. If I output the dataProvider right after
    I add the items to it, none of them get internal uids. But from the
    initialize method, some of them do and some don't.
    To make things weirder, sometimes, as I scroll up and down
    the list, the dynamic components get all switched up. I'm either
    having a problem with internal uids or with the creation policies
    for lists. Or it's probably some simpler mistake I have yet to see.
    Anyone have any idea where the problem could lie? Any help is
    greatly appreciated.

    Any successful render must:
    1) override the set data property of the component
    Further, best practice is to store any data you need in the
    override set data(), and call invalidateProperties(). Then do the
    actual work in an override commitProperties() function.
    The framework is smart about when to call commitProperties
    efficiently. set data() gets called much more often.
    Tracy

  • Display filename in url for custom items

    Hi - I'm rying to find out how to open a word doc in a browser and display the FILENAME (xyz.doc) instead of the NAME (123.doc) - which comes from the wwdoc_document$ tbl .
    The word document was added to a portal page via a file attribute within custom text item. It seems that the document is not referenced within the actual page group when using the custom item compared to using standard file item format.
    I can open the doc in browser using the NAME format - eg, .../portal/pls/portal/docs/1/1234.doc but I need to open via the PAGEGRP/FILENAME format eg, .../portal/page/portal/PAGEGRP/xyz.doc
    BTW - We're using portal 10.1.4
    Any ideas appreciated
    Cheers,
    Justin

    Hi guys,
    I finally discover the solution. Just try this:
    First, create a Procedure like this:
    PROCEDURE ShowSaveDoc (pFile wwdoc_document$.name%TYPE) IS
    v_BlobContent wwdoc_document$.blob_content%TYPE;
    v_MimeType wwdoc_document$.mime_type%TYPE;
    v_Filename wwdoc_document$.filename%TYPE;
    BEGIN
    SELECT blob_content, mime_type, filename
    INTO v_BlobContent, v_MimeType, v_Filename
    FROM wwdoc_document$
    WHERE name = pFile;
    owa_util.mime_header(v_MimeType, FALSE);
    htp.p('Content-Length: ' || DBMS_LOB.getlength(v_BlobContent));
    htp.p('Content-Disposition: attachment; filename="' || v_Filename || '"');
    owa_util.http_header_close;
    wpg_docload.download_file( v_BlobContent );
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    htp.p('Error - No Data Was Found');
    WHEN OTHERS THEN
    htp.p('Error - ' || || SQLERRM);
    END;
    On the HTML code where you have the link try this:
    htp.p('< a id="someid" title="download" alt="download"
    h_ref="/portal/pls/portal/portal.galeria_pkg.showsavedoc?pFile=' ||rec.id_doc || '"> Download '||rec.docDescription||'</a>');
    where the rec.id_doc is the wwdoc_document$.name of your document.
    Try it and tell me if it worked.
    Its Working for me.
    Thanks.

  • How to force Portal not to display item content for a custom item

    Hi,
    I've read in several places questions about rendering an Item in a custom way, without letting portal
    display the item content, if you read along I've discovered a SIMPLE WAY to force portal not to
    display the content item.
    As per bugs and requests on metalink it seemed that in many versions of Oracle Portal (mine is 9.0.4.1)
    this is impossible, since even if we remove the "Item Content" from the list of displayed attributes in the
    region, Portal does display it anyway, just after every other Attribute.
    - Re: using an item type procedure
    - Metalink BUG # 3998251 "ENH: SHOULD BE ABLE TO HIDE "ITEM CONTENT" FOR TEXT ITEMS OR NEED A NEW ITEM TYP" and is being looked into internally whether it is feasible to include this in future releases.
    - Metalink Doc ID:      Note:290534.1          Subject:      Unable to Hide the "Item Content" Attribute for a Text Item     
    Mine scenario was the usual one:
    -oracle portal 9.4.0.1
    -a custom item based on custom text (so as to have the RTE to edit HTML).
    -A few attributes that help me define the class of an enclosing DIV tag that I wanted to put (a class and an ID)
    -A plsql call associated to the custom item, with the flag "display inline" checked
    -The dirty HTML generated by the built-in Oracle RTE (with BODY and HTML tags enclosing the actual HTML)
    -The region that will contain the item is set so that just the "Function Call" is (or should be) displayed
    I wanted to control entirely the display of the item text, while enclosing it in a custom DIV tag.
    After a few tries, one of which involved forcing an HTML comment around the item content that Portal stubbornly
    displayed, I've discovered this simple way. I don't know hom much this way is portable, but is done entirely with the APIs.
    In the stored procedure that displays the item, that I encolose, i just do:
    1) retrieved the ITEM querying WWSBR_ALL_ITEMS;
    2) updated the ITEM via WWSBR_API.MODIFY_ITEM, passing as display_otpion the value WWSBR_API.FULL_SCREEN!!
    Here I try a little explanation:
    An item just created has FULLSCREEN=1 and INPLACE=0. This way the stored procedure is executed
    AND the item content is displayed.
    WIth the modify_item, the item gets FULLSCREEN=1 and INPLACE=2 !! This seems strange since the docs
    tells that inplace can be 0 or 1. But this works.
    I've played with the WWV_THINGS table directlry, and setting INPLACE to 0, 2 or 3 works as well, while
    if it is set to 1, it behave the usual way.
    The trick is to have FULLSCREEN to 1 while INPLACE is not set to 1.. and this was the easiest solution.
    I'd like to receive a feedback from Oracle regarding this behaviour.
    Bye
    Walter
    --- This is the procedure ---
    CREATE OR REPLACE PROCEDURE show_item_mod(itemid in varchar2, styleid in varchar2,
         styleclass in varchar2) IS
    html CLOB;
    idx1 number;
    idx2 number := 0;
    item portal.wwsbr_all_items%rowtype;
    BEGIN
         --retrieve item content
         select * into item from portal.wwsbr_all_items where id=itemid;
         html := item.text;
         --check if text body contains "dirty" tags as put by Oracle RTE editor
         --and strips text from <BODY> to </BODY>
         idx1 := instr(html,'<BODY>');
         if(idx1 > 0) then
                   --strip text of broken tags
                   idx2 := instr(html,'</BODY>');
                   html := substr(html,idx1+6,idx2-idx1-6);
         end if;
         --check if this is first time we enter this procedure
         --or if text has changed
         if(item.description is null or idx2 != 0) then
                   --update filename so next time we won't enter the IF branch
                   --update DIPLSAY OPTION to FUllSCREEN
                   --update text, if this was changed
                   idx1 := portal.wwsbr_api.modify_item(
                        p_master_item_id => item.masterid,
    p_item_id => itemid,
    p_caid => item.caid,
    p_folder_id => item.folder_id,
    p_display_name => item.display_name,
    p_region_id => item.folder_region_id,
    p_display_option => portal.WWSBR_API.FULL_SCREEN,
    p_category_id => item.category_id,
    p_category_caid => item.category_caid,
    p_author => item.author,
    --p_description => item.description  ,
    p_keywords => item.keywords ,
    p_text => html ,
    p_folderlink_id => item.folder_link_id ,
    p_folderlink_caid => item.folder_link_caid ,
    p_publish_date => item.publish_date ,
    p_expire_mode => item.expiremode,
    --p_file_filename => 'Changed!',
                        p_description=> 'changed!',
    p_addnewversion => FALSE,
    p_access_level => portal.wwsbr_api.FOLDER_ACCESS
                   -- process cache invalidation messages
              portal.wwpro_api_invalidation.execute_cache_invalidation;
              end if;
         htp.prn('<div ');
         if(styleclass is not null) then
                   htp.prn(' class="' || styleclass || '" ');
         end if;
         if(styleid is not null) then
                   htp.prn(' id="' || styleid || '" ');
         end if;
         htp.prn('>');
         htp.p(html);
         htp.p('</div>');
    END show_item_mod;
    /

    Hi,
    I've read in several places questions about rendering an Item in a custom way, without letting portal
    display the item content, if you read along I've discovered a SIMPLE WAY to force portal not to
    display the content item.
    As per bugs and requests on metalink it seemed that in many versions of Oracle Portal (mine is 9.0.4.1)
    this is impossible, since even if we remove the "Item Content" from the list of displayed attributes in the
    region, Portal does display it anyway, just after every other Attribute.
    - Re: using an item type procedure
    - Metalink BUG # 3998251 "ENH: SHOULD BE ABLE TO HIDE "ITEM CONTENT" FOR TEXT ITEMS OR NEED A NEW ITEM TYP" and is being looked into internally whether it is feasible to include this in future releases.
    - Metalink Doc ID:      Note:290534.1          Subject:      Unable to Hide the "Item Content" Attribute for a Text Item     
    Mine scenario was the usual one:
    -oracle portal 9.4.0.1
    -a custom item based on custom text (so as to have the RTE to edit HTML).
    -A few attributes that help me define the class of an enclosing DIV tag that I wanted to put (a class and an ID)
    -A plsql call associated to the custom item, with the flag "display inline" checked
    -The dirty HTML generated by the built-in Oracle RTE (with BODY and HTML tags enclosing the actual HTML)
    -The region that will contain the item is set so that just the "Function Call" is (or should be) displayed
    I wanted to control entirely the display of the item text, while enclosing it in a custom DIV tag.
    After a few tries, one of which involved forcing an HTML comment around the item content that Portal stubbornly
    displayed, I've discovered this simple way. I don't know hom much this way is portable, but is done entirely with the APIs.
    In the stored procedure that displays the item, that I encolose, i just do:
    1) retrieved the ITEM querying WWSBR_ALL_ITEMS;
    2) updated the ITEM via WWSBR_API.MODIFY_ITEM, passing as display_otpion the value WWSBR_API.FULL_SCREEN!!
    Here I try a little explanation:
    An item just created has FULLSCREEN=1 and INPLACE=0. This way the stored procedure is executed
    AND the item content is displayed.
    WIth the modify_item, the item gets FULLSCREEN=1 and INPLACE=2 !! This seems strange since the docs
    tells that inplace can be 0 or 1. But this works.
    I've played with the WWV_THINGS table directlry, and setting INPLACE to 0, 2 or 3 works as well, while
    if it is set to 1, it behave the usual way.
    The trick is to have FULLSCREEN to 1 while INPLACE is not set to 1.. and this was the easiest solution.
    I'd like to receive a feedback from Oracle regarding this behaviour.
    Bye
    Walter
    --- This is the procedure ---
    CREATE OR REPLACE PROCEDURE show_item_mod(itemid in varchar2, styleid in varchar2,
         styleclass in varchar2) IS
    html CLOB;
    idx1 number;
    idx2 number := 0;
    item portal.wwsbr_all_items%rowtype;
    BEGIN
         --retrieve item content
         select * into item from portal.wwsbr_all_items where id=itemid;
         html := item.text;
         --check if text body contains "dirty" tags as put by Oracle RTE editor
         --and strips text from <BODY> to </BODY>
         idx1 := instr(html,'<BODY>');
         if(idx1 > 0) then
                   --strip text of broken tags
                   idx2 := instr(html,'</BODY>');
                   html := substr(html,idx1+6,idx2-idx1-6);
         end if;
         --check if this is first time we enter this procedure
         --or if text has changed
         if(item.description is null or idx2 != 0) then
                   --update filename so next time we won't enter the IF branch
                   --update DIPLSAY OPTION to FUllSCREEN
                   --update text, if this was changed
                   idx1 := portal.wwsbr_api.modify_item(
                        p_master_item_id => item.masterid,
    p_item_id => itemid,
    p_caid => item.caid,
    p_folder_id => item.folder_id,
    p_display_name => item.display_name,
    p_region_id => item.folder_region_id,
    p_display_option => portal.WWSBR_API.FULL_SCREEN,
    p_category_id => item.category_id,
    p_category_caid => item.category_caid,
    p_author => item.author,
    --p_description => item.description  ,
    p_keywords => item.keywords ,
    p_text => html ,
    p_folderlink_id => item.folder_link_id ,
    p_folderlink_caid => item.folder_link_caid ,
    p_publish_date => item.publish_date ,
    p_expire_mode => item.expiremode,
    --p_file_filename => 'Changed!',
                        p_description=> 'changed!',
    p_addnewversion => FALSE,
    p_access_level => portal.wwsbr_api.FOLDER_ACCESS
                   -- process cache invalidation messages
              portal.wwpro_api_invalidation.execute_cache_invalidation;
              end if;
         htp.prn('<div ');
         if(styleclass is not null) then
                   htp.prn(' class="' || styleclass || '" ');
         end if;
         if(styleid is not null) then
                   htp.prn(' id="' || styleid || '" ');
         end if;
         htp.prn('>');
         htp.p(html);
         htp.p('</div>');
    END show_item_mod;
    /

  • FRM-40735 WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-065

    Please help....This error is comming when opening the form. The form is running on oracle 11g 64bits web logic.
    "FRM-40735 WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-065"

    Welcome to OTN
    Before posting on this forum please read
    FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.
    you'll get some hint here
    Oracle/PLSQL: ORA-06502 Error

Maybe you are looking for