Multi Line Menu Item and Button

Dear oracle developers,
I am trying to set a multi line label for
a button.
The label should be displayed as
Client
Reports rather than Client Reports
on the screen.
I tried CHR(i) for all the 255 ascii numbers.
I get some special characters inbetween but never got a new line.
Can any one have some ideas about this. I would like to use the same feature for a menu item also.
Thank You.
Srini S. Sundar

Hi,
U can do this in the following way :
1. Create a Icon button in your Forms canvas.
2. create a icon file (.ico) by writing a multiline text.
3. Attach this .ico file to the icon button in your forms.
Hope this may help you.
sandip.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Srini Sundar:
Dear oracle developers,
I am trying to set a multi line label for
a button.
The label should be displayed as
Client
Reports rather than Client Reports
on the screen.
I tried CHR(i) for all the 255 ascii numbers.
I get some special characters inbetween but never got a new line.
Can any one have some ideas about this. I would like to use the same feature for a menu item also.
Thank You.
Srini S. Sundar<HR></BLOCKQUOTE>
null

Similar Messages

  • New lines created in excel when displaying multi-line text item value

    Hi all,
    I put the value of a multi-line text-item into a csv file :
    DECLARE
    file_filter VARCHAR2(256) := 'Export Files (*.csv)/*.csv/All Files (*.*)/*.*/';
    fExp VARCHAR2(256);
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(4000);
    BEGIN
    fExp := get_file_name ( directory_name, file_name, file_filter, NULL, SAVE_FILE, TRUE);
    IF fExp IS NOT NULL
    THEN
    set_application_property(cursor_style,'BUSY');
    in_file := Text_IO.Fopen( fExp, 'W');
    linebuf := NVL(:com_bnc_possibles.LIBEL_TRAITE,'') || ';' ||
    NVL(:com_bnc_possibles.NUM_ANFR_ID,'') || ';' ||
                             NVL(:com_bnc_possibles.ver_fiche,'') || ';' ||
                             NVL(:com_bnc_possibles.titre,'') || ';' ||
    NVL(to_char(:com_bnc_possibles.date_creat, 'dd/mm/yyyy'),'') || ';' ||
    NVL(to_char(:com_bnc_possibles.date_valide, 'dd/mm/yyyy'),'') || ';' ||
    NVL(:com_bnc_possibles.LIBEL_STATUT,'') || ';' ||
    NVL(:com_bnc_possibles.label_reg,'') || ';' ||
    NVL(:com_bnc_possibles.nom,'') || ';' ||
    NVL(:com_bnc_possibles.prenom,'') || ';' ||
    NVL(:com_bnc_possibles.nom_societe,'') || ';' ||
    NVL(:com_bnc_possibles.comp_bnc,'') || ';' ||
    NVL(:com_bnc_possibles.motifs,'') || ';' ;
    Text_IO.Put_Line( in_file, linebuf);
    Text_IO.Fclose( in_file);
    set_application_property(cursor_style,'DEFAULT');
    END IF;
    END;
    And when I opened the csv file then the remaining lines , that is from the second line , of the column "motifs" are displayed through the column A of excel. The "motifs" multi-line text-item has 500 as its Maximum Length property value, and has a Char Data Type property value.
    So how to display all the motifs' lines through the same column M without displaying the remaining lines in column A ?
    Or are there tips to remove CHR(13) characters from a multi-line text-item ?
    Thank you very much indeed.
    Message was edited by:
    andrianiaina

    Hi,
    I tried to do it in different way. What i did is I have created a item of type formattted text and set its text like:--
    <html>User authentication failed. <br*> Cause: Invalid password.</html> --remove *
    So I am able to see the prompt like :-
    User authentication failed.
    Cause: Invalid password.
    Hope this helps you...
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • 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

  • Equal Space between Menu Items and Drop Down Menü left aligned not possible?

    It seems like I can either have equal spacing between the horizontal menu items and the drop down menu will show up centered , or I say the menu items should be of equal size, and then drop down will be left aligned. Is there any way of having equal space AND left aligned drop down???? Thanks in advance!

    Hello Anjum,
    Thank you for reporting the issue. It seems to be a Bug and we have logged the same. Hopefully it will get fixed in coming releases.
    As of now we do not have any workaround for same. However once we have some workaround, we will definitely share it with you.
    Regards,
    Sachin

  • Unable to create Menu Item List Buttons in Forms - Not Working!

    Hi guys,
    I need desperate help since I have been stuck on these for 2 days and I am unable to move forward!!
    I am trying to create a pdf form using Acrobat pro 9 and Adobe LiveCycle Designer ES. Since I am new to this, I have been browsing through numerous sites, forums and tutorials to learn about this. So far, I was able to create the forum with text fields, etc.. I am trying to have a column in my pdf form where the users can simply copy & paste image icons here..I was having difficulty with this already and have done numerous searches in google. In the end, I thought I am better off trying to use the "stamp" tool for this instead of image field. So this is what I did:
    1) I already placed the image icons (that the users will be copying & pasting) on my pdfs so users can simply click on it to select the image.
    2) I added a new bottom to this form which has the short cut to the menu item "copy" function. I labeled this button as 'Copy' and to this button, I added the following javascript for "Mouseup":
    app.execMenuItem("CopyFileToClipboard");
    3) Next I created another button that I called 'paste' and this button executes the "Paste Clipboard Image as Stamp Tool" menu. This button has the following javascript:
    app.execMenuItem("Annots:Tool:StampFromClipboardMenuItem");
    I thought that after doing the above, the user should be able to click on one of the images in the pdf, then click on 'copy' button and in the end click on 'paste' button that will then run an action so user can stamp this copied image to where ever they want in that file. But this is not happening!! I dont why?? Nothing happens when these buttons are clicked. I have made sure that the "Extended features in Adobe Reader..." is enabled and also tried running the above javascripts on my console window to test it and i know that the actual javascript code is not at fault since these functions works when I try the code through the debugger window. But I just cannot figure out why these menu item functions are not working when the buttons I had created are clicked!!! I dont know if what I have done is correct or if there is a easier way to achieve what I am trying to do!! Its a shame there is no simpler way for the end-users to copy and paste images to the columns in the pdf forms.
    please help me understand why the above button are not working....any help will be great!!

    Hi Paul,
    This is further to our email correspondence. I am just pasting your email response here since it may be useful to other newbies like me:
    "Ok here you go ......I had to add the new row via a script object as the new objects are not completely available until the script ends so I cannot resize the new row from teh current script.
    Then when we resize - we have to resize the row, the cells and the image ....we start with all existing subforms then we do it for the new row that was just added.
    Lastly I see that you have a delete row button. This will have to be part of the row otherwise we ill not know which row the user will want to delete .....unless you ask them (which is not good UI design)."
    I was really impressed the way you modified the script so the table height does not change when new rows are added. That did help me in understanding the methods and it will certainly be v useful to me in the future. I have been practicing and getting a hang of LS and I have actually decided to redesigned my form since it appears that trying to have a fixed table height is quite a bit of work each time a row is added, removed or changed, etc... Your advise so far have been v helpful and it has helped me in redesigned the form into a different layout. So far so good...However, I just have a few more clarifications regarding some hurdles I am facing:
    PS: I have emailed you a sample of my new form now so you can have a look at it.
    1) Dynamic Image fields:
    In this form, I have a subform that has a dropdown list and next to this, I have an image field. I want to change the image based on the selection in the dropdown list. I found a few samples and tutorials on this already and I tried 2 different approach for this. One works and the other doesnt.
    Method that works: What I have done here is, I added all the images in the form and have put their presence to invisible. Then using the javascript, I am making the image visible based on the selection in the dropdown list. I found this method somewhere through googling and it works.
    Method that doesnt work: Its similar to the above, but instead of putting all the images in the form, I just inserted 1 image field and then tried to change the url of this dynamic image based on the selection in the drop down list. But this method is not working. I tried inserting this jscript and nothing happens:
    switch (this.rawValue)
    case "1":
    myImages.value.Image.href=http://www.mysiteaddress.com/blah_blah.jpg;
    break;
    case "2":
    myImages.value.Image.href=http://www.mysiteaddress.com/blah_blah2.jpg;
    break;
    The 2nd method does not work. Although I know the method 1 above works and I am currently using it, I am just curious to find out why the 2nd method is not working? Did I get the script wrong or is this feature no longer allowed? I just thought that if the second method works fine, it saves the hassle of putting all the images on the form and then making them hidden. Instead, I just need to put one image field and then dynamically change its image based on the selection. I hope this make sense..please advise..
    2) Changing the background colour of the Dropdown list box:
    I am trying to change the bg colour of the listbox in the dropdown list object (only the listbox bg color and not the whole background color). So, I added the following script to the mouseEnter event and this works:
    var vName = this.somExpression;
    var fieldObj = xfa.resolveNode(vName + ".ui.#choiceList.border.fill.color");
    fieldObj.value = "255,255,225";
    My Problem: The above script works so I dont need to change anything there. But, I also want to add another script to the mouseExit event to change the fill color to its default once the mouse leaves the dropdown lists. Initially, this field has no fill colour and the border fill style is none. The fill color is only added during the mouseEnter event. How do I change the bg color fill back to none during mouseExit after the above script is executed on mouseEnter?
    (NOTE: If you see my form, I have used the above scripts for the dropdown list only in "boxSubform[0]".)
    3) Changing the length of the Dropdown List box:
    I only have about 1.6 inches workspace to add this dropdown list box. However, the length of some lists (list items) in this dropdown list box is actually longer and the remaining part is cut out. So, I added the following script to increase the dropdownlist length and it does not work the way I would have hoped...
    The script I have written so far:
    I added these to the mouseEnter event and it works fine -
    form1.pageSubform.dynamicSubform.Table1.Row1.boxSubform[0].MyDropdown::mouseEnter - (JavaScript, client)
    this.w = "2in";  //this is to to increase the width of the dropdown list
    I added these to the mouseExit event and it works fine too-
    form1.pageSubform.dynamicSubform.Table1.Row1.boxSubform[0].MyDropdown::mouseExit - (JavaScript, client)
    this.w = "1.625in";
    When I tested the form with the above script, this is what happens:
    1) First when you move the mouse over this field, the width increases. Similarly the width decreased when you move away.
    2) So, even if this is clicked, the list box is opened with this 2inch width so thats good.
    3) There are no problems when the mouse is moved over these list items as well. However, this does not look good when the dropdown list item is clicked with its item lists open and then the mouse leaves this area. In this case, as soon as the mouse leaves this area, the mouseExit script runs and hence it makes the drop down list width to shrink eventhough the list items are still open. How do I resolve this? I was thinking about this and I thought the possible way to overcome this is by writing a javascript for the mouseExit event executing something like this:
    if this dropdown list is open,
    then  this.w = "2in";
    else
    this.w = "1.625in";
    I am not sure how to write a jscript for the above?
    (NOTE: If you see my form, I have used the above scripts for the dropdown list in "boxSubform[0]".)
    4) Hiding the alternative row shadowing for hidden columns:
    If you check out my form, you can notice that I have put the "close" button (button to delete table rows) on the left column and I have also put its presence to "Visible (screen only)". The parent table has got the 'alternative row shadow' checked. What I notice here is, when this page is printed, eventhough the first column's presence is set to "Visible (Screen Only)", it still prints the row shadow for this column and it looks bad. How can I fix this? Any help will be great!
    I have already emailed you my new form again so you can have a look.
    Thanks again Paul and I cant thank you enough for your help. I am sooo happy to see such a great support and resources available here since it can be a nightmare for some newbies like me... :-)

  • "Always Available off line" menu item not available for user on computer where another does see it. This is on Active Directory Computer

    I have a lap top that I want to add files via Always available off line.
    When I logon and right click on a folder share I can see the menu item all was available offline.  When the user logs on this option is not available.  I have turned the feature on and off, rebooted, I have deleted the cache folder but I cannot
    see how to get this menu item to show up.  It's odd that it shows up for one user but not another on the same computer.  I have searched the web and tried the above things and others but cannot seem to resolve this problem.  It seems pretty
    common and their. This computer is on a domain.
    thanks.

    Hi,
    So as we edited the group policy settings in the default domain policy, the menu item is now available?
    And as we are in a domain environment and the settings is configured under the default domain policy, how the domain users behave different from each other? Which someone could see and the other not?
    Could we please generate a
    GPO report to take a check?
    And regarding group policy issue, it is recommended to seek help in the group policy forum, experts there may share some insights:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP
    Best regards
    Michael Shao
    TechNet Community Support

  • Multi-row menu item with highlight effect (JDEV - 100202.0230.5526)

    I am using the PS2 JDEV ((JDEV - 100202.0230.5526). Is it possible to have a multi row display for a menu item (af:commandMenuItem) while preserving the highlight/roll over selection effect of a typical menu item in af:menu. I would like to display an image (which may not be possible to display as an icon attribute), a description and another field (such as count) below the description.
    The menu will then be a list of such items. I would like to then have user select this as a menu item, when the user scrolls to any such item, keeping the rollover/highlight behavior.
    Thanks a lot.

    Thanks for the response. Is there an example/code snippet for this (using commandLink). Or any other mechanism possible to get similar behavior (if not using commandMenuItem) for highlight in case of multiple components (as a single row/item) ?
    Thanks again.

  • Implementing menu items and saving state in my app

    Hello
    I'm a new user to the forums, but have a little bit of java programming experience.
    currently i'm writing some business applications, one of which is a payroll system. The target audience is end-user bookkeepers so i am planning for a GUI front end.
    My first question relates to how programs save their state. for example, each month the bookkeeper will launch the program and add the next months payments, or he/she will open the program to fix a mistake. In general how do programs like word, excel (or anything) save and load files to work with? I was thinking about using XML. I thought i would load in an XML file containing all work so far, and then the user could save to it, which would add the new work.
    Question the second: A lot of gui java apps i use (like argo, symphony etc) have standard menus at the tops. Items like open, save, close, print etc. How are developers actually doing this? is there some premade classes i can just use in my programs as well that would be me this funtionality? This kindof relates to my first question about saving and opening. Further, it seems there are two GUI libraries to consider - either SWT or Swring. Eclipse plugins are written in SWT (from what i have heard). Can anybody recommend which API i should be using to create a GUI for my program?
    I think that's it for now. If anybody can provide me with advice i woudl be most grateful, as i'm at a bit of a standstill with my development.
    thanks.
    Edited by: minofifa on Oct 25, 2007 1:09 PM
    attempted to take topic off the watch list - sorry guys

    My first question relates to how programs save their state. for example, each month the bookkeeper
    will launch the program and add the next months payments, or he/she will open the program to fix a
    mistake. In general how do programs like word, excel (or anything) save and load files to work with? I
    was thinking about using XML. I thought i would load in an XML file containing all work so far, and then
    the user could save to it, which would add the new work. It sounds more like you are talking about saving the data instead of state--save in a database for mass and long term storage. Simple state info can be easily save in a database also or in a bean or text file.
    Question the second: A lot of gui java apps i use (like argo, symphony etc) have standard menus at
    the tops. Items like open, save, close, print etc. How are developers actually doing this? is there
    some premade classes i can just use in my programs as well that would be me this funtionality? This
    kindof relates to my first question about saving and opening. Further, it seems there are two GUI
    libraries to consider - either SWT or Swring. Eclipse plugins are written in SWT (from what i have
    heard). Can anybody recommend which API i should be using to create a GUI for my program?Maybe this is not what you are asking, but menu systems are implemented with Menu, MenuBar, MenuItem, etc objects in Java. The specifics of what happens when the individual menu items are selected are left up to the programmer.
    If you are looking for prebuilt menubars with code attached to perform common functions, then I do not know of any included in Java.

  • Adding menu items and making system calls in AfterEffects (AE,CS3)

    We are looking to do the following things via javascript in AfterEffects CS3. It does seem straight-forward, but am unable to find a good reference or example.
    * Add at startup a menu item under "File" (or similar main menu) and have it call a script function when clicked.
    * Have a script make an external system call (to launch an external application/executable with a few parameters)
    Any insights on how to achieve this?
    Many thanks!

    I wanted to see if there was any update on this, I'm writing a series of tools and would love to create a custom menu for quick and easy access.
    If it turns out there isn't an "easy" way to do this (env variables, special directory locations, javascripts) would anyone know if access to the menubar is possible from the Plugin API?
    I'm fairly new to After Effects, just getting up-to-speed on the environment now... seeing if I can duplicate the functionality of some old Nuke scripts in AE.
    thanks,
    Rick_

  • CK-200 Audio qualiy, missing menu items and softwa...

    Hi all.  First post and all that jazz.
    Wonder if anyone can assist with several issues I'm having with a CK-200.  to list them:
    Audio quality.  This is perhaps the worst problem.  I can hear the person I'm talking to quite clearly, (ISO version on decent car speakers) but the background noise reported by the other person is really really bad.  Whilst my car isn't the quietest in the world (LandRover Discovery) it's certainly not loud, but everyone has commented that they can barely hear me when I'm at motorway speeds.  Does the external microphone help remove background noise much?  I certainly hope so, as at the moment I have to be at 40mph or below to be heard properly.  I've tried calling someone else driving my car, and sure enough it sounds like the microphone is in the engine bay, and the person I'm talking to is in the boot!
    Second:  When I first got the kit, it appeared to understand that one of my phones (E90) was not compatible with downloading the address book, and so it didn't try, but if I made a few calls the kit remembered the numbers called.  After "updating" the software a few months ago, it now constantly tries to download the address book, fails, and if I try to do a "last number redial" it tells me that it can't download the address book.
    Lastly... (and has been mentioned in another thread) There appears to be a number of menu items missing, most noticeably the option to read a received text message.  The icon appears to tell me I have a new text, but there's absolutely nothing I can do about it!
    Shame, as it's a nice car kit, and the two-phone-connectivity is excellent, but I really must address these issues!
    Any and all assistance gratefully received!
    David.
    PS. as a sidenote, where can I actually buy a CA-134 for this kit from?  I know it's the cable I need, but I can't actually find one for sale anywhere!

    Glad you got it improved, I guess perhaps a 'mechanical' sound transmission problem. Not sure about inside the CK-200 unit - but inside Nokia external mic's the mike element is usually mounted in a block of foam rubber to absorb vibrations carrying through. I am certainly getting a little higher volume level on my 'answerphone' trails with an external 
    Little confused by the download issues. The CK-200 can download your contacts as one aspect but also your call history (calls made/missed/received etc) as another.
    The contacts (address book)  download certainly seems to stop dead when you set auto to off on all version and handsets I have tried. On recent software versions Nokia introduced the automatic download of call history, as far as I know this cannot be disabled - I would quite like to be able to as I don't really need it and it delays the initial connection before you can make a call. But anyway it sounds like its this thats giving you trouble. It may be down to some setting in your phone you can make to deny it permission to cooperate with the CK-200. Anyway see how it goes with V.3 first of course. (can't be long now )

  • AdBlock Plus eliminates menu items and statusbar items

    When I activate Adblock Plus, several menu items disappear and statusbar items from other plugins also disappear, not to mention the ADP icon which is nowhere to be found despite that I have it checked on the ADP menu. It's not necessary to uninstall ADP, simply disabling it and all these things come back. I've reported this to mozdev.org, but upon reading other people's comments it seems I'm not the only one with the problem

    The AdblockPlus support form is here: <br />
    http://adblockplus.org/forum/

  • Data menu items and Forms

    I am enabling the Data menu items for my custom form like this:
    myForm.EnableMenu("1281", true);
    myForm.EnableMenu("1282", true);
    myForm.EnableMenu("1283", true);
    myForm.EnableMenu("1288", true);
    myForm.EnableMenu("1289", true);
    myForm.EnableMenu("1290", true);
    myForm.EnableMenu("1291", true);
    This works fine for my form but as soon as a SAP system form gets focus, the Data menu items do not work until I close my form. Do I need to do something in the "lose focus" event for my form?

    In your menu event code, are you checking to see if your custom form is the active form before processing the menu event?
    If not your code will be processed regardless of which form is currently active, and this could lead to the behaviour you describe.
    You can tell if your custom form is active by looking at the "selected" property of form object.
    Regards,
    John.

  • Muiltiple menu items and unwanted square

    I'm not sure what happed but all of a sudden i have multiple menu items on the main apple menu and there is a square box either on the desktop or various applications such as entourage or word etc.
    I'm not sure if it has something to do with user preferences but I have no clue what triggered it.

    Tony A,
    You can turn VoiceOver on/off in the Universal Access pane of System Preferences, or by pressing Command-F5.
    ;~)

  • Need to remove default dock menu item and add new.

    Hi ,
    I am working on Carbon application on Xcode . I need to remove default menu item attached to my application dock menu like ( Remove from Dock , Open at Login , Show in Finder ).
    I also need to attach new items to my application dock menu and want to handle its event.
    Thanks in advance,
    Sunil Adhyaru.

    Well, this is a programming question more than a question on how to use the Leopard environment (you might want to post to one to the programming forums).
    However, basically, you can't remove the Dock menu items that the Dock itself adds (add/remove from dock, etc.). You can add your own menu items, however. Use the interface builder to create a nib that has a menu in it -- call it something catchy like MyMenu.nib.
    Then in the application property list file (Info.plist) add property called "AppleDockMenu" and set the value to a string that's the name of your nib file (without the .nib extension).
    Subsequently, you treat that menu just as you would the menus in your menu bar. That's all there is to it.

  • OS X Lion Server display problem with menu highlighting and button icons

    I have attached  Grab capture of my screen showing the problems with the window top bars and button icons. This happened after a routine security update.
    Does anyone have an idea how to fix this?
    Thanks
    George Harrison

    I have/had the same problem. Comparible setup running Lion Server GM. The natd service fires off the InternetSharing service from the prefspane instead of the regular natd service. This is verifiable by entries in the system log as well as the lack of the natd process running. Below are my findings from research/experimentation; please understand that this is what I have done to get it working, it is DEFINITELY not best practices and I'm sure not supported by Apple. I'm just conveying what I think is happening and how I dealt with it.
    Natd - Executing the binary referenced in the launchctl job directly launches the InternetSharing service on Lion server. This does NOT act this way in SL server, where it works as expected. Replacing the Lion binaries with The SL ones results in natd working as expected: nat_start and nat_stop in /usr/libexec. In short, if you replace the Lion binaries with the ones from SL, it-s a drop-in fix. Natd isn't your only problem though...
    Dns/named - It appears that Apple has limited named to binding on the loopback adapter only by default on Lion. Adding a listen-on clause to named.conf with the appropriate bindings will fix this. I'm assuming you're running natd, named and dhcpd on the same box...
    Dhcpd - Works fine. It appears broken only because the InternetSharing service is replacing natd (why?!?) and it has a built-in dhcpd server (dumbed down 192.168.2.0 subnet). Once you fix natd, this runs as expected.
    Firewall/ipfw - Gotta have this running so that natd will do translation. Remember to open the dhcp ports to allow the clients to get leases...
    I hope this helps, I'm sticking with SL until these issues are worked out...

Maybe you are looking for