Home » Developer & Programmer » Forms » How to increase the Alert Title Width
How to increase the Alert Title Width [message #609401] Thu, 06 March 2014 06:08 Go to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Hi all,

I want to increase the alert Title width size as shown as below screen.

/forum/fa/11743/0/
  • Attachment: image1.png
    (Size: 3.57KB, Downloaded 1385 times)
Re: How to increase the Alert Title Width [message #609405 is a reply to message #609401] Thu, 06 March 2014 06:49 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Can any one please help?
Re: How to increase the Alert Title Width [message #609414 is a reply to message #609405] Thu, 06 March 2014 07:16 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Find the alert in the object navigator and open its property palette.
The properties listed there are all the ones you can change.
I don't believe width is one of them.
Re: How to increase the Alert Title Width [message #609417 is a reply to message #609414] Thu, 06 March 2014 07:23 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
This code working fine for me.I want to increase the Alert window/Title.
DECLARE 
    v_file_number    VARCHAR2(60); 
    v_item_list      VARCHAR2(7000);  
    v_incrval_1      NUMBER; 
    v_message1       VARCHAR2(7000);
    v_message2       VARCHAR2(7000);
    --TITLE   varchar2(5000); 

    CURSOR c_get_notassigned( c_file_number IN VARCHAR2) 
    IS 
      SELECT a1.item_number 
      FROM   regal.regal_inv_landed_cost_tab a1 
      WHERE  organization_id = 81 
             AND NOT EXISTS(SELECT a2.inventory_item_id 
                            FROM   mtl_system_items_kfv a2 
                            WHERE  a1.inventory_item_id = a2.inventory_item_id 
                            AND a2.organization_id = 82) 
             AND file_number = c_file_number;
BEGIN 
        v_file_number := :RHCLANDEDCOSTHEADER.file_number; 
        v_item_list := NULL; 

            FOR c_get_notassigned_rec IN c_get_notassigned(:RHCLANDEDCOSTHEADER.file_number) 
            LOOP 
                  v_item_list := v_item_list ||c_get_notassigned_rec.item_number ||','; 
              END LOOP; 
           
        IF v_item_list IS NOT NULL THEN v_incrval_1 := 1;  
          
          --TITLE:='The following Items are not assigned to BRW';
          v_message1 :=v_item_list;
          SET_ALERT_PROPERTY('NOTINBRW',ALERT_MESSAGE_TEXT,v_message1);
          
          --SET_ALERT_PROPERTY('NOTINBRW',TITLE,v_message);
          alert_button := Show_Alert('NOTINBRW');
        END IF;   
 END;  


If i add the SET_ALERT_PROPERTY('NOTINBRW',TITLE,v_message); instead of the ALERT_MESSAGE_TEXT i am getting ora-06502 error when i pressed the Button.
/forum/fa/11746/0/


  • Attachment: image1.png
    (Size: 11.84KB, Downloaded 1428 times)

[Updated on: Thu, 06 March 2014 07:23]

Report message to a moderator

Re: How to increase the Alert Title Width [message #609418 is a reply to message #609417] Thu, 06 March 2014 07:48 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Can you see I property there that specifies the width of an alert?
I don't.

Re: How to increase the Alert Title Width [message #609419 is a reply to message #609418] Thu, 06 March 2014 07:52 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
And having a variable with the same name as a property is just a recipe for bugs.
Re: How to increase the Alert Title Width [message #609420 is a reply to message #609418] Thu, 06 March 2014 07:54 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
I want to show the Title as " The following Items are not in the BRW"

And instead of messages i want item names.

Can you please help me on this?

Thank You

[Updated on: Thu, 06 March 2014 07:57]

Report message to a moderator

Re: How to increase the Alert Title Width [message #609421 is a reply to message #609420] Thu, 06 March 2014 07:58 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Since v_message isn't declared anywhere I have no idea what code you're actually running when you get the error.
Re: How to increase the Alert Title Width [message #609422 is a reply to message #609421] Thu, 06 March 2014 08:01 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Editing your posts for a typo is one thing, completely rewriting the message someone is replying to just confuses matters.

Your current code appears to set the list of item_numbers correctly.
The title is the width it is and can't be changed.
Re: How to increase the Alert Title Width [message #609423 is a reply to message #609420] Thu, 06 March 2014 08:03 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
mist598 wrote on Thu, 06 March 2014 13:54
And instead of messages i want item names.

I have no idea what that means
Re: How to increase the Alert Title Width [message #609424 is a reply to message #609423] Thu, 06 March 2014 08:07 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Quote:
I have no idea what that means


I mean i need to display the item names in the Alert window ans Title as "The following Items are not in BRW"
Re: How to increase the Alert Title Width [message #609425 is a reply to message #609401] Thu, 06 March 2014 08:15 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Hi cookiemonster,

I am getting ora-06502 error when i ran with below code in the Button.

 v_message1       VARCHAR2(7000);
 v_item_list      VARCHAR2(7000);
 TITLE   varchar2(5000);   

IF v_item_list IS NOT NULL THEN v_incrval_1 := 1;           
          TITLE:='The following Items are not assigned to BRW';
          v_message1 :=v_item_list;          
          SET_ALERT_PROPERTY('NOTINBRW',TITLE,v_message1);
          alert_button := Show_Alert('NOTINBRW');
END IF;   
Re: How to increase the Alert Title Width [message #609426 is a reply to message #609419] Thu, 06 March 2014 08:16 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
cookiemonster wrote on Thu, 06 March 2014 13:52
And having a variable with the same name as a property is just a recipe for bugs.


That means - title
Re: How to increase the Alert Title Width [message #609427 is a reply to message #609426] Thu, 06 March 2014 08:18 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Quote:
That means - title


I remove the Title in the Alert Property and ran the form but still getting error ora-06502
Re: How to increase the Alert Title Width [message #609428 is a reply to message #609427] Thu, 06 March 2014 08:20 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Show the revised code
Re: How to increase the Alert Title Width [message #609429 is a reply to message #609428] Thu, 06 March 2014 08:23 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
The title These Items are not assigned to BRW , add this Tittle in the Alert Property in the Title also right? or not need

DECLARE 
    v_file_number    VARCHAR2(60); 
    v_item_list      VARCHAR2(7000);  
    v_incrval_1      NUMBER; 
    v_message1       VARCHAR2(7000);
    TITLE   varchar2(5000); 

    CURSOR c_get_notassigned( c_file_number IN VARCHAR2) 
    IS 
      SELECT a1.item_number 
      FROM   regal.regal_inv_landed_cost_tab a1 
      WHERE  organization_id = 81 
             AND NOT EXISTS(SELECT a2.inventory_item_id 
                            FROM   mtl_system_items_kfv a2 
                            WHERE  a1.inventory_item_id = a2.inventory_item_id 
                            AND a2.organization_id = 82) 
             AND file_number = c_file_number;
                         
BEGIN 
        v_file_number := :RHCLANDEDCOSTHEADER.file_number; 
        v_item_list := NULL; 

            FOR c_get_notassigned_rec IN c_get_notassigned(:RHCLANDEDCOSTHEADER.file_number) 
            LOOP 
                  v_item_list := v_item_list ||c_get_notassigned_rec.item_number ||','; 
              END LOOP; 
           
        IF v_item_list IS NOT NULL THEN v_incrval_1 := 1;  
          
          TITLE:='These Items are not assigned to BRW';
          v_message1 :=v_item_list;
          SET_ALERT_PROPERTY('NOTINBRW',TITLE,v_message1);
          alert_button := Show_Alert('NOTINBRW');
        END IF;   
END; 
Re: How to increase the Alert Title Width [message #609430 is a reply to message #609429] Thu, 06 March 2014 08:28 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
And still you have a variable with the same name as a property.
Re-name the variable!!!!!!!!!!
Re: How to increase the Alert Title Width [message #609431 is a reply to message #609430] Thu, 06 March 2014 08:42 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
v_tittle:='These Items are not assigned to BRW';
v_message1 :=v_item_list;
SET_ALERT_PROPERTY('NOTINBRW',v_tittle,v_message1);


The above variable right?(v_tittle), i am getting same error..
Re: How to increase the Alert Title Width [message #609433 is a reply to message #609431] Thu, 06 March 2014 08:47 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Here's an idea - instead of guessing what the parameters for set_alert_property are, why don't you have a look in form builder help to see what they really are. A five second glance at that topic should make it obvious that the above code couldn't possibly work.
Re: How to increase the Alert Title Width [message #609434 is a reply to message #609433] Thu, 06 March 2014 08:48 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Quote:

Here's an idea - instead of guessing what the parameters for set_alert_property are, why don't you have a look in form builder help to see what they really are. A five second glance at that topic should make it obvious that the above code couldn't possibly work.


Thank You cookiemonster... Smile
Re: How to increase the Alert Title Width [message #609449 is a reply to message #609434] Fri, 07 March 2014 00:21 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
v_alert_buttons NUMBER;
v_title         varchar2(500);
v_item_list     VARCHAR2(7000);  


v_title:='The following Items are not assigned to BRW';
Set_Alert_Property('NOTINBRW', TITLE, v_title ) ;
Set_Alert_Property('NOTINBRW', ALERT_MESSAGE_TEXT, v_item_list) ;
V_alert_buttons := Show_Alert('NOTINBRW');         


Name: NOTINBRW
Alert Style : Stop
Button 1 Label: OK
Default : Button1

Could any one please help, i want to increase the Alert Tittle at the Runtime.

[Updated on: Fri, 07 March 2014 00:21]

Report message to a moderator

Re: How to increase the Alert Title Width [message #609464 is a reply to message #609449] Fri, 07 March 2014 02:36 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Could you please think about what the answers I give actually mean.
The property palette contains all the properties that can be set for an object. If there's no property for what you want to change then you can't change it.
Re: How to increase the Alert Title Width [message #609465 is a reply to message #609464] Fri, 07 March 2014 02:42 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Quote:

Could you please think about what the answers I give actually mean.
The property palette contains all the properties that can be set for an object. If there's no property for what you want to change then you can't change it.


What properties to change , let me know please?
Re: How to increase the Alert Title Width [message #609466 is a reply to message #609465] Fri, 07 March 2014 02:45 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Mist I know you don't want to hear the answer I'm giving but
Quote:

you can't change it

is really not open to interpretation.

I suggest you put the text you're trying to put in the title in the alert_message_text instead.
Re: How to increase the Alert Title Width [message #609468 is a reply to message #609466] Fri, 07 March 2014 03:08 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
v_title:='The following Items are not assigned to BRW';

Set_Alert_Property('NOTINBRW', TITLE, v_title ) ;

Set_Alert_Property('NOTINBRW', ALERT_MESSAGE_TEXT, v_item_list) ;

V_alert_buttons := Show_Alert('NOTINBRW');   


The above code displayed as
The following Items are not assigned to BRW(Title)
instead of the messages i ned=ed to print the item_numbers (That's why i put this v_item_list)



Set_Alert_Property('NOTINBRW', ALERT_MESSAGE_TEXT, v_item_list) ;

if i add,
v_title:='The following Items are not assigned to BRW';

Set_Alert_Property('NOTINBRW', ALERT_MESSAGE_TEXT, 'The following Items are not assigned to BRW') ;

Where to display the Item Name in the Alerts.

Can you please help i am confusing more.

Re: How to increase the Alert Title Width [message #609469 is a reply to message #609468] Fri, 07 March 2014 03:11 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
I know you know what the concatenate operator (||) does.
Have a think about it.
Re: How to increase the Alert Title Width [message #609472 is a reply to message #609469] Fri, 07 March 2014 03:13 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Quote:
I know you know what the concatenate operator (||) does.
Have a think about it.


Can you please help how to do this?
Re: How to increase the Alert Title Width [message #609474 is a reply to message #609472] Fri, 07 March 2014 03:30 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
DECLARE
    v_file_number   VARCHAR2(60);
    v_item_list     VARCHAR2(6000);
    v_message       VARCHAR2(6000);
    v_incrval_1     NUMBER;
    v_alert_buttons NUMBER;
    v_title         VARCHAR2(500);
    CURSOR c_get_notassigned( c_file_number IN VARCHAR2) IS
      SELECT a1.item_number
      FROM   regal_inv_landed_cost_tab a1
      WHERE  organization_id = 1381
             AND EXISTS(SELECT a2.inventory_item_id
                        FROM   mtl_system_items_kfv a2
                        WHERE  a1.inventory_item_id = a2.inventory_item_id
                               AND a2.organization_id = 997)
             AND file_number = c_file_number;
BEGIN
    v_file_number := :RHCLANDEDCOSTHEADER.file_number;
 
    v_item_list := NULL;
 
    FOR c_get_notassigned_rec IN
    c_get_notassigned(:RHCLANDEDCOSTHEADER.file_number)
    LOOP
        v_item_list := v_item_list ||c_get_notassigned_rec.item_number ||',';
    END LOOP;
 
    IF v_item_list IS NOT NULL THEN
      v_incrval_1 := 1;
 
      v_title := 'The following Items are not assigned to BRW';
 
      Set_alert_property('NOTINBRW', title, v_title);
 
      v_message := v_item_list;
 
      Set_alert_property('NOTINBRW', alert_message_text, v_message);
 
      v_alert_buttons := Show_alert('NOTINBRW');
    END IF;
END;



This is my code could any one please help me how to increase the Title in the Alerts
Re: How to increase the Alert Title Width [message #609476 is a reply to message #609472] Fri, 07 March 2014 03:40 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
mist598 wrote on Fri, 07 March 2014 09:13
Quote:
I know you know what the concatenate operator (||) does.
Have a think about it.


Can you please help how to do this?


No.
I'm not asking you to solve a difficult problem.
I'm not even asking you to do something you haven't done before.
I know you're perfectly capable of working this out, anyone who's worked with oracle for a few months should be able to work this out, you've been working with it for a lot longer.
However, if you really believe that this is beyond you then I can only suggest you quit your job. After 2 years of being a programmer you should not be constantly relying on people on help forums to spell out basic code for you. It's getting to the point where we're doing your job for you and we're not getting paid for it.
But like I said - you can work this out - so spend a bit longer than 2 minutes thinking about what options are available to you for displaying the information you need and write some code to do it.

You've managed to convince yourself that oracle coding is confusing and difficult and beyond you and it's not.
You need to start convincing yourself that it's actually straight forward (what you're doing certainly is) and you can do it.
Re: How to increase the Alert Title Width [message #609477 is a reply to message #609476] Fri, 07 March 2014 03:43 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
you Can't Increase It!
Re: How to increase the Alert Title Width [message #609478 is a reply to message #609477] Fri, 07 March 2014 03:49 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Ok Thank you cookiemonster.

But i have doubt on this , how to know the User's what is the in Title Message at the end.

I want to display Title as "The following items are not assigned to the BRW" , I am getting "The following items are not assigned to" and i am missing the the BRW and it is working fine if it is display the 2 item no's .

ABCVVVVVVVV,AGGGGGGGGGG

if i get only one item no in the messages like ABCVVVVVVVV it displays "The following items are not assigned to" and i am missing the the BRW

Is there no possible to show the fully Title at the runtime right?
Re: How to increase the Alert Title Width [message #609495 is a reply to message #609478] Fri, 07 March 2014 10:49 Go to previous message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Certainly, you can do that if you rephrase the title a little bit. I'm quite sure you could have done that yourself, you don't need someone from another part of the world to show you how. My suggestion would be "Items not assigned to the BRW". That sounds reasonably OK if compared to your original (and too long) title; no information is lost.
Previous Topic: Graph in Oracle forms6i
Next Topic: List of Value
Goto Forum:
  


Current Time: Thu Apr 25 15:41:41 CDT 2024